/*
Theme Name: Stream Dental Premium
Theme URI: https://example.com/
Author: Stream Dental Clinic
Description: Premium brown, ivory and champagne-gold WordPress theme for Stream Dental Clinic. Includes appointments, reviews and gallery management.
Version: 3.8.0
License: GPL-2.0-or-later
Text Domain: stream-dental
*/
:root {
    --espresso: #241711;
    --espresso-2: #332018;
    --coffee: #4b3023;
    --cream: #fbf7ef;
    --paper: #f5efe4;
    --sand: #e9ddca;
    --gold: #b89258;
    --gold-2: #d5b77f;
    --ink: #2b211c;
    --muted: #75685d;
    --white: #fff;
    --line: #e5d9c9;
    --soft: #efe6d8;
    --shadow: 0 24px 70px rgba(54,35,23,.12);
    --radius: 24px;
    --max: 1200px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans",system-ui,sans-serif;
    line-height: 1.6
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image: radial-gradient(#7c624b .45px,transparent .45px);
    background-size: 5px 5px;
    mix-blend-mode: multiply;
    z-index: -1
}

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

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

button,input,select,textarea {
    font: inherit
}

.container {
    width: min(calc(100% - 40px),var(--max));
    margin-inline:auto}

.screen-reader-text {
    position: absolute!important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0px 18px;
}

.nav-shell {
    width: min(1200px,100%);
    margin: auto;
    background: rgb(36 23 17);
    border: 1px solid rgba(213,183,127,.24);
    box-shadow: 0 16px 45px rgba(31,18,12,.2);
    border-radius: 18px
}

.nav {
    min-height: 78px;
    padding: 8px 12px 8px 20px;
    display: flex;
    align-items: center;
    gap: 18px
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 0 0 auto
}

.brand img {
    width: 205px;
    height: 62px;
    object-fit: contain;
    object-position: left center
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1
}

.nav-links a {
    color: #f6eee2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    opacity: .86;
    transition: .2s
}

.nav-links a:hover,.nav-links a:focus {
    color: var(--gold-2);
    opacity: 1
}

.nav-cta,.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--gold-2);
    background: linear-gradient(135deg,#d5b77f,#ae8750);
    color: #24170f;
    padding: 13px 19px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(184,146,88,.22);
    transition: .22s;
    cursor: pointer
}

.nav-cta:hover,.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(184,146,88,.3)
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(213,183,127,.3);
    background: transparent;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px
}

/* Shared sections */
main {
    overflow: hidden
}

.section {
    padding: 45px 0
}

.section-light {
    background: var(--cream)
}

.section-white {
    background: #fffaf3
}

.section-dark {
    background: var(--espresso);
    color: #fff
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase
}

.eyebrow:before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor
}

.section-title {
    font-family: "Manrope",sans-serif;
    font-size: clamp(38px,5vw,64px);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 14px 0 18px;
    color: var(--ink)
}

.section-dark .section-title {
    color: #fff
}

.section-intro {
    max-width: 650px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0
}

.section-dark .section-intro {
    color: #c8b8a9
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    /* align-items: end; */
    margin-bottom: 45px;
    flex-direction: column;
}

.text-gold {
    color: var(--gold)
}

/* Hero */
.hero {
    position: relative;
    min-height: 760px;
    padding: 170px 0 90px;
    background: linear-gradient(110deg,#f9f4eb 0%,#f1e7d8 58%,#e6d5bd 100%)
}

.hero:after {
    content: "";
    position: absolute;
    right: -180px;
    top: 70px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(184,146,88,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(184,146,88,.035),0 0 0 130px rgba(184,146,88,.02);
    pointer-events: none
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 65px;
    position: relative;
    z-index: 2
}

.hero h1 {
    font-family: "Manrope",sans-serif;
    font-size: clamp(54px,7vw,88px);
    line-height: .94;
    letter-spacing: -.06em;
    margin: 20px 0 24px;
    color: var(--espresso)
}

.hero h1 span {
    color: var(--gold)
}

.hero-copy>p {
    max-width: 650px;
    color: #6d5f54;
    font-size: 17px;
    line-height: 1.85;
    margin: 0
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdbba3;
    background: rgba(255,255,255,.5);
    color: var(--espresso);
    padding: 13px 19px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: .2s;
    /* display: inline-block; */
    width: auto;
    flex-wrap: nowrap;
}

.button-secondary:hover {
    border-color: var(--gold);
    background: #fff
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 27px;
    color: #806f61;
    font-size: 11px
}

.hero-note span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--gold)
}

.hero-visual {
    position: relative;
    min-height: 530px;
    display: grid;
    place-items: center
}

.hero-card {
    width: min(500px,100%);
    aspect-ratio: 1/1.05;
    border-radius: 32px;
    overflow: hidden;
    border: 8px solid rgba(255,255,255,.62);
    box-shadow: var(--shadow);
    background: #241a13;
    position: relative
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% center;
    filter: saturate(.84) contrast(1.02)
}

.hero-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(36,23,17,.88) 0%,rgba(36,23,17,.12) 38%,transparent 60%),linear-gradient(0deg,rgba(36,23,17,.42),transparent 35%);
    pointer-events: none
}

.hero-badge {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 28px;
    transform: translateX(-24px);
    background: var(--espresso);
    color: #fff;
    padding: 17px 20px;
    border-radius: 15px;
    box-shadow: 0 18px 45px rgba(36,23,17,.25);
    max-width: 220px
}

