/* =========================================================================
   DP Silver — shared stylesheet
   Palette:
     primary   #54104F Royal Plum      header, footer, hero, navigation, buttons,
                                       headings, highlights
     secondary #E5D2B8 Champagne Beige rate bar, hover states, borders, icons and
                                       secondary text on plum, accents, footer wave
     white     #FFFFFF                 main page and card backgrounds, text on plum
     bg-alt    #F9F5EE Light Cream     alternate sections; cards and tiles on white
     text      #4B3F3B Warm Charcoal   body text
   Cards take the opposite background of their section (cream on white,
   white on cream) and keep a beige border so they stay visible.
   Text rules: charcoal or plum text on white / cream; plum text on beige;
   white or beige text on plum. Never beige text on white or cream.
   Shadows and dividers use plum at reduced opacity.
   To re-theme, change the hex values AND the matching r, g, b.
   ========================================================================= */

:root {
  /* Brand colours */
  --primary: #54104F;          /* Royal Plum */
  --secondary: #E5D2B8;        /* Champagne Beige */
  --white: #FFFFFF;            /* White */
  --bg-alt: #F9F5EE;           /* Light Cream: alternate background */
  --text-color: #4B3F3B;       /* Warm Charcoal: body text */

  /* Same colours as "r, g, b" so they can be used with opacity */
  --primary-rgb: 84, 16, 79;
  --secondary-rgb: 229, 210, 184;
  --white-rgb: 255, 255, 255;

  /* Derived tokens (all built from the colours above) */
  --text: var(--text-color);              /* charcoal on white and cream */
  --text-muted: var(--text-color);        /* kept solid for contrast */
  --text-on-dark: var(--white);           /* white on plum */
  --text-on-dark-muted: var(--secondary); /* beige on plum */
  --border: var(--secondary);
  --border-strong: rgba(var(--primary-rgb), 0.28);
  --border-on-dark: rgba(var(--secondary-rgb), 0.35);
  --shadow-sm: 0 1px 2px rgba(var(--primary-rgb), 0.06), 0 2px 8px rgba(var(--primary-rgb), 0.06);
  --shadow-md: 0 4px 12px rgba(var(--primary-rgb), 0.08), 0 12px 32px rgba(var(--primary-rgb), 0.08);
  --shadow-lg: 0 18px 48px rgba(var(--primary-rgb), 0.18);

  /* Footer wave texture: overall strength (layers inside the SVG
     are 45–100% of this, i.e. roughly 8–18% beige at the default 0.18) */
  --wave-opacity: 0.18;

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 80px; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  color: var(--primary);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .005em;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.25rem, 7.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); }
ul { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--secondary); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary); color: var(--text-on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--text-on-dark-muted); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.section--dark .section-head p { color: var(--text-on-dark-muted); }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--white); --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 600 .95rem/1.2 var(--font-sans); letter-spacing: .02em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); --btn-bg: var(--secondary); --btn-fg: var(--primary); --btn-bd: var(--secondary); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--primary); --btn-bd: var(--border-strong); }
.btn--outline:hover { --btn-bg: var(--secondary); --btn-fg: var(--primary); --btn-bd: var(--secondary); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--primary); --btn-bd: var(--white); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: var(--border-on-dark); }
.btn--outline-light:hover { --btn-bg: var(--secondary); --btn-fg: var(--primary); --btn-bd: var(--secondary); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) { .btn-row--stack .btn { width: 100%; } }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================================
   Silver rate bar (top of every page)
   ========================================================================= */
