/* Nadia Pienaar Optometrists: full website. Written phone first, then widened for larger screens. */
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("../fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("../fonts/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2");font-weight:600;font-display:swap}
:root{--white:#FFFFFF;--grey:#F2F2F2;--charcoal:#252525;--text-2:#4D4D4D;--mauve:#633F50;--floral:#A17C89;--focus:#42243A;--line:#D9D9D9;
  --space:1.25rem;--bar:4.5rem}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:"Atkinson Hyperlegible Next",Verdana,Arial,sans-serif;font-size:1.125rem;line-height:1.55;color:var(--charcoal);background:var(--white);padding-bottom:var(--bar)}
img{max-width:100%;height:auto;display:block}
a{color:var(--mauve);text-underline-offset:.15em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.wrap{width:min(100% - 2.5rem,72rem);margin-inline:auto}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:var(--white);padding:.5rem 1rem;z-index:50}
.icon{width:1.25em;height:1.25em;flex:none}.icon path{fill:currentColor}
.rule{width:3.5rem;height:.375rem;background:var(--floral);border:0;margin:0 0 1rem}

/* Buttons: one primary action per screen */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:52px;padding:.7rem 1.5rem;font:inherit;font-weight:600;text-decoration:none;border-radius:2px;border:2px solid var(--charcoal);cursor:pointer}
.btn--primary{background:var(--charcoal);color:var(--white)}.btn--primary:hover{background:#111}
.btn--secondary{background:var(--white);color:var(--charcoal)}.btn--secondary:hover{background:var(--grey)}
.btn-row{display:grid;gap:.75rem;margin-top:1.5rem}

/* Header */
.header{border-bottom:1px solid var(--line);background:var(--white)}
.header__in{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.9rem;flex-wrap:wrap}
.header__logo img{width:200px}
.menu-btn{display:inline-flex;align-items:center;gap:.5rem;min-height:48px;padding:.4rem .9rem;font:inherit;font-weight:600;background:var(--white);color:var(--charcoal);border:2px solid var(--charcoal);border-radius:2px;cursor:pointer}
.nav{display:none;width:100%}
.nav.is-open{display:block}
.nav ul{list-style:none;margin:.5rem 0 0;padding:0;border-top:1px solid var(--line)}
.nav li a{display:block;padding:.9rem 0;font-weight:600;color:var(--charcoal);text-decoration:none;border-bottom:1px solid var(--line)}
.nav__book{display:none}

/* First screen */
.hero{padding:1.75rem 0 2rem}
h1{font-size:clamp(2.1rem,1.4rem + 3.4vw,3.6rem);line-height:1.12;font-weight:600;margin:0 0 .75rem;letter-spacing:-.01em}
.lead{font-size:1.25rem;color:var(--text-2);margin:0;max-width:34ch}

/* Three facts people look for first */
.facts{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:0;border:1px solid var(--line)}
.facts li{display:flex;gap:.9rem;align-items:flex-start;padding:1rem 1.1rem;border-bottom:1px solid var(--line)}
.facts li:last-child{border-bottom:0}
.facts .icon{color:var(--mauve);width:1.6rem;height:1.6rem;margin-top:.15rem}
.facts strong{display:block;font-weight:600;line-height:1.3}
.facts span{display:block;color:var(--text-2);font-size:1rem;line-height:1.35;margin-top:.15rem}

/* Meet Nadia */
.about{background:var(--grey);padding:2.5rem 0}
.about__photo{margin:0 0 1.5rem;background:var(--mauve);border-top:.5rem solid var(--floral);height:18rem;position:relative;overflow:hidden}
.about__photo img{position:absolute;left:50%;transform:translateX(-50%);bottom:0;height:100%;width:auto;max-width:none}
.label{font-weight:600;color:var(--mauve);margin:0 0 .25rem;font-size:1rem}
h2{font-size:clamp(1.7rem,1.3rem + 1.6vw,2.4rem);line-height:1.2;font-weight:600;margin:0 0 .75rem}
.about p{margin:0 0 1rem;max-width:52ch}

/* Footer */
.footer{background:var(--charcoal);color:var(--white);font-size:1.0625rem}
.footer a{color:var(--white)}
.footer__grid{display:grid;gap:2rem;padding-block:2.5rem}
.footer h2{font-size:1.125rem;font-weight:600;margin:0 0 .6rem;color:var(--white)}
.footer p{margin:0 0 .6rem}
.footer ul{list-style:none;margin:0;padding:0}
.footer li{margin:0 0 .45rem}
.footer__social{margin-top:1rem!important;display:flex;gap:1.5rem}
.footer__social a{display:inline-flex;align-items:center;gap:.5rem}
.footer__hours span{white-space:nowrap}
.footer__hours li{display:flex;justify-content:space-between;gap:1rem;max-width:20rem;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:.45rem}
.footer__legal{border-top:1px solid rgba(255,255,255,.3);font-size:1rem}
.footer__legal-in{padding-block:1.25rem;display:grid;gap:.5rem}
.footer__legal p{margin:0}
.cookie-settings{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}

/* Phone: actions within thumb reach */
.thumb-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;height:var(--bar);display:grid;grid-template-columns:1.6fr 1fr 1fr;background:var(--white);border-top:1px solid var(--line);box-shadow:none}
.thumb-bar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;font-size:.95rem;font-weight:600;color:var(--charcoal);text-decoration:none;border-left:1px solid var(--line)}
.thumb-bar a .icon{width:1.35rem;height:1.35rem;color:var(--mauve)}
.thumb-bar__main{flex-direction:row!important;gap:.5rem!important;background:var(--charcoal);color:var(--white)!important;border-left:0!important;font-size:1.05rem!important}
.thumb-bar__main .icon{color:var(--white)!important}