.hero-badge strong {
    display: block;
    font-family: "Manrope";
    font-size: 17px
}

.hero-badge span {
    display: block;
    color: #cbbba9;
    font-size: 10px;
    margin-top: 4px
}

/* Trust */
.trust {
    background: var(--espresso);
    color: #fff;
    padding: 0
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr)
}

.trust-item {
    padding: 28px 24px;
    border-right: 1px solid rgba(255,255,255,.1)
}

.trust-item:last-child {
    border-right: 0
}

.trust-item strong {
    display: block;
    font-family: "Manrope";
    font-size: 25px
}

.trust-item span {
    display: flex;
    color: #bcae9f;
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-top: 7px;
    justify-content: center;
}

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

.service-card {
    position: relative;
    padding: 20px;
    min-height: 211px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 8px 35px rgba(58,39,26,.04);
    overflow: hidden;
    transition: .25s
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #d1b17a;
    box-shadow: var(--shadow)
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #f9f8f6;
    background: #392c26;
    border: 1px solid #e7d7bf
}

.icon-box svg {
    width: 24px;
    height: 24px
}

.service-card h3 {
    font-family: "Manrope";
    font-size: 20px;
    margin: 20px 0 9px;
}

.service-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    margin: 0
}

.service-arrow {
    position: absolute;
    right: 25px;
    bottom: 25px;
    color: #b7a18a;
    font-size: 18px
}

/* Doctor */
.doctor-layout {
    display: grid;
    /* grid-template-columns: 1.18fr .82fr; */
    gap: 70px;
    align-items: center
}

.doctor-portrait {
    min-height: 422px;
    border-radius: 30px;
    background: linear-gradient(145deg,#4b3023,#241711);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213,183,127,.25);
    box-shadow: var(--shadow)
}

.doctor-portrait:before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(213,183,127,.25);
    border-radius: 50%;
    box-shadow: 0 0 0 75px rgba(213,183,127,.035),0 0 0 150px rgba(213,183,127,.02)
}

.doctor-initial {
    position: relative;
    z-index: 2;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213,183,127,.5);
    background: rgba(255,255,255,.05);
    color: #e7c991;
    font-family: "Manrope";
    font-size: 56px;
    font-weight: 800
}

.doctor-role {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase
}

.doctor-copy h2 {
    font-family: "Manrope";
    font-size: clamp(40px,5vw,48px);
    line-height: 1;
    letter-spacing: -.05em;
    margin: 14px 0 20px
}

.doctor-copy p {
    color: #7b6d61;
    font-size: 15px;
    line-height: 1.85;
    max-width: 650px
}

.credentials {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
    margin-top: 30px
}

.credential {
    padding: 11px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px
}

.credential strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.credential span {
    display: block;
    color: #8b7d71;
    font-size: 11px;
    margin-top: 5px
}

/* Experience */
.experience-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px
}

.experience-card {
    position: relative;
    min-height: 260px;
    padding: 32px;
    border-radius: 22px;
    background: var(--espresso);
    color: #fff;
    overflow: hidden
}

.experience-card.large {
    grid-row: span 2;
    min-height: 540px;
    background: linear-gradient(145deg,#4a2f22,#241711)
}

.experience-card:after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    right: -130px;
    bottom: -140px;
    border: 1px solid rgba(213,183,127,.2)
}

.experience-number {
    color: #d5b77f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em
}

.experience-card h3 {
    font-family: "Manrope";
    font-size: 29px;
    line-height: 1.12;
    margin: 30px 0 12px
}

.experience-card p {
    color: #c2b2a4;
    font-size: 13px;
    line-height: 1.8;
    max-width: 520px
}

/* Gallery */
.gallery-preview {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 18px
}

.gallery-panel {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 35px rgba(60,40,25,.05)
}

.gallery-panel img {
    width: 100%;
    height: 330px;
    object-fit: cover
}

.gallery-panel.tall img {
    height: 680px
}

.gallery-caption {
    padding: 20px
}

.gallery-caption strong {
    font-family: "Manrope"
}

.gallery-caption p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.review-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px;
    min-height: 270px;
    box-shadow: 0 8px 30px rgba(60,40,25,.04)
}

.review-quote {
    font: 700 45px/1 Georgia;
    color: var(--gold)
}

.review-stars {
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 12px;
    margin: 8px 0 16px
}

.review-card p {
    color: #75685d;
    font-size: 13px;
    line-height: 1.8
}

.review-person {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase
}

.review-person span {
    display: block;
    color: #9a8c7e;
    font-weight: 500;
    letter-spacing: 0;
    margin-top: 3px;
    text-transform: none
}

/* Appointment */
.appointment-section {
    background: linear-gradient(135deg,#3a251b,#241711);
    color: #fff
}

.appointment-grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    border: 1px solid rgba(213,183,127,.3);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(36,23,17,.25)
}

.appointment-copy {
    padding: 55px;
    background: radial-gradient(circle at 20% 10%,rgba(213,183,127,.13),transparent 30%)
}

.appointment-copy .section-title {
    color: #fff
}

.appointment-copy p {
    color: #c7b7a8;
    font-size: 14px;
    line-height: 1.8
}

.check-list {
    display: grid;
    gap: 13px;
    margin-top: 30px
}

.check-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd0c2;
    font-size: 12px
}

.check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #e2c78f;
    border: 1px solid rgba(213,183,127,.45);
    flex: none
}