.rate-bar {
  background: var(--secondary);
  color: var(--primary);
  font-size: .78rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--border-strong);
}
.rate-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "title updated" "rates rates";
  align-items: center;
  column-gap: 12px; row-gap: 2px;
  padding-top: 7px; padding-bottom: 7px;
  min-height: 46px;
}
.rb-title {
  grid-area: title;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem;
  color: var(--primary);
  white-space: nowrap;
}
.rb-updated {
  grid-area: updated; justify-self: end; text-align: right;
  font-size: .7rem; color: var(--primary);
  min-width: 0; max-width: 100%;
}
.rb-rates { grid-area: rates; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; min-width: 0; }
.rb-item { white-space: nowrap; }
.rb-item strong { font-weight: 700; font-size: .9rem; color: var(--primary); margin-left: 2px; }
.rb-sep { color: var(--primary); }
.rb-msg { grid-area: rates; min-width: 0; }
.rb-msg a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.rb-badge {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px;
  border: 1px solid var(--border-strong); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 419px) { .rb-today { display: none; } }
.rb-skeleton { grid-area: rates; display: flex; gap: 10px; align-items: center; }

@media (min-width: 900px) {
  .rate-bar { font-size: .85rem; }
  .rate-bar__inner {
    display: flex; justify-content: center; flex-wrap: nowrap; gap: 18px; min-height: 40px;
  }
  .rb-title { font-size: .72rem; }
  .rb-rates { flex-wrap: nowrap; column-gap: 14px; }
  .rb-updated { font-size: .78rem; max-width: none; }
  .rb-updated::before { content: "|"; margin-right: 14px; }
  .rb-msg { text-align: center; }
}

/* Skeleton shimmer (respects reduced motion further below) */
.skeleton {
  display: inline-block; height: .9em; width: 90px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), .08) 0%, rgba(var(--primary-rgb), .18) 50%, rgba(var(--primary-rgb), .08) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton--light {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), .06) 0%, rgba(var(--primary-rgb), .13) 50%, rgba(var(--primary-rgb), .06) 100%);
  background-size: 200% 100%;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* =========================================================================
   Header & navigation
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  color: var(--white);
  border-bottom: 1px solid var(--border-on-dark);
  transition: box-shadow .25s;
}
/* Decorative wave texture (images/wave-pattern.svg) behind the footer
   content, via z-index:-1 inside the footer stacking context. */
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none;
  background: url("../images/wave-pattern.svg") center / max(100%, 1200px) 100% no-repeat;
  opacity: var(--wave-opacity);
}
.site-header :focus-visible { outline-color: var(--secondary); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; padding: 4px 8px; background: var(--white); border-radius: 8px; }
.brand img { height: 50px; width: auto; }
/* The logo file has a white background; multiply blends it into the cream tile */
.brand img, .footer__logo img { mix-blend-mode: multiply; }
@media (min-width: 768px) { .brand img { height: 62px; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 46px; height: 46px; padding: 0; margin-right: -6px;
  background: transparent; border: 1px solid var(--border-on-dark); border-radius: 10px; cursor: pointer; color: var(--white);
}
.nav-toggle__bar { display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); color: var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.site-nav.is-open { display: block; animation: navIn .22s var(--ease); }
.site-nav.is-open :focus-visible { outline-color: var(--primary); }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a:not(.btn) {
  display: block; padding: 14px 4px; text-decoration: none; font-weight: 500; font-size: 1.02rem;
  border-bottom: 1px solid var(--border);
}
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 10px; vertical-align: middle; }
.nav-cta { margin-top: 16px; width: 100%; }

/* No JS: show the menu inline so it is still usable */
html:not(.js) .site-nav { position: static; display: block; box-shadow: none; border: 0; padding: 0; background: transparent; color: var(--white); }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header__inner { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
html:not(.js) .site-nav a:not(.btn) { border: 0; padding: 6px 0; }
html:not(.js) .nav-cta { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex !important; align-items: center; gap: 28px;
    padding: 0; background: none; border: 0; box-shadow: none; animation: none; color: var(--white);
  }
  .site-nav ul { flex-direction: row; gap: 6px; }
  .site-nav a:not(.btn) {
    position: relative; padding: 8px 14px; border: 0; font-size: .95rem; letter-spacing: .01em;
  }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
    background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"]::before { display: none; }
  .nav-cta { margin: 0; width: auto; --btn-bg: var(--white); --btn-fg: var(--primary); --btn-bd: var(--white); }
  .nav-cta:hover { --btn-bg: var(--secondary); --btn-fg: var(--primary); --btn-bd: var(--secondary); }
}

