/* ============================================================
   FEET AHEAD PODIATRY — conditions.css
   Mobile-first, fully responsive, NO sticky positioning anywhere.
   Loaded on top of styles.css — overrides where necessary.
   ============================================================ */

/* ── PAGE TOKENS ─────────────────────────────────────────── */
:root {
    --c-blue:        #1A56DB;
    --c-blue-dark:   #1340B0;
    --c-blue-deep:   #0B2A78;
    --c-blue-light:  #EBF2FF;
    --c-blue-mid:    #C7D9F8;
    --c-green:       #059669;
    --c-green-light: #ECFDF5;
    --c-amber:       #D97706;
    --c-amber-light: #FEF3C7;
    --c-text:        #111827;
    --c-text-mid:    #374151;
    --c-text-soft:   #4B5563;
    --c-border:      #D1D5DB;
    --c-border-soft: #E5E7EB;
    --c-bg-tint:     #F3F6FF;
    --c-radius-sm:   8px;
    --c-radius:      12px;
    --c-radius-lg:   18px;
    --c-shadow-xs:   0 1px 3px rgba(17,24,39,.06);
    --c-shadow-sm:   0 2px 10px rgba(17,24,39,.06);
    --c-shadow-md:   0 8px 24px rgba(11,42,120,.10);
    --c-shadow-lg:   0 16px 40px rgba(11,42,120,.18);
    --c-page-x:      1rem;       /* mobile gutter */
    --c-max:         1260px;
}

/* ── KILL MOST STICKY BEHAVIOR ON THIS PAGE ───────────────── */
.announce-bar,
.breadcrumb-bar,
.conditions-jumpnav,
section,
main {
    position: relative !important;
    top: auto !important;
}
body > header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}
/* Keep the main page header sticky so the navigation behaves like the
   index header while nested section headers remain transparent and
   non-sticky. */

/* ── NESTED <header> RESET ───────────────────────────────── */
/* styles.css styles the bare `header` element with a white
   background, border, and shadow — meant for the page header.
   But this page uses <header class="cond-section-header"> inside
   every section, so each title gets wrapped in a white box that
   covers it on the dark navy diabetic section. Strip those
   styles back to transparent for nested headers. */
.cond-section-header,
main header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ── FULL-BLEED SECTIONS ─────────────────────────────────── */
/* styles.css applies `section { max-width: 1260px; margin: 0 auto; }`
   globally, which makes the navy diabetic section (and other banners)
   render as a centered 1260px block with white page background on both
   sides — covering the heading on wide screens. Here we let each
   <section> span the full viewport while .cond-section-inner keeps
   the content centered to 1260px. */
