/* ============================================
   Acadia Clinic — Custom Styles
   Vibrant Modern | Teal + Slate Grey
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* ============================================
   GEOMETRIC DECORATIVE SHAPES (fixed background)
   ============================================ */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: #0d9488;
    top: -150px;
    right: -100px;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: #0d9488;
    bottom: 20%;
    left: -80px;
}

.geo-circle--3 {
    width: 180px;
    height: 180px;
    background: #1e293b;
    top: 50%;
    right: 5%;
    opacity: 0.04;
}

.geo-rect {
    position: absolute;
    background: #0d9488;
    opacity: 0.05;
    border-radius: 20px;
    transform: rotate(45deg);
}

.geo-rect--1 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 3%;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.04;
}

.geo-triangle--1 {
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #0d9488;
    top: 70%;
    right: 8%;
    transform: rotate(-15deg);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
    z-index: 1001;
}

.nav-logo-text {
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.938rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #0d9488;
    background: #f0fdfa;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    background: #0d9488;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.938rem;
    padding: 10px 20px;
    border-radius: 10px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 19, 33, 0.88) 0%,
        rgba(13, 148, 136, 0.65) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

.hero-geometric-accent {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
}

.geo-accent-circle {
    width: 320px;
    height: 320px;
    border: 3px solid rgba(14, 165, 155, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
    animation: geoFloat 8s ease-in-out infinite;
}

.geo-accent-dots {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 10px;
}

.geo-accent-dots span {
    width: 8px;
    height: 8px;
    background: rgba(14, 165, 155, 0.5);
    border-radius: 50%;
}

.geo-accent-dots span:nth-child(odd) {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 120px 24px 80px;
    margin-left: max(5%, 60px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 155, 0.2);
    border: 1px solid rgba(14, 165, 155, 0.4);
    color: #5eead4;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #14b8a6;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.hero-headline-accent {
    color: #5eead4;
    display: block;
    font-style: italic;
    font-weight: 600;
}

.hero-subheadline {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.938rem;
    font-weight: 500;
}

.hero-trust-item svg {
    color: #5eead4;
    flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.938rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

.btn-primary {
    background: #0d9488;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-white {
    background: #ffffff;
    color: #0d9488;
}

.btn-white:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-tag {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 16px;
}

.section-tag--light {
    color: #5eead4;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.section-title--light {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #5eead4, #0d9488);
    background-size: 300% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0d9488;
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

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

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

.service-icon {
    width: 56px;
    height: 56px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
    transform: scale(1.05);
}

.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.938rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #0d9488;
    opacity: 0.03;
    border-radius: 50%;
    pointer-events: none;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

.about-image-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    z-index: 0;
}

.about-image-accent .accent-block {
    border-radius: 16px;
}

.accent-block--teal {
    width: 120px;
    height: 120px;
    background: #0d9488;
    border-radius: 20px;
    margin-bottom: -20px;
    margin-right: -20px;
    position: relative;
    z-index: 1;
}

.accent-block--slate {
    width: 80px;
    height: 80px;
    background: #1e293b;
    border-radius: 14px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.accent-dots {
    position: absolute;
    top: -30px;
    right: -20px;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 8px;
    z-index: 2;
}

.accent-dots span {
    width: 8px;
    height: 8px;
    background: #14b8a6;
    border-radius: 50%;
    opacity: 0.5;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
    padding: 28px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0d9488;
}

.stat-label {
    font-size: 0.938rem;
    color: #64748b;
}

/* ============================================
   VISIT SECTION
   ============================================ */
.visit {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.visit-header {
    text-align: center;
    margin-bottom: 56px;
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.visit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.visit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0d9488;
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.visit-card:hover::after {
    transform: scaleX(1);
}

.visit-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin: 0 auto 20px;
}

.visit-card-title {
    font-size: 1.063rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
}

.visit-card-text {
    font-size: 0.938rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 8px;
}

.visit-card-text a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
}

.visit-card-text a:hover {
    text-decoration: underline;
}

.visit-card-note {
    font-size: 0.813rem;
    color: #94a3b8;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
}

.cta-shape--circle-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(14, 165, 155, 0.2);
    top: -80px;
    left: -80px;
}

.cta-shape--rect-1 {
    width: 150px;
    height: 150px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 20px;
    transform: rotate(45deg);
    bottom: -40px;
    right: 10%;
}

.cta-shape--circle-2 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(14, 165, 155, 0.15);
    bottom: -60px;
    right: -60px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0 0 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.cta-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.cta-address svg {
    color: #5eead4;
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0c1321;
    padding: 64px 0 0;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 4px;
}

.footer-col a,
.footer-col span {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.6;
}

.footer-col a:hover {
    color: #5eead4;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.footer-disclaimer {
    max-width: 480px;
    text-align: right;
}

/* ============================================
   REVEAL ANIMATIONS
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        gap: 48px;
    }
    
    .hero-content {
        margin-left: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 12px 24px;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
        font-size: 1.1rem;
        padding: 14px 28px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        margin-left: 0;
        padding: 120px 24px 80px;
    }
    
    .hero-geometric-accent {
        display: none;
    }
    
    .hero-trust {
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-image-accent {
        right: -10px;
        bottom: -20px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-disclaimer {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }
    
    .services,
    .about,
    .visit,
    .cta {
        padding: 72px 0;
    }
}
