/* ============================================================
   AVICO — Inner-page shared styles
   ============================================================ */

/* Page-hero — compact dark banner with breadcrumb + title */
.page-hero {
  position: relative;
  padding-top: 152px;        /* header (88) + breathing */
  padding-bottom: 96px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.38) saturate(0.85) blur(1px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Stronger scrim: opaque top + bottom, slightly clearer middle so the
     image still reads behind the title. Plus a left-side vignette so the
     headline column always has solid contrast even on busy photos. */
  background:
    linear-gradient(180deg, rgba(8,7,6,0.92) 0%, rgba(8,7,6,0.72) 35%, rgba(8,7,6,0.88) 100%),
    linear-gradient(90deg, rgba(8,7,6,0.55) 0%, rgba(8,7,6,0.0) 50%);
  z-index: -1;
}

/* --- Product hero: reduce zoom on near-square product photos -------------
   Product hero images are ~1.25:1 (almost square) but the shared .page-hero
   box is very wide/short (~2.9:1), so `cover` cropped ~half the image height
   and the product read as "zoomed in too tight". Make the product hero box
   taller (closer to the image ratio) so much more of the product is visible,
   and anchor the crop to the centre. Scoped to .product-hero so other inner
   page banners (About / Quality / etc.) keep their existing framing. */
.product-hero {
  padding-top: 188px;     /* header (88) + extra breathing for the taller box */
  padding-bottom: 132px;
  min-height: 660px;      /* taller box → far less of the photo is cropped */
}
.product-hero .page-hero-bg {
  background-position: center center;
}
@media (max-width: 768px) {
  .product-hero {
    padding-top: 148px;
    padding-bottom: 88px;
    min-height: 0;        /* let content set height on mobile (1-col stack) */
  }
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,0.88); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--red); opacity: 0.6; }
.breadcrumb .current { color: var(--red); }

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.page-title .red {
  color: var(--red);
  /* Red on dark image-bg loses contrast — pair red with shadow + glow. */
  text-shadow:
    0 2px 18px rgba(0,0,0,0.65),
    0 0 32px rgba(224,36,31,0.35);
}
.page-lede {
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  line-height: 1.65;
  max-width: 540px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

.page-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.page-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-meta-item:last-child { border-bottom: none; }
.page-meta-item .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.page-meta-item .v { color: #fff; font-weight: 600; text-align: right; }

/* Generic content section */
.content-section { padding: 100px 0; }
.content-section.dark {
  background:
    radial-gradient(900px 600px at 85% 15%, rgba(224,36,31,0.10), transparent 65%),
    radial-gradient(700px 600px at 0% 100%, rgba(255,255,255,0.04), transparent 70%),
    var(--dark);
  color: #fff;
  position: relative;
}
.content-section.dark::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.content-section.cream { background: var(--cream); }
.content-section.soft { background: var(--bg-soft); }

.section-eyebrow.dark { color: rgba(255,255,255,0.55); }

/* Two-up storytelling row (image + text) */
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 96px;
}
.story-row:last-child { margin-bottom: 0; }
.story-row.reverse > :first-child { order: 2; }
.story-img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-muted);
  background-size: cover;
  background-position: center;
  position: relative;
}
.story-img::after {
  content: attr(data-tag);
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 3px;
}
.story-text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.content-section.dark .story-text h3 { color: #fff; }
.story-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.content-section.dark .story-text p { color: rgba(255,255,255,0.75); }

/* Value cards (3 across) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.value-card:hover { border-color: var(--red); transform: translateY(-2px); }
.content-section.dark .value-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%),
    var(--dark-3);
  border-color: rgba(255,255,255,0.14);
  position: relative;
  overflow: hidden;
}
.content-section.dark .value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.content-section.dark .value-card:hover {
  border-color: rgba(224,36,31,0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(224,36,31,0.45);
}
.content-section.dark .value-card:hover::before { transform: scaleX(1); }
.content-section.dark .value-num { color: var(--red); }
.value-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 18px;
}
.value-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.content-section.dark .value-title { color: #fff; }
.value-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.content-section.dark .value-desc { color: rgba(255,255,255,0.85); }

/* Timeline */
.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.timeline-aside {
  position: sticky;
  top: 120px;
}
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--dark-line-2);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--dark);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 6px;
  font-weight: 600;
}
.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
  color: #fff;
}
.timeline-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 480px;
}