/* =========================================================================
   Image placeholders — swap each for a real <img> (see README)
   ========================================================================= */
.placeholder {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 4 / 3; width: 100%;
  background-color: var(--bg-alt);
  background-image:
    repeating-linear-gradient(45deg, rgba(var(--primary-rgb), .035) 0 1px, transparent 1px 14px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center; padding: 16px;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
}
.placeholder svg { width: 34px; height: 34px; }
.placeholder--portrait { aspect-ratio: 4 / 5; }
.media-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* =========================================================================
   Home — hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--text-on-dark);
  padding: 72px 0 80px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--secondary-rgb), .10), transparent 70%),
    repeating-linear-gradient(115deg, rgba(var(--secondary-rgb), .025) 0 1px, transparent 1px 22px);
}
.hero::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(var(--secondary-rgb), .12); border-radius: 18px;
}
.hero .container { position: relative; z-index: 1; }
.hero__since {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-on-dark-muted); margin-bottom: 22px;
}
.hero__since::before, .hero__since::after { content: ""; width: 36px; height: 1px; background: currentColor; }
@media (max-width: 479px) { .hero__since { letter-spacing: .16em; font-size: .68rem; } .hero__since::before, .hero__since::after { width: 18px; } }
.hero h1 { color: var(--white); max-width: 15ch; margin: 0 auto 18px; font-weight: 500; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero__sub { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--text-on-dark-muted); max-width: 40ch; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
@media (min-width: 768px) { .hero { padding: 120px 0 128px; } .hero::after { inset: 24px; } }

/* ---------- Stats strip ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 6px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__num {
  display: block; font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 3.4rem); line-height: 1; margin-bottom: 8px;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__label { font-size: clamp(.7rem, 2.6vw, .9rem); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
@media (min-width: 768px) { .stat { padding: 44px 16px; } }

/* ---------- Rate card (Home) ---------- */
.rate-card {
  max-width: 860px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.rate-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--border); border-radius: 14px; pointer-events: none;
}
.rate-card h2 { margin-bottom: 6px; }
.rate-card__grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 26px 0 18px; }
.rate-tile {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px;
}
.rate-tile__label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.rate-tile__value {
  font-family: var(--font-serif); font-weight: 600; line-height: 1; margin: 0;
  font-size: clamp(2.6rem, 11vw, 3.75rem); font-variant-numeric: lining-nums tabular-nums;
}
.rate-tile__value small { font-family: var(--font-sans); font-size: .95rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.rate-card__updated { font-size: .9rem; color: var(--text-muted); margin: 0 0 6px; }
.rate-card__updated strong { color: var(--text); }
.rate-card__status {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); margin: 0 0 8px;
}
.rate-card__note { font-size: .82rem; color: var(--text-muted); margin: 10px 0 0; font-style: italic; }
.rate-card__fallback { margin: 26px 0 18px; padding: 26px 16px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.rate-card__fallback p { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; }
.rate-card .skeleton--light { height: 3rem; width: 70%; margin: 6px auto 0; display: block; }
@media (min-width: 640px) {
  .rate-card { padding: 44px 40px; }
  .rate-card__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* ---------- Silver price chart: last 5 years (Home) ---------- */
.trend { max-width: 980px; margin: 0 auto; }
.trend__sub { font-size: .9rem; color: var(--text-muted); margin: 0 0 22px; }
.trend__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; }
.trend__stat {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.trend__stat strong {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.15rem, 4.2vw, 1.7rem); line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.trend__stat span { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.trend__plot { position: relative; min-height: 230px; text-align: left; }
.trend__fallback { margin: 0; padding: 90px 8px; text-align: center; font-size: .9rem; }
.trend__svg { display: block; overflow: visible; touch-action: pan-y; border-radius: 6px; }
.trend__svg:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.trend__grid { stroke: rgba(var(--primary-rgb), .12); stroke-width: 1; }
.trend__axis { stroke: rgba(var(--primary-rgb), .35); stroke-width: 1; }
.trend__tick { fill: var(--primary); font: 500 11px var(--font-sans); }
.trend__area { fill: rgba(var(--primary-rgb), .10); stroke: none; }
.trend__line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend__dot { fill: var(--primary); stroke: var(--white); stroke-width: 2; }
.trend__label { fill: var(--primary); font: 700 12px var(--font-sans); paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.trend__cross { stroke: rgba(var(--primary-rgb), .45); stroke-width: 1; }
.trend__hit { fill: transparent; cursor: crosshair; }
.trend__tip {
  position: absolute; pointer-events: none; z-index: 2;
  background: var(--primary); color: var(--white); border-radius: 8px; padding: 6px 10px;
  box-shadow: var(--shadow-md); white-space: nowrap; text-align: center; line-height: 1.25;
}
.trend__tip strong { display: block; font-size: .95rem; }
.trend__tip span { font-size: .72rem; }
.trend__source { font-size: .78rem; color: var(--text-muted); margin: 18px auto 0; max-width: 62ch; }
.trend__source a { color: var(--primary); font-weight: 600; }
.trend__table { margin-top: 14px; font-size: .88rem; }
.trend__table summary { cursor: pointer; font-weight: 600; display: inline-block; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }
.trend__table-scroll { max-height: 320px; overflow: auto; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.trend__table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.trend__table th, .trend__table td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--border); }
.trend__table th:first-child, .trend__table td:first-child { text-align: left; }
.trend__table thead th { position: sticky; top: 0; background: var(--bg-alt); }

/* ---------- Feature cards (Why choose) ---------- */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px 26px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature__num { font-variant-numeric: lining-nums;
  display: block; font-family: var(--font-serif); font-size: 2.6rem; font-weight: 500; line-height: 1;
  color: var(--primary); margin-bottom: 18px;
}
.feature h3 { font-size: 1.45rem; margin-bottom: 10px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.feature::after { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; background: var(--primary); }

/* ---------- Showroom cards ---------- */
.showrooms { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .showrooms { grid-template-columns: 1fr 1fr; gap: 28px; } }
.showroom {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  padding: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.showroom__body { padding: 20px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.showroom__city { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.showroom h3 { margin-bottom: 12px; }
.address { display: flex; gap: 10px; color: var(--text-muted); font-style: normal; margin-bottom: 20px; flex: 1; }
.address .icon { margin-top: 3px; color: var(--primary); }
.showroom .btn-row .btn { flex: 1 1 160px; }

/* ---------- Contact block (Home bottom + Contact page) ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; } }
.contact-list { display: grid; gap: 12px; margin: 24px 0; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
  min-width: 0;
}
.contact-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.contact-item__icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; background: var(--primary); color: var(--secondary);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__text { display: flex; flex-direction: column; min-width: 0; }
.contact-item__label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.contact-item__value { font-weight: 600; overflow-wrap: anywhere; }
.contact-item__value--email { text-transform: lowercase; }

.map-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  background: var(--bg-alt); aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .map-frame { aspect-ratio: 16 / 11; } }
.map-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); margin-bottom: 14px; }
.map-tab {
  font: 600 .85rem/1 var(--font-sans); padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--primary); min-height: 38px;
}
.map-tab[aria-pressed="true"] { background: var(--primary); color: var(--white); }

/* =========================================================================
   Inner page hero
   ========================================================================= */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--text-on-dark);
  padding: 64px 0 60px; text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(var(--secondary-rgb), .09), transparent 70%),
    repeating-linear-gradient(115deg, rgba(var(--secondary-rgb), .025) 0 1px, transparent 1px 22px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-weight: 500; margin-bottom: 12px; font-size: clamp(2.3rem, 7vw, 3.75rem); }
.page-hero p { color: var(--text-on-dark-muted); font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 46ch; margin: 0 auto; }
.breadcrumb { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
@media (min-width: 768px) { .page-hero { padding: 96px 0 88px; } }

/* =========================================================================
   About
   ========================================================================= */
.heritage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 600px; margin: 0 auto 44px;
}
.heritage__item {
  margin: 0; padding: 8px 8px 0;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.heritage__item img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}
.heritage__item figcaption {
  padding: 12px 4px 14px; text-align: center;
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.05rem, 3.6vw, 1.35rem); line-height: 1.2;
}
@media (min-width: 768px) {
  .heritage { gap: 32px; margin-bottom: 64px; }
  .heritage__item { padding: 12px 12px 0; }
}

.story { max-width: 760px; margin: 0 auto; }
.story p { font-size: 1.08rem; line-height: 1.85; color: var(--text); }
.story p:first-of-type::first-letter {
  float: left; font-family: var(--font-serif); font-size: 4.2rem; line-height: .8; font-weight: 600;
  padding: 8px 12px 0 0;
}
.legacy-line {
  margin: 48px auto 0; max-width: 820px; text-align: center;
  font-family: var(--font-serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.6rem, 4.6vw, 2.5rem); line-height: 1.3;
  padding: 32px 8px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
}

.timeline { position: relative; display: grid; gap: 0; max-width: 980px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--border-on-dark);
}
.timeline__item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 16px 0; }
.timeline__dot { font-variant-numeric: lining-nums;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); border: 1px solid var(--border-on-dark); color: var(--white);
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; position: relative; z-index: 1;
}
.timeline__item h3 { color: var(--white); margin: 6px 0 6px; }
.timeline__item p { color: var(--text-on-dark-muted); margin: 0; }
.timeline__year { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-on-dark-muted); font-weight: 600; }
@media (min-width: 768px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .timeline::before { left: 16.66%; right: 16.66%; top: 32px; bottom: auto; width: auto; height: 1px; }
  .timeline__item { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 0; }
  .timeline__dot { width: 64px; height: 64px; font-size: 1.3rem; }
}

