/* ==========================================================================
   Judphilan Foods Corporation — Design System
   Brand palette sampled from the corporate logo.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Brand */
  --crimson:        #A01623;
  --crimson-dark:   #7A0F1A;
  --crimson-deep:   #5A0B13;
  --crimson-tint:   #F3E2E2;
  --gold:           #C9A24D;
  --gold-light:     #E3C98E;
  --gold-deep:      #876427;

  /* Neutrals (warm) */
  --cream:          #F9F5EC;
  --cream-2:        #F2EADA;
  --ink:            #17120F;
  --ink-2:          #241C18;
  --ink-3:          #382C26;
  --paper:          #FFFFFF;
  --body:           #4A403A;
  --body-soft:      #6B5F57;
  --rule:           #E4DACA;
  --rule-dark:      rgba(227, 201, 142, .18);

  /* Semantic */
  --bg:             var(--cream);
  --fg:             var(--ink);
  --accent:         var(--crimson);
  --on-accent:      #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --gutter: 1.5rem;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(23,18,15,.06), 0 2px 8px rgba(23,18,15,.05);
  --shadow-2: 0 4px 12px rgba(23,18,15,.08), 0 12px 32px rgba(23,18,15,.08);
  --shadow-3: 0 12px 28px rgba(23,18,15,.12), 0 32px 64px rgba(23,18,15,.12);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .28s;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 var(--s-4); max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }

::selection { background: var(--crimson); color: #fff; }

/* --- Utilities ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--crimson); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

/* Surfaces */
.surface-ink   { background: var(--ink);   color: #D9CFC6; }
.surface-ink-2 { background: var(--ink-2); color: #D9CFC6; }
.surface-cream { background: var(--cream); }
.surface-paper { background: var(--paper); }
.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4,
.surface-ink-2 h1, .surface-ink-2 h2, .surface-ink-2 h3, .surface-ink-2 h4 { color: var(--cream); }

/* --- Eyebrow + ornament -------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-deep);
  margin: 0 0 var(--s-4);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold); flex: none;
}
.on-dark .eyebrow, .surface-ink .eyebrow, .surface-ink-2 .eyebrow { color: var(--gold-light); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { content: ''; width: 28px; height: 1px; background: var(--gold); flex: none; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--body-soft); margin-bottom: 0; }
.section-head.center p { margin-inline: auto; }
.surface-ink .section-head p, .surface-ink-2 .section-head p { color: #B3A79D; }

/* Gold rule ornament */
.ornament { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0 0 var(--s-5); }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament span { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .875rem 1.75rem;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600;
  letter-spacing: .02em; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn-primary { background: var(--crimson); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--crimson-dark); box-shadow: var(--shadow-2); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--crimson); color: var(--crimson); background: rgba(160,22,35,.04); }

.btn-ghost-light { border-color: rgba(249,245,236,.4); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(255,255,255,.1); }

.btn-lg { min-height: 54px; padding: 1rem 2.25rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9375rem; letter-spacing: .02em;
  color: var(--crimson); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow, .surface-ink .link-arrow { color: var(--gold-light); }

/* --- Header -------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: #B3A79D;
  font-size: .8125rem; letter-spacing: .01em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 40px; }
.topbar-list { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-list svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar-tag { color: var(--gold-light); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; }
@media (max-width: 860px) { .topbar-list.secondary { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 84px; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 218px; height: auto; }
@media (max-width: 1040px) { .brand img { width: 186px; } }
@media (max-width: 560px)  { .brand img { width: 158px; } }

.primary-nav ul { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: block; padding: .5rem 0;
  font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-3); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--crimson); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav a:hover { color: var(--crimson); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--crimson); }
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: transparent;
  border: 1.5px solid var(--rule); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-2);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height var(--dur) var(--ease), visibility var(--dur);
  }
  .primary-nav.is-open { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--gutter) var(--s-5); }
  .primary-nav li + li { border-top: 1px solid var(--rule); }
  .primary-nav a { padding: 1rem 0; font-size: 1.0625rem; }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta { margin-top: var(--s-4); }
  .primary-nav .nav-cta .btn { display: inline-flex; width: 100%; }
}
@media (min-width: 1041px) { .primary-nav .nav-cta { display: none; } }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,6,5,.96) 0%, rgba(10,6,5,.92) 42%, rgba(10,6,5,.62) 68%, rgba(10,6,5,.34) 100%),
    linear-gradient(180deg, rgba(10,6,5,.55) 0%, transparent 30%, rgba(10,6,5,.5) 100%);
}
.hero-inner { padding-block: clamp(4.5rem, 11vw, 9rem); max-width: 47rem; }
.hero h1 { max-width: 14ch; }
.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lede { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: #E4DACF; max-width: 37rem; margin-bottom: var(--s-6); }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(227,201,142,.25);
  list-style: none; padding-inline: 0;
}
.hero-proof li { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 500; color: #CFC4BA; }
.hero-proof svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* --- Stat band ----------------------------------------------------------- */
.statband { background: var(--crimson); color: #fff; }
.statband-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(2.25rem, 4vw, 3rem);
}
.statband-item { padding-inline: var(--s-5); text-align: center; }
.statband-item + .statband-item { border-left: 1px solid rgba(255,255,255,.18); }
.statband-value {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; color: var(--gold-light);
  margin-bottom: .5rem; font-variant-numeric: tabular-nums;
}
.statband-label { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.88); }
@media (max-width: 760px) {
  .statband-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) 0; }
  .statband-item:nth-child(odd) { border-left: 0; }
  .statband-item:nth-child(-n+2) { padding-bottom: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.18); }
}
/* The uppercase labels need the full width on very small handsets. */
@media (max-width: 420px) {
  .statband-grid { grid-template-columns: 1fr; }
  .statband-item { border-left: 0; padding-inline: var(--s-4); }
  .statband-item:nth-child(-n+3) { padding-bottom: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.18); }
  .statband-item + .statband-item { padding-top: var(--s-5); }
  .statband-label { letter-spacing: .1em; }
}

