/* =========================================================
   Deist Breast & Lymph Care — landing page
   ========================================================= */

:root {
    --dark:        #172E38;   /* headings, buttons, brand */
    --text:        #3b4a50;   /* body copy */
    --muted:       #5d6b70;   /* sub-headings */
    --cream:       #F2EDE6;   /* hero / alt section bg */
    --white:       #ffffff;
    --footer-bg:   #E0EBE6;
    --card:        #C3D7CF;   /* service card sage */
    --line:        #d8d2c8;   /* hairline borders */
    --whatsapp:    #25D366;

    --maxw: 1280px;
    --gutter: 40px;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: 1120px; }

.section { padding: 96px 0; position: relative; }
.alt-bg  { background: var(--cream); }

/* branch watermark on the cream sections */
.alt-bg::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 540px; height: 564px;
    background: url("assets/branch2.svg") top right / contain no-repeat;
    pointer-events: none;
    z-index: 0;
}
.alt-bg .container { position: relative; z-index: 1; }

/* ---------- typography ---------- */
.section-heading {
    font-family: var(--serif);
    font-weight: 400;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 60, "opsz" 80;
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1.1;
    color: var(--dark);
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}
.section-heading.center { text-align: center; }

.section-sub {
    font-size: 18px;
    color: var(--muted);
    margin: -14px 0 48px;
}
.section-sub.center { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: 48px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 6px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .18s ease, color .18s ease, opacity .18s ease;
    line-height: 1.2;
}
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: #0f2129; }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
}
.brand img { height: 56px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}
.main-nav a:not(.btn) { font-weight: 500; color: var(--dark); }
.main-nav a:not(.btn):hover { opacity: .65; }
.nav-cta { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--dark);
    transition: .25s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    background: var(--cream);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    align-items: center;
}
.hero-content { padding: 80px 60px 80px 0; max-width: 560px; }
.hero-content h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-variation-settings: "SOFT" 60, "opsz" 110;
    font-size: clamp(40px, 5.2vw, 60px);
    line-height: 1.08;
    color: var(--dark);
    margin: 0 0 22px;
    letter-spacing: -0.015em;
}
.hero-content p { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 460px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* photo bleeds to the right edge of the viewport */
.hero-photo {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50vw;
    /* banner_model.png is pre-flipped (model faces inward) and tightly cropped,
       anchored to the left so the tan fills the rest of the panel */
    background: #B5A494 url("assets/stratsure_slide1b.webp") left bottom / auto 97% no-repeat;
    background-position: 10px 20px;
}

/* faint leaf watermark behind hero text */
.hero::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 320px;
    background: url("assets/branch.svg") left center / contain no-repeat;
    background-position: bottom left;
    background-size: 120% auto;
    /* transform: scaleX(-1); */
    opacity: .9;
    pointer-events: none;
}

/* =========================================================
   WELCOME
   ========================================================= */
.welcome .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* split at 50%, aligning with the hero text/photo split */
    gap: 0;
}
.welcome .two-col p { margin: 0; }
.welcome .two-col p:first-child { padding-right: 60px; }  /* left col mirrors the hero text column */

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.service-card {
    background: var(--card);
    border-radius: 12px;
    padding: 40px 40px 44px;
}
.service-card--wide { grid-column: 1 / -1; }
.service-icon { width: 42px; height: 46px; margin-bottom: 26px; }
.service-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-variation-settings: "SOFT" 50, "opsz" 50;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.15;
    color: var(--dark);
    margin: 0 0 16px;
}
.service-card p { margin: 0; color: #34474d; }


.section.services.alt-bg::before {
    top: auto;
    bottom: 0;
    left: 0;
    background-position: bottom left; 
}

.section.services::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 540px; height: 564px;
    background: url("assets/branch2.svg") top right / contain no-repeat;
    pointer-events: none;
    z-index: 0;
    transform: scaleY(-1);
}


/* =========================================================
   WHAT TO EXPECT
   ========================================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}
.step-num {
    display: block;
    font-family: var(--serif);
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 6px;
}
.step h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    color: var(--dark);
    margin: 0 0 14px;
}
.step p { margin: 0; font-size: 15px; }

/* =========================================================
   MEDICAL AID & COVERAGE
   ========================================================= */
