/* ──────────── CUSTOM PROPERTIES ──────────── */
:root {
  --terracotta-50: #fef7f4;
  --terracotta-100: #fdecd7;
  --terracotta-200: #f8c9a0;
  --terracotta-300: #f0a06a;
  --terracotta-400: #e87642;
  --terracotta-500: #d4562a;
  --terracotta-600: #b8431e;
  --terracotta-700: #963519;
  --terracotta-800: #7a2e18;
  --terracotta-900: #642714;

  --sand-50: #fdf9f3;
  --sand-100: #faf0e0;
  --sand-200: #f5e0c0;
  --sand-300: #edc89a;
  --sand-400: #e0a868;
  --sand-500: #d08c44;
  --sand-600: #b87230;
}

/* ──────────── FONT IMPORTS ──────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ──────────── PLAYFAIR DISPLAY ──────────── */
.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ──────────── INTER (default body) ──────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ──────────── TAILWIND EXTENSIONS ──────────── */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  .mobile-link {
    position: relative;
    padding-left: 0;
  }
  .mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #b8431e;
    transition: width 0.25s ease;
  }
  .mobile-link:hover::before {
    width: 16px;
  }
}

/* ──────────── NAVBAR SCROLL STATE ──────────── */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ──────────── MOBILE MENU ANIMATION ──────────── */
#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(5px, -5px);
}
#menu-btn.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.open .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.open .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ──────────── SCROLL ANIMATIONS ──────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ──────────── SMOOTH SCROLL ──────────── */
html {
  scroll-behavior: smooth;
}

/* ──────────── HERO GEOMETRIC ANIMATIONS ──────────── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-16px) scale(1.03); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.hero-float-1 { animation: float-slow 7s ease-in-out infinite; }
.hero-float-2 { animation: float-medium 5s ease-in-out infinite; }
.hero-float-3 { animation: float-slow 9s ease-in-out infinite reverse; }

/* ──────────── CUSTOM SCROLLBAR ──────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf0e0;
}
::-webkit-scrollbar-thumb {
  background: #d4562a;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8431e;
}

/* ──────────── FOCUS VISIBLE ──────────── */
*:focus-visible {
  outline: 2px solid #d4562a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ──────────── PRINT ──────────── */
@media print {
  #navbar, #mobile-menu, .hero-float-1, .hero-float-2, .hero-float-3 {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