main > section,
main > .cond-section,
.cond-hero,
.when-to-see {
    max-width: none !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ── ANNOUNCE BAR — wrap nicely on mobile ────────────────── */
.announce-bar {
    padding: .55rem var(--c-page-x);
    font-size: .85rem;
    line-height: 1.45;
}
.announce-bar span {
    display: inline-flex; align-items: center; gap: .4rem;
    flex-wrap: wrap; justify-content: center;
}
.announce-cta {
    font-size: .82rem;
    padding: .2rem .75rem;
}

/* ── HEADER ──────────────────────────────────────────────── */
.header-inner {
    padding: .65rem var(--c-page-x);
    gap: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.header-inner > .logo,
.header-inner > .hamburger {
    flex: 0 0 auto;
}
nav {
    flex: 1 1 auto;
}
.logo img {
    height: clamp(3.5rem, 8vw, 9rem);
    width: auto;
    max-width: 100%;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 1024px) {
    .header-inner {
        padding: .65rem 1rem;
    }
    .logo img { height: clamp(3rem, 10vw, 7rem); }
    .hamburger { display: flex; z-index: 2000; background: transparent; border: none; }
    nav { width: 100%; }
}

@media (max-width: 720px) {
    .header-inner { justify-content: space-between; }
    .logo img { height: clamp(2.8rem, 12vw, 6rem); }
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb-bar {
    background: var(--c-bg-tint);
    border-bottom: 1px solid var(--c-border);
    padding: .65rem var(--c-page-x);
}
.breadcrumb-inner { max-width: var(--c-max); margin: 0 auto; }
.breadcrumb-list {
    list-style: none;
    display: flex; align-items: center; flex-wrap: wrap;
    gap: .4rem .55rem;
    font-size: .82rem; color: var(--c-text-soft);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: .55rem; }
.breadcrumb-list a { color: var(--c-blue); font-weight: 700; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list i { font-size: .7rem; color: #9CA3AF; }

/* ── PAGE HERO ───────────────────────────────────────────── */
.cond-hero {
    background: linear-gradient(150deg, #0B2A78 0%, #1A56DB 65%, #1E40AF 100%);
    padding: 2.5rem var(--c-page-x) 2.75rem;
    overflow: hidden;
}
.cond-hero-inner {
    max-width: var(--c-max); margin: 0 auto;
    display: grid; grid-template-columns: 1fr;
    gap: 2rem;
}
.cond-hero-text { min-width: 0; }
.cond-hero-text .hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #FFFFFF; font-size: .72rem; font-weight: 700;
    padding: .3rem .85rem; border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: .05em; text-transform: uppercase;
}
.cond-hero-text h1 {
    color: #FFFFFF;
    font-size: clamp(1.6rem, 5.5vw, 2.75rem);
    line-height: 1.18;
    margin-bottom: 1rem;
}
.cond-hero-intro {
    color: #DCE6FA;
    font-size: clamp(.95rem, 2.3vw, 1.05rem);
    line-height: 1.75;
    margin-bottom: .75rem;
}
.cond-hero-cta {
    display: flex; flex-wrap: wrap; gap: .75rem;
    margin: 1.5rem 0 1.25rem;
}
.cond-hero-cta .btn-primary,
.cond-hero-cta .btn-outline-dark {
    flex: 1 1 240px;
    justify-content: center;
}
.btn-outline-dark {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12); color: #FFFFFF;
    padding: .85rem 1.5rem;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: var(--c-radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700; font-size: .95rem;
    cursor: pointer; text-decoration: none;
}
.btn-outline-dark.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; border-radius: 10px; }
.btn-outline-dark:hover { background: rgba(255,255,255,.22); border-color: #FFFFFF; color: #FFFFFF; text-decoration: none; }

.cond-hero-trust {
    display: flex; flex-wrap: wrap; gap: .5rem .9rem;
}
.cond-hero-trust span {
    display: inline-flex; align-items: center; gap: .4rem;
    color: #E6EEFF; font-size: .82rem; font-weight: 600;
}
.cond-hero-trust i { color: #34D399; }

/* Stat counter grid */
.cond-hero-count { min-width: 0; }
.count-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--c-radius-lg);
    padding: 1.25rem;
}
.count-item {
    text-align: center;
    padding: .5rem .25rem;
}
.count-n {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #FFFFFF; line-height: 1;
}
.count-l {
    display: block;
    font-size: .7rem; color: rgba(255,255,255,.75);
    font-weight: 700; margin-top: .3rem;
    text-transform: uppercase; letter-spacing: .04em;
    line-height: 1.3;
}

/* ── JUMP NAV (horizontal scroll on mobile, NOT sticky) ──── */
.conditions-jumpnav {
    background: #FFFFFF;
    border-bottom: 2px solid var(--c-border-soft);
}
.jumpnav-inner {
    max-width: var(--c-max); margin: 0 auto;
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem var(--c-page-x);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
}
.jumpnav-inner::-webkit-scrollbar { display: none; }
.jumpnav-label {
    font-weight: 700; font-size: .72rem; color: #6B7280;
    text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap; margin-right: .25rem;
    display: none;       /* hidden on mobile, shown on tablet+ */
}
.jumpnav-inner a {
    display: inline-flex; align-items: center; gap: .4rem;
    color: #374151; font-size: .82rem; font-weight: 600;
    padding: .5rem .95rem; border-radius: 50px;
    white-space: nowrap; flex-shrink: 0;
    border: 1px solid var(--c-border);
    background: #F9FAFB;
    text-decoration: none;
}
.jumpnav-inner a:hover {
    background: var(--c-blue); color: #FFFFFF;
    border-color: var(--c-blue); text-decoration: none;
}
.jumpnav-inner a:focus-visible {
    outline: 3px solid #FCD34D; outline-offset: 3px;
}

/* ── SECTION BASE ────────────────────────────────────────── */
.cond-section {
    padding: 2.75rem var(--c-page-x);
}
.cond-section--alt   { background: var(--c-bg-tint); }
.cond-section--blue  { background: var(--c-blue-deep); }
.cond-section-inner  { max-width: var(--c-max); margin: 0 auto; }

.cond-section-header {
    margin-bottom: 1.75rem;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    background: transparent;
    padding: 0;
    z-index: auto;
    width: auto;
    box-sizing: border-box;
}
.cond-section-header h2 {
    margin: .5rem 0 .6rem;
    font-size: clamp(1.4rem, 4.5vw, 2.25rem);
    line-height: 1.25;
}
.section-tag {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--c-blue-light);
    color: var(--c-blue-dark);
    font-size: .7rem; font-weight: 800;
    letter-spacing: .07em; text-transform: uppercase;
    padding: .3rem .8rem; border-radius: 4px;
}
.section-tag--white {
    background: rgba(255,255,255,.18) !important;
    color: #FFFFFF !important;
}
.cond-section--blue .cond-section-header h2 { color: #FFFFFF; }
.cond-section--blue .section-tag { background: rgba(255,255,255,.18); color: #E6EEFF; }
.cond-section--blue .section-intro { color: #DCE6FA; }
.section-intro {
    font-size: clamp(.92rem, 2.2vw, 1rem);
    color: var(--c-text-soft);
    line-height: 1.75;
    max-width: 760px;
}

/* ── CARD GRID ───────────────────────────────────────────── */
.cond-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
/* cond-grid--2 = identical on mobile; widens on desktop */

/* ── CONDITION CARD ──────────────────────────────────────── */
.cond-card {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    box-shadow: var(--c-shadow-sm);
    display: flex; flex-direction: column;
    min-width: 0;
}
.cond-card:hover {
    border-color: var(--c-blue);
    box-shadow: var(--c-shadow-md);
}
.cond-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #E5E7EB;
    overflow: hidden;
}
.cond-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.cond-img-tag {
    position: absolute; top: .75rem; left: .75rem;
    background: rgba(11,42,120,.88); color: #FFFFFF;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 50px;
}
.cond-card-body {
    padding: 1.25rem;
    display: flex; flex-direction: column;
    gap: .9rem; flex: 1;
}
.cond-card-body h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--c-blue-deep);
    font-size: clamp(1.1rem, 3.5vw, 1.2rem);
    line-height: 1.3;
}
.cond-card-body > p {
    color: var(--c-text);
    font-size: .92rem; line-height: 1.7;
}

/* Signs panel */
.cond-signs {
    background: var(--c-blue-light);
    border-radius: 10px;
    padding: .9rem 1rem;
}
.cond-signs h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--c-blue-dark);
    margin-bottom: .55rem;
}
.cond-signs ul {
    list-style: none;
    display: flex; flex-direction: column; gap: .45rem;
}
.cond-signs li {
    display: flex; align-items: flex-start; gap: .55rem;
    font-size: .85rem; color: var(--c-text);
    line-height: 1.55; font-weight: 500;
}
.cond-signs li i {
    color: var(--c-blue);
    font-size: .45rem;
    margin-top: .55rem;
    flex-shrink: 0;
}

/* Treatment panel */
.cond-treatment {
    background: var(--c-green-light);
    border-left: 3px solid var(--c-green);
    border-radius: 10px;
    padding: .9rem 1rem;
}
.cond-treatment h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em;
    color: #065F46;
    margin-bottom: .35rem;
}
.cond-treatment p {
    font-size: .85rem; color: var(--c-text);
    line-height: 1.6;
}

