/* ==========================================
   GREEN LEAF LOUNGE — Custom Styles
   ========================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ---- Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999;
    padding: 0.75rem 1.5rem;
    background: #2a1e16;
    color: #fefcf8;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ---- Animations ---- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(6px); opacity: 1; }
}

.scroll-arrow {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ---- Reveal on Scroll ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Header ---- */
.site-header {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

.site-header.scrolled {
    background: rgba(26, 19, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(254, 252, 248, 0.06);
}

.site-header.scrolled .logo-mark svg,
.site-header.scrolled .logo-text span {
    color: #fefcf8;
}

.site-header.scrolled .nav-link {
    color: rgba(254, 252, 248, 0.7);
}

.site-header.scrolled .nav-link:hover {
    color: #fefcf8;
}

/* ---- Navigation Links ---- */
.nav-link {
    color: rgba(254, 252, 248, 0.6);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d06b4a;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fefcf8;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- CTA Buttons ---- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(212, 107, 74, 0.5);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.35s ease;
    background: transparent;
}

.cta-btn:hover {
    background: #d06b4a;
    border-color: #d06b4a;
    color: #fefcf8 !important;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #d06b4a;
    color: #fefcf8;
    border: 1px solid #d06b4a;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.cta-btn-primary:hover {
    background: #b54128;
    border-color: #b54128;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(181, 65, 40, 0.25);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #fefcf8;
    border: 1px solid rgba(254, 252, 248, 0.25);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.cta-btn-secondary:hover {
    border-color: rgba(254, 252, 248, 0.6);
    background: rgba(254, 252, 248, 0.06);
}

/* ---- Mobile Menu Button ---- */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hamburger-line {
    display: block;
    height: 1.5px;
    background: #fefcf8;
    border-radius: 1px;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* Mobile menu open state */
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.5rem;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    color: #2a1e16;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #b54128;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
}

.hero-img-main-img,
.hero-img-secondary-img {
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-img-main:hover .hero-img-main-img {
    transform: scale(1.03);
}

.hero-img-secondary:hover .hero-img-secondary-img {
    transform: scale(1.03);
}

/* ---- Heritage Section ---- */
.heritage-image {
    position: relative;
}

.heritage-img-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(26, 19, 14, 0.15));
}

.heritage-caption {
    box-shadow: 0 8px 32px rgba(42, 30, 22, 0.12);
}

/* ---- Offerings Section ---- */
.offering-card {
    background: #2a1e16;
}

.offering-card-inner {
    transition: background 0.3s ease;
}

.offering-card:hover .offering-img-inner {
    transform: scale(1.04);
}

.offering-img-inner,
.offering-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Gather Section ---- */
.gather-accent-card {
    box-shadow: 0 8px 32px rgba(42, 30, 22, 0.12);
}

/* ---- Visit Section ---- */
.visit-map-img {
    transition: opacity 0.3s ease;
}

.visit-map:hover .visit-map-img {
    opacity: 0.4;
}

/* ---- Contact Form ---- */
.form-label {
    display: block;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #762c28;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #2a1e16;
    background: #fefcf8;
    border: 1px solid #f5d9aa;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #b06d2e;
    opacity: 0.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #c45230;
    box-shadow: 0 0 0 3px rgba(196, 82, 48, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b06d2e' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group {
    margin-bottom: 0;
}

/* Form validation states */
.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #c45230;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #8fb996;
}

/* ---- Form Success ---- */
.form-success {
    transition: opacity 0.4s ease;
}

.form-success.hidden {
    display: none;
}

/* ---- Footer ---- */
.footer a {
    text-decoration: none;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .scroll-arrow {
        animation: none;
        opacity: 0.7;
    }
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .hero-headline {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
    }
    
    .heritage-grid {
        gap: 3rem;
    }
    
    .heritage-image {
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .hero-images {
        min-height: 60vh;
        margin-top: 2rem;
    }
    
    .hero-img-main {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
    }
    
    .hero-img-secondary {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        margin-top: 1rem;
    }
    
    .heritage-caption {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .gather-images {
        order: -1;
    }
    
    .gather-deco {
        display: none;
    }
    
    .offerings-grid {
        gap: 1px;
    }
    
    .offerings-section {
        padding-bottom: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-images {
        min-h-screen;
    }
}