/* Wider screens */
@media (min-width:48em){
  body{padding-bottom:0;font-size:1.1875rem}
  .thumb-bar,.menu-btn{display:none}
  .header__in{flex-wrap:nowrap;padding-block:1rem}
  .header__logo img{width:250px}
  .nav{display:flex;align-items:center;justify-content:flex-end;gap:1.75rem;width:auto}
  .nav ul{display:flex;gap:1.75rem;margin:0;border:0}
  .nav li a{padding:.5rem 0;border:0;border-bottom:3px solid transparent}
  .nav li a:hover,.nav li a[aria-current=page]{border-bottom-color:var(--floral)}
  .nav__book{display:inline-flex;min-height:48px}
  .hero{padding:4.5rem 0 5rem;min-height:calc(100vh - 5.6rem);display:flex;align-items:center}
  .hero>.wrap{width:min(100% - 2.5rem,72rem)}
  .hero__in{display:grid;grid-template-columns:1.2fr .8fr;gap:4rem;align-items:center}
  .hero__text{align-self:center}
  .btn-row{display:flex;flex-wrap:wrap}
  .footer__grid{grid-template-columns:1.25fr 1.05fr 1.25fr .65fr;gap:2.5rem;padding-block:3.5rem}
  .footer__legal-in{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem 2rem}
  .about{padding:4.5rem 0}
  .about__in{display:grid;grid-template-columns:.8fr 1.2fr;gap:4rem;align-items:center}
  .about__photo{margin:0;height:26rem}
  .facts{margin:0;align-self:center}
  .facts li{padding:1.25rem 1.4rem}
}

/* ---------- Shared section patterns ---------- */
.section{padding:2.75rem 0}
.section--grey{background:var(--grey)}
.narrow{max-width:48rem}
.wrap.narrow{width:min(100% - 2.5rem,48rem)}
h3{font-size:1.25rem;font-weight:600;line-height:1.3;margin:1.5rem 0 .4rem}
p{margin:0 0 1rem}
.muted{color:var(--text-2);font-size:1rem}
.more{margin:1.5rem 0 0}
.split{display:grid;gap:2rem}
.page-hero{padding:2rem 0 1.5rem;border-bottom:1px solid var(--line)}
.page-hero .lead{max-width:44ch}
.page-hero h1{font-size:clamp(1.9rem,1.4rem + 2.4vw,3rem)}

/* Cards */
.cards{display:grid;gap:1rem;margin-top:1.5rem}
.card{background:var(--white);border:1px solid var(--line);border-top:.375rem solid var(--floral);padding:1.25rem 1.25rem .5rem}
.card .icon{width:2rem;height:2rem;color:var(--mauve);margin-bottom:.6rem}
.card h3{margin:0 0 .4rem}

/* Opening offer */
.offer{background:var(--white);border:1px solid var(--line);padding:1.5rem 1rem;text-align:center}
.offer__title{font-weight:600;font-size:1.375rem;color:var(--mauve);margin:0 0 1.25rem}
.offer__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem 1rem}
.offer__badge{margin:0;width:min(100%,13rem);padding:1.1rem .75rem 1.2rem;color:var(--white);border-radius:1.5rem;font-weight:600;font-size:1.25rem;line-height:1.1;text-transform:uppercase}
.offer__badge strong{display:block;font-size:3.5rem;line-height:1}
.offer__badge--mauve{background:var(--mauve);transform:rotate(-3deg)}
.offer__badge--dark{background:var(--charcoal);transform:rotate(3deg)}
.offer__plus{font-size:2.75rem;line-height:1;font-weight:600;color:var(--floral)}
.offer__how{display:inline-block;margin:1.5rem 0 0;padding:.5rem 1.5rem;background:var(--mauve);color:var(--white);font-weight:600;border-radius:2rem}
.offer__terms{margin:.75rem 0 0;font-size:1rem;color:var(--text-2)}

/* Patient reviews */
.quotes{display:grid;gap:1rem;margin-top:1.5rem}
.quote{margin:0;background:var(--white);border:1px solid var(--line);border-left:.375rem solid var(--floral);padding:1.25rem}
.quote blockquote{margin:0}
.quote p{margin:0 0 .75rem;font-size:1.1875rem}
.quote figcaption{color:var(--text-2);font-size:1rem}
@media (min-width:48em){.quotes{grid-template-columns:1fr 1fr;gap:1.25rem}}