/* Book button on card */
.cond-book-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: auto;
    background: var(--c-blue); border: none; color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700; font-size: .88rem;
    padding: .7rem 1.2rem; border-radius: var(--c-radius-sm);
    cursor: pointer; text-decoration: none;
    width: fit-content;
}
.cond-book-btn:hover { background: var(--c-blue-dark); color: #FFFFFF; text-decoration: none; }
.cond-book-btn:focus-visible { outline: 3px solid #FCD34D; outline-offset: 3px; }

/* ── DIABETIC SECTION ────────────────────────────────────── */
/* Tighten gap between section header and image — no dead blue
   space above the picture. !important is used here because the
   responsive `.cond-section` padding rules below have the same
   specificity but appear later in the cascade. */
.cond-section--blue { padding-top: 2rem !important; }
.cond-section--blue .cond-section-header { margin-bottom: 1rem; }
.cond-section--blue .section-intro { margin-bottom: 0; }

.diabetic-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-top: .25rem;
}
.diabetic-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    aspect-ratio: 4 / 3;
}
.diabetic-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.diabetic-content { min-width: 0; }
.diabetic-content h3 {
    color: #FFFFFF;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}
.diabetic-content > p {
    color: #F1F5FF;
    font-size: clamp(.92rem, 2.2vw, 1rem);
    line-height: 1.75;
    margin-bottom: .9rem;
}

/* Diabetic condition list — white cards on dark blue */
.diabetic-conditions-list {
    display: flex; flex-direction: column;
    gap: .85rem;
    margin: 1.5rem 0;
}
.diabetic-cond-item {
    display: flex; gap: .9rem; align-items: flex-start;
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-blue);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.diabetic-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: var(--c-blue-light);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-blue);
    font-size: 1.05rem;
}
.diabetic-cond-item > div:last-child { min-width: 0; }
.diabetic-cond-item strong {
    display: block;
    color: var(--c-blue-deep);
    font-size: .95rem; font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: .25rem;
    line-height: 1.35;
}
.diabetic-cond-item span {
    color: var(--c-text);
    font-size: .88rem;
    line-height: 1.6;
}