/* === Scrollytelling timeline (year ruler) === */
.scrolly-timeline { padding-top: 100px; padding-bottom: 120px; }
.scrolly-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.scrolly-desc {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.scrolly-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

/* Sticky left panel — image swap */
.scrolly-panel {
  position: sticky;
  top: 120px;
}
.scrolly-panel-year {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
}
.scrolly-panel-year .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 0.95;
  color: var(--red);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(224,36,31,0.35);
  transition: opacity .25s ease, transform .35s ease;
}
.scrolly-panel-year .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.scrolly-panel-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark-2);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.6);
}
.scrolly-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .55s ease, transform 1.2s ease;
  filter: brightness(0.78) saturate(0.92);
}
.scrolly-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Right column milestone blocks */
.scrolly-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.scrolly-step {
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.45;
  transition: opacity .35s ease, transform .35s ease;
  scroll-margin-top: 140px;
}
.scrolly-step:first-of-type { border-top: 0; padding-top: 0; }
.scrolly-step.is-active { opacity: 1; }
.scrolly-step-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--red);
  background: rgba(224,36,31,0.10);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.scrolly-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.18;
}
.scrolly-step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 540px;
}

/* Bottom year ruler — every year tick, milestone years highlighted */
.scrolly-ruler {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  position: relative;
  overflow-x: auto;
  scrollbar-width: thin;
}
.scrolly-ruler::-webkit-scrollbar { height: 4px; }
.scrolly-ruler::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.scrolly-tick {
  flex: 1 0 auto;
  min-width: 38px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.scrolly-tick .tick-line {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 8px;
  transition: background .25s ease, height .25s ease;
}
.scrolly-tick .tick-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  transition: color .25s ease, transform .25s ease;
}
.scrolly-tick.is-milestone {
  cursor: pointer;
}
.scrolly-tick.is-milestone .tick-line {
  height: 20px;
  background: var(--red);
}
.scrolly-tick.is-milestone .tick-label { color: rgba(255,255,255,0.65); font-weight: 600; }
.scrolly-tick.is-milestone:hover .tick-label { color: var(--red); }
.scrolly-tick.is-active .tick-line {
  height: 32px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(224,36,31,0.7);
}
.scrolly-tick.is-active .tick-label {
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 960px) {
  .scrolly-head { grid-template-columns: 1fr; gap: 24px; }
  .scrolly-layout { grid-template-columns: 1fr; gap: 48px; }
  .scrolly-panel { position: relative; top: 0; }
  .scrolly-panel-year .num { font-size: 56px; }
  .scrolly-step { padding: 36px 0; }
  .scrolly-tick { min-width: 30px; }
}
@media (max-width: 480px) {
  .scrolly-tick { min-width: 24px; }
  .scrolly-tick .tick-label { font-size: 9px; }
}

/* Spec table for products */
.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.spec-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.spec-table td:nth-child(2),
.spec-table td:last-child {
  white-space: normal;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-soft);
}
.spec-table tr:hover td { background: var(--bg-soft); }
.spec-table td .badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--red-tint);
  color: var(--red);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* News list */
.news-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.news-list > .news-card {
  flex: 0 0 calc((100% - 64px) / 3);
}
.news-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .2s var(--ease-out), border-color .2s;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--red); }
.news-card-img {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  background-size: cover;
  background-position: center;
}
.news-card-body { padding: 22px 24px 26px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.news-meta .cat { color: var(--red); font-weight: 600; }
.news-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}
.news-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}

