/* ========================================
   Kimberly Oxley — Medical Website
   Midnight Blue + Mint | Fresh & Airy
   ======================================== */

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

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
    background-color: #F8FCFB;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* --- Focus --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0F172A;
    color: #F0FDFA;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 200;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid #5EEAD4;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: #0F172A;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0D9488;
    margin-bottom: 0.75rem;
}

.section-eyebrow--light {
    color: #5EEAD4;
}

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

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

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

.section-subtitle--light {
    color: #94A3B8;
}

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

.section-header--light {
    color: #F0FDFA;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #0D9488;
    color: #F0FDFA;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}
.btn--primary:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #F0FDFA;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn--white {
    background: #F0FDFA;
    color: #0F172A;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn--white:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--ghost-light {
    background: transparent;
    color: #F0FDFA;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #F0FDFA;
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 252, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

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

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #0F172A;
}

.nav__brand-icon {
    width: 32px;
    height: 32px;
    background: #0D9488;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F0FDFA;
}

.nav__brand-icon svg {
    width: 18px;
    height: 18px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__links a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease;
    position: relative;
}

.nav__links a:not(.btn):hover {
    color: #0D9488;
}

.nav__links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0D9488;
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav__links a:not(.btn):hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    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 --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F172A;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

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

.hero__gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13, 148, 136, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45, 212, 191, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235EEAD4' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5EEAD4;
    margin-bottom: 1.5rem;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.hero__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #5EEAD4;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #F0FDFA;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero__trust-item {
    text-align: center;
}

.hero__trust-value {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F0FDFA;
}

.hero__trust-label {
    font-size: 0.8125rem;
    color: #64748B;
}

.hero__trust-divider {
    width: 1px;
    height: 32px;
    background: rgba(100, 116, 139, 0.4);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #5EEAD4, transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Services --- */
.services {
    padding: 6rem 0;
    background: #F8FCFB;
}

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

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(13, 148, 136, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(13, 148, 136, 0.15);
}

.card--service {
    display: flex;
    flex-direction: column;
}

.card__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #F0FDFA, #CCFBF1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D9488;
    margin-bottom: 1.25rem;
}

.card__icon svg {
    width: 26px;
    height: 26px;
}

.card__title {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: #0F172A;
}

.card__body {
    font-size: 0.9375rem;
    color: #64748B;
    line-height: 1.7;
    flex: 1;
}

.card--testimonial {
    position: relative;
    background: #F8FCFB;
    border-color: rgba(13, 148, 136, 0.1);
}

.card__quote {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 28px;
    height: 28px;
    color: #CCFBF1;
    opacity: 0.8;
}

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

.card__author {
    font-size: 0.875rem;
    color: #0D9488;
    font-weight: 500;
}

/* --- About --- */
.about {
    padding: 6rem 0;
    background: #ffffff;
}

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

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #CCFBF1, #99F6E4);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
}

.about__content {
    max-width: 520px;
}

.about__body {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

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

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

.about__value-icon {
    width: 28px;
    height: 28px;
    background: #F0FDFA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D9488;
    flex-shrink: 0;
}

.about__value-icon svg {
    width: 14px;
    height: 14px;
}

/* --- Approach --- */
.approach {
    padding: 6rem 0;
    background: #0F172A;
    position: relative;
    overflow: hidden;
}

.approach__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(13, 148, 136, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 100% 0%, rgba(45, 212, 191, 0.1) 0%, transparent 60%);
}

.approach__steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.approach__step {
    text-align: center;
    padding: 1.5rem;
}

.approach__step-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(94, 234, 212, 0.15);
    line-height: 1;
    margin-bottom: 1rem;
}

.approach__step-title {
    font-size: 1.25rem;
    color: #F0FDFA;
    margin-bottom: 0.75rem;
}

.approach__step-text {
    font-size: 0.9375rem;
    color: #94A3B8;
    line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
    padding: 6rem 0;
    background: #F8FCFB;
}

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

/* --- CTA --- */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(94, 234, 212, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(15, 23, 42, 0.3) 0%, transparent 60%);
}

.cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.cta__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5EEAD4;
    margin-bottom: 0.75rem;
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #F0FDFA;
    margin-bottom: 1rem;
}

.cta__text {
    font-size: 1.05rem;
    color: #94A3B8;
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.cta__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

/* --- Contact --- */
.contact {
    padding: 6rem 0;
    background: #ffffff;
}

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

.contact__text {
    font-size: 1.05rem;
    color: #64748B;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact__detail {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact__detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0D9488;
}

.contact__link {
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact__link:hover {
    color: #0D9488;
}

.contact__hours {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
}

/* Form */
.contact__form-wrap {
    background: #F8FCFB;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(13, 148, 136, 0.08);
}

.contact__form-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact__form-sub {
    font-size: 0.9375rem;
    color: #64748B;
    margin-bottom: 2rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #F0FDFA;
    border: 1px solid #99F6E4;
    border-radius: 10px;
    color: #0F766E;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-success svg {
    color: #0D9488;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: #0F172A;
    padding: 3.5rem 0 2rem;
    color: #94A3B8;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #F0FDFA;
}

.footer__tagline {
    font-size: 0.9375rem;
    color: #64748B;
}

.footer__nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__nav a {
    font-size: 0.9375rem;
    color: #94A3B8;
    transition: color 0.2s ease;
}

.footer__nav a:hover {
    color: #5EEAD4;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.footer__phone {
    font-size: 1.05rem;
    font-weight: 500;
    color: #F0FDFA;
    transition: color 0.2s ease;
}

.footer__phone:hover {
    color: #5EEAD4;
}

.footer__address {
    font-size: 0.875rem;
    color: #64748B;
}

.footer__bottom {
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: #475569;
}

.footer__disclaimer {
    font-size: 0.75rem;
    color: #334155;
    max-width: 500px;
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid,
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach__steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__inner,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about__image-wrap img {
        height: 480px;
    }
    
    .cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta__actions {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: #F8FCFB;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    
    .nav__links.open {
        transform: translateX(0);
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__cta {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .approach__steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about__values {
        grid-template-columns: 1fr;
    }
    
    .about__image-accent {
        display: none;
    }
    
    .contact__form-wrap {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero__trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero__trust-divider {
        display: none;
    }
}