/* Alert box */
.diabetic-alert {
    display: flex; gap: .9rem; align-items: flex-start;
    background: var(--c-amber-light);
    border: 1px solid #FCD34D;
    border-left: 4px solid var(--c-amber);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
}
.diabetic-alert i {
    color: #B45309;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: .15rem;
}
.diabetic-alert p {
    color: var(--c-text);
    font-size: .9rem;
    line-height: 1.6;
}
.diabetic-alert strong { color: #92400E; }

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

/* ── WHEN TO SEE A PODIATRIST ────────────────────────────── */
.when-to-see {
    background: var(--c-blue-deep);
    padding: 2.75rem var(--c-page-x);
}
.when-inner {
    max-width: var(--c-max); margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}
.when-text .section-tag {
    background: rgba(255,255,255,.18);
    color: #E6EEFF;
}
.when-text h2 {
    color: #FFFFFF;
    margin: .5rem 0 1rem;
    font-size: clamp(1.4rem, 4.5vw, 2.25rem);
    line-height: 1.25;
}
.when-text > p {
    color: #DCE6FA;
    font-size: clamp(.92rem, 2.2vw, 1rem);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.when-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
}
.when-item {
    display: flex; align-items: flex-start; gap: .6rem;
    color: #E6EEFF;
    font-size: .9rem; font-weight: 500;
    line-height: 1.55;
}
.when-item i {
    color: #34D399; font-size: 1rem;
    flex-shrink: 0; margin-top: .15rem;
}

.when-cta-box {
    background: #FFFFFF;
    border-radius: var(--c-radius-lg);
    padding: 1.75rem 1.25rem;
    box-shadow: var(--c-shadow-lg);
    display: flex; flex-direction: column;
    gap: .85rem; text-align: center;
}
.when-cta-icon {
    font-size: 2rem;
    color: var(--c-blue);
}
.when-cta-box h3 {
    color: var(--c-text);
    font-size: 1.25rem;
}
.when-cta-box > p {
    color: var(--c-text-soft);
    font-size: .9rem;
    line-height: 1.6;
}
.when-cta-box .btn-primary {
    width: 100%;
    justify-content: center;
}
.when-phone,
.when-whatsapp {
    display: flex; align-items: center; justify-content: center;
    gap: .5rem;
    font-weight: 700; font-size: .95rem;
    padding: .75rem;
    border-radius: var(--c-radius-sm);
    text-decoration: none;
}
.when-phone {
    color: var(--c-blue);
    border: 2px solid var(--c-blue-mid);
    background: var(--c-blue-light);
}
.when-phone:hover { background: var(--c-blue-mid); text-decoration: none; }
.when-whatsapp {
    color: #065F46;
    border: 2px solid #A7F3D0;
    background: var(--c-green-light);
}
.when-whatsapp:hover { background: #D1FAE5; text-decoration: none; }
.when-address {
    color: var(--c-text-soft);
    font-size: .82rem;
    line-height: 1.5;
}
.when-address i { color: var(--c-blue); }

/* ── FOOTER SOCIAL ───────────────────────────────────────── */
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,.25); color: #FFFFFF; text-decoration: none; }

/* ── NO ANIMATION / NO TRANSFORMS ────────────────────────── */
*, *::before, *::after {
    animation: none !important;
    transition: background-color .15s ease, color .15s ease,
                border-color .15s ease, box-shadow .15s ease !important;
    transform: none !important;
}
/* Hamburger lines need transform to animate to X — re-allow them */
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--hamburger-color, #111827) !important;
    border-radius: 2px;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.25s ease, opacity 0.15s ease, background-color 0.15s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg) !important; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg) !important; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — mobile-first
   Default styles above target mobile; below we enhance.
   ════════════════════════════════════════════════════════════ */

