/* Clarksville Family Pharmacy. Their own site, carried forward: the centred name and
   "Faster. Friendlier. More Affordable." over a centred menu in Playfair capitals, the storefront
   photo across the top of every page with a thin white frame inset in it, Playfair headings over
   Lato text, square buttons, three picture cards, and the "Ready to find out more?" ending.
   Colour now comes from their logo and storefront: the pill's blue, the lime of "family", and the
   deep blue of the window signs. The sign (indigo panel, white lettering, inset white rule) is the
   one loud thing; everything else stays calm and readable. */

@font-face { font-family: 'Playfair Display'; src: url(../fonts/playfair-display.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(../fonts/lato-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(../fonts/lato-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(../fonts/lato-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root, :root[data-theme="family"] {
  --sign: #22398d;       /* their window signs ("FREE Delivery", "Call (479) 647-3138") */
  --sign-2: #2d48a8;
  --sign-deep: #17275f;  /* footer */
  --btn: #0058a8;        /* the logo's "Clarksville Pharmacy" blue */
  --btn-2: #00467f;
  --link: #0058a8;
  --title: #0058a8;      /* card titles (teal on the old site, the link colour) */
  --sky: #2290d0;        /* the pill */
  --lime: #98cc4c;       /* "family" in the logo: fills and rules, text only on the dark blues */
  --lime-2: #b3dc74;
  --lime-ink: #3f6b0e;   /* the lime, deepened for small text on white (6.3:1) */
  --on-lime: #16264d;
  --mist: #edf6f9;       /* the pale aqua highlights in the pill */
  --mist-line: #d3e6ee;
  --ink: #252525;        /* their text colour */
  --head: #16264d;
  --muted: #59626e;
  --rule: #d9e2e8;
  --error: #b3001b;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-color: var(--lime); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--btn-2); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--btn); outline-offset: 2px; }
.topbar :focus-visible, .sign :focus-visible, .callbar :focus-visible, .footer :focus-visible { outline-color: var(--lime); }
[hidden] { display: none !important; }
figure { margin: 0; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { padding: 0; margin: 0; list-style: none; }
h1, h2, h3 { color: var(--head); font-family: var(--serif); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.section { padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(52px, 7vw, 92px); }
.section--top { padding-top: clamp(36px, 5vw, 64px); }
.section--tight { padding-top: clamp(36px, 5vw, 56px); }
.section--flush { padding-top: 0; }
.mist { background: var(--mist); }

/* ---- type: their Playfair headings over Lato ---- */
.h1 { font: 700 clamp(2.1rem, 4.4vw, 3.2rem)/1.12 var(--serif); letter-spacing: -.01em; margin: 0 0 .45em; text-wrap: balance; }
.h2 { font: 700 clamp(1.7rem, 3vw, 2.35rem)/1.18 var(--serif); letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
.h3 { font: 700 1.35rem/1.3 var(--serif); margin: 0 0 .55em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.22rem); line-height: 1.6; max-width: 60ch; color: var(--muted); }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }

/* ---- buttons: square, as on the old site, set in Playfair ---- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.4em;
  border: 2px solid transparent; border-radius: 2px; font: 700 1.02rem/1.1 var(--serif); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--lime-2); color: var(--on-lime); }
.btn--blue { background: var(--btn); color: #fff; }
.btn--blue:hover { background: var(--btn-2); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--ghost:hover { background: #fff; color: var(--sign); }
.btn--line { background: #fff; color: var(--btn); border-color: var(--btn); }
.btn--line:hover { background: var(--btn); color: #fff; }
.btn--lg { font-size: 1.1rem; padding: .9em 1.6em; min-height: 54px; }
.btn--sm { font-size: .9rem; padding: .6em 1.1em; min-height: 40px; }
.btn--block { width: 100%; }

/* ---- the storefront sign: indigo panel, white lettering, a white rule inset in it ---- */
.sign { position: relative; background: var(--sign); color: #fff; isolation: isolate; }
.sign::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(255, 255, 255, .55); pointer-events: none; z-index: -1; }
.sign a:not(.btn) { color: #fff; text-decoration-color: var(--lime); }
.sign a:not(.btn):hover { color: var(--lime); }
/* ---- the old banner's frame: a thin white rule inset in a photo ---- */
.frame { position: relative; }
.frame img { width: 100%; }
.frame::after { content: ''; position: absolute; inset: 10px; border: 1.5px solid rgba(255, 255, 255, .75); pointer-events: none; }
.frame figcaption { position: absolute; left: 22px; bottom: 22px; z-index: 1; background: var(--sign); color: #fff; padding: 6px 14px; font: 400 1.05rem/1.3 var(--serif); }


/* ---- top bar ---- */
.topbar { background: var(--sign); color: #fff; font: 700 .86rem/1.4 var(--sans); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 6px 28px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--lime); text-decoration: underline; }
.topbar__addr { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.topbar__addr .ico { color: var(--lime); }
.topbar__addr a { text-decoration: underline; text-decoration-color: var(--lime); }
.topbar__perks, .topbar__social { display: flex; gap: 22px; }
.topbar__perks li { display: flex; align-items: center; gap: 8px; }
.topbar__perks li::before { content: ''; width: 7px; height: 7px; background: var(--lime); transform: rotate(45deg); }
.topbar__social a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1080px) { .topbar__perks { display: none; } }
@media (max-width: 640px) {
  .topbar__social { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__addr { justify-content: center; font-size: .82rem; }
}

/* ---- masthead: their centred name and tagline, now with the real logo ---- */
.masthead { background: #fff; }
.masthead__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 18px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand__logo { width: 250px; }
.brand__tag { margin-top: 6px; font: 400 .98rem/1.3 var(--sans); color: #5f5f5f; letter-spacing: .02em; }
.masthead__call { justify-self: start; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.masthead__ring { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mist); color: var(--btn); border: 1.5px solid var(--mist-line); }
.masthead__small { display: block; font: 700 .8rem/1.2 var(--sans); color: var(--muted); }
.masthead__num { display: block; font: 700 1.35rem/1.2 var(--serif); color: var(--head); }
.masthead__call:hover .masthead__num { color: var(--btn); }
.masthead__actions { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.masthead__app { font: 700 .88rem/1.2 var(--sans); }
.menu-btn { display: none; }

/* ---- menu: their centred Playfair capitals between two hairlines ---- */
.nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 6px; }
.nav__list a { display: block; padding: 15px 14px 13px; font: 500 .92rem/1.2 var(--serif); letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; border-bottom: 3px solid transparent; }
.nav__list a:hover { color: var(--btn); border-bottom-color: var(--mist-line); }
.nav__list a[aria-current="page"] { color: var(--head); font-weight: 700; border-bottom-color: var(--lime); }
.nav__extra { display: none; }

@media (max-width: 999px) {
  .masthead { position: relative; }
  .masthead__in { grid-template-columns: 1fr auto; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .masthead__call, .masthead__actions { display: none; }
  .brand { align-items: flex-start; }
  .brand__logo { width: 190px; }
  .brand__tag { font-size: .86rem; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; background: #fff; color: var(--head);
    border: 1.5px solid var(--rule); border-radius: 2px; font: 700 .95rem var(--sans); cursor: pointer; }
  .menu-btn .ico { width: 22px; height: 22px; }
  .menu-btn__close { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
  .nav { display: none; border-bottom: 0; }
  .nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; box-shadow: 0 18px 30px rgba(22, 38, 77, .18); border-bottom: 4px solid var(--lime); }
  .nav__list { flex-direction: column; padding: 6px 0; }
  .nav__list a { padding: 14px 2px; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav__list a[aria-current="page"] { border-bottom-color: var(--rule); box-shadow: inset 4px 0 0 var(--lime); padding-left: 14px; }
  .nav__extra { display: grid; gap: 10px; padding: 14px 0 20px; }
  .nav__addr { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
}
@media (max-width: 420px) { .brand__logo { width: 160px; } .brand__tag { font-size: .8rem; } .menu-btn__label { display: none; } }

/* ---- phone call bar ---- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--sign); box-shadow: 0 -4px 16px rgba(22, 38, 77, .25); }
  .callbar .btn { min-height: 48px; padding: .6em .9em; font-size: .98rem; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .menu-open .callbar { display: none; }
}

/* ---- home hero: the storefront, the old frame, and a sign board hanging from it ---- */
.hero__photo { position: relative; background: var(--sign-deep); }
.hero__img { width: 100%; height: auto; aspect-ratio: 2400 / 924; max-height: 640px; object-fit: cover; object-position: 50% 30%; }
.hero__frame { position: absolute; inset: clamp(8px, 1.6vw, 22px); border: 2px solid rgba(255, 255, 255, .6); pointer-events: none; }
.hero__wrap { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px 44px; align-items: start; position: relative; z-index: 2; }
.hero__board { margin-top: clamp(-130px, -8vw, -60px); padding: clamp(28px, 3.4vw, 42px); }
.hero__title { color: #fff; font: 700 clamp(1.85rem, 3.2vw, 2.6rem)/1.15 var(--serif); margin: 0 0 .45em; text-wrap: balance; }
.hero__lede { font-size: 1.1rem; line-height: 1.55; margin: 0; color: #e8edfb; }
.hero__board .btns { margin-top: 24px; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding-top: 26px; }
.quick__item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.quick__item > .ico { width: 28px; height: 28px; color: var(--sky); margin-top: 2px; }
.quick__h { font: 700 1.08rem/1.3 var(--serif); margin: 0 0 4px; }
.quick__item p { margin: 0; font-size: 1rem; line-height: 1.55; }
.quick__big { font: 700 1.3rem/1.3 var(--serif); text-decoration: none; color: var(--head); }
.quick__big:hover { color: var(--btn); }
@media (max-width: 980px) {
  .hero__wrap { grid-template-columns: 1fr; }
  .hero__board { margin-top: -28px; }
  .quick { padding-top: 6px; }
}
@media (max-width: 560px) {
  .hero__wrap { padding-left: 0; padding-right: 0; }
  .hero__board { margin-top: 0; }
  .hero__board .btns .btn { width: 100%; }
  .quick { grid-template-columns: 1fr; padding-left: var(--gut); padding-right: var(--gut); }
}

/* ---- their three picture cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.card__pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); margin-bottom: 18px; }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__pic--white { background: #fff; border: 1px solid var(--rule); }
.card__pic--white img { object-fit: contain; padding: 4%; }
.card:hover .card__pic img { transform: scale(1.03); }
.card__title { font: 700 1.45rem/1.25 var(--serif); margin: 0 0 .4em; }
.card__title a { color: var(--title); text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.card p { margin-bottom: .8em; }
.card__more { font-weight: 700; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }

/* ---- the insurance notice ---- */
.notice-wrap { padding-bottom: clamp(52px, 7vw, 92px); }
.notice { max-width: 900px; margin: 0 auto; padding: clamp(24px, 3.5vw, 40px); border: 2px solid var(--sign); position: relative; }
.notice::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--mist-line); pointer-events: none; }
.notice__when { display: inline-block; margin: 0 0 10px; padding: 3px 10px; background: var(--mist); font: 700 .92rem/1.4 var(--sans); color: var(--lime-ink); }
.notice__title { font: 700 clamp(1.4rem, 2.4vw, 1.8rem)/1.25 var(--serif); margin: 0 0 .6em; }
.notice p:last-of-type { margin-bottom: 0; }

/* ---- photo and words side by side (flu shot, vaccinations, owner) ---- */
.feature, .vacc, .owner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.vacc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.owner { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.feature { padding-top: 0; }
@media (max-width: 860px) { .feature, .vacc, .owner { grid-template-columns: 1fr; } .vacc__pic { order: -1; } }

/* ---- Since 2011 ---- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'head pic' 'text pic'; gap: 8px clamp(28px, 5vw, 64px); align-items: start; }
.story__head { grid-area: head; }
.story__pic { grid-area: pic; align-self: center; }
.story__text { grid-area: text; }
.story__year { font: 800 clamp(3rem, 7vw, 5rem)/1 var(--serif); color: var(--sign); margin: 0 0 14px; letter-spacing: -.02em; }
.story__year::after { content: ''; display: block; width: 72px; height: 5px; background: var(--lime); margin-top: 14px; }
.story .h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: .3em; }
.story .lede { margin-bottom: 1.2em; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; grid-template-areas: 'head' 'pic' 'text'; gap: 20px; } }

/* ---- what they offer ---- */
.offers__h { margin-top: clamp(40px, 6vw, 72px); max-width: 40ch; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 36px; margin-top: 10px; }
.offer { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--mist-line); scroll-margin-top: 24px; }
.offer:target { box-shadow: inset 4px 0 0 var(--lime); padding-left: 14px; }
.offer__ico { width: 30px; height: 30px; color: var(--btn); flex: none; margin-top: 2px; --ico-bg: var(--mist); }
.offer__name { font: 700 1.12rem/1.3 var(--serif); margin: 2px 0 4px; }
.offer__text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--muted); }

/* ---- the "Ready to find out more?" sign ---- */
.band-wrap { padding-bottom: clamp(52px, 7vw, 92px); }
.mist + .band-wrap, .section + .band-wrap { padding-top: 0; }
.mist + .band-wrap { padding-top: clamp(52px, 7vw, 92px); }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: clamp(30px, 4.5vw, 52px) clamp(26px, 5vw, 60px); }
.band__title { color: #fff; font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.2 var(--serif); margin: 0 0 .25em; }
.band__line { margin: 0; color: #e8edfb; max-width: 52ch; }
.band__btns { margin-top: 0; }
@media (max-width: 560px) { .band__btns .btn { width: 100%; } }

/* ---- inner-page banner: the storefront under a wash, their frame, a centred title ---- */
.phero { position: relative; min-height: clamp(220px, 26vw, 330px); display: grid; place-items: center; overflow: hidden; background: var(--sign-deep); isolation: isolate; }
.phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(16, 26, 62, .62), rgba(16, 26, 62, .72)); }
.phero__frame { position: absolute; inset: clamp(10px, 1.6vw, 22px); border: 2px solid rgba(255, 255, 255, .6); display: grid; place-content: center; text-align: center; padding: 20px clamp(16px, 4vw, 40px); }
.phero__title { color: #fff; font: 400 clamp(2.1rem, 5vw, 3.4rem)/1.12 var(--serif); margin: 0; text-wrap: balance; }
.phero__lede { color: #eef1fb; margin: 12px auto 0; max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.5; }

/* ---- about ---- */
.teamshot img { width: 100%; }
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(36px, 5vw, 56px); }
.about__logo { width: 240px; margin-bottom: 22px; }
.about__family { font: 400 1.3rem/1.4 var(--serif); color: var(--head); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---- find us + map ---- */
.findus { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.findus__addr { font: 400 1.3rem/1.45 var(--serif); color: var(--head); }
.findus__pic { width: 300px; max-width: 100%; margin: 4px 0 18px; }
.findus__pic::after { inset: 6px; }
.map { width: 100%; min-height: 380px; border: 1px solid var(--rule); display: block; background: var(--mist); }
@media (max-width: 860px) { .findus { grid-template-columns: 1fr; } .map { min-height: 300px; } }

/* ---- services ---- */
.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.svc { padding: 24px 22px 20px; border: 1px solid var(--rule); border-top: 4px solid var(--lime); }
.svc__badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--mist); color: var(--btn); margin-bottom: 16px; --ico-bg: var(--mist); }
.svc__badge .ico { width: 30px; height: 30px; }
.svc__name { font: 700 1.25rem/1.25 var(--serif); margin: 0 0 .45em; }
.svc__name a { color: var(--title); text-decoration: none; }
.svc__name a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.svc p { margin: 0; font-size: 1rem; line-height: 1.6; }
.more-q { font: 400 1.2rem/1.5 var(--serif); color: var(--head); text-align: center; margin: 0; }

/* ---- refills and app ---- */
.refill__intro { margin-bottom: 28px; }
.refill__online { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.refill__pic { display: block; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; max-width: 860px; }
.store { background: #fff; border: 1px solid var(--mist-line); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.store__badge { display: block; width: 230px; max-width: 100%; }
.store__link { font-weight: 700; }
.store__for { margin: 0; color: var(--muted); font-size: .95rem; }
.refill__call { display: flex; gap: 16px; align-items: center; max-width: 760px; margin: 0 auto; padding: 20px 24px; border: 2px solid var(--sign); }
.refill__call > .ico { width: 34px; height: 34px; color: var(--btn); }
.refill__call p { margin: 0; font-size: 1.1rem; }
@media (max-width: 760px) { .refill__online, .stores { grid-template-columns: 1fr; } }

/* ---- featured products ---- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.product__pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); margin-bottom: 18px; }
.product__pic img { width: 100%; height: 100%; object-fit: cover; }
.product:first-child .product__pic img { object-position: 50% 30%; }
.product__pic--logo { background: #fff; border: 1px solid var(--rule); }
.product__pic--logo a { display: block; height: 100%; }
.product__pic--logo img { object-fit: contain; padding: 6%; }
.product__pic--logo::after { border-color: var(--mist-line); }
.product h2 a { color: var(--title); text-decoration: none; }
.product h2 a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }

/* ---- blog ---- */
.posts { display: grid; gap: clamp(28px, 4vw, 44px); max-width: 980px; }
.postcard { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.postcard__pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.postcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.postcard h2 a { color: var(--title); text-decoration: none; }
.postcard h2 a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.post__meta { font: 700 .95rem/1.4 var(--sans); color: var(--lime-ink); margin-bottom: 8px; }
.post__meta a { color: var(--lime-ink); }
.post { max-width: 860px; }
.post__pic { margin: 10px 0 30px; }
.post__wide { margin: 8px 0 30px; }
.post__pair { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; margin-bottom: 18px; }
.post__nav { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); }
.post__nav a { display: inline-flex; flex-direction: column; font: 700 1.25rem/1.3 var(--serif); text-decoration: none; color: var(--title); }
.post__nav-label { font: 700 .9rem/1.4 var(--sans); color: var(--muted); }
@media (max-width: 700px) { .postcard, .post__pair { grid-template-columns: 1fr; } }

/* ---- covid ---- */
.covid { max-width: 820px; }
.covid__sign { padding: clamp(30px, 5vw, 56px); text-align: center; }
.covid__sign .btns { justify-content: center; }
.covid__title { color: #fff; font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.3 var(--serif); margin: 0; }
.covid__title a { white-space: nowrap; }
.covid__more { margin-top: 28px; text-align: center; }

/* ---- FAQ ---- */
.faq__list { max-width: 860px; border-top: 2px solid var(--sign); }
.faq__item { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.faq__item dt { font: 700 1.2rem/1.35 var(--serif); color: var(--head); }
.faq__item dd p { margin: 0; }
@media (max-width: 700px) { .faq__item { grid-template-columns: 1fr; } }

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact__card { padding: clamp(28px, 3.6vw, 40px); }
.contact__h { color: #fff; font: 700 1.5rem/1.2 var(--serif); margin: 0 0 10px; }
.contact__phone { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(1.7rem, 3.2vw, 2.2rem)/1.2 var(--serif); color: #fff !important; text-decoration: none; margin-bottom: 18px; }
.contact__phone .ico { color: var(--lime); }
.contact__list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .2); line-height: 1.5; }
.contact__list .ico { color: var(--lime); margin-top: 3px; }
.contact__social { display: flex; gap: 22px; margin-top: 16px; }
.contact__social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---- the short note form ---- */
.form { display: grid; gap: 16px; margin-top: 8px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font: 700 .98rem/1.3 var(--sans); color: var(--head); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 400 1.05rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #b9c6d0; border-radius: 2px; padding: 11px 12px; }
.field input:focus, .field textarea:focus { border-color: var(--btn); outline: none; box-shadow: 0 0 0 3px rgba(0, 88, 168, .2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: .92rem; font-weight: 700; min-height: 0; }
.field__err:empty { display: none; }
.form__hint { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: var(--mist); border-left: 4px solid var(--lime); font-size: .98rem; line-height: 1.5; }
.form__hint .ico { color: var(--btn); margin-top: 3px; }
.form__submit { justify-self: start; }
.form__fine { margin: 0; font-size: .92rem; color: var(--muted); }
.sent { padding: 24px; background: var(--mist); border-left: 4px solid var(--lime); }
.sent .btns { margin-top: 14px; }
.callinstead { padding: 24px; background: var(--mist); border-left: 4px solid var(--lime); }
.callinstead .btns { margin-top: 10px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form__submit { justify-self: stretch; } }

/* ---- footer: their dark footer with "Follow us" and "Contact us", then the white copyright line ---- */
.footer { background: var(--sign-deep); color: #fff; margin-top: 0; }
.footer a { color: #fff; text-decoration-color: var(--lime); }
.footer a:hover { color: var(--lime); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px 28px; padding-top: clamp(44px, 6vw, 64px); padding-bottom: clamp(36px, 5vw, 52px); }
.footer__pill { width: 64px; margin-bottom: 12px; }
.footer__name { font: 700 1.35rem/1.25 var(--serif); margin: 0 0 4px; }
.footer__tag { margin: 0 0 10px; color: #dfe5f6; }
.footer__since { margin: 0; color: #c8d1ec; font-size: .95rem; }
.footer__h { color: var(--lime); font: 700 .9rem/1.3 var(--serif); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 14px; }
.footer__col p { margin: 0 0 .8em; font-size: 1rem; line-height: 1.55; }
.footer__label { font-weight: 700; margin-bottom: 0 !important; color: #c8d1ec; font-size: .9rem !important; }
.footer__phone { font: 700 1.2rem/1.3 var(--serif); text-decoration: none; }
.footer__links li + li { margin-top: 6px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__social li + li { margin-top: 8px; }
.footer__social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.footer__social .ico { width: 22px; height: 22px; color: var(--lime); }
.footer__base { background: #fff; color: var(--ink); text-align: center; font-size: .92rem; }
.footer__base p { margin: 0; padding: 16px 0; }
@media (max-width: 1080px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---- 404 ---- */
.notfound { min-height: 50vh; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pills a { display: block; padding: 10px 18px; border: 2px solid var(--btn); border-radius: 2px; color: var(--btn); text-decoration: none; font: 700 1rem/1.2 var(--serif); }
.pills a:hover { background: var(--btn); color: #fff; }


/* Playfair's figures are old-style by default; lining ones keep phone numbers level. The font
   shorthand resets font-variant-numeric on every rule that uses it, hence !important here.
   "Since 2011" keeps the old-style figures the old site showed. */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }
.story__year { font-variant-numeric: oldstyle-nums !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