/* Featured news (1 large + side list) */
.news-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 0;
}
.featured-card {
  display: block;
}
.featured-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 24px;
}
.featured-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.featured-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.featured-side .news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-bottom: 0;
  flex: 1 1 0;
}
.featured-side .news-card:last-child { border-bottom: none; }
.featured-side .news-card-img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 120px;
  border-radius: 4px;
}
.featured-side .news-card-body {
  padding: 0;
  align-self: center;
}
.featured-side .news-card h3 { font-size: 15px; }
.featured-side .news-card:hover { transform: none; }

/* Application detail rows */
.app-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.app-detail:last-child { border-bottom: none; }
.app-detail.reverse > :first-child { order: 2; }
.app-detail-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}
.app-detail h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--ink);
}
.app-detail p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.app-detail .bullet-list {
  list-style: none;
  margin: 0; padding: 0;
}
.app-detail .bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.app-detail .bullet-list li::before {
  content: "→";
  color: var(--red);
  font-weight: 700;
  margin-top: 0;
}
.app-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Contact: 2 cards + form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 20px;
}
.office-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--red);
  text-transform: uppercase;
}
.office-card .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.office-card address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.office-card .links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.office-card .links a { color: var(--ink); font-weight: 500; }
.office-card .links a:hover { color: var(--red); }