.appointment-form {
    padding: 55px;
    background: #fffaf3;
    color: var(--ink)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.field {
    display: grid;
    gap: 7px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #76685b
}

.field input,.field select,.field textarea {
    width: 100%;
    border: 1px solid #dfd1bf;
    background: #fff;
    color: var(--ink);
    padding: 8px 15px;
    border-radius: 12px;
    outline: none;
    transition: .2s
}

.field textarea {
    min-height: 78px;
    resize: vertical
}

.field input:focus,.field select:focus,.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,146,88,.12)
}

.field input[aria-invalid="true"],.field select[aria-invalid="true"],.field textarea[aria-invalid="true"] {
    border-color: #bd665b
}

.field-error {
    font-size: 10px;
    color: #a5483f;
    min-height: 0
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px
}

.form-actions .button-primary {
    flex: 1
}

.whatsapp-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #cdbb9f;
    background: #f4eadc;
    color: #6f5135;
    cursor: pointer;
    font-weight: 900
}

.form-message {
    display: none;
    margin-top: 15px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 12px
}

.form-message.show {
    display: block
}

.form-message.success {
    background: #eaf3e8;
    color: #3f7042;
    border: 1px solid #cfe3cc
}

.form-message.error {
    background: #f9e9e6;
    color: #8b3d34;
    border: 1px solid #e8c5bf
}

.form-note {
    font-size: 10px;
    color: #9a8c7d;
    margin: 12px 0 0
}

.hp-field {
    position: absolute!important;
    left: -9999px!important;
    opacity: 0!important
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px
}

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 8px 35px rgba(60,40,25,.04)
}

.contact-card h3 {
    font-family: "Manrope";
    font-size: 20px;
    margin: 0 0 24px
}

.contact-row {
    display: flex;
    gap: 14px;
    margin: 18px 0;
    color: #75685d;
    font-size: 13px;
    align-items: center;
}

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #2d201a;
    color: var(--gold);
    display: grid;
    place-items: center;
    flex: none
}

.contact-row strong {
    color: var(--ink)
}

.map-frame {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 17px;
    margin-top: 24px
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px
}

/* Footer */
.site-footer {
    background: #1d120d;
    color: #fff;
    padding: 60px 0 28px;
    border-top: 1px solid rgba(213,183,127,.2)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .7fr;
    gap: 50px
}

.footer-logo {
    width: 250px;
    height: 76px;
    object-fit: contain;
    object-position: left center
}

.footer-copy {
    color: #b7a79a;
    font-size: 12px;
    line-height: 1.8;
    max-width: 500px
}

.footer-title {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #d5b77f;
    margin-bottom: 17px
}

.footer-links {
    display: grid;
    gap: 9px
}

.footer-links a {
    color: #d2c4b7;
    font-size: 12px
}

.footer-links a:hover {
    color: #e1c993
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #8f7f72;
    font-size: 10px
}

/* Inner pages */
.page-hero {
    padding: 180px 0 70px;
    background: linear-gradient(110deg,#f9f4eb,#eadbc7);
    border-bottom: 1px solid var(--line)
}

.page-hero h1 {
    font-family: "Manrope";
    font-size: clamp(48px,7vw,80px);
    line-height: .95;
    letter-spacing: -.06em;
    margin: 15px 0
}

.page-content {
    padding: 70px 0 110px;
    min-height: 55vh
}

.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: 35px;
    box-shadow: var(--shadow)
}

/* Admin dashboard compatibility */
body.stream-dashboard {
    background: var(--paper)!important;
    color: var(--ink)!important
}

.sd-wrap {
    width: min(1240px,calc(100% - 40px));
    margin: auto;
    padding: 145px 0 70px
}

.sd-head h1 {
    color: var(--espresso)!important
}

.sd-card,.sd-table-wrap {
    background: #fff!important;
    border-color: var(--line)!important
}

.sd-card span,.sd-head p {
    color: var(--muted)!important
}

.sd-table th,.sd-table td {
    border-color: var(--line)!important;
    color: var(--ink)!important
}

.sd-filter a {
    border-color: var(--line)!important;
    color: var(--muted)!important
}

.sd-filter a.active {
    background: var(--gold)!important;
    color: #fff!important;
    border-color: var(--gold)!important
}