.leader { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.leader + .leader { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--border); }
.leader__media { max-width: 360px; width: 100%; margin: 0 auto; }
.leader__photo {
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border: 8px solid var(--bg-alt); outline: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.leader__role { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 20px; }
.leader__quote { position: relative; padding-left: 0; }
.leader__quote p { font-size: 1.05rem; line-height: 1.85; }
.leader__quote::before {
  content: "\201C"; display: block; font-family: var(--font-serif); font-size: 5rem; line-height: .6;
  color: var(--primary); margin-bottom: 8px;
}
.leader__sign { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; font-weight: 600; margin: 8px 0 0; }
@media (min-width: 900px) {
  .leader { grid-template-columns: 340px 1fr; gap: 64px; }
  .leader--reverse { grid-template-columns: 1fr 340px; }
  .leader--reverse .leader__media { order: 2; }
  .leader__media { margin: 0; }
}

/* =========================================================================
   FAQ accordion
   ========================================================================= */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border-strong); }
.faq__item { border-bottom: 1px solid var(--border-strong); }
.faq__q { margin: 0; font-family: var(--font-sans); font-size: 1rem; }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 1.05rem/1.4 var(--font-sans); color: var(--primary);
}
.faq__btn:hover .faq__icon { background: var(--secondary); border-color: var(--primary); }
.faq__btn:hover .faq__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.faq__n { font-variant-numeric: lining-nums; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--primary); min-width: 2ch; }
.faq__title { flex: 1; }
.faq__icon {
  position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%;
  border: 1px solid var(--border-strong); transition: background-color .25s, transform .3s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--primary);
  transform: translate(-50%, -50%); transition: transform .3s var(--ease), background-color .25s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon { background: var(--primary); }
