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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, #064e3b 0%, #022c22 50%, #011c15 100%);
}

/* ─── Hero Dot Pattern ─── */
.hero-pattern {
    background-image: radial-gradient(rgba(254, 253, 248, 0.4) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ─── Service Card Pattern ─── */
.services-pattern {
    background-image: radial-gradient(rgba(254, 253, 248, 0.5) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ─── CTA Pattern ─── */
.cta-pattern {
    background-image: radial-gradient(rgba(254, 253, 248, 0.4) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* ─── Hero Entrance Animations ─── */
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-body {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(254, 253, 248, 0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ─── Primary Button ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #059669;
    color: #fefdf8;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.4);
}

.btn-primary-icon {
    transition: transform 0.2s;
}

.btn-primary:hover .btn-primary-icon {
    transform: translateX(3px);
}

/* ─── Secondary Button ─── */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 253, 248, 0.08);
    color: #fefdf8;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid rgba(254, 253, 248, 0.2);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    background: rgba(254, 253, 248, 0.14);
    border-color: rgba(254, 253, 248, 0.35);
    transform: translateY(-1px);
}

/* ─── CTA Button ─── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fefdf8;
    color: #064e3b;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background: #fdf9ee;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-icon {
    transition: transform 0.2s;
}

.btn-cta:hover .btn-cta-icon {
    transform: translateX(3px);
}

/* ─── Submit Button ─── */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #059669;
    color: #fefdf8;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
    width: 100%;
}

.btn-submit:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.4);
}

.btn-submit-icon {
    transition: transform 0.2s, opacity 0.2s;
}

.btn-submit:hover .btn-submit-icon {
    transform: translate(2px, -2px);
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06), 0 4px 20px rgba(6, 78, 59, 0.04);
}

/* ─── Scroll Reveal (below the fold only) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        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-left {
        opacity: 0;
        transform: translateX(-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-right {
        opacity: 0;
        transform: translateX(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-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ─── Focus Styles ─── */
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Selection ─── */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

/* ─── Mobile Menu Transition ─── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .hero-body {
        font-size: 1.0625rem;
    }

    #about,
    #services,
    #visit,
    #contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
