/* ─── Custom Properties ─── */
:root {
    --cultivate-50: #f0f7f7;
    --cultivate-100: #dceef0;
    --cultivate-200: #b8dce2;
    --cultivate-300: #84c0cc;
    --cultivate-400: #4fa1b2;
    --cultivate-500: #2d8297;
    --cultivate-600: #1f6476;
    --cultivate-700: #184d5a;
    --cultivate-800: #0d4f4f;
    --cultivate-900: #083232;
    --cultivate-950: #041a1a;
    --gold: #D4A853;
    --gold-light: #E8C97A;
}

/* ─── Base ─── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: var(--cultivate-200);
    color: var(--cultivate-900);
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ─── Section Styles ─── */
.section-eyebrow {
    display: block;
}

.section-title {
    line-height: 1.15;
}

.section-subtitle {
    line-height: 1.7;
}

/* ─── Divider ─── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cultivate-200), transparent);
    margin: 0 auto;
}

/* ─── Buttons ─── */
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-cta:hover::after {
    opacity: 1;
}

.btn-outline {
    position: relative;
    overflow: hidden;
}

/* ─── Form Inputs ─── */
.form-input {
    background: #fff;
    border: 1px solid var(--cultivate-200);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.9rem;
    color: var(--cultivate-900);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: var(--cultivate-300);
}

.form-input:hover {
    border-color: var(--cultivate-400);
}

.form-input:focus {
    border-color: var(--cultivate-500);
    box-shadow: 0 0 0 3px rgba(45, 130, 151, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* ─── Hero Animations ─── */
.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.9s ease forwards;
    animation-delay: 0.2s;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.9s ease forwards;
    animation-delay: 0.5s;
}

.hero-eyebrow {
    opacity: 0;
    transform: translateY(15px);
    animation: heroReveal 0.9s ease forwards;
    animation-delay: 0.1s;
}

.hero-img {
    opacity: 0;
    animation: heroImgReveal 1.2s ease forwards;
    animation-delay: 0.3s;
}

.hero-img-wrap {
    opacity: 0;
    animation: heroWrapReveal 1s ease forwards;
    animation-delay: 0.1s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImgReveal {
    to {
        opacity: 1;
    }
}

@keyframes heroWrapReveal {
    to {
        opacity: 1;
    }
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── Service Cards ─── */
.service-card {
    background: #fff;
    border-radius: 4px;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(13, 79, 79, 0.1);
}

.service-card-img-wrap {
    height: 220px;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cultivate-50);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: var(--cultivate-100);
}

.service-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.service-card-desc {
    line-height: 1.7;
}

/* ─── Gallery ─── */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 26, 26, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ─── Mobile Menu ─── */
.mobile-menu-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
}

/* ─── Navbar Transition ─── */
.nav-scrolled .nav-link {
    color: var(--cultivate-700);
}

.nav-scrolled #nav-logo-text {
    color: var(--cultivate-800);
}

.nav-scrolled #nav-logo-circle {
    fill: var(--cultivate-800);
}

.nav-scrolled #nav-logo-flower {
    fill: var(--cultivate-500);
}

/* ─── Hamburger Animation ─── */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
    margin-right: 0;
}

/* ─── Back to Top ─── */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--cultivate-700);
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card-img-wrap {
        height: 180px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

/* ─── 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;
    }

    .hero-headline,
    .hero-sub,
    .hero-eyebrow,
    .hero-img,
    .hero-img-wrap {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