/* --- Product cards ------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
@media (max-width: 1040px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: var(--s-5);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-2); color: #fff; text-decoration: none; isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
@media (prefers-reduced-motion: reduce) { .product-card:hover { transform: none; } }
.product-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover img { transform: scale(1.06); }
.product-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,8,7,.22) 0%, rgba(12,8,7,.68) 50%, rgba(12,8,7,.95) 100%);
}
.product-card h3 { color: #fff; margin-bottom: .5rem; font-size: 1.5rem; }
.product-card p { color: #C9BEB4; font-size: .9375rem; margin-bottom: var(--s-4); }
.product-card .link-arrow { color: var(--gold-light); }
.product-card-tag {
  align-self: flex-start; margin-bottom: auto;
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: .3rem .6rem; border-radius: 3px;
}

/* --- Feature list (capabilities) ---------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split-media.wide img { aspect-ratio: 5/4; }
.split-media::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg); border: 1px solid rgba(227,201,142,.35);
  pointer-events: none;
}
.split-badge {
  position: absolute; left: -1.25rem; bottom: 2rem;
  background: var(--crimson); color: #fff; padding: 1.25rem 1.5rem;
  border-radius: var(--radius); box-shadow: var(--shadow-3); max-width: 17rem;
}
.split-badge strong { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--gold-light); line-height: 1; }
.split-badge span { display: block; margin-top: .4rem; font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .split-badge { left: 0; bottom: -1rem; } }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.feature-item { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(201,162,77,.14); border: 1px solid rgba(201,162,77,.32);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--gold); }
.feature-item h3 {
  margin: 0 0 .35rem; color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0;
}
.surface-ink .feature-item h3, .surface-ink-2 .feature-item h3 { color: var(--cream); }
.feature-item p { margin: 0; font-size: .9375rem; color: var(--body-soft); }
.surface-ink .feature-item p, .surface-ink-2 .feature-item p { color: #A89C93; }

/* --- Checklist ----------------------------------------------------------- */
.checklist { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; font-size: .9375rem; }
.checklist svg { width: 22px; height: 22px; color: var(--crimson); margin-top: 1px; }
.surface-ink .checklist svg { color: var(--gold); }

