/* ========================================================
   DR. ELVIRA RODRIGUEZ - SHARED SITE STYLES
======================================================== */

:root {
    --text: #1d2935;
    --muted: #61707d;
    --soft: #f5f8f8;
    --soft-blue: #edf5f5;
    --white: #ffffff;
    --accent: #315e61;
    --accent-dark: #24494b;
    --border: #dce5e5;
    --max: 1180px;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

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

a {
    color: inherit;
}

.container {
    width: min(92%, var(--max));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-soft {
    background: var(--soft);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-top: 0;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 720px;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform .2s ease,
        background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: var(--white);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220,229,229,.8);
}

.header-inner {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.brand {
    text-decoration: none;
    line-height: 1.1;
}

.brand strong {
    display: block;
    font-size: 1.08rem;
}

.brand span {
    display: block;
    margin-top: 4px;
    font-size: .78rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    text-decoration: none;
    font-size: .94rem;
    font-weight: 600;
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 11px 18px;
    border-radius: 999px;
}

/* ========================================================
   MOBILE MENU
======================================================== */

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition:
        transform .25s ease,
        opacity .25s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 105px;
    background:
        radial-gradient(
            circle at 88% 15%,
            #dcecec 0,
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6fafa 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, .9fr);
    gap: 70px;
    align-items: center;
}

.hero-description {
    max-width: 700px;
    font-size: 1.18rem;
    color: var(--muted);
}

.practice-note {
    margin-top: 35px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.practice-note strong {
    display: block;
    color: var(--text);
}

/* DOCTOR PHOTO */

.doctor-photo-wrap {
    position: relative;
}

.doctor-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 34px;
    display: block;
}

.photo-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    padding: 17px 20px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(31,66,68,.12);
}

.photo-caption strong {
    display: block;
}

.photo-caption span {
    font-size: .9rem;
    color: var(--muted);
}

/* CONTENT LAYOUTS */

.two-column {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.about-facts {
    display: grid;
    gap: 14px;
}

.fact,
.info-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.info-card {
    padding: 28px;
}

.info-card + .info-card {
    margin-top: 14px;
}

.fact strong {
    display: block;
    margin-bottom: 4px;
}

.fact span {
    color: var(--muted);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 45px;
}

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

.service-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.service-card p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.approach-item {
    padding: 28px;
    border-top: 1px solid var(--border);
}

.approach-number {
    font-size: .82rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

/* LOCATION */

.location-grid,
.local-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 45px;
    align-items: stretch;
}

.location-card {
    padding: 36px;
    border-radius: var(--radius);
    background: var(--accent);
    color: white;
}

.location-card p {
    color: rgba(255,255,255,.82);
}

.location-address {
    font-size: 1.12rem;
    margin: 24px 0;
}

.location-address strong {
    display: block;
}

.local-areas,
.area-card {
    padding: 36px;
    background: var(--soft-blue);
    border-radius: var(--radius);
}

.area-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.area-list span {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .9rem;
}

/* SPANISH */

.spanish-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.spanish-box p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* FAQ / INTERNAL LINKS */

.faq-list {
    display: grid;
    gap: 16px;
    max-width: 900px;
}

.faq-item {
    padding: 26px 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.faq-item h3 {
    margin-bottom: 10px;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--muted);
}

.internal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.internal-links a {
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 999px;
    background: white;
    font-weight: 600;
}

/* CTA */

.final-cta {
    text-align: center;
    padding: 85px 0;
    background: var(--accent);
    color: white;
}

.final-cta h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta p {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,.82);
}

.final-cta .btn-primary {
    background: white;
    color: var(--accent);
}

.final-cta .btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,.45);
    color: white;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.internal-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-color: var(--accent) !important;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(49, 94, 97, .18);
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.internal-cta:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(49, 94, 97, .25);
}

/* FOOTER */

.site-footer {
    padding: 55px 0 30px;
    background: #172627;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .1fr;
    gap: 60px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 45px;
}

.footer-muted {
    color: rgba(255,255,255,.65);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
}

.disclaimer {
    padding-top: 35px;
    margin-top: 35px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .83rem;
    color: rgba(255,255,255,.57);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
}

.site-credit {
    text-align: right;
}

.site-credit a {
    color: rgba(255,255,255,.85);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.site-credit a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .header-inner {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;

        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: #ffffff;

        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);

        box-shadow:
            0 16px 32px rgba(31, 66, 68, .12);

        padding: 12px 4%;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .main-nav .nav-cta {
        margin-top: 10px;

        text-align: center;

        padding: 13px 18px;

        border-bottom: 0;
    }

}

@media (max-width: 620px) {

    .section {
        padding: 65px 0;
    }

    .hero {
        padding: 55px 0 70px;
    }

    .service-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-credit {
        text-align: left;
    }
	
	.footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
