/* ============================================
   CLAYBON CLINIC — Stylesheet
   Palette: Teal (#0D9488) + Slate (#1E293B / #334155)
   Fonts: Playfair Display (headings) + Inter (body)
============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0d9488;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0f766e;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0d9488;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    font-weight: 600;
}

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

/* --- Section Shared --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-desc {
    font-size: 1.1rem;
    color: #475569;
    max-width: 640px;
    line-height: 1.75;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

.text-white { color: #ffffff !important; }
.text-teal-100 { color: #99f6e4; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

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

.btn-outline {
    background: transparent;
    color: #1e293b;
    border-color: #cbd5e1;
}
.btn-outline:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

.btn-white {
    background: #ffffff;
    color: #0d9488;
    border-color: #ffffff;
}
.btn-white:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #1e293b;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: #0d9488;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}
.logo-mark::before,
.logo-mark::after {
    content: '';
    position: absolute;
    background: #ffffff;
    border-radius: 1px;
}
.logo-mark::before {
    top: 50%;
    left: 6px;
    right: 6px;
    height: 3px;
    transform: translateY(-50%);
}
.logo-mark::after {
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 3px;
    transform: translateX(-50%);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.logo-light .logo-mark {
    background: #2dd4bf;
}
.logo-light .logo-mark::before,
.logo-light .logo-mark::after {
    background: #ffffff;
}
.logo-light .logo-text {
    color: #ffffff;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list a {
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-list a:hover {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.06);
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.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: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
============================================ */
.hero {
    background: #f8fafc;
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0d9488;
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.3;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.hero-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: #0d9488;
    border-radius: 16px;
    z-index: -1;
    opacity: 0.15;
}

/* ============================================
   SERVICES
============================================ */
.services {
    padding: 5rem 0;
    background: #ffffff;
}

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

.service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.3);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: #0d9488;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
}

/* ============================================
   ABOUT
============================================ */
.about {
    padding: 5rem 0;
    background: #f8fafc;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.85), transparent);
    border-radius: 0 0 16px 16px;
    padding: 2rem 1.5rem 1.25rem;
}

.about-image-text {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.about-content .section-title {
    margin-top: 0.5rem;
}

.about-body {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
}

.value-icon {
    width: 40px;
    height: 40px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon svg {
    width: 20px;
    height: 20px;
    color: #0d9488;
}

/* ============================================
   INSURANCE BANNER
============================================ */
.insurance-banner {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.insurance-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.insurance-content {
    flex: 1;
    min-width: 280px;
}

.insurance-content .section-title {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.insurance-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    max-width: 560px;
}

.insurance-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials {
    padding: 5rem 0;
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: #f59e0b;
}

.testimonial-card blockquote {
    font-size: 1rem;
    color: #334155;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.25rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
}

.testimonial-location {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ============================================
   CONTACT
============================================ */
.contact {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title {
    margin-top: 0.5rem;
}

.contact-desc {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: #0d9488;
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.6;
}

.contact-item a {
    color: #0d9488;
    font-weight: 500;
}

.contact-item a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.map-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Form */
.contact-form-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.form-note {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: #0d9488;
}

.form-success strong {
    font-size: 1.125rem;
    color: #1e293b;
}

.form-success p {
    font-size: 0.9375rem;
    color: #475569;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand .footer-desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2dd4bf;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-phone {
    color: #2dd4bf !important;
    font-weight: 600;
    font-size: 1.0625rem;
}

.footer-phone:hover {
    color: #5eead4 !important;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
    font-size: 0.8125rem;
}

.footer-bottom a:hover {
    color: #2dd4bf;
}

/* ============================================
   ANIMATIONS (progressive enhancement)
============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
        padding: 1rem 1.5rem 1.25rem;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
        z-index: 99;
    }
    
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .nav-list a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .nav-list li:last-child {
        margin-top: 0.5rem;
    }
    
    .nav-list li:last-child .btn {
        text-align: center;
    }
    
    /* Hero mobile */
    .hero {
        padding: 2.5rem 0 3rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        border-radius: 12px;
        max-height: 360px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.375rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    /* Insurance */
    .insurance-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .insurance-actions {
        justify-content: center;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
    
    .contact-form-wrap {
        padding: 1.5rem;
    }
}
