/* Mil Travel - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* CSS Custom Properties for the dark luxury theme */
:root {
  --background: #1a1a1a;
  --foreground: #f0f0f0;
  --card: #1f1f1f;
  --card-foreground: #f0f0f0;
  --popover: #1f1f1f;
  --popover-foreground: #f0f0f0;
  --primary: #c8a951;
  --primary-foreground: #1a1a1a;
  --secondary: #2d2d2d;
  --secondary-foreground: #f0f0f0;
  --muted: #333333;
  --muted-foreground: #999999;
  --accent: #c8a951;
  --accent-foreground: #1a1a1a;
  --destructive: #dc2626;
  --border: #3d3828;
  --input: #2d2d2d;
  --ring: #c8a951;
  --radius: 0.625rem;
  --gold: #c8a951;
  --gold-light: #dac06a;
  --gold-dark: #8f7530;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Font utilities */
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Card component */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--primary);
}

/* Button component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--gold-dark);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  min-height: 52px;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  min-height: 40px;
}

/* Input component */
.form-input {
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(200, 169, 81, 0.2);
}

.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  outline: none;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(200, 169, 81, 0.2);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(240, 240, 240, 0.8);
  margin-bottom: 0.25rem;
}

.form-select {
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  transition: border-color 0.2s ease;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(200, 169, 81, 0.2);
}

/* Checkbox */
.form-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero background overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--background), rgba(26, 26, 26, 0.95), var(--background));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* Image hover zoom effect */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Bounce animation for chevron */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Backdrop blur for header */
.backdrop-blur {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  bottom: 1.5rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float.cookie-visible {
  bottom: 10rem;
}

@media (min-width: 640px) {
  .whatsapp-float.cookie-visible {
    bottom: 7rem;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--secondary);
  border-top: 1px solid var(--border);
  box-shadow: 0 -25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Section content visibility for performance */
section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Lucide icon sizing overrides */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}

/* Mobile menu transition */
.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
}

/* Status messages */
.status-success {
  padding: 1rem;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: #4ade80;
  font-size: 0.875rem;
}

.status-error {
  padding: 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: #f87171;
  font-size: 0.875rem;
}

/* Blog post expanded content */
.blog-content {
  display: none;
}

.blog-content.expanded {
  display: block;
}

/* Rotate chevron when expanded */
.chevron-rotated {
  transform: rotate(90deg);
}

/* Touch manipulation for mobile */
.touch-manipulation {
  touch-action: manipulation;
}

/* Text balance/pretty utilities */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Aspect ratio utilities */
.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-16-10 {
  aspect-ratio: 16 / 10;
}

/* Transitions */
.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-transform {
  transition: transform 0.2s ease;
}

.transition-all {
  transition: all 0.2s ease;
}