@media(max-width: 1050px) {
    .nav-links {
        gap:15px
    }

    .nav-links a {
        font-size: 9px
    }

    .brand img {
        width: 175px
    }

    .service-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .hero-grid,.doctor-layout,.appointment-grid,.contact-grid {
        grid-template-columns: 1fr
    }

    .hero {
        min-height: auto
    }

    .hero-visual {
        min-height: 560px
    }

    .doctor-portrait {
        min-height: 420px
    }

    .gallery-preview {
        grid-template-columns: 1fr 1fr
    }

    .gallery-panel.tall img {
        height: 500px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .review-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width: 780px) {
    .site-header {
        padding:10px
    }

    .nav {
        min-height: 66px;
        padding: 7px 9px 7px 13px
    }

    .brand img {
        width: 165px;
        height: 52px
    }

    .menu-toggle {
        display: block
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 10px;
        right: 10px;
        top: 78px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: var(--espresso);
        border: 1px solid rgba(213,183,127,.25);
        border-radius: 16px
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 13px 12px
    }

    .nav-cta {
        display: none
    }

    .container {
        width: min(calc(100% - 28px),var(--max))
    }

    .section {
        padding: 80px 0
    }

    .section-heading {
        display: block;
        margin-bottom: 32px
    }

    .hero {
        padding: 135px 0 60px
    }

    .hero-grid {
        gap: 35px
    }

    .hero h1 {
        font-size: 54px
    }

    .hero-copy>p {
        font-size: 15px
    }

    .hero-visual {
        min-height: 430px
    }

    .hero-card {
        width: min(430px,100%)
    }

    .hero-badge {
        transform: none;
        left: 15px;
        bottom: 15px
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr
    }

    .trust-item {
        border-bottom: 1px solid rgba(255,255,255,.1)
    }

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

    .service-card {
        min-height: 235px
    }

    .doctor-layout {
        gap: 35px
    }

    .doctor-portrait {
        min-height: 390px
    }

    .credentials,.form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .appointment-copy,.appointment-form {
        padding: 32px 24px
    }

    .gallery-preview {
        grid-template-columns: 1fr
    }

    .gallery-panel.tall img {
        height: 340px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column
    }

    .page-hero {
        padding: 135px 0 55px
    }
}

@media(max-width: 480px) {
    .brand img {
        width:145px
    }

    .hero h1 {
        font-size: 47px
    }

    .hero-actions>* {
        width: 100%
    }

    .trust-grid {
        grid-template-columns: 1fr
    }

    .trust-item {
        border-right: 0
    }

    .hero-note {
        align-items: flex-start
    }

    .hero-visual {
        min-height: 360px
    }

    .hero-card {
        border-width: 5px
    }

    .doctor-initial {
        width: 150px;
        height: 150px;
        font-size: 43px
    }

    .section-title {
        font-size: 40px
    }

    .contact-card {
        padding: 25px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,*:before,*:after {
        transition: none!important;
        animation: none!important
    }
}

/* WordPress fallback content */
.content-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(28px,5vw,64px);
    box-shadow: var(--shadow)
}

.entry-content {
    margin-top: 24px
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px
}

/* v3.1 refinements: clarity, iconography, reviews and dashboard */
section[id], .page-hero {
    scroll-margin-top: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    min-height: 92px
}

.trust-item>div {
    min-width: 0
}

.trust-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213,183,127,.3);
    border-radius: 13px;
    color: var(--gold-2);
    background: rgba(255,255,255,.035);
    flex: none
}

.trust-icon svg {
    width: 21px;
    height: 21px
}

.trust-item strong {
    font-size: 13px;
    line-height: 1.2
}

.trust-item span:not(.trust-icon) {
    font-size: 9px;
    margin-top: 5px;
    line-height: 1.5
}

.experience-grid {
    grid-template-columns: 1.08fr .92fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch
}

.experience-card {
    min-height: 0;
    height: 100%;
    padding: 30px
}

.experience-card.large {
    grid-row: 1 / span 2;
    min-height: 390px
}

.experience-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--gold-2);
    border: 1px solid rgba(213,183,127,.28);
    background: rgba(255,255,255,.045)
}

.experience-icon svg {
    width: 23px;
    height: 23px
}

.experience-kicker {
    margin-top: 18px;
    color: #d5b77f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase
}

.experience-card h3 {
    margin: 12px 0 10px
}

.experience-card p {
    max-width: 540px
}

/* Dashboard */
body.stream-dashboard .sd-wrap {
    padding: 125px 0 70px
}

.sd-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 28px
}

.sd-head .eyebrow {
    margin-bottom: 7px
}

.sd-head h1 {
    font-family: "Manrope",sans-serif;
    font-size: clamp(40px,5vw,58px);
    line-height: 1;
    letter-spacing: -.05em;
    margin: 0 0 10px
}

.sd-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7
}

.sd-cards {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 12px;
    margin-bottom: 18px
}

.sd-card {
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(60,40,25,.04)
}

.sd-card strong {
    display: block;
    font-family: "Manrope";
    font-size: 25px;
    line-height: 1;
    color: var(--espresso)
}

.sd-card span {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 7px
}

.sd-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px
}

.sd-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase
}

.sd-filter a.active {
    box-shadow: 0 7px 18px rgba(184,146,88,.18)
}

.sd-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(60,40,25,.05)
}

.sd-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
    background: #fff
}

.sd-table th {
    background: #f6eee2;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 900;
    text-align: left;
    white-space: nowrap
}

.sd-table th,.sd-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

.sd-table td {
    font-size: 12px;
    line-height: 1.55
}

.sd-table tbody tr:hover {
    background: #fffaf3
}

.sd-table select {
    border: 1px solid #d9cbb8;
    background: #fffaf3;
    color: var(--ink);
    border-radius: 9px;
    padding: 8px 28px 8px 9px;
    font-size: 11px;
    outline: none
}

.sd-table select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,146,88,.1)
}

@media(max-width: 1050px) {
    .sd-cards {
        grid-template-columns:repeat(3,1fr)
    }
}

@media(max-width: 780px) {
    .sd-wrap {
        width:min(calc(100% - 28px),var(--max))!important
    }

    .sd-head {
        display: block
    }

    .sd-head .button-secondary {
        margin-top: 18px
    }

    .sd-cards {
        grid-template-columns: repeat(2,1fr)
    }

    .experience-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto
    }

    .experience-card.large {
        grid-row: auto;
        min-height: 340px
    }

    .experience-card {
        min-height: 220px
    }
}

@media(max-width: 480px) {
    .sd-cards {
        grid-template-columns:1fr 1fr
    }

    .sd-card {
        padding: 15px 12px
    }

    .trust-item {
        padding: 20px 18px
    }
}

