@font-face { font-family: "Black Mango"; src: url("fonts/BlackMango-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "ED Lavonia"; src: url("fonts/EDLavonia-Regular.ttf") format("truetype"); font-display: swap; }
/* Agrandir: free weights are personal-use only (Pangram Pangram). A commercial web license is needed before the shop goes public. */
@font-face { font-family: "Agrandir Narrow"; src: url("fonts/Agrandir-Narrow.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Agrandir Narrow"; src: url("fonts/Agrandir-TextBold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Agrandir Wide"; src: url("fonts/Agrandir-WideLight.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --navy: #0A1A3A;
  --gold: #B8924A;
  --ivory: #FAFAF7;
  --sand: #E8E2D0;
  --taupe: #D4C9A8;
  --white: #FFFFFF;
  --muted: #5d5a4f;
  --line: #ddd5bd;
  --head: "Black Mango", Georgia, "Times New Roman", serif;
  --body: "Agrandir Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: "Agrandir Wide", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "ED Lavonia", "Snell Roundhand", cursive; /* accents only, sparingly */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--navy); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--label); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .7em; }
.small { font-size: .88rem; color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--label); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 14px 26px; border: 1px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn:hover { background: var(--navy); color: var(--ivory); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: #14295a; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #c9a55f; color: var(--navy); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* Announcement and header */
.announce { background: var(--navy); color: var(--ivory); text-align: center; font-family: var(--label); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; }
.announce span { color: var(--taupe); }
.site-head { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.head-row { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.logo img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: 8px; flex: 1; }
.main-nav a { text-decoration: none; font-size: .93rem; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.main-nav a:hover { border-bottom-color: var(--gold); }
.has-sub { position: relative; }
.has-sub .sub { display: none; position: absolute; left: -16px; top: 100%; background: var(--white); border: 1px solid var(--line); padding: 10px 16px; min-width: 230px; box-shadow: 0 14px 30px rgba(10,26,58,.08); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a { display: block; padding: 7px 0; }
.search input { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 9px 14px; width: 190px; border-radius: 0; }
.cart-link { position: relative; display: inline-flex; padding: 8px; }
.cart-count { position: absolute; top: 0; right: -2px; background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: var(--sand); }
.hero-slide { display: none; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 480px; }
.hero-slide.on { display: grid; }
.hero-text { padding: 56px 48px 56px max(20px, calc((100vw - 1180px) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.hero-text p.lead { font-size: 1.08rem; max-width: 30em; color: #2b3757; margin-bottom: 1.4em; }
.hero-img { background-size: cover; background-position: center; min-height: 320px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; padding: 14px 0; background: var(--sand); }
.hero-dots button { width: 28px; height: 3px; border: 0; background: var(--taupe); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--navy); }

/* Script accents (ED Lavonia): two places only, the first hero slide and the quote band */
.hero-script { font-family: var(--script); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--gold); line-height: 1.2; margin: 0 0 6px; }
.quote-band { background: var(--navy); color: var(--ivory); text-align: center; padding: 58px 0; }
.quote-band blockquote { margin: 0 auto; max-width: 21em; font-family: var(--script); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.35; color: #e6cf9c; }
.quote-band cite { display: block; margin-top: 18px; font-family: var(--label); font-style: normal; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head a { font-family: var(--label); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }
.rule { width: 46px; height: 1px; background: var(--gold); margin: 12px 0 0; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tiles.five { grid-template-columns: repeat(5, 1fr); }
.tile { text-decoration: none; text-align: center; }
.tile .ph { aspect-ratio: 1; background: var(--sand) center/cover; border: 1px solid var(--line); transition: transform .25s; }
.tile:hover .ph { transform: translateY(-3px); }
.tile .nm { margin-top: 10px; font-size: .95rem; }
.tile .ct { font-size: .8rem; color: var(--muted); }

/* Product grid and cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 1; background: var(--sand) center/cover; border: 1px solid var(--line); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.04); }
.card .brand { font-family: var(--label); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 12px; }
.card .nm { font-size: .98rem; line-height: 1.35; margin-top: 3px; }
.card .pr { margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card .pr small { font-weight: 400; color: var(--muted); }

.card .ph { position: relative; }
.rx-tag { position: absolute; left: 10px; top: 10px; background: var(--navy); color: var(--ivory); font-family: var(--label); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; }
.rx-box { border: 1px solid var(--gold); background: var(--white); padding: 18px 20px; margin-top: 20px; }
.rx-box strong { font-family: var(--label); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.rx-box p { margin: 8px 0 14px; }
.rx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rx-line { color: var(--gold); margin-top: 2px; }
.rx-actions .btn { white-space: normal; text-align: center; }

/* Spotlight */
.spot { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: var(--ivory); }
.spot .pic { background: center/cover; min-height: 420px; }
.spot .txt { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.spot .txt p { color: #d9dbe4; max-width: 30em; }
.spot .pr { font-size: 1.2rem; margin: 6px 0 20px; color: var(--ivory); }

/* Blog */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: var(--white); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; }
.post .ph { aspect-ratio: 16/10; background: var(--sand) center/cover; }
.post .in { padding: 18px 20px 22px; }
.post h3 { font-family: var(--head); font-size: 1.25rem; margin: 6px 0 10px; }
.post .lk { font-size: .88rem; color: var(--muted); }
.post .lk b { color: var(--navy); border-bottom: 1px solid var(--gold); font-weight: 400; }

/* Collection page */
.page-head { background: var(--sand); padding: 44px 0 38px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.chip { font-size: .85rem; text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); background: var(--white); }
.chip.on { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 40px 0 64px; }
.pdp .main-img { border: 1px solid var(--line); background: var(--sand); aspect-ratio: 1; }
.pdp .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 74px; height: 74px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.thumbs button.on { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.pdp .price { font-size: 1.5rem; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.pdp .short { color: var(--muted); margin-bottom: 18px; }
.opt-label { font-family: var(--label); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 8px; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { font: inherit; font-size: .92rem; padding: 9px 16px; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.sizes button.on { border-color: var(--navy); background: var(--navy); color: var(--ivory); }
.buy { display: flex; gap: 10px; margin-top: 22px; }
.qty { display: inline-flex; border: 1px solid var(--navy); }
.qty button { width: 40px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--navy); }
.qty span { min-width: 34px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.buy .btn { flex: 1; }
.info { margin-top: 28px; border-top: 1px solid var(--line); }
.info details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.info summary { cursor: pointer; font-family: var(--label); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.info summary::after { content: "+"; color: var(--gold); font-size: 1rem; }
.info details[open] summary::after { content: "–"; }
.info details p { margin: 12px 0 0; }
.note { background: var(--sand); padding: 10px 14px; font-size: .86rem; margin-top: 16px; }
.perks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .86rem; color: var(--muted); }
.perks span::before { content: "·"; color: var(--gold); margin-right: 8px; }

/* Cart and checkout */
.cart-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 36px 0 64px; align-items: start; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); }
.line .nm { text-decoration: none; }
.line .rm { background: none; border: 0; font: inherit; font-size: .82rem; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }
.line .amt { text-align: right; font-variant-numeric: tabular-nums; }
.sum { background: var(--white); border: 1px solid var(--line); padding: 24px; position: sticky; top: 100px; }
.sum h3 { font-family: var(--head); font-size: 1.4rem; margin-bottom: 14px; }
.sum .row { display: flex; justify-content: space-between; padding: 7px 0; font-variant-numeric: tabular-nums; }
.sum .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; }
.sum .hint { font-size: .84rem; color: var(--muted); margin: 6px 0 16px; }
.form h3 { font-family: var(--head); font-size: 1.35rem; margin: 26px 0 12px; }
.form h3:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 0; }
.choice { display: grid; gap: 8px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--white); padding: 12px 14px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--navy); }
.choice small { display: block; color: var(--muted); }
.form-note { background: var(--sand); padding: 10px 14px; font-size: .88rem; margin-top: 12px; }

.pay-box { background: var(--sand); padding: 14px 16px; margin-top: 12px; }
.pay-box:empty { display: none; }
.pay-box p { margin: 0 0 6px; }
.pay-box .acct { font-size: 1.3rem; font-variant-numeric: tabular-nums; margin: 8px 0 10px; line-height: 1.3; }
.pay-box .acct span { font-size: .9rem; color: var(--muted); }
.form-error { border: 1px solid #a33a2b; color: #7d2a1e; background: #fbeeea; padding: 10px 14px; margin-top: 14px; font-size: .92rem; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: s; }
.steps li { counter-increment: s; flex: 1 1 120px; border-top: 3px solid var(--taupe); padding-top: 8px; font-size: .88rem; color: var(--muted); }
.steps li.done { border-top-color: var(--navy); color: var(--navy); }
.steps li::before { content: counter(s) ". "; }

/* Simple text pages */
.text-page { padding: 44px 0 64px; max-width: 760px; }
.text-page h2 { margin: 28px 0 10px; font-size: 1.5rem; }
.text-page h3 { margin: 22px 0 8px; font-size: 1.15rem; }
.text-page ul, .text-page ol { margin: 0 0 12px; padding-left: 22px; }
.text-page li { margin-bottom: 5px; }
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.branch { background: var(--white); border: 1px solid var(--line); padding: 18px; }
.branch h3 { font-family: var(--head); font-size: 1.3rem; margin-bottom: 6px; }
.post-page ul { margin: 0 0 14px; padding-left: 22px; }
.post-page li { margin-bottom: 6px; }
.post-page p { margin: 0 0 14px; }
.post-img { aspect-ratio: 21/9; background: var(--sand) center/cover; margin: 22px 0 24px; }
.post-clinic { border: 1px solid var(--gold); background: var(--white); padding: 18px 20px; margin: 26px 0 16px; }
.post-clinic p { margin: 0 0 14px; }
.post-fine { color: var(--muted); }
.draft-flag { display: inline-block; font-family: var(--label); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); padding: 2px 8px; margin-left: 8px; vertical-align: middle; }

/* Bands and footer */
.consult-band { background: var(--sand); padding: 52px 0; border-top: 1px solid var(--line); }
.consult-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.consult-row p { max-width: 38em; margin: 10px 0 0; }
.newsletter { background: var(--white); padding: 52px 0; border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.news-line { display: flex; gap: 8px; }
.news-line input { flex: 1; font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--ivory); color: var(--navy); min-width: 0; }
.consent { display: flex; gap: 8px; font-size: .84rem; color: var(--muted); margin-top: 10px; align-items: flex-start; }
.site-foot { background: var(--navy); color: #d9dbe4; padding: 52px 0 0; }
.site-foot .small { color: #b9bdcb; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-logo { height: 54px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.site-foot h3 { font-family: var(--label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-foot a { display: block; text-decoration: none; padding: 4px 0; font-size: .93rem; }
.site-foot a:hover { color: var(--white); }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 18px; padding-bottom: 22px; font-size: .82rem; color: #9ea4b6; }

/* Message-us panel and toast */
.chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 40; font-family: var(--label); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--navy); color: var(--ivory); border: 1px solid var(--gold); padding: 12px 18px; cursor: pointer; box-shadow: 0 8px 22px rgba(10,26,58,.22); }
.chat-panel { position: fixed; right: 18px; bottom: 70px; z-index: 40; width: min(340px, calc(100vw - 36px)); background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(10,26,58,.18); }
.chat-panel[hidden] { display: none; }
.adv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: var(--navy); color: var(--ivory); padding: 14px 16px; border-bottom: 3px solid var(--gold); }
.adv-head h3 { font-family: var(--head); font-size: 1.25rem; color: var(--ivory); }
.adv-sub { margin: 3px 0 0; font-family: var(--label); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }
.adv-close { background: none; border: 0; color: var(--ivory); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.adv-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.adv-body p { margin: 0 0 4px; font-size: .92rem; }
.adv-body .btn[hidden] { display: none; }
.adv-link { align-self: center; font-size: .88rem; padding: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: var(--ivory); padding: 12px 20px; z-index: 50; font-size: .92rem; max-width: calc(100vw - 32px); }

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tiles, .tiles.five { grid-template-columns: repeat(3, 1fr); }
  .search input { width: 150px; }
  .main-nav { gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .head-row { gap: 10px; min-height: 64px; flex-wrap: wrap; }
  .logo { margin-right: auto; }
  .logo img { height: 38px; }
  .main-nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 0 14px; border-top: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .has-sub .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; background: none; min-width: 0; }
  .search { order: 4; flex-basis: 100%; padding-bottom: 12px; }
  .search input { width: 100%; }
  .hero-slide.on { grid-template-columns: 1fr; }
  .hero-text { padding: 36px 20px 30px; }
  .hero-img { min-height: 300px; order: -1; }
  .spot, .pdp, .cart-wrap, .news-row { grid-template-columns: 1fr; }
  .spot .txt { padding: 36px 20px; }
  .spot .pic { min-height: 300px; }
  .pdp { gap: 24px; padding-top: 22px; }
  .blog, .branches { grid-template-columns: 1fr; }
  .consult-row { flex-direction: column; align-items: flex-start; }
  .section { padding: 44px 0; }
  .sum { position: static; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .tiles, .tiles.five { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .news-line { flex-direction: column; }
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; height: 64px; }
  .line .amt { grid-column: 2; text-align: left; }
  .announce span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