/* Numbered steps */
.steps{list-style:none;margin:1.5rem 0;padding:0;display:grid;gap:1rem;counter-reset:step}
.steps li{counter-increment:step;position:relative;padding:1.1rem 1.1rem 1.1rem 4.25rem;border:1px solid var(--line);background:var(--white)}
.steps li::before{content:counter(step);position:absolute;left:1.1rem;top:1.1rem;width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;background:var(--mauve);color:var(--white);font-weight:600;border-radius:50%}
.steps strong{display:block;font-size:1.25rem;font-weight:600;line-height:1.3}
.steps span{display:block;color:var(--text-2);margin-top:.2rem}

/* Hours list on light backgrounds */
.hours{list-style:none;margin:0 0 1rem;padding:0;max-width:24rem}
.hours li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--line)}
.hours span{white-space:nowrap}
.hours li.is-today{font-weight:600}

/* Questions */
.faq{margin-top:1.5rem;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-weight:600;padding:1rem 2rem 1rem 0;list-style:none;position:relative;min-height:48px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:.25rem;top:.7rem;font-size:1.6rem;line-height:1;color:var(--mauve)}
.faq details[open] summary::after{content:"\2212"}
.faq p{margin:0 0 1rem;color:var(--text-2);max-width:60ch}

/* Final call to action */
.cta{background:var(--mauve);color:var(--white);padding:2.5rem 0}
.cta h2{color:var(--white)}
.cta p{margin:0}
.cta__in{display:grid;gap:1.25rem}
.cta .btn-row{margin-top:0}
.btn--light{background:var(--white);color:var(--charcoal);border-color:var(--white)}
.btn--light:hover{background:var(--grey)}
.btn--outline-light{background:transparent;color:var(--white);border-color:var(--white)}
.btn--outline-light:hover{background:rgba(255,255,255,.12)}
.cta :focus-visible{outline-color:var(--white)}

/* Services page */
.service{display:grid;grid-template-columns:3rem 1fr;gap:1rem;padding:1.5rem 0;border-bottom:1px solid var(--line)}
.service .icon{width:2.5rem;height:2.5rem;color:var(--mauve)}
.service h2{font-size:1.5rem;margin:0 0 .4rem}
.service p{margin:0}
.areas{margin:2rem 0 0;color:var(--text-2)}

/* Forms */
.form{margin-top:1.25rem}
.field{margin:0 0 1.25rem}
.field label{display:block;font-weight:600;margin:0 0 .3rem}
.req{font-weight:400;font-size:.95rem;color:var(--text-2)}
.hint{font-size:1rem;color:var(--text-2);margin:.3rem 0 0}
.field input,.field select,.field textarea{width:100%;min-height:48px;padding:.55rem .75rem;font:inherit;color:var(--charcoal);background:var(--white);border:2px solid #6B6B6B;border-radius:2px}
.field textarea{min-height:7rem;resize:vertical}
.error{display:none;margin:.35rem 0 0;color:#A32020;font-weight:600;font-size:1rem}
.field--error .error{display:block}
.field--error input,.field--error textarea{border-color:#A32020}
.hp{position:absolute;left:-9999px}
.notice{border-left:.375rem solid var(--mauve);background:var(--grey);padding:1rem 1.25rem;margin:1rem 0}
.notice--error{border-left-color:#A32020}
.notice strong{display:block}
.notice p{margin:0}
.contact-list{display:grid;gap:.75rem;margin:1rem 0 1.5rem;max-width:22rem}
.contact-list .btn{justify-content:flex-start}

/* Long text pages */
.prose h2{font-size:1.5rem;color:var(--mauve);margin:2rem 0 .5rem}
.prose ul{padding-left:1.25rem;margin:0 0 1rem}
.prose li{margin:0 0 .4rem}

@media (max-width:47.99em){.offer__row{flex-direction:column;gap:.15rem}}

@media (min-width:48em){
  .section{padding:4.5rem 0}
  .split{grid-template-columns:1fr 1fr;gap:4rem}
  .split--center{align-items:center}
  .page-hero{padding:3.5rem 0 3rem}
  .cards{grid-template-columns:repeat(4,1fr);gap:1.25rem}
  .cards--2{grid-template-columns:repeat(2,minmax(0,20rem))}
  .steps{grid-template-columns:repeat(3,1fr);gap:1.25rem}
  .steps li{padding:4.25rem 1.25rem 1.25rem}
  .offer{padding:2rem 1.5rem}
  .cta{padding:3.5rem 0}
  .cta__in{grid-template-columns:1.2fr auto;align-items:center;gap:3rem}
}
@media (min-width:48em) and (max-width:64em){
  .cards{grid-template-columns:repeat(2,1fr)}
  .nav,.nav ul{gap:1.1rem}
  .header__logo img{width:200px}
}
