/* Aylens Optical — prescription lens shop
   Colours come from the logo (media/AYLENS Optical Logo in Navy and Gold.png):
   navy #051A37 for ink, gold #C89D57 for lines and rims, a deeper gold #8A6528
   wherever gold has to be readable as text, on a near-white paper. */

:root {
  color-scheme: light;

  --ink: #051A37;          /* logo navy */
  --ink-soft: #4A566B;
  --paper: #FAF9F6;
  --white: #ffffff;
  --glass: #EEF1F6;
  --line: #D5DBE3;
  --accent: #8A6528;      /* deep gold: text-safe gold (5:1 on paper) */
  --gold: #C89D57;        /* logo gold: lines, rims, fills */
  --gold-tint: #F3EBDD;   /* pale gold: selected / highlight backgrounds */

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale (≈1.25) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.6875rem;
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --section-gap: clamp(72px, 10vw, 136px);

  --r-photo: 6px;
  --r-panel: 14px;
}

:root[lang="ar"] {
  --font-display: "Noto Naskh Arabic", "Geeza Pro", serif;
  --font-body: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}

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

/* anything marked hidden stays hidden, whatever display rule it has */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
:root[lang="ar"] body { line-height: 1.8; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}
:root[lang="ar"] h2 { letter-spacing: 0; line-height: 1.4; font-weight: 700; }

h3 { font-size: var(--step-1); line-height: 1.3; }

