/* Base */
:root {
  --bg: #F6F2EA;
  --surface: #FFFFFF;
  --text: #14213D;
  --muted: #4D5870;
  --accent: #9A4F14;
  --accent-dark: #7C3E0F;
  --accent-text: #FFFFFF;
  --plate-bg: #14213D;
  --plate-text: #F6F2EA;
  --line: #D9CFBE;
  --band-alt: #EFE8DC;
  --stripe-a: #F6F2EA;
  --stripe-b: #EFE7D9;
  --font-head: Optima, Candara, 'Segoe UI', 'Noto Sans', sans-serif;
  --font-body: Georgia, Cambria, 'Times New Roman', serif;
  --radius-card: 8px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgb(20 33 61 / .06), 0 12px 32px rgb(20 33 61 / .08);
  --pad-x: clamp(16px, 4vw, 40px);
  --band-gap: clamp(64px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(115deg,
    var(--stripe-a) 0 96px,
    var(--stripe-b) 96px 192px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1vw + 0.8rem, 1.5rem); }

p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.u-text { color: var(--muted); }
.u-text p, .u-text li { color: var(--muted); }
.u-text h2, .u-text h3 { color: var(--text); }

.u-jump {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  z-index: 100;
}
.u-jump:focus { left: 8px; top: 8px; }

.u-em {
  display: block;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: clamp(1.9rem, 3.4vw + 0.8rem, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* Layout */
.l-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.l-band {
  padding-top: var(--band-gap);
  padding-bottom: var(--band-gap);
  background-color: transparent;
}
.l-band:nth-of-type(even) { background-color: var(--band-alt); }

.l-band h2 { margin: 0 0 16px; }
.l-band h2 + .u-text { margin-bottom: 32px; }

.l-grid-2, .l-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.l-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.l-two-col img { border-radius: var(--radius-card); object-fit: cover; width: 100%; max-width: 560px; }

/* Header */
.c-note {
  margin: 12px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.c-note .u-em {
  display: inline;
  font-size: inherit;
  font-weight: 600;
  color: var(--accent-dark);
}

.c-topbar {
  position: relative;
  background-color: var(--surface);
}
.c-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 72px;
}
.c-topbar-rule {
  width: 100%;
  height: 4px;
  background-color: var(--accent);
}

.c-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.c-menu { margin-right: auto; }
.c-menu-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
  flex-direction: column;
  gap: 2px;
}
.c-menu-list.is-open { display: flex; }

.c-menu-toggle {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.c-menu-item {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
}
.c-menu-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: var(--accent);
  opacity: .14;
  transition: height .25s ease;
}
.c-menu-item:hover::before, .c-menu-item:focus-visible::before { height: 100%; }

.c-menu-item[aria-current="page"]::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--accent);
  animation: c-menu-dot .6s ease alternate infinite;
}
@keyframes c-menu-dot { from { transform: scale(1); } to { transform: scale(1.5); } }

/* Hero */
.l-band-hero {
  padding-bottom: 48px;
  text-align: center;
}
.l-band-hero .l-shell > * { margin-left: auto; margin-right: auto; }
.c-hero-line { margin-bottom: 12px; }
.c-hero-title { margin: 8px 0 20px; max-width: 22ch; }
.c-hero-lead { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }

html.is-ready .c-hero-line,
html.is-ready .c-hero-title,
html.is-ready .c-hero-lead {
  animation: c-hero-rise .6s ease both;
}
html.is-ready .c-hero-title { animation-delay: .12s; }
html.is-ready .c-hero-lead { animation-delay: .24s; }
@keyframes c-hero-rise { from { transform: translateY(8px); } to { transform: translateY(0); } }

.l-hero-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
.c-hero-wide, .c-hero-side {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}
.c-hero-wide { aspect-ratio: 16 / 9; }
.c-hero-side { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }

/* Plate */
.c-slab {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-soft);
}
.c-slab p,
.c-slab .u-text,
.c-slab .u-text p,
.c-slab .u-text li { color: var(--plate-text); }
.c-slab p { max-width: 68ch; margin: 0; }
.c-slab a { color: #E7C9A8; }

/* Cards */
.c-tile {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.c-tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(20 33 61 / .07), 0 18px 40px rgb(20 33 61 / .12); }
.c-tile h3 { margin: 0 0 8px; }
.c-tile p { margin: 0 0 8px; color: var(--muted); }
.c-tile-note {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-style: italic;
}

.c-tile-frame { border-radius: var(--radius-card); overflow: hidden; margin-bottom: 16px; }
.c-tile-img, .c-tile-zoom { width: 100%; object-fit: cover; transition: transform .4s ease; }
.c-tile-img { aspect-ratio: 4 / 3; }
.c-tile-zoom { aspect-ratio: 16 / 9; }
.c-tile:hover .c-tile-img, .c-tile:hover .c-tile-zoom,
.c-tile-compare:hover .c-tile-zoom { transform: scale(1.06); }

/* Tabs */
.l-tabs { margin-top: 8px; }
.c-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.c-tabs-tab {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.c-tabs-tab[aria-selected="true"] {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.c-tabs-panel {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-soft);
}
.c-tabs-panel h3 { margin-top: 0; }

/* FAQ */
.c-qa { display: grid; gap: 12px; }
.c-qa-item {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.c-qa-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 24px;
  cursor: pointer;
  list-style-position: inside;
}
.c-qa-item[open] summary { color: var(--accent-dark); }
.c-qa-item p { padding: 0 24px 18px; margin: 0; color: var(--muted); }

/* Buttons */
.c-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background-image: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
  background-color: var(--accent);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--accent-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-position .3s ease, background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.c-pill:hover {
  background-color: var(--accent-dark);
  background-image: linear-gradient(120deg, var(--accent-dark) 0%, var(--accent-dark) 100%);
  background-position: 100% 0%;
}
.c-pill:focus-visible {
  outline: 3px solid var(--plate-bg);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--stripe-b);
}
.c-pill:active { transform: scale(0.97); }

.c-pill-quiet {
  background: transparent;
  color: var(--accent-dark);
}
.c-pill-quiet:hover { background-color: var(--accent); color: var(--accent-text); }

/* Dock */
.c-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  z-index: 40;
}

/* Form */
.c-request {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
.c-field { display: grid; gap: 6px; }
.c-field-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
.c-field-box {
  font: inherit;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  min-height: 48px;
  width: 100%;
}
.c-field-box::placeholder { color: var(--muted); opacity: 1; }
.c-field-box:focus-visible { outline: 3px solid var(--plate-bg); outline-offset: 2px; }
.c-field-area { min-height: 120px; resize: vertical; }
.is-invalid .c-field-box, .c-field-box.is-invalid { border-color: var(--accent); border-width: 2px; }

.c-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.c-agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }

.c-request-note { font-size: 0.95rem; color: var(--muted); margin: 0; }

.c-request-send { justify-self: start; }
.c-request.is-busy .c-request-send { opacity: .7; pointer-events: none; }

/* Footer */
.c-foot {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  padding-top: 56px;
  padding-bottom: 24px;
  margin-top: var(--band-gap);
}
.c-foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.c-foot .c-brand { color: var(--plate-text); }
.c-foot address { font-style: normal; margin-top: 12px; }
.c-foot address p { color: var(--plate-text); font-size: 0.95rem; margin: 0 0 8px; opacity: .92; }
.c-foot-title {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--plate-text);
}
.c-foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-foot-links a { color: var(--plate-text); opacity: .92; text-decoration: none; }
.c-foot-links a:hover { opacity: 1; text-decoration: underline; }
.c-foot ul li span { display: inline-block; min-width: 72px; opacity: .75; }
.c-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.c-foot ul a { color: var(--plate-text); }
.c-foot-copy {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgb(246 242 234 / .2);
  font-size: 0.9rem;
  color: var(--plate-text);
  opacity: .85;
}

/* Inner pages */
.l-page-head { padding-bottom: 32px; }
.l-page-head h1 { margin: 0 0 16px; }
.l-page-head p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

.u-text h2 { margin-top: 2em; }
.u-text ul, .u-text ol { padding-left: 1.4em; color: var(--muted); }
.u-text table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.u-text th, .u-text td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.u-text th { font-family: var(--font-head); color: var(--text); }
.u-text tr:last-child td { border-bottom: 0; }

/* Reveal */
.u-fade { transition: opacity .6s ease, transform .6s ease; }
html.is-ready .u-fade:not(.is-in) { opacity: 0; transform: translateY(12px); }
html.is-ready .u-fade.is-in { opacity: 1; transform: translateY(0); }

/* Breakpoints */
@media (min-width: 480px) {
  .l-hero-media { grid-template-columns: 3fr 2fr; }
  .c-hero-side { max-width: none; }
  .c-dock { display: flex; }
}

@media (min-width: 640px) {
  .l-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .c-two-col, .l-two-col { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .c-menu-toggle { display: none; }
  .c-menu-list {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding: 0;
  }
  .c-foot-grid { grid-template-columns: repeat(2, 1fr); }
  .c-request { grid-template-columns: 1fr 1fr; }
  .c-request .c-field:nth-child(3), .c-request .c-field:last-of-type,
  .c-request > p, .c-request > .c-agree, .c-request > button { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .l-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .c-foot-grid { grid-template-columns: repeat(4, 1fr); }
  .l-band-hero .c-hero-lead { font-size: 1.15rem; }
}

@media (min-width: 1280px) {
  .l-shell { padding-left: 40px; padding-right: 40px; }
  .c-tabs-panel { padding: 40px; }
}

@media (max-height: 600px) {
  .l-band-hero { min-height: auto; }
  .c-hero-wide { aspect-ratio: 21 / 9; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-ready .u-fade:not(.is-in) { opacity: 1; transform: none; }
}

/* Slab contrast */
.c-slab :is(p, li, .u-text) { color: var(--plate-text); }