.medical-aid { padding: 0; overflow: hidden; }
.medical-aid::before { display: none; } /* override generic alt-bg watermark */
.medical-aid-photo {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 34vw;
    background: #B5A494 url("assets/medical-aid-coverage.webp") center / cover no-repeat;
}

.medical-aid-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;   /* narrower photo column, wider content */
}

.section.medical-aid::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 540px; height: 564px;
    background: url("assets/branch2.svg") top right / contain no-repeat;
    pointer-events: none;
    z-index: 0;
    transform: scaleY(-1);
}

.medical-aid-content {
    grid-column: 2;
    padding: 88px 0 88px 64px;
    position: relative;
    z-index: 1;
}
.medical-aid-content .lead { font-weight: 600; color: var(--dark); }
.medical-aid-content p { margin: 0 0 18px; }
.ma-list { list-style: none; padding: 0; margin: 6px 0 36px; }
.ma-list li { position: relative; padding-left: 22px; margin-bottom: 12px; }
.ma-list li::before {
    content: "";
    position: absolute; left: 4px; top: 11px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--dark);
}
.ma-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;        /* keep all four on one row, as in the design */
    gap: 20px;
    margin-bottom: 14px;
}
.ma-logos img { height: 22px; width: auto; opacity: .85; flex-shrink: 0; }
.ma-terms { font-size: 14px; color: var(--muted); margin: 0; }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.accordion { margin-top: 8px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: none;
    border: 0;
    padding: 26px 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--dark);
    line-height: 1.3;
}
.acc-icon {
    flex: 0 0 42px;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.acc-icon .icon-minus { display: none; }
.acc-item.is-open .acc-icon .icon-plus { display: none; }
.acc-item.is-open .acc-icon .icon-minus { display: block; }

.acc-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}
.acc-item.is-open .acc-panel { max-height: 400px; }
.acc-panel p { margin: 0 0 26px; max-width: 880px; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-inner { max-width: 860px; }
.contact-form { margin-top: 8px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--dark);
    background: transparent;
    border: 1px solid #b9c4bf;
    border-radius: 4px;
    padding: 16px 18px;
    resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a948f; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--dark); }
.contact-form textarea { margin-bottom: 24px; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
    cursor: pointer;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--dark); flex: 0 0 auto; }

/* Inline reCAPTCHA badge — sits above the submit button rather than floating over the
   bottom-right corner, where the WhatsApp button already lives. */
.blc-recaptcha { margin-bottom: 20px; }
.blc-recaptcha:empty { display: none; }

.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-status {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
}
.form-status.is-success { background: var(--footer-bg); color: var(--dark); }
.form-status.is-error   { background: #fbe9e7; color: #8a2a1f; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--footer-bg);
    padding: 36px 0;
    text-align: center;
}
.site-footer p { margin: 0; font-size: 14px; color: var(--muted); }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 60;
    width: 56px; height: 56px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: transform .18s ease;
}
.whatsapp-float img { width: 56px; height: 56px; border-radius: 50%; }
.whatsapp-float:hover { transform: scale(1.06); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    :root { --gutter: 28px; }
    .section { padding: 72px 0; }

    .main-nav {
        position: fixed;
        inset: 92px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 8px 28px 24px;
        border-bottom: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 12px 24px rgba(0,0,0,.06);
        transform: translateY(-130%);
        transition: transform .28s ease;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 16px 0; }
    .nav-cta { margin-top: 10px; text-align: center; }
    .nav-toggle { display: flex; }

    /* stacked hero */
    .hero-inner { grid-template-columns: 1fr; min-height: 0; }
    .hero-content { padding: 56px 0 40px; max-width: none; }
    .hero-photo { display: none; }
    .hero::before { display: none; }

    .welcome .two-col { grid-template-columns: 1fr; gap: 20px; }
    .welcome .two-col p:first-child { padding-right: 0; }
    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* stacked medical aid */
    .medical-aid-photo { position: relative; width: 100%; height: 320px; }
    .medical-aid-inner { grid-template-columns: 1fr; }
    .medical-aid-content { grid-column: 1; padding: 56px 0; }
}

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .service-card { padding: 30px 26px 32px; }
    .ma-logos { flex-wrap: wrap; justify-content: flex-start; gap: 24px; }
}