/* v3.2 targeted refinements â€” only requested areas */
.experience-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    align-items: stretch
}

.experience-card {
    padding: 28px 30px;
    min-height: 0;
    height: auto
}

.experience-card.large {
    grid-row: 1 / span 2;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start
}

.experience-card.large p {
    max-width: 540px
}

.experience-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 0
}

.experience-kicker-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213,183,127,.28);
    background: rgba(255,255,255,.045);
    color: var(--gold-2);
    flex: none
}

.experience-kicker-icon svg {
    width: 15px;
    height: 15px
}

.experience-card h3 {
    margin-top: 16px
}

/* Make dashboard resilient even if another plugin/theme stylesheet interferes. */
body.stream-dashboard .sd-wrap {
    max-width: 1240px;
    width: min(1240px,calc(100% - 40px));
    margin: 0 auto;
    padding: 125px 0 70px
}

body.stream-dashboard .sd-cards {
    display: grid!important;
    grid-template-columns: repeat(6,minmax(0,1fr))!important;
    gap: 12px!important;
    margin: 0 0 20px!important
}

body.stream-dashboard .sd-card {
    display: block!important;
    min-width: 0;
    padding: 18px 16px!important;
    border: 1px solid var(--line)!important;
    border-radius: 16px!important;
    background: #fff!important;
    box-sizing: border-box
}

body.stream-dashboard .sd-card strong {
    display: block!important;
    font-family: "Manrope",sans-serif;
    font-size: 27px!important;
    line-height: 1!important;
    color: var(--espresso)!important
}

body.stream-dashboard .sd-card span {
    display: block!important;
    margin-top: 8px!important;
    color: var(--muted)!important;
    font-size: 9px!important;
    font-weight: 900!important;
    letter-spacing: .1em!important;
    text-transform: uppercase!important
}

body.stream-dashboard .sd-filter {
    display: flex!important;
    flex-wrap: wrap!important;
    align-items: center!important;
    gap: 8px!important;
    margin: 0 0 20px!important;
    padding: 0!important;
    background: transparent!important
}

body.stream-dashboard .sd-filter a {
    display: inline-flex!important;
    align-items: center!important;
    justify-content: center!important;
    gap: 7px!important;
    padding: 10px 14px!important;
    border: 1px solid var(--line)!important;
    border-radius: 999px!important;
    background: #fff!important;
    color: var(--muted)!important;
    font-size: 10px!important;
    font-weight: 900!important;
    line-height: 1!important;
    letter-spacing: .08em!important;
    text-transform: uppercase!important;
    text-decoration: none!important
}

body.stream-dashboard .sd-filter a.active {
    background: var(--gold)!important;
    color: #fff!important;
    border-color: var(--gold)!important;
    box-shadow: 0 7px 18px rgba(184,146,88,.18)!important
}

body.stream-dashboard .sd-table-wrap {
    display: block!important;
    overflow: auto!important;
    background: #fff!important;
    border: 1px solid var(--line)!important;
    border-radius: 18px!important;
    box-shadow: 0 10px 35px rgba(60,40,25,.05)!important
}

body.stream-dashboard .sd-table {
    display: table!important;
    width: 100%!important;
    min-width: 940px!important;
    border-collapse: collapse!important;
    background: #fff!important
}

body.stream-dashboard .sd-table th,body.stream-dashboard .sd-table td {
    padding: 14px 12px!important;
    border-bottom: 1px solid var(--line)!important;
    vertical-align: top!important;
    color: var(--ink)!important
}

body.stream-dashboard .sd-table th {
    background: #f6eee2!important;
    font-size: 9px!important;
    letter-spacing: .1em!important;
    text-transform: uppercase!important;
    font-weight: 900!important;
    text-align: left!important;
    white-space: nowrap!important
}

body.stream-dashboard .sd-table td {
    font-size: 12px!important;
    line-height: 1.55!important
}

body.stream-dashboard .sd-table td:nth-child(2) {
    min-width: 150px
}

body.stream-dashboard .sd-table td:nth-child(3) {
    min-width: 170px
}

body.stream-dashboard .sd-table select {
    min-width: 105px!important;
    border: 1px solid #d9cbb8!important;
    background: #fffaf3!important;
    color: var(--ink)!important;
    border-radius: 9px!important;
    padding: 8px 28px 8px 9px!important;
    font-size: 11px!important;
    outline: none!important
}

body.stream-dashboard .sd-empty-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-right: 8px;
    border-radius: 9px;
    background: #f4eadc;
    color: var(--gold);
    vertical-align: middle
}

body.stream-dashboard .sd-card {
    position: relative
}

body.stream-dashboard .sd-card .sd-stat-icon {
    font-size: 0
}

body.stream-dashboard .sd-card .sd-stat-icon svg {
    width: 16px;
    height: 16px
}

@media(max-width: 1050px) {
    body.stream-dashboard .sd-cards {
        grid-template-columns:repeat(3,minmax(0,1fr))!important
    }
}

@media(max-width: 780px) {
    .experience-grid {
        grid-template-columns:1fr;
        grid-template-rows: auto
    }

    .experience-card.large {
        grid-row: auto
    }

    .experience-card {
        min-height: 0
    }

    .experience-card.large {
        min-height: 0
    }

    body.stream-dashboard .sd-wrap {
        width: min(calc(100% - 28px),var(--max));
        padding-top: 105px
    }

    body.stream-dashboard .sd-cards {
        grid-template-columns: repeat(2,minmax(0,1fr))!important
    }
}