.faq__btn[aria-expanded="true"] .faq__icon::before { background: var(--white); }
.faq__btn[aria-expanded="true"] .faq__icon::after { background: var(--white); transform: translate(-50%, -50%) rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 1fr; }
.faq__inner { overflow: hidden; }
.faq__inner p { padding: 0 4px 24px calc(2ch + 20px); margin: 0; color: var(--text-muted); }
.js .faq__panel { grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.js .faq__panel .faq__inner { visibility: hidden; transition: visibility 0s .35s; }
.js .faq__panel.is-open { grid-template-rows: 1fr; }
.js .faq__panel.is-open .faq__inner { visibility: visible; transition: visibility 0s 0s; }
@media (max-width: 479px) { .faq__inner p { padding-left: 4px; } }

/* =========================================================================
   CTA strip
   ========================================================================= */
.cta-strip { background: var(--primary); color: var(--text-on-dark); text-align: center; padding: 64px 0; position: relative; overflow: hidden; }
.cta-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(var(--secondary-rgb), .025) 0 1px, transparent 1px 22px);
}
.cta-strip .container { position: relative; }
.cta-strip h2 { color: var(--white); font-weight: 500; }
.cta-strip p { color: var(--text-on-dark-muted); max-width: 52ch; margin: 0 auto 28px; }
@media (min-width: 768px) { .cta-strip { padding: 88px 0; } }