/* ── ≥ 540px (large phones / small tablets) ──────────────── */
@media (min-width: 540px) {
    :root { --c-page-x: 1.25rem; }
    .cond-hero { padding: 3rem var(--c-page-x) 3rem; }
    .cond-section { padding: 3.25rem var(--c-page-x); }
    .when-to-see  { padding: 3.25rem var(--c-page-x); }
    .cond-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .when-grid { grid-template-columns: 1fr 1fr; }
    .count-grid { padding: 1.5rem; gap: 1rem; }
}

/* ── ≥ 720px (tablet portrait) ───────────────────────────── */
@media (min-width: 720px) {
    :root { --c-page-x: 1.5rem; }
    .jumpnav-label { display: inline; }
    .cond-section-header { margin-bottom: 2.25rem; }
    .cond-card-body { padding: 1.5rem; gap: 1rem; }
    .diabetic-feature { grid-template-columns: 5fr 7fr; gap: 2.25rem; }
}

/* ── ≥ 960px (tablet landscape / small desktop) ──────────── */
@media (min-width: 960px) {
    .cond-hero { padding: 4rem 1.5rem 3.5rem; }
    .cond-hero-inner {
        grid-template-columns: 1.4fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    .cond-hero-cta .btn-primary,
    .cond-hero-cta .btn-outline-dark { flex: 0 1 auto; }
    .cond-section { padding: 4rem 1.5rem; }
    .when-to-see  { padding: 4rem 1.5rem; }
    .cond-grid    { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
    .cond-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .when-inner   {
        grid-template-columns: 1.4fr 360px;
        gap: 3rem;
    }
    .diabetic-feature { grid-template-columns: 5fr 7fr; gap: 2.75rem; }
}

/* ── ≥ 1200px (desktop) ──────────────────────────────────── */
@media (min-width: 1200px) {
    .cond-hero { padding: 4.5rem 1.5rem 4rem; }
    .cond-section { padding: 5rem 1.5rem; }
    .when-to-see  { padding: 5rem 1.5rem; }
    .cond-grid    { grid-template-columns: repeat(3, 1fr); }
    .cond-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .diabetic-feature { grid-template-columns: 1fr 1.2fr; gap: 3.25rem; }
    .when-inner   { grid-template-columns: 1.5fr 380px; gap: 4rem; }
}

/* ── EXTRA-NARROW PHONES (≤ 360px) ───────────────────────── */
@media (max-width: 360px) {
    :root { --c-page-x: .85rem; }
    .cond-hero-text h1 { font-size: 1.45rem; }
    .count-grid { padding: 1rem; }
    .count-item { padding: .35rem .15rem; }
    .cond-card-body { padding: 1.1rem; }
    .when-cta-box { padding: 1.5rem 1rem; }
}

/* ── ACCESSIBILITY ───────────────────────────────────────── */
a:focus-visible, button:focus-visible {
    outline: 3px solid #FCD34D !important;
    outline-offset: 3px !important;
}