/* v3.3 â€” precise visual refinements requested */
/* Keep anchored sections closer to the fixed navigation without changing the overall design. */
html {
    scroll-padding-top: 0
}

/* Dashboard status icons: cleaner, larger, consistent icon treatment. */
body.stream-dashboard .sd-card .sd-stat-icon {
    font-size: 0
}

body.stream-dashboard .sd-card .sd-stat-icon svg {
    width: 18px;
    height: 18px;
    display: block
}

body.stream-dashboard .sd-card .sd-stat-icon svg path,body.stream-dashboard .sd-card .sd-stat-icon svg rect,body.stream-dashboard .sd-card .sd-stat-icon svg circle {
    vector-effect: non-scaling-stroke
}

/* Doctor initials: visually centered with stronger scale and optical alignment. */
.doctor-initial {
    font-size: 64px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px 2px;
    text-align: center;
    letter-spacing: -.04em
}

@media(max-width: 780px) {
    html {
        scroll-padding-top:0
    }

    section[id], .page-hero {
        scroll-margin-top: 0
    }

    .doctor-initial {
        font-size: 52px
    }
}

/* v3.4 targeted refinements: dashboard icons and anchor positioning */
.sd-stat-icon {
    width: 38px!important;
    height: 38px!important;
    border-radius: 11px!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    line-height: 0!important;
    color: #806647!important;
    background: #f6ecdc!important;
    border: 1px solid #e5d3b6!important;
    box-sizing: border-box!important
}

.sd-stat-icon svg {
    width: 20px!important;
    height: 20px!important;
    display: block!important;
    stroke: currentColor!important
}

.sd-card {
    position: relative!important;
    display: flex!important;
    flex-direction: column!important;
    justify-content: center!important;
    min-height: 92px!important
}

.sd-card>.sd-stat-icon {
    position: absolute!important;
    top: 18px!important;
    right: 18px!important
}

.sd-card>strong {
    display: block!important;
    font: 800 28px/1 "Manrope",Arial,sans-serif!important;
    color: #241b16!important;
    margin: 0 48px 7px 0!important
}

.sd-card>span:last-child {
    display: block!important;
    font-size: 10px!important;
    font-weight: 800!important;
    letter-spacing: .12em!important;
    text-transform: uppercase!important;
    color: #776a5d!important
}

@media(max-width: 700px) {
    .sd-card>.sd-stat-icon {
        top:14px!important;
        right: 14px!important
    }

    .sd-card>strong {
        font-size: 24px!important
    }
}

/* v3.4 final icon treatment */
body.stream-dashboard .sd-card .sd-stat-icon {
    position: absolute!important;
    top: 18px!important;
    right: 18px!important;
    width: 38px!important;
    height: 38px!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    float: none!important;
    border-radius: 11px!important;
    background: #f6ecdc!important;
    border: 1px solid #e5d3b6!important;
    color: #806647!important;
    font-size: 0!important;
    line-height: 0!important;
    padding: 0!important;
    box-sizing: border-box!important
}

body.stream-dashboard .sd-card .sd-stat-icon svg {
    width: 21px!important;
    height: 21px!important;
    display: block!important;
    overflow: visible!important
}

body.stream-dashboard .sd-card .sd-stat-icon svg path,body.stream-dashboard .sd-card .sd-stat-icon svg rect,body.stream-dashboard .sd-card .sd-stat-icon svg circle,body.stream-dashboard .sd-card .sd-stat-icon svg line {
    stroke: currentColor!important;
    vector-effect: non-scaling-stroke
}

body.stream-dashboard .sd-card {
    position: relative!important;
    min-height: 92px!important;
    padding: 18px 16px!important
}

body.stream-dashboard .sd-card>strong {
    display: block!important;
    margin: 0 50px 7px 0!important;
    font: 800 27px/1 "Manrope",sans-serif!important;
    color: var(--espresso)!important
}

body.stream-dashboard .sd-card>span:last-child {
    display: block!important;
    margin-top: 0!important;
    color: var(--muted)!important;
    font-size: 9px!important;
    font-weight: 900!important;
    letter-spacing: .1em!important;
    text-transform: uppercase!important
}

@media(max-width: 780px) {
    body.stream-dashboard .sd-card .sd-stat-icon {
        top:14px!important;
        right: 14px!important;
        width: 36px!important;
        height: 36px!important
    }

    body.stream-dashboard .sd-card>strong {
        font-size: 24px!important
    }
}

/* v3.5 â€” precise anchor positioning and dashboard top spacing */
html {
    scroll-padding-top: 0 !important;
}

section[id], .page-hero {
    scroll-margin-top: 0 !important;
}

.site-header {
    z-index: 1000;
}

body.admin-bar .site-header {
    top: 16px;
}

body.stream-dashboard .sd-wrap {
    padding-top: 64px !important;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 780px) {
    body.stream-dashboard .sd-wrap {
        padding-top: 42px !important;
    }
}

/* v3.6 â€” mobile menu button alignment */
@media (max-width: 780px) {
    .nav {
        width:100%;
    }

    .menu-toggle {
        margin-left: auto;
        flex: 0 0 44px;
    }
}


/* v3.7 — compact fit, reliable section navigation, and context-matched icons */
:root{--section-pad:64px;--header-gap:18px}

