/* Webster Dental Group - shared across index.html and about/index.html.
   404.html deliberately keeps its own inline CSS so it renders even if this file is missing. */
@font-face{font-family:'Erode';font-weight:400;font-style:normal;font-display:swap;src:url(/assets/fonts/Erode-Regular.woff2) format('woff2')}
@font-face{font-family:'Erode';font-weight:500;font-style:normal;font-display:swap;src:url(/assets/fonts/Erode-Medium.woff2) format('woff2')}
@font-face{font-family:'Work Sans';font-weight:300 700;font-style:normal;font-display:swap;src:url(/assets/fonts/WorkSans.woff2) format('woff2')}

:root{
  /* Webster Dental Group v1.1 - docs/brand/webster-dental-group-brand-guide.md
     The parent takes no hue and holds no secondary colour (3.2, 3.3). Shark ground, one gold,
     White Rock type. Measured: gold on shark 5.11:1, stone on shark 13.4:1. Gold CTA fills
     carry SHARK text, never white - white on gold is 3.26:1 and fails AA. */
  --shark:#1A1E22; --shark-2:#23282D; --gold:#AF884A; --stone:#EBE5D7;
  --creme:#FCF9F2; --charcoal:#5F6264;
  --serif:'Erode','Iowan Old Style',Georgia,'Times New Roman',serif;
  --sans:'Work Sans','Segoe UI',system-ui,-apple-system,sans-serif;
  --pad:clamp(20px,5vw,56px);
}
/* ponytail: the page commits to the brand world in both OS themes, as Brightside and Tandem
   do. A brand page is not an app surface; there is no dark-mode variant to design. */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
/* No -webkit-font-smoothing:antialiased. It forces greyscale antialiasing, which renders light
   type on a dark ground thinner and visibly duller -- worst on a high-contrast display serif at
   88px, which is exactly the hero. The headline was reported as "faded" three times and twice
   "fixed" by changing its colour; the colour was never wrong. It computes #FCF9F2 on #1A1E22,
   15.6:1, with nothing overlaying it. This was the cause. */
body{margin:0;background:var(--shark);color:var(--stone);font-family:var(--sans);
  font-size:17px;line-height:1.65;font-weight:340}
h1,h2,h3{font-family:var(--serif);font-weight:500;margin:0;text-wrap:balance}
p{margin:0 0 1em;max-width:62ch}
a{color:inherit}
img,svg{max-width:100%;display:block}
.wrap{max-width:1120px;margin:0 auto;padding:0 var(--pad)}
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--shark-2);
  color:var(--stone);padding:12px 18px;text-decoration:none;border:1px solid var(--gold)}
.skip:focus{left:12px;top:12px}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.eyebrow{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--gold);
  font-weight:600;margin:0 0 24px}
.gold{color:var(--gold)}
.rule{border:0;border-top:1px solid rgba(235,229,215,.14);margin:0}
section{padding:78px 0}
.section-head{margin-bottom:44px}
.section-head h2{font-size:clamp(30px,4.4vw,46px);line-height:1.12;letter-spacing:-.01em}

/* ---------- nav ---------- */
nav{position:fixed;top:0;left:0;right:0;z-index:50;transition:background .3s,box-shadow .3s}
nav.solid{background:var(--shark);box-shadow:0 1px 0 rgba(235,229,215,.12)}
/* No scrim under the transparent nav: it dimmed the hero lockup and headline on first load,
   and the nav turns solid before any photo reaches it. */
.nav-in{position:relative;z-index:1}
.nav-in{display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:16px var(--pad)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex:0 0 auto}
/* 58px tall = 173px wide. Below ~170px wide the DENTAL GROUP line drops under a 7px cap and
   stops reading, so a smaller slot gets the W alone, never a shrunken lockup. */
.brand img{height:58px;width:auto;flex:0 0 auto}
.nav-links{display:flex;gap:20px;align-items:center;font-size:12.5px;letter-spacing:.12em;
  white-space:nowrap;
  text-transform:uppercase}
.nav-links a{text-decoration:none;opacity:.85}
.nav-links a:hover,.nav-links a:focus-visible{opacity:1;color:var(--gold)}
.cta{background:var(--gold);color:var(--shark);padding:11px 21px;text-decoration:none;
  font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;
  border-radius:2px;opacity:1!important;transition:background .2s}
