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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

/* ===== HEADER ===== */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-logo-text {
    color: #f8fafc !important;
    font-family: 'Playfair Display', Georgia, serif !important;
}

.header-sub-text {
    color: rgba(148, 220, 218, 0.8) !important;
}

#header.scrolled .header-logo-text {
    color: #ffffff !important;
}

#header.scrolled .header-sub-text {
    color: rgba(148, 220, 218, 0.7) !important;
}

#header.scrolled .header-nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ===== HERO ANIMATIONS ===== */
.hero-eyebrow {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-subtext {
    animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-ctas {
    animation: slideUp 0.8s ease-out 0.8s both;
}

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0d9488;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.section-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== REASON CARDS ===== */
.reason-card {
    position: relative;
    padding-left: 0;
}

.reason-card::after {
    content: '';
    position: absolute;
    left: 6px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d9488, transparent);
    transition: width 0.5s ease;
}

.reason-card:hover::after {
    width: calc(100% - 48px);
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.08);
    transform: translateY(-2px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== INPUT FOCUS STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1) !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: clamp(2.75rem, 12vw, 4rem);
    }
}

@media (min-width: 768px) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}