/* Keep the fixed header visually separate without creating large landing gaps. */
html{scroll-behavior:smooth;scroll-padding-top:0!important}
body{overflow-x:hidden}
.section{padding:var(--section-pad) 0}
.section-heading{margin-bottom:30px;gap: 1px;text-align: left;}
.section-title{font-size: clamp(34px,4.2vw,44px);margin:10px 0 14px}
.section-intro{font-size:14px;line-height:1.7}

/* Hero: more compact on normal desktop screens. */
.hero{min-height:640px;padding: 102px 0 45px;}
.hero-grid{gap:48px}
.hero h1{font-size:clamp(48px,6.1vw,56px);margin:8px 0 20px}
.hero-copy>p{font-size:15px;line-height:1.75}
.hero-actions{margin-top:26px}
.hero-note{margin-top:20px}
.hero-visual{min-height:460px}
.hero-card{width:min(440px,100%);border-width:6px}
.hero-badge{bottom:22px;padding:14px 17px;transform:translateX(-16px)}

/* Trust strip: compact but still substantial. */
.trust-item{padding:22px 20px}
.trust-item strong{font-size:20px}
.trust-item span{font-size:9px}
.trust-icon{width:32px;height:32px}
.trust-grid .trust-item{display:flex;align-items:center;gap:11px}

/* Services and cards should read as a cohesive grid rather than oversized blocks. */
.service-grid{gap:14px}
.service-card{padding:18px;min-height:190px;border-radius:18px}
.icon-box{width:44px;height:44px;border-radius:13px}
.icon-box svg{width:21px;height:21px;display:block}
.service-card h3{font-size:18px;margin:15px 0 7px}
.service-card p{font-size:12px;line-height:1.65}
.service-arrow{right:19px;bottom:18px;font-size:16px}

/* Doctor and why-stream sections. */
.doctor-layout{gap:52px}
.doctor-portrait{min-height:390px;border-radius:24px}
.doctor-copy h2{font-size: clamp(42px,5vw,44px);}
.doctor-copy p{font-size:14px;line-height:1.75}
.credentials{gap:10px;margin-top:24px}
.credential{padding:14px 15px;border-radius:15px}
.experience-grid{gap:12px}
.experience-card{padding:24px 26px}
.experience-card.large{min-height:420px}
.experience-card h3{font-size:25px;margin:22px 0 10px}
.experience-card p{font-size:12px;line-height:1.7}

/* Gallery / reviews / appointment / contact are less vertically padded. */
.gallery-panel img{height:280px}
.gallery-panel.tall img{height:575px}
.gallery-caption{padding:16px}
.sd-review-old{padding:24px 26px 20px;border-radius:19px}
.sd-review-old .quote{font-size:38px}
.sd-review-old .copy{font-size:12px;line-height:1.65;margin-bottom:17px}
.sd-review-old-person{padding-top:12px}
.sd-review-old-initial{width:40px;height:40px;font-size:14px;line-height:40px;text-align:center;padding:0;place-items:center}
.appointment-copy{padding:42px}
.appointment-form{padding:42px}
.contact-card{padding:28px}
.contact-card h3{margin-bottom:20px}
.contact-row{margin:14px 0;font-size:12px}
.map-frame{height:220px;margin-top:20px}
.site-footer{padding:48px 0 24px}
.footer-grid{gap:35px}
.footer-logo{width:220px;height:68px}
.footer-bottom{margin-top:32px}

/* Inner pages: reduce the large top/bottom bands. */
.page-hero{padding:132px 0 52px}
.page-hero h1{font-size:clamp(42px,6vw,68px)}
.page-content{padding:52px 0 72px;min-height:45vh}
.content-card{padding:28px;border-radius:20px}

/* Dashboard: balanced desktop proportions and no oversized blank top area. */
body.stream-dashboard .sd-wrap{max-width:1240px;width:min(1240px,calc(100% - 40px));padding:42px 0 56px}
body.stream-dashboard .sd-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:24px}
body.stream-dashboard .sd-head h1{font-size:clamp(42px,5vw,58px);line-height:1;margin:12px 0 10px;border:0;box-shadow:none;border-radius:0}
body.stream-dashboard .sd-head p{font-size:13px;margin:0}
body.stream-dashboard .sd-head .button-secondary{flex:none}
body.stream-dashboard .sd-cards{gap:10px!important;margin-bottom:16px!important}
body.stream-dashboard .sd-card{min-height:84px!important;padding:15px 14px!important;border-radius:15px!important}
body.stream-dashboard .sd-card strong{font-size:24px!important;margin-right:42px!important}
body.stream-dashboard .sd-card span:last-child{font-size:8px!important;margin-top:6px!important}
body.stream-dashboard .sd-card .sd-stat-icon{top:14px!important;right:14px!important;width:34px!important;height:34px!important;border-radius:10px!important}
body.stream-dashboard .sd-card .sd-stat-icon svg{width:18px!important;height:18px!important}
body.stream-dashboard .sd-filter{gap:7px!important;margin-bottom:14px!important}
body.stream-dashboard .sd-filter a{padding:8px 11px!important;font-size:9px!important}
body.stream-dashboard .sd-table-wrap{border-radius:15px!important}
body.stream-dashboard .sd-table{min-width:880px!important}
body.stream-dashboard .sd-table th,body.stream-dashboard .sd-table td{padding:11px 10px!important}
body.stream-dashboard .sd-table td{font-size:11px!important;line-height:1.45!important}
body.stream-dashboard .sd-table select{padding:7px 24px 7px 8px!important;font-size:10px!important}

