/* 
   Hiatus Holidays - Custom Styles
   Complementing Tailwind CSS for premium boutique aesthetics
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --pine-green:   #1B2B20;
    --saffron:      #F4C430;
    --warm-beige:   #F5F5DC;
    --header-height: 72px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    scroll-behavior: smooth;
    /* Push all content below the fixed header */
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6,
.font-serif { font-family: 'Playfair Display', serif; }

/* ============================================================
   HEADER — FIXED, ALWAYS WHITE, NEVER OVERFLOWS
   ============================================================ */
#main-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    padding: 0 24px;
    background: #fff !important;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
    z-index: 9999;
    overflow: visible;
}

/* Logo image — constrained so it never blows up the header */
#main-header img {
    height: 44px !important;
    width: auto !important;
    max-width: 160px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Brand text next to logo */
#main-header a:first-child span {
    font-size: clamp(14px, 2vw, 22px);
    white-space: nowrap;
}

/* Desktop nav — single row, never wraps */
#main-header nav {
    display: none;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1B2B20;
}

@media (min-width: 1024px) {
    #main-header nav { display: flex !important; }
    #main-header { padding: 0 48px; }
}

/* Dropdown menus */
#main-header nav .absolute {
    top: 100% !important;
    margin-top: 0;
    border-radius: 12px;
    border: 1px solid rgba(27,43,32,.08);
    box-shadow: 0 16px 48px rgba(0,0,0,.14);
}

/* CTA button in nav */
#main-header nav a[href*="wa.me"],
#main-header nav a.bg-pine {
    background: #1B2B20 !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

/* Hamburger button */
#mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1B2B20;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    #mobile-menu-btn { display: none !important; }
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
#mobile-menu {
    position: fixed;
    inset: 0;
    background: #1B2B20;
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 24px 40px;
    overflow-y: auto;
}
/* Hidden by default; JS adds display:flex */
#mobile-menu.hidden { display: none !important; }

/* ============================================================
   TAILWIND COLOUR UTILITIES (fallback when CDN Tailwind 
   doesn't recognise custom colours) 
   ============================================================ */
.text-pine    { color: #1B2B20; }
.bg-pine      { background-color: #1B2B20; }
.text-saffron { color: #F4C430; }
.bg-saffron   { background-color: #F4C430; }
.bg-beige     { background-color: #F5F5DC; }
.text-beige   { color: #F5F5DC; }
.border-pine  { border-color: #1B2B20; }
.hover\:text-saffron:hover  { color: #F4C430; }
.hover\:bg-beige:hover      { background-color: #F5F5DC; }
.hover\:bg-pine:hover       { background-color: #1B2B20; }
.hover\:text-pine:hover     { color: #1B2B20; }
.hover\:text-white:hover    { color: #fff; }

/* ============================================================
   GLASSMORPHISM
   ============================================================ */
.glass-card {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.3);
}
.glass-dark {
    background: rgba(27,43,32,.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #1B2B20; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2c4434; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item.active .faq-question { color: #1B2B20; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible,
.reveal.opacity-100 {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   ANIMATION DELAY UTILITIES
   ============================================================ */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-500 { transition-delay: 500ms; }

/* ============================================================
   FOOTER
   ============================================================ */
footer a:hover { color: #fff; }
