/* KMI website styles. Plain CSS, no framework. */

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/mulish-latin.woff2") format("woff2");
}

:root {
  --green-900: #0f2e22;
  --green-800: #163d2e;
  --green-700: #1e5240;
  --wood-600: #a8692f;
  --wood-500: #c4843f;
  --wood-100: #f3e6d3;
  --cream: #faf7f1;
  --sand: #f1ebe0;
  --ink: #1d231f;
  --muted: #5d665f;
  --line: #e3dccf;
  --white: #fff;
  --red: #b3261e;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 46, 34, 0.12);
  --container: 1200px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-700);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--wood-500);
  outline-offset: 2px;
}

/* Content still to be confirmed by KMI. Remove the class once confirmed. */
.placeholder {
  outline: 2px dashed #e07b00;
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--green-800);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-700);
}

.btn--wood {
  background: var(--wood-500);
  color: var(--green-900);
}

.btn--wood:hover {
  background: #d39552;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--light {
  background: var(--white);
  color: var(--green-900);
}

.btn--light:hover {
  background: var(--wood-100);
}

/* ---------- Top bar and header ---------- */

.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 8px;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--white);
}

.topbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

@media (max-width: 700px) {
  .topbar__tagline {
    display: none;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  flex: none;
  width: auto;
  height: 46px;
}

.brand__name {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand__tag {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--green-700);
  background: var(--sand);
}

.nav__cta {
  margin-left: 8px;
}

.nav .btn--primary {
  padding: 10px 20px;
  background: var(--green-800);
  color: var(--white);
}

.nav .btn--primary:hover {
  background: var(--green-700);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .brand__tag {
    display: none;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    padding: 14px 12px;
  }

  .nav__cta {
    margin: 8px 0 0;
  }

  .nav__cta .btn {
    width: 100%;
  }

  .header .container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .js .header .container {
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand__name {
    font-size: clamp(0.85rem, 4vw, 1.05rem);
  }

  html:not(.js) .nav {
    width: 100%;
    padding-bottom: 12px;
  }
}

/* ---------- Photo slots ---------- */

/* Stand-in for a real photo: a timber-toned panel with a caption saying which
   photo belongs here. Replace the element with an <img> once photos arrive. */
.photo {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(97deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 23px),
    linear-gradient(135deg, #b47a43, #7c4b22 60%, #5d3617);
}

.photo::after {
  content: attr(data-photo);
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
}

.hero .photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero .photo::after,
.page-hero .photo::after {
  top: 16px;
  bottom: auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 46, 34, 0.94) 0%, rgba(15, 46, 34, 0.78) 45%, rgba(15, 46, 34, 0.35) 100%);
}

.hero__inner {
  padding-block: 96px 120px;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--wood-500);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Stats ---------- */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.stats ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats li {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.stats li:first-child {
  border-left: 0;
}

.stats strong {
  display: block;
  color: var(--green-800);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .stats ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats li:nth-child(3) {
    border-left: 0;
  }

  .stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--sand {
  background: var(--sand);
}

.section__head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Product tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* With a single product, show one wide banner instead of a lone small tile. */
.tiles > .tile:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
}

.tile .photo {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.tile .photo::after {
  top: 12px;
  bottom: auto;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 30, 22, 0.88) 100%);
}

.tile__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.tile__body h2,
.tile__body h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.tile__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.tile__more {
  display: inline-block;
  margin-top: 10px;
  color: var(--wood-500);
  font-weight: 800;
  font-size: 0.88rem;
}

.tile:hover .photo,
.tile:focus-visible .photo {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .tiles > .tile:only-child {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split .photo {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
}

.split--reverse > :first-child {
  order: 2;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 36px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.checklist strong {
  display: block;
}

.checklist span {
  color: var(--muted);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }
}

/* ---------- Certificate card ---------- */

.cert {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.cert__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border: 3px solid var(--green-800);
  border-radius: 50%;
  color: var(--green-800);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.cert h3 {
  margin-bottom: 2px;
}

.cert p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.cert__link {
  font-weight: 800;
  font-size: 0.93rem;
}

/* ---------- Timeline (history page) ---------- */

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 120px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 113px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--wood-500);
  box-shadow: 0 0 0 2px var(--wood-500);
}

.timeline__year {
  color: var(--green-800);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: right;
  padding-right: 8px;
}

.timeline h3 {
  margin-bottom: 6px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 600px) {
  .timeline::before {
    left: 7px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 36px;
  }

  .timeline li::before {
    left: 0;
  }

  .timeline__year {
    text-align: left;
    padding-right: 0;
  }
}

/* ---------- Species ---------- */

.species {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.species--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.species article {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.species__swatch {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.swatch--merbau {
  background: radial-gradient(circle, #b5663a 0 30%, #8e4a2a 31% 55%, #6b351e 56%);
}

.swatch--kapur {
  background: radial-gradient(circle, #d6a674 0 30%, #b9824f 31% 55%, #9b6a3c 56%);
}

.species h3 {
  margin-bottom: 2px;
}

.species__latin {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.species p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .species {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .species {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px 20px 24px;
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--wood-600);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Markets ---------- */

.markets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.markets li {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

/* ---------- CTA band ---------- */

.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green-800);
  color: var(--white);
}

.cta .photo {
  min-height: 360px;
}

.cta__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 96px);
}

.cta__body p {
  color: rgba(255, 255, 255, 0.82);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .cta {
    grid-template-columns: 1fr;
  }

  .cta .photo {
    min-height: 220px;
  }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 48px;
}

.footer h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .brand {
  margin-bottom: 16px;
  color: var(--white);
}

/* The red logo needs a light background to stand out on dark green. */
.footer .brand img {
  box-sizing: content-box;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--white);
}

.footer .brand__tag {
  display: block;
  color: rgba(255, 255, 255, 0.6);
}

.footer address {
  font-style: normal;
}

.footer__bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

/* Says how the photos were edited, so buyers know they show the real site. */
.footer__note {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 800px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Products page ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 10vw, 120px);
  color: var(--white);
}

.page-hero .photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 46, 34, 0.95), rgba(15, 46, 34, 0.7));
}

.page-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: block;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.chips a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.product {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding-block: 56px;
  border-top: 1px solid var(--line);
}

.product:first-of-type {
  border-top: 0;
}

.product > .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.product__intro {
  color: var(--muted);
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.spec {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.spec h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.spec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums;
}

.spec li:first-child {
  border-top: 0;
}

.spec small {
  color: var(--muted);
  white-space: nowrap;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product pages ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumbs [aria-current] {
  color: var(--white);
  font-weight: 700;
}

.related {
  padding-block: 0 56px;
}

.related h2 {
  font-size: 1.4rem;
}

.related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.related__list a {
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.related__list a:hover {
  border-color: var(--green-700);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--wood-600);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item summary h3 {
  margin: 0;
  font-size: 1.05rem;
}

.faq__item p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: 64px;
  text-align: center;
}

.notfound img {
  margin: 0 auto 24px;
}

.notfound p {
  color: var(--muted);
}

/* ---------- Motion ---------- */

/* Slow zoom on the hero photo, so the first screen feels alive. */
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero .photo img {
  animation: hero-zoom 18s ease-out both;
}

/* Sections fade up as they scroll into view. main.js adds .reveal only when
   JavaScript runs, so without it everything is simply visible. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero .photo img {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Process gallery ---------- */

.gallery {
  margin-top: 64px;
}

.gallery__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.gallery__head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.gallery__nav {
  display: flex;
  gap: 8px;
}

.gallery__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gallery__btn:hover {
  border-color: var(--wood-500);
  background: var(--wood-100);
}

.gallery__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* A sideways strip that lines up with the page content and can be swiped. */
.gallery__track {
  --edge: max(16px, calc((100% - var(--container)) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(380px, 78vw);
  gap: 16px;
  margin: 0;
  padding: 0 var(--edge) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
  list-style: none;
}

.gallery__track:focus-visible {
  outline: 3px solid var(--wood-500);
  outline-offset: 4px;
}

.gallery__item {
  scroll-snap-align: start;
}

.gallery__item figure {
  margin: 0;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

.gallery__item figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery__item figcaption strong {
  display: block;
  color: var(--ink);
}

.gallery__step {
  color: var(--wood-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  .gallery__nav {
    display: none;
  }
}