/* --- Credential plates --------------------------------------------------- */
.plate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 900px) { .plate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .plate-grid { grid-template-columns: 1fr; } }
.plate-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .plate-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plate-grid.cols-3 { grid-template-columns: 1fr; } }
.plate {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-5) var(--s-4); text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: var(--s-3);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plate .plate-name { margin-top: auto; }
.plate:hover { border-color: var(--gold); box-shadow: var(--shadow-1); }
.plate-logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 76px; margin-bottom: var(--s-1);
}
.plate-logo img {
  max-height: 76px; max-width: 100%; width: auto; height: auto;
  object-fit: contain;
}
/* Marks supplied on a solid dark ground get a hairline so they read as a
   logo tile rather than a dark blob on the white plate. */
.plate-logo img.on-dark-ground { border-radius: 3px; box-shadow: 0 0 0 1px rgba(23,18,15,.1); }
.plate-name { font-weight: 700; color: var(--ink); font-size: .9375rem; line-height: 1.35; }
.plate-kind { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--body-soft); font-weight: 600; }

/* --- Branch / network cards ---------------------------------------------- */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 960px) { .branch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .branch-grid { grid-template-columns: 1fr; } }
.branch {
  background: rgba(255,255,255,.035); border: 1px solid var(--rule-dark);
  border-radius: var(--radius); padding: var(--s-5);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.branch:hover { border-color: rgba(227,201,142,.5); background: rgba(255,255,255,.06); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .branch:hover { transform: none; } }
.branch.is-hq { background: linear-gradient(150deg, rgba(160,22,35,.5), rgba(90,11,19,.35)); border-color: rgba(227,201,142,.45); }
.branch-city {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--cream);
  margin-bottom: .75rem;
}
.branch-city svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.branch-tag {
  display: inline-block; margin-bottom: .75rem;
  font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: .25rem .5rem; border-radius: 3px;
}
.branch address { font-style: normal; font-size: .875rem; line-height: 1.6; color: #A89C93; margin-bottom: .875rem; }
.branch-tel { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 600; color: var(--gold-light); text-decoration: none; }
.branch-tel svg { width: 15px; height: 15px; }
.branch-tel:hover { text-decoration: underline; }

/* --- CTA band ------------------------------------------------------------ */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); text-align: center; }
.cta-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,8,7,.9), rgba(12,8,7,.82));
}
.cta-band .container { padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta-band h2 { color: #fff; margin-inline: auto; max-width: 20ch; }
.cta-band p { color: #CFC4BA; margin-inline: auto; max-width: 52ch; font-size: 1.0625rem; }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-6); }

/* --- Forms --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--crimson); }
.field .hint { font-size: .8125rem; color: var(--body-soft); }
.field input, .field select, .field textarea {
  min-height: 50px; padding: .75rem 1rem;
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius);
  color: var(--ink); font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CFC2AC; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(160,22,35,.14);
}
.form-note { font-size: .875rem; color: var(--body-soft); }
.form-status {
  display: none; margin-top: var(--s-4); padding: var(--s-4);
  border-radius: var(--radius); border: 1.5px solid var(--gold);
  background: rgba(201,162,77,.12); font-size: .9375rem; color: var(--ink);
}
.form-status.is-visible { display: block; }

/* --- Contact cards ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--crimson);
  border-radius: var(--radius); padding: var(--s-5);
}
.contact-card h3 {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0;
}
.contact-card h3 svg { width: 18px; height: 18px; color: var(--crimson); flex: none; }
.contact-card p, .contact-card address { font-size: .9375rem; font-style: normal; margin: 0; color: var(--body); line-height: 1.65; }
.contact-card a { font-weight: 600; }

/* --- Page hero (inner pages) -------------------------------------------- */
.page-hero { position: relative; background: var(--ink); isolation: isolate; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(12,8,7,.95) 10%, rgba(12,8,7,.78) 55%, rgba(12,8,7,.55) 100%);
}
.page-hero .container { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.page-hero h1 { color: #fff; max-width: 20ch; margin-bottom: var(--s-4); }
.page-hero p { color: #CFC4BA; max-width: 56ch; font-size: 1.0625rem; margin-bottom: 0; }

.breadcrumb { margin-bottom: var(--s-5); font-size: .8125rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: #B3A79D; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--gold-light); font-weight: 600; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: rgba(227,201,142,.5); }

/* --- Prose --------------------------------------------------------------- */
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: .5rem; }

.pullquote {
  margin: var(--s-6) 0; padding: var(--s-5) var(--s-6);
  border-left: 3px solid var(--gold); background: var(--cream-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pullquote p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--ink); margin: 0; }

/* Mission / vision duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }
.duo-card {
  position: relative; padding: clamp(2rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--rule);
  overflow: hidden;
}
.duo-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--crimson), var(--gold)); }
.duo-card h3 { font-size: 1.375rem; margin-bottom: var(--s-3); }
.duo-card p { margin-bottom: 0; color: var(--body); }
.duo-mark { width: 40px; height: 40px; color: var(--crimson); margin-bottom: var(--s-4); }

/* --- Product detail rows -------------------------------------------------- */
.prod-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.prod-row + .prod-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
@media (max-width: 900px) { .prod-row { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .prod-row.reverse .prod-media { order: 2; } }
.prod-media img { border-radius: var(--radius-lg); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.prod-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.prod-tags li {
  font-size: .8125rem; font-weight: 600; color: var(--ink);
  background: var(--cream-2); border: 1px solid var(--rule);
  padding: .35rem .75rem; border-radius: 999px;
}
.surface-ink .prod-tags li { background: rgba(255,255,255,.06); border-color: var(--rule-dark); color: #D9CFC6; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #A89C93; padding-top: clamp(3.5rem, 6vw, 5rem); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s-6); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo {
  display: inline-block; background: var(--cream); padding: .75rem 1rem;
  border-radius: var(--radius); margin-bottom: var(--s-4);
}
.footer-logo img { width: 190px; }
.site-footer h3 {
  color: var(--cream); font-family: var(--font-body);
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.site-footer a { color: #A89C93; text-decoration: none; transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: var(--s-5);
  border-top: 1px solid rgba(227,201,142,.16);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-size: .8125rem; color: #8A7E75;
}
.footer-seal { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-light); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .6875rem; }
.footer-seal svg { width: 16px; height: 16px; }

/* --- Scroll reveal -------------------------------------------------------
   Content is visible by default. Only when the inline head script has
   confirmed scripting is alive do we hide it for the entrance animation,
   so a failed or blocked main.js can never leave the page blank. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--gold); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--gold); margin-bottom: .75rem; line-height: 1;
}
.step h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.step p { margin: 0; font-size: .9375rem; }
.surface-ink .step p, .surface-ink-2 .step p { color: #A89C93; }

/* --- Region groups on the distribution page ------------------------------ */
.region + .region { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.region-head {
  display: flex; align-items: baseline; gap: var(--s-4);
  margin-bottom: var(--s-5); padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-dark);
}
.region-head h3 { margin: 0; font-size: 1.5rem; color: var(--cream); }
.region-count { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* --- Target size ---------------------------------------------------------
   Standalone (non-prose) links get a 24px+ hit area with 8px between
   neighbours, per WCAG 2.2 target size and Material touch spacing. */
.topbar a { display: inline-block; padding-block: .3rem; }
.breadcrumb a, .breadcrumb li[aria-current] { display: inline-block; padding-block: .3rem; }
.site-footer ul { gap: .5rem; }
.site-footer ul a { display: inline-block; padding-block: .3rem; }
.branch-tel { padding-block: .3rem; }
.contact-card p a { display: inline-block; padding-block: .3rem; }
.site-footer address a { display: inline-block; padding-block: .3rem; }