/* Dashboard icons: use simple, familiar line symbols with equal visual weight. */
body.stream-dashboard .sd-card .sd-stat-icon{background:#f7efe2!important;border:1px solid #dfc9a6!important;color:#8b6a3f!important}
body.stream-dashboard .sd-card .sd-stat-icon svg{stroke-width:1.65!important}

/* Reliable anchor landing: JS does the final positioning, CSS remains neutral. */
section[id],.page-hero{scroll-margin-top:0!important}

/* Mobile compactness — keep the same design, but avoid oversized type and whitespace. */
@media(max-width:1050px){
 .hero{min-height:0;padding-top:128px}
 .hero-grid{gap:34px}
 .hero-visual{min-height:400px}
 .service-grid{grid-template-columns:repeat(2,1fr)}
 .doctor-layout{gap:36px}
 .section-heading{margin-bottom:24px}
}
@media(max-width:780px){
 .container{width:min(calc(100% - 28px),var(--max))}
 .section{padding:48px 0}
 .section-heading{display:block;margin-bottom:22px}
 .section-heading .button-secondary{margin-top:12px}
 .section-title{font-size:clamp(32px,9vw,44px)}
 .hero{padding:112px 0 48px;min-height:0}
 .hero-grid{grid-template-columns:1fr;gap:28px}
 .hero h1{font-size:clamp(44px,12vw,62px)}
 .hero-copy>p{font-size:14px}
 .hero-visual{min-height:330px}
 .hero-card{width:min(360px,100%)}
 .hero-badge{transform:none;left:12px;bottom:14px}
 .trust-grid{grid-template-columns:1fr 1fr}
 .trust-item{padding:17px 15px}
 .trust-item strong{font-size:16px}
 .trust-item span{font-size:8px}
 .service-grid{grid-template-columns:1fr;gap:12px}
 .service-card{min-height:0;padding:17px}
 .doctor-layout{grid-template-columns:1fr;gap:28px}
 .doctor-portrait{min-height:330px}
 .experience-card.large{min-height:0}
 .experience-card{min-height:0}
 .gallery-preview{grid-template-columns:1fr}
 .gallery-panel.tall img{height:360px}
 .appointment-grid{grid-template-columns:1fr;border-radius:22px}
 .appointment-copy,.appointment-form{padding:28px 22px}
 .form-grid{gap:14px}
 .contact-grid{grid-template-columns:1fr}
 .contact-card{padding:23px}
 .page-hero{padding:112px 0 42px}
 .page-content{padding:42px 0 60px}
 body.stream-dashboard .sd-wrap{width:min(calc(100% - 28px),var(--max));padding:26px 0 44px}
 body.stream-dashboard .sd-head{display:block;margin-bottom:18px}
 body.stream-dashboard .sd-head h1{font-size:42px;margin:9px 0 7px}
 body.stream-dashboard .sd-head .button-secondary{margin-top:14px}
 body.stream-dashboard .sd-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body.stream-dashboard .sd-card{min-height:78px!important}
}
@media(max-width:480px){
 .hero{padding-top:104px}
 .hero h1{font-size:44px}
 .hero-actions>*{width:100%}
 .trust-item{padding:15px 12px}
 .trust-item strong{font-size:14px}
 .trust-grid{grid-template-columns:1fr 1fr}
 body.stream-dashboard .sd-cards{grid-template-columns:1fr 1fr!important}
 body.stream-dashboard .sd-card strong{font-size:22px!important}
}


/* v3.8 — doctor profile details, consistent contact icons, and gallery home navigation */
.doctor-copy h2{max-width:760px}
.doctor-copy p + p{margin-top:10px}
.doctor-highlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0 0}
.doctor-detail-block{padding:17px 18px;background:#fff;border:1px solid var(--line);border-radius:16px}
.doctor-detail-block h3{font-family:"Manrope";font-size:12px;text-transform:uppercase;letter-spacing:.12em;margin:0 0 13px;color:#3a2b24}
.doctor-detail-block ul{list-style:none;padding:0;margin:0;display:grid;gap:11px}
.doctor-detail-block li{display:flex;align-items:flex-start;gap:10px;color:#6f6258;font-size:12px;line-height:1.5}
.detail-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#f5ecdd;color:#a97835;font-size:14px}
.membership-icon{font-family:"Manrope";font-size:11px;font-weight:800}
.doctor-detail-block strong{display:block;color:#2b211c;font-size:12px}
.doctor-detail-block small{display:block;color:#8a7c70;font-size:10px;margin-top:2px}
.contact-icon svg{width:20px;height:20px;display:block}
.section-heading.gal {
    display: flex;
    justify-content: space-between;align-items: center;
    flex-direction: row;
}
.contact-card.right-map {
    background: #241711;
}
.contact-card.right-map .contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #2d201a;
    color: #ffffff;
    display: grid;
    place-items: center;
    flex: none;
}
.contact-card.right-map .fa{font-size: 20px;}
.contact-card.right-map h3, .contact-card.right-map .contact-row{color: #d5d1d1;}
.doctor-layout .pull-right {
    float: right;
    max-width: 357px;
    margin:0 0 20px 40px;
    border-radius: 20px;
}
@media (min-width: 901px) {
    .sd-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    .sd-gallery-card img {
    display: block;
    height: 200px !important;
    }
}

@media(max-width:780px){.doctor-highlights{grid-template-columns:1fr}.doctor-copy h2{font-size:clamp(34px,9vw,46px)}}