/* =========================================================================
   Contact page
   ========================================================================= */
.store { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
.store + .store { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
@media (min-width: 900px) {
  .store { grid-template-columns: 5fr 7fr; gap: 48px; }
  .store--reverse { grid-template-columns: 7fr 5fr; }
  .store--reverse .store__info { order: 2; }
}
.channels { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .channels { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.channel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 26px 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; min-width: 0;
}
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.channel .contact-item__icon { margin-bottom: 10px; width: 48px; height: 48px; }
.channel h3 { font-size: 1.4rem; margin: 0; }
.channel > span:not(.contact-item__icon) { color: var(--text-muted); overflow-wrap: anywhere; }
.channel__cta { margin-top: 8px; font-weight: 600; color: var(--primary) !important; text-decoration: underline; text-underline-offset: 4px; }
.call-line { text-align: center; margin: 22px 0 0; color: var(--text-muted); }
.call-line a { font-weight: 600; color: var(--primary); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { position: relative; isolation: isolate; background: var(--primary); color: var(--text-on-dark-muted); padding: 56px 0 0; font-size: .95rem; }
.site-footer::before { top: 0; height: 240px; transform: scaleY(-1); } /* waves hang from the top edge */
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr .8fr 1.1fr 1.5fr; gap: 40px; } }
.footer__logo { display: inline-block; background: var(--white); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.footer__logo img { height: 84px; width: auto; }
.footer__tagline { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; color: var(--white); margin: 0; line-height: 1.4; }
.footer__heading { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin: 0 0 16px; }
.footer__links li + li { margin-top: 8px; }
.footer__links a, .footer__contact a { text-decoration: none; color: var(--text-on-dark-muted); transition: color .2s; }
.footer__links a:hover, .footer__contact a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.footer__contact li + li { margin-top: 10px; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--secondary); }
.footer__contact a { overflow-wrap: anywhere; }
.footer__email { text-transform: lowercase; }
.footer__address { font-style: normal; }
.footer__address + .footer__address { margin-top: 14px; }
.footer__address strong { display: block; color: var(--white); font-weight: 600; }
.footer__bottom { border-top: 1px solid var(--border-on-dark); padding: 20px 0 96px; font-size: .82rem; text-align: center; }
@media (min-width: 768px) { .footer__bottom { padding-bottom: 24px; } }

/* =========================================================================
   Floating WhatsApp button
   ========================================================================= */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; min-width: 58px; padding: 0 16px; justify-content: center;
  background: var(--primary); color: var(--white);
  border: 2px solid var(--secondary); border-radius: 999px;
  box-shadow: var(--shadow-lg);
  text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .2s, color .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); background: var(--secondary); color: var(--primary); border-color: var(--primary); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float__label { display: none; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; padding: 0 22px 0 18px; } .wa-float__label { display: inline; } }

/* =========================================================================
   Scroll reveal (only hides content when JS is running and motion is OK)
   ========================================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .skeleton { animation: none; }
}