.contact-flash {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
}
.contact-flash--ok { background: rgba(77,124,15,0.10); color: #4d7c0f; border: 1px solid rgba(77,124,15,0.25); }
.contact-flash--warn { background: var(--red-tint); color: var(--red); border: 1px solid rgba(224,36,31,0.25); }

.contact-form {
  background: #fff;
  color: var(--ink);
  padding: 28px 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(14,13,12,0.05);
}
.contact-form-header {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
}
.contact-form .sub {
  color: var(--ink-3);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.form-section { margin-bottom: 18px; }
.form-section:last-of-type { margin-bottom: 14px; }
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.form-section-title .step-num {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.form-row:last-child { margin-bottom: 0; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.form-field label .req {
  color: var(--red);
  margin-left: 2px;
}
.form-field input, .form-field textarea, .form-field select {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 4px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px var(--red-tint);
}
.form-field input::placeholder, .form-field textarea::placeholder {
  color: var(--ink-4);
}
.form-field .hint {
  font-size: 10.5px;
  color: var(--ink-4);
  margin-top: 4px;
  line-height: 1.4;
}
.form-field textarea { min-height: 70px; resize: vertical; }
.form-checkboxes {
  display: grid;
  /* 3 cols compacts the 6 product options into 2 rows instead of 3 */
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 10px;
  margin-top: 2px;
}
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.form-check:hover { border-color: var(--red); }
.form-check input { accent-color: var(--red); width: 13px; height: 13px; flex-shrink: 0; }
.form-check input:checked + span { color: var(--red); font-weight: 600; }
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form-foot-note {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
  max-width: 280px;
  margin: 0;
}
.form-foot-note strong { color: var(--ink); }
.contact-form .btn-primary {
  width: auto;
  align-self: flex-start;
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-checkboxes { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: flex-start; }
}

/* Contact map — tab toggle between locations */
.map-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(14,13,12,0.06);
  border-radius: 999px;
}
.map-tab {
  background: transparent;
  border: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.map-tab:hover { color: var(--red); }
.map-tab.is-active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(14,13,12,0.08);
}
.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(14,13,12,0.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.map-pane { position: absolute; inset: 0; overflow: hidden; }
.map-pane iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.map-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.map-card {
  text-align: left;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.map-card::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background .2s;
}
.map-card:hover { border-color: rgba(224,36,31,0.4); }
.map-card.is-active {
  border-color: var(--red);
  box-shadow: 0 6px 18px -8px rgba(224,36,31,0.35);
}
.map-card.is-active::before { background: var(--red); }
.map-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.map-card.is-active .map-card-eyebrow { color: var(--red); }
.map-card-addr {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .map-tabs { width: 100%; overflow-x: auto; }
  .map-stage { aspect-ratio: 4 / 3; }
}

/* Tab nav */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  overflow-x: auto;
}
.tab-bar a {
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-bar a:hover { color: var(--ink); }
.tab-bar a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Responsive */
@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-meta { padding-left: 0; padding-top: 24px; border-left: none; border-top: 1px solid rgba(255,255,255,0.15); }
  .story-row { grid-template-columns: 1fr; gap: 32px; }
  .story-row.reverse > :first-child { order: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .news-list > .news-card { flex: 0 0 calc((100% - 32px) / 2); }
  .news-featured { grid-template-columns: 1fr; }
  .app-detail { grid-template-columns: 1fr; gap: 32px; }
  .app-detail.reverse > :first-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline-layout { grid-template-columns: 1fr; gap: 40px; }
  .timeline-aside { position: static; }
}
@media (max-width: 640px) {
  .news-list > .news-card { flex: 0 0 100%; }
  .form-row { grid-template-columns: 1fr; }
  .content-section { padding: 64px 0; }
  .article-layout { grid-template-columns: 1fr !important; }
}

/* ============================================================
   Article / News detail
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 80px;
  align-items: start;
}
.article-aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.article-aside-block {
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 22px 24px;
}
.article-aside-block h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.article-meta-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.article-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.article-meta-list li:last-child { border-bottom: none; }
.article-meta-list .k {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-meta-list .v { color: var(--ink); font-weight: 500; text-align: right; }

.article-toc {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.article-toc a {
  color: var(--ink-3);
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
  transition: color .2s, border-color .2s;
}
.article-toc a:hover, .article-toc a.active { color: var(--red); border-left-color: var(--red); }

.share-buttons {
  display: flex;
  gap: 8px;
}
.share-buttons a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12px;
  transition: background .2s, color .2s, border-color .2s;
}
.share-buttons a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Article body */
.article-body {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  min-width: 0;
}
.article-body > * + * { margin-top: 22px; }
.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}
.article-body table th,
.article-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article-body table th {
  background: var(--bg-soft);
  font-weight: 700;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 56px 0 18px;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--ink);
}
.article-body p { margin: 0 0 20px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body a { color: var(--red); border-bottom: 1px solid currentColor; }
.article-body strong { color: var(--ink); }
.article-body em { color: var(--ink); }
.article-body ul, .article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.article-body li { margin-bottom: 10px; }
.article-body figure {
  margin: 36px 0;
}
.article-body figure img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.article-body figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.article-body blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--cream);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.article-body blockquote::before {
  content: "“";
  font-size: 56px;
  color: var(--red);
  display: block;
  line-height: 0.5;
  margin-bottom: 8px;
}
.article-body blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}
.article-pullquote {
  margin: 40px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--red);
  text-wrap: balance;
}

/* Article hero (full-bleed cover) */
.article-hero {
  position: relative;
  padding-top: 152px;
  padding-bottom: 80px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.95);
  transform: scale(1.05);
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,6,0.55) 0%, rgba(8,7,6,0.4) 35%, rgba(8,7,6,0.85) 100%);
  z-index: -1;
}
.article-hero-inner { max-width: 880px; }
.article-cat {
  display: inline-block;
  padding: 6px 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 3px;
  margin-bottom: 20px;
}
.article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.article-meta-row .by { color: rgba(255,255,255,0.5); }

/* Related products grid (compact) */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================================
   Product Detail
   ============================================================ */
.pd-hero {
  padding-top: 124px;
  padding-bottom: 80px;
  background: var(--bg-soft);
}
.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
.pd-gallery {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}
.pd-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pd-thumb {
  width: 88px;
  aspect-ratio: 1;
  background: var(--bg-muted) center/cover no-repeat;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--red); }