.cta:hover,.cta:focus-visible{background:#C29A58;color:var(--shark)}
.cta-ghost{border:1px solid rgba(235,229,215,.42);color:var(--stone);padding:11px 21px;
  text-decoration:none;font-size:13px;letter-spacing:.14em;text-transform:uppercase;
  font-weight:600;border-radius:2px;transition:border-color .2s,background .2s}
.cta-ghost:hover,.cta-ghost:focus-visible{border-color:var(--gold);background:rgba(175,136,74,.1)}
.burger{display:none;background:none;border:0;padding:8px;margin-right:-8px;cursor:pointer;
  color:inherit}
.burger .x{display:none}
.burger[aria-expanded="true"] .x{display:block}
.burger[aria-expanded="true"] .bars{display:none}
.drawer{display:none}
@media(max-width:1300px){
  .nav-links a:not(.cta){display:none}
  .burger{display:block}
  .drawer{display:block;position:fixed;top:0;left:0;right:0;z-index:49;background:var(--shark);
    border-bottom:1px solid rgba(235,229,215,.14);padding:100px var(--pad) 28px;
    transform:translateY(-100%);transition:transform .32s cubic-bezier(.4,0,.2,1);
    visibility:hidden}
  .drawer.open{transform:none;visibility:visible}
  .drawer a{display:block;text-decoration:none;font-family:var(--serif);font-size:23px;
    padding:12px 0;border-bottom:1px solid rgba(235,229,215,.1)}
  .drawer a:last-child{border-bottom:0}
  /* Lock lives INSIDE the query: above 1000px the burger is hidden, so a lock set from JS and
     never cleared would freeze the page with no visible control to unfreeze it. */
  body.nav-open{overflow:hidden}
}
@media(max-width:620px){.nav-links a.cta{display:none}}
@media(prefers-reduced-motion:reduce){.drawer{transition:none}html{scroll-behavior:auto}}

/* ---------- hero ---------- */
header{position:relative;padding:150px 0 0;overflow:hidden}
.hero-mark{position:absolute;right:-10%;top:-2%;width:min(50vw,560px);height:auto;opacity:.05;
  pointer-events:none;z-index:0}
.hero{position:relative;z-index:1;padding-bottom:70px}
/* The stroke is the fix for the "faded hero", and it is a density problem rather than a colour
   one. Erode is a high-contrast serif: at 88px its hairlines land on one or two pixels, those
   pixels blend with the near-black ground, and the whole headline reads grey even though it
   paints #FCF9F2 at 15.6:1. Proven by setting the fill to pure red -- thin, it rendered a muted
   brick; at a 2px stroke it rendered saturated. Everything else was ruled out first: no overlay,
   no filter, no blend mode, no backdrop-filter anywhere in the chain, and no painting pseudo
   element. Relative units so it tracks the clamp instead of over-inking the mobile size. */
.hero h1{font-size:clamp(44px,7.6vw,88px);line-height:1.02;letter-spacing:-.015em;
  margin:0 0 26px;font-weight:500;color:var(--creme);
  -webkit-text-stroke:0.013em currentColor}
.hero h1 b{font-weight:500;color:var(--gold);display:block}
.lead{font-size:clamp(18px,1.7vw,20px);line-height:1.55;max-width:36em;opacity:.92}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px;align-items:center}
.strip{position:relative;z-index:1;border-top:1px solid rgba(235,229,215,.14);
  border-bottom:1px solid rgba(235,229,215,.14);display:grid;
  grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(235,229,215,.14)}
.strip div{background:var(--shark);padding:26px clamp(18px,3vw,32px)}
/* Contact labels are not the same length, so "Selling or joining a practice" wraps to two lines
   and "Careers" does not. Without this the three addresses sit at three different heights. */
#contact .strip div{display:flex;flex-direction:column}
#contact .strip dd{margin-top:auto}
.strip dt{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);
  font-weight:600;margin-bottom:8px}
.strip dd{margin:0;font-family:var(--serif);font-size:clamp(19px,2vw,23px);line-height:1.25}
@media(max-width:760px){.strip{grid-template-columns:1fr}}

/* ---------- content blocks ---------- */
.two{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px);align-items:start}
@media(max-width:860px){.two{grid-template-columns:1fr}}
.pull{font-family:var(--serif);font-size:clamp(22px,2.6vw,30px);line-height:1.35;
  border-left:2px solid var(--gold);padding-left:26px;margin:0;max-width:26em}
/* The grid lines are the 1px gap showing the container through. That works only while the item
   count divides evenly into the column count -- five cards in two columns left a grey block
   where the sixth would be. Paint the lines per item instead, so a short last row is ground. */
.values{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--shark);border:1px solid rgba(235,229,215,.14)}
.values article{background:var(--shark);padding:clamp(24px,3vw,34px);
  box-shadow:0 0 0 1px rgba(235,229,215,.14)}
.values h3{font-size:clamp(20px,2.1vw,24px);line-height:1.2;margin:0 0 12px}
.values .n{font-size:11px;letter-spacing:.24em;color:var(--gold);font-weight:600;
  display:block;margin-bottom:14px}