a { color: inherit; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #10284D; color: var(--white); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--white); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: var(--step--1); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo: the "AYLENS OPTICAL" line of the logo in the header (assets/img/aylens-wordmark.png);
   the full logo is in the footer. Both are transparent copies of the file in media/. */
.brand { flex: none; display: block; }
.brand img {
  height: 40px;
  width: auto;
}

.site-nav ul { display: flex; gap: 24px; }
.site-nav a {
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
}
.lang-toggle[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang-toggle[lang="en"] { font-family: "Hanken Grotesk", sans-serif; }
.lang-toggle:hover { border-color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.menu-icon::before { content: ""; position: absolute; top: 6px; }
.menu-icon { transform: translateY(-3px); }

@media (max-width: 1060px) {
  .header-inner { flex-wrap: wrap; gap: 8px 12px; }
  .menu-toggle { display: inline-flex; order: 3; }
  .header-actions { order: 2; }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    padding: 8px 0 14px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block;
    padding: 12px 0;
    font-size: var(--step-0);
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .brand img { height: 30px; }
  .header-actions .btn-small { display: none; }
  .header-actions { gap: 4px; }
  .menu-toggle span[data-i18n] { display: none; }
}

/* ---------- Hero / eye chart ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.chart {
  position: relative;
  display: grid;
  touch-action: pan-y;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  --r: clamp(46px, 7.5vw, 104px);
  --x: 60%;
  --y: 82%;
}

.chart-layer { grid-area: 1 / 1; }

.row {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 24px);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  white-space: nowrap;
  font-variation-settings: "opsz" 96;
}
.row + .row { margin-top: 0.12em; }

.acuity {
  flex: none;
  width: 3.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: start;
}
@media (max-width: 560px) {
  .acuity { width: 2.6rem; font-size: 0.6875rem; }
  .row { gap: 10px; }
}

/* rows scale with the hero column, not the window, so they never run into the photo */
.hero-copy { container-type: inline-size; min-width: 0; }
.txt { letter-spacing: 0.14em; }
.r1 { font-size: min(8rem, 14.5cqi); }
.r2 { font-size: min(5.4rem, 9.6cqi); }
.r3 { font-size: min(3rem, 5.6cqi); }
.r4 { font-size: max(0.95rem, min(1.8rem, 3.3cqi)); }
.r1 .txt { letter-spacing: 0.16em; }
:root[lang="ar"] .r1 { font-size: min(7rem, 15cqi); }
:root[lang="ar"] .r2 { font-size: min(5rem, 11cqi); }
:root[lang="ar"] .r3 { font-size: min(3rem, 7cqi); }
:root[lang="ar"] .r4 { font-size: max(1rem, min(1.9rem, 4.4cqi)); }

:root[lang="ar"] .txt { letter-spacing: 0; }
:root[lang="ar"] .row { font-weight: 700; line-height: 1.35; }
:root[lang="ar"] .row + .row { margin-top: 0; }

/* Uncorrected vision: the smaller the line, the softer it gets */
.chart-blur .r2 .txt { filter: blur(0.6px); }
.chart-blur .r3 .txt { filter: blur(2.2px); }
.chart-blur .r4 .txt { filter: blur(3.4px); }

/* Through the lens: crisp, sitting on a faint glass tint */
.chart-sharp {
  background: #FDFCFA;
  clip-path: circle(var(--r) at var(--x) var(--y));
}

.lens {
  position: absolute;
  left: calc(var(--x) - var(--r));
  top: calc(var(--y) - var(--r));
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 70% 80%, rgba(200, 157, 87, 0.07), rgba(200, 157, 87, 0) 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 0 22px rgba(200, 157, 87, 0.16),
    0 22px 40px -22px rgba(5, 26, 55, 0.45);
}
/* thin rim in the logo's gold gradient */
.lens::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(from 210deg, #E9BC79, #B07E37, #F3DDB4, #C89D57, #E9BC79);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.chart-hint {
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.hero-lede {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.5;
}
:root[lang="ar"] .hero-lede { line-height: 1.8; }

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* show the whole photo, uncropped, in its own wide shape */
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--r-photo);
}

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

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.section-head { max-width: 40rem; }
.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 36em;
}

/* Lens types */

.lenses-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.lens-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas: "fig name" "fig desc";
  grid-template-rows: auto 1fr;
  gap: 6px 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.lens-figure { grid-area: fig; padding-top: 4px; }
.lens-diagram { display: block; width: 100%; height: auto; }

.lens-key {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.key {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  flex: none;
}
.key:not(:first-child) { margin-inline-start: 10px; }
.key-clear { background: #D6DFEC; }
.key-soft { background: repeating-linear-gradient(45deg, #FAF9F6 0 2px, #7f93a6 2px 3.4px); }
.key-dots { background: radial-gradient(circle, #C89D57 1.6px, transparent 1.8px) 0 0 / 7px 7px, #D6DFEC; }
.lens-list li:last-child { border-bottom: 1px solid var(--line); }
.lens-list h3 {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  font-variation-settings: "opsz" 48;
}
:root[lang="ar"] .lens-list h3 { font-weight: 700; font-size: var(--step-1); }
.lens-list p { grid-area: desc; color: var(--ink-soft); max-width: 34em; }
.lens-list h3 a { text-decoration: none; }
.lens-list h3 a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
@media (max-width: 480px) {
  .lens-list li { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; }
}

/* Two photos stacked, same size, filling exactly the height of the lens list beside them.
   contain: size stops the photos from making the row taller; the list sets the height. */
.lenses-grid { align-items: stretch; }
.lenses-photos {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  contain: size;
}
.photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.photo img { border-radius: var(--r-photo); width: 100%; height: 100%; object-fit: cover; }
.photo-wide img { object-position: 30% 35%; }
.photo-tall img { object-position: 50% 22%; }
.photo figcaption {
  margin-top: 8px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* phones: photos go under the list and take a normal wide shape */
@media (max-width: 640px) {
  .lenses-grid { grid-template-columns: 1fr; }
  .lenses-photos { contain: none; grid-template-rows: auto auto; gap: 16px; }
  .photo img { height: auto; aspect-ratio: 3 / 2; }
}

/* Thickness tool */

.thickness {
  max-width: none;
  padding-inline: 0;
}
.thickness-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  background: var(--glass);
  border-radius: var(--r-panel);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 64px);
}
@media (min-width: 1352px) {
  .thickness-inner { padding-inline: 56px; }
}
@media (max-width: 1351px) {
  .thickness { padding-inline: var(--gutter); }
  .thickness-inner { padding-inline: clamp(20px, 4vw, 48px); }
}

.sph-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px 16px;
}
.sph-control label { font-weight: 600; }
.sph-control output {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.sph-control input { grid-column: 1 / -1; }
.sph-scale {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
}
input[type="range"]::-moz-range-track {
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11.5px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 10px -4px rgba(5, 26, 55, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }

.profiles {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.profile {
  margin: 0;
  padding: 14px 10px 14px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: 10px;
  text-align: center;
}
.profile.is-recommended { border-color: var(--accent); background: var(--white); }
.profile svg { width: 100%; height: auto; max-height: 170px; display: block; margin: 0 auto; }
.profile-index {
  margin-top: 8px;
  font-weight: 600;
  font-size: var(--step--1);
}
.profile-name { display: block; font-weight: 400; color: var(--ink-soft); }
.profile-mm {
  margin-top: 6px;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.profile-price {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.profile-flag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
}

.recommend {
  margin-top: 22px;
  font-weight: 500;
  max-width: 40em;
}
.note {
  margin-top: 8px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .thickness-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Prescription */

.rx-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.rx-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 50px -40px rgba(5, 26, 55, 0.5);
  overflow-x: auto;
}
.rx-card-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink);
}
.rx-card table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.rx-card th,
.rx-card td {
  padding: 12px 8px;
  text-align: end;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rx-card thead th {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.rx-card tbody th {
  text-align: start;
  font-weight: 500;
  font-size: var(--step--1);
}
.rx-card td { font-size: var(--step-1); }
:root[lang="ar"] .rx-card tbody th { text-align: left; }
.rx-pd {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: var(--step-0);
}
.rx-pd span:first-child { font-weight: 600; color: var(--ink-soft); font-size: var(--step--1); }

.rx-glossary dl { margin: 0; }
.rx-glossary dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.rx-glossary dt { font-weight: 600; }
.rx-glossary dd { margin: 0; color: var(--ink-soft); }
.rx-help {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

@media (max-width: 900px) {
  .rx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rx-glossary dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Coatings */

.coatings {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
/* photo is exactly as tall as the coatings text beside it */
.coatings-photo { contain: size; min-height: 0; }
.coatings-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--r-photo);
  object-fit: cover;
  object-position: 50% 50%;
}

.coat-group {
  margin-top: 36px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 10px;
}
.coat-list:first-child { margin-top: 28px; }
.coat-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.coat-list:last-of-type li:last-child { border-bottom: 1px solid var(--line); }
.coat-list h4 { font-size: var(--step-0); font-weight: 600; }
.coat-list p { color: var(--ink-soft); font-size: var(--step--1); margin-top: 2px; max-width: 34em; }
.coat-price {
  font-weight: 600;
  font-size: var(--step--1);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .coatings { grid-template-columns: 1fr; }
  .coatings-photo { contain: none; }
  .coatings-photo img { height: auto; aspect-ratio: 16 / 10; }
}

/* How ordering works */

.order-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
  font-variation-settings: "opsz" 96;
  color: var(--accent);
}
.steps h3 { font-size: var(--step-1); }
.steps p { margin-top: 4px; color: var(--ink-soft); max-width: 36em; }

/* the photo is exactly as tall as the list of steps beside it;
   contain: size stops the photo from making the row taller */
.order-grid { align-items: stretch; }
.order-photo { contain: size; min-height: 0; }
.order-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--r-photo);
  object-fit: cover;
  object-position: 45% 50%;
}

.order-cta {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.order-cta p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  max-width: 24em;
}
/* gold button on the navy band, like the logo's arc */
.order-cta .btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.order-cta .btn-primary:hover { background: #D9B57A; border-color: #D9B57A; color: var(--ink); }

@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-photo { contain: none; }
  .order-photo img { height: auto; aspect-ratio: 16 / 10; }
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.faq-list { margin-top: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  padding-inline-end: 40px;
  position: relative;
  font-weight: 600;
  font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 36em; }
/* photo is exactly as tall as the questions beside it, and grows when one opens */
.faq-photo { contain: size; min-height: 0; }
.faq-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--r-photo);
  object-fit: cover;
  object-position: 55% 45%;
}

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq-photo { contain: none; }
  .faq-photo img { height: auto; aspect-ratio: 16 / 9; }
}

/* Footer */

.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px 48px;
  align-items: end;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.footer-logo { height: 120px; width: auto; margin-bottom: 12px; }
.footer-inner a { color: var(--ink); font-weight: 600; }
.footer-copy { justify-self: end; }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