.pd-main-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-muted) center/cover no-repeat;
  border-radius: 6px;
  position: relative;
}
.pd-main-img-label {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 3px;
  color: var(--ink-3);
}
.pd-info .breadcrumb { margin-bottom: 16px; }
.pd-sku {
  display: inline-block;
  padding: 4px 10px;
  background: var(--red-tint);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 3px;
  margin-bottom: 14px;
}
.pd-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.pd-tagline {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.pd-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pd-stars { color: var(--red); font-size: 16px; letter-spacing: 2px; }
.pd-rating-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.pd-rating-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pd-quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.pd-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.pd-spec .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pd-spec .v { font-size: 14px; font-weight: 500; color: var(--ink); }
.pd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pd-features {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.pd-features li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.pd-features li::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.review-card .stars {
  color: var(--red);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 14px;
}
.review-quote {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 24px;
  flex: 1;
  letter-spacing: -0.01em;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 1024px) {
  .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { grid-template-columns: 72px 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related-products-grid { grid-template-columns: 1fr 1fr; }
}



/* ============================================================
   TASK#222 · Mục 3 — Background depth cho cream + soft sections
   Sections dùng màu solid gần-trắng trông như trống. Bổ sung:
   (a) dot-grid mịn (tăng opacity so với trước),
   (b) diagonal stripe công nghiệp nhẹ,
   (c) radial glow đỏ ở góc luân phiên cream/soft.
   Cream → glow trên-phải. Soft → glow dưới-trái.
   Cert section (#cert.content-section) có specificity cao hơn
   trong quality.css → giữ treatment riêng, không bị ghi đè.
   ============================================================ */

/* Cream: dot-grid + diagonal + red accent góc trên-phải */
.content-section.cream {
  background-image:
    radial-gradient(ellipse 80% 55% at 95% 5%,
      rgba(224, 36, 31, 0.07), transparent 58%),
    repeating-linear-gradient(
      135deg,
      rgba(14, 13, 12, 0.018) 0px,
      rgba(14, 13, 12, 0.018) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(rgba(14, 13, 12, 0.030) 1px, transparent 1.5px);
  background-size: 100%, auto, 22px 22px;
  background-position: center, 0 0, -6px -6px;
}

/* Soft: dot-grid + diagonal + red accent góc dưới-trái */
.content-section.soft {
  background-image:
    radial-gradient(ellipse 70% 48% at 5% 100%,
      rgba(224, 36, 31, 0.062), transparent 55%),
    repeating-linear-gradient(
      135deg,
      rgba(14, 13, 12, 0.016) 0px,
      rgba(14, 13, 12, 0.016) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(rgba(14, 13, 12, 0.030) 1px, transparent 1.5px);
  background-size: 100%, auto, 22px 22px;
  background-position: center, 0 0, -6px -6px;
}

/* ============================================================
   TASK#229 mục 2 — Tách 2 section tin tức: backgrounds riêng biệt
   Featured (cream): nền kem ấm rõ ràng hơn.
   List (soft.news-list-section): nền tối — cards trắng nổi bật.
   ============================================================ */

/* Cream section: gán màu nền cream thực sự (trước chỉ có texture) */
.content-section.cream {
  background-color: var(--cream);
}

/* List tin tức gần nhất — nền tối tạo phân biệt thị giác mạnh */
.content-section.soft.news-list-section {
  background-color: var(--dark-2);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 100%,
      rgba(224, 36, 31, 0.09), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1.5px);
  background-size: 100%, 22px 22px;
  background-position: center, -6px -6px;
}

/* Text colors cho dark section */
.content-section.soft.news-list-section .section-eyebrow {
  color: var(--red-3);
}
.content-section.soft.news-list-section .section-title {
  color: rgba(255, 255, 255, 0.95);
}
.content-section.soft.news-list-section .section-link {
  color: rgba(255, 255, 255, 0.55);
}
.content-section.soft.news-list-section .section-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Button ghost trên nền tối */
.content-section.soft.news-list-section .btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.38);
}
.content-section.soft.news-list-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

/* Task #230 mục 1 — căn giữa section-head và grid tin tức */
.content-section.soft.news-list-section .section-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