.values p{margin:0;font-size:16px;opacity:.86;max-width:38ch}
@media(max-width:940px){.values{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.values{grid-template-columns:1fr}}

.diff{border-top:1px solid rgba(235,229,215,.14)}
.diff .row{display:grid;grid-template-columns:minmax(210px,1fr) 2fr;gap:clamp(18px,4vw,54px);
  padding:28px 0;border-bottom:1px solid rgba(235,229,215,.14);align-items:baseline}
.diff h3{font-size:clamp(21px,2.2vw,26px);line-height:1.2}
.diff p{margin:0;opacity:.88}
@media(max-width:760px){.diff .row{grid-template-columns:1fr;gap:10px}}

.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;
  background:rgba(235,229,215,.14);border:1px solid rgba(235,229,215,.14)}
.cards a{background:var(--shark);padding:clamp(26px,3vw,38px);text-decoration:none;
  display:block;transition:background .2s}
.cards a:hover,.cards a:focus-visible{background:var(--shark-2)}
.cards h3{font-size:clamp(22px,2.3vw,27px);margin:0 0 6px}
.cards .where{font-size:12px;opacity:1;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);
  font-weight:600;margin:0 0 16px}
.cards p{margin:0 0 18px;font-size:16px;opacity:.86;max-width:40ch}
.cards .mk{display:flex;align-items:flex-end;height:44px;margin-bottom:22px}
.cards .mk img{height:var(--mh,32px);width:auto;display:block}
.cards .go{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;
  color:var(--gold)}
/* A practice that is not open yet: same card, with a tag in place of the mark. */
.cards .soon-tag{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);border:1px solid rgba(175,136,74,.5);padding:8px 12px;line-height:1}
@media(max-width:700px){.cards{grid-template-columns:1fr}}

.sub{font-size:23px;margin-bottom:16px}
ul.plain{list-style:none;padding:0;margin:0 0 1em;max-width:62ch}
ul.plain li{position:relative;padding-left:26px;margin-bottom:13px;opacity:.9}
ul.plain li::before{content:"";position:absolute;left:0;top:11px;width:11px;height:1px;
  background:var(--gold)}

footer{background:var(--shark-2);padding:56px 0 40px;font-size:14px}
.foot{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;align-items:flex-start}
footer nav{position:static;display:flex;flex-wrap:wrap;gap:10px 24px;max-width:520px}
footer nav a{text-decoration:none;opacity:.78;font-size:13px}
footer nav a:hover{opacity:1;color:var(--gold)}
.legal{margin-top:30px;padding-top:22px;border-top:1px solid rgba(235,229,215,.1);
  font-size:12.5px;opacity:.62;max-width:74ch}

.band{margin:0;display:block;position:relative;background:var(--shark-2)}
.band img{width:100%;height:clamp(220px,34vw,400px);object-fit:cover;display:block}
.band img.top{object-position:50% 10%}
/* Same as .values: eight tiles in a three-column row left a grey block. See the note there. */
.people{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--shark);border:1px solid rgba(235,229,215,.14)}
@media(max-width:900px){.people{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.people{grid-template-columns:repeat(2,1fr)}}
.people>*{min-width:0}
.people figure{margin:0;background:var(--shark);display:flex;flex-direction:column;
  box-shadow:0 0 0 1px rgba(235,229,215,.14)}
.people picture{display:block;aspect-ratio:3/4;overflow:hidden}
.people img{width:100%;height:100%;object-fit:cover;display:block}
.people figcaption{font-size:10px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--charcoal);font-weight:600;padding:11px 12px;min-height:52px;
  display:flex;align-items:center}
.band figcaption{position:absolute;left:0;bottom:0;padding:10px clamp(18px,4vw,28px);
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;font-weight:600;color:var(--stone);
  background:linear-gradient(to top,rgba(26,30,34,.82),rgba(26,30,34,0))}
.inset{margin:0}
.inset img{width:100%;height:auto;display:block;border:1px solid rgba(235,229,215,.16)}
.inset figcaption{font-size:10px;letter-spacing:.22em;text-transform:uppercase;font-weight:600;
  color:var(--gold);padding:12px 2px 0}

/* ---------- patient router (home hero) ---------- */
.router{position:relative;z-index:1;margin:0;padding:18px 0 34px;font-size:14px;opacity:.86;
  display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline}
.router a{color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(175,136,74,.4)}
.router a:hover,.router a:focus-visible{border-bottom-color:var(--gold)}

/* ---------- enquiry form (dentists, associates, careers) ---------- */
.enq{margin-top:34px;max-width:720px}
.enq-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.enq-grid .wide{grid-column:1/-1}
.enq label{display:block;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.enq input,.enq textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;font:inherit;font-size:16px;
  letter-spacing:0;text-transform:none;color:var(--stone);background:var(--shark-2);
  border:1px solid rgba(235,229,215,.25);border-radius:2px}
.enq input:focus,.enq textarea:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.enq textarea{resize:vertical;min-height:84px}
/* Honeypot: off-canvas, not display:none, so a naive bot still fills it. */
.enq-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.enq-foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:20px}
.enq-msg{font-size:15px;opacity:.9}
.enq-msg a{color:var(--gold)}
@media(max-width:620px){.enq-grid{grid-template-columns:1fr}}
