/* ==========================================================================
   MowChak — public storefront
   Mobile-first. The approved layout is locked; this file implements it and
   must not be re-arranged into a generic e-commerce template.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor jumps must clear the sticky header. */
  scroll-padding-top: calc(var(--header-height) + var(--sp-4));
}

body {
  margin: 0;
  font-family: var(--font-bn);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface-page);
  /* No horizontal scrolling on any device. */
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  /* Black, not gold: Deep Honey Gold manages only 2.46:1 on white, below the
     3:1 WCAG 1.4.11 minimum for a focus indicator. Dark sections override this
     to honey yellow below, so the ring is perceivable on every background. */
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  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;
  left: var(--sp-4);
  top: -100px;
  z-index: var(--z-modal);
  background: var(--surface-inverse);
  color: var(--ink-brand);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-weight: 700;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

.lang-en { font-family: var(--font-en); }

/* --- Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }
@media (min-width: 1200px) { .container { padding-inline: var(--sp-8); } }

.section { padding-block: var(--sp-10); }
@media (min-width: 768px) { .section { padding-block: var(--sp-16); } }

.section--cream { background: var(--surface-muted); }
.section--sunken { background: var(--surface-recessed); }

.section__head { text-align: center; margin-bottom: var(--sp-8); }

.section__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink-primary);
}

.section__title::after {
  content: '';
  display: block;
  width: 68px;
  height: 4px;
  margin: var(--sp-3) auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--surface-brand), var(--accent-line));
}

.section__sub {
  margin-top: var(--sp-3);
  color: var(--ink-secondary);
  font-size: var(--fs-md);
  max-width: 60ch;
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  /* 48px minimum tap target throughout. */
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-base);
  cursor: pointer;
  text-align: center;
  transition: transform var(--speed-fast) var(--ease),
              box-shadow var(--speed) var(--ease),
              background-color var(--speed) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--action-primary-from), var(--action-primary-to));
  color: var(--action-primary-ink);
  box-shadow: var(--shadow-honey);
}
.btn--primary:hover { background: var(--action-primary-to); }

.btn--dark { background: var(--action-inverse-bg); color: var(--action-inverse-ink); }
.btn--dark:hover { background: #000; }

.btn--outline {
  background: transparent;
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}
.btn--outline:hover { background: var(--action-inverse-bg); color: var(--action-inverse-ink); }

.btn--green { background: var(--action-nature-bg); color: var(--action-nature-ink); }
.btn--green:hover { background: var(--surface-nature); }

.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: var(--fs-md); padding-inline: var(--sp-8); }

.btn[disabled],
.btn[aria-disabled='true'] { opacity: 0.65; cursor: not-allowed; box-shadow: none; }

.btn__icon { width: 20px; height: 20px; flex: none; }

/* --- Header --------------------------------------------------------------- */
/* Logo LEFT, Call Now RIGHT. This order is locked — do not reverse. */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
  padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--header-height);
}

.site-logo { display: flex; align-items: center; gap: var(--sp-3); flex: 0 1 auto; min-width: 0; }

.site-logo img {
  height: 42px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

@media (min-width: 768px) { .site-logo img { height: 52px; max-width: 240px; } }

.site-logo__fallback {
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--ink-primary);
  letter-spacing: 0.2px;
}
.site-logo__fallback span { color: var(--deep-honey-gold); } /* logotype: exempt from contrast rules (WCAG 1.4.3) */

.site-logo__tagline {
  display: none;
  font-size: var(--fs-xs);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
@media (min-width: 900px) { .site-logo__tagline { display: block; } }

.header-call {
  flex: none;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
@media (min-width: 480px) { .header-call { min-height: 48px; padding: var(--sp-3) var(--sp-5); font-size: var(--fs-base); } }

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

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(245, 180, 0, 0.22), transparent 60%),
    linear-gradient(160deg, var(--surface-nature) 0%, var(--action-nature-bg) 100%);
  color: var(--ink-inverse);
  overflow: hidden;
  padding-block: var(--sp-10) var(--sp-12);
}

/* Honeycomb texture, drawn in CSS so it costs no request. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48'%3E%3Cpath d='M28 2 L52 15 L52 41 L28 54 L4 41 L4 15 Z' fill='none' stroke='%23F5B400' stroke-width='2' opacity='0.14'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner { position: relative; display: grid; gap: var(--sp-8); align-items: center; }

@media (min-width: 900px) {
  .hero { padding-block: var(--sp-16); }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-10); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(245, 180, 0, 0.45);
  color: var(--ink-brand);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.hero__title {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  font-weight: 800;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--ink-brand); }

.hero__title-en {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-en);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: rgba(255, 249, 234, 0.86);
}

.hero__text {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: rgba(255, 249, 234, 0.92);
  max-width: 52ch;
}

.hero__actions {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__media { position: relative; }

.hero__media img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(245, 180, 0, 0.5);
  background: var(--surface-muted);
}

.hero__badge {
  position: absolute;
  bottom: calc(-1 * var(--sp-4));
  left: var(--sp-4);
  background: var(--surface-brand);
  color: var(--ink-on-brand);
  font-weight: 800;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-size: var(--fs-sm);
}

/* --- Benefits ------------------------------------------------------------- */

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

@media (min-width: 640px) { .benefits__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 1024px) { .benefits__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.benefit {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.benefit__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto var(--sp-3);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-highlight);
  color: var(--state-trust-ink);
}
.benefit__icon svg { width: 24px; height: 24px; }

.benefit__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: var(--lh-heading); }
.benefit__text { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--ink-secondary); line-height: var(--lh-ui); }

/* --- Package cards -------------------------------------------------------- */

.packages__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

@media (min-width: 700px) { .packages__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); } }

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.package-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); transform: translateY(-2px); }

.package-card--popular { border-color: var(--border-selected); }

.package-card__flag {
  position: absolute;
  top: var(--sp-2);
  inset-inline-start: var(--sp-2);
  z-index: 1;
  background: var(--action-nature-bg);
  color: var(--action-nature-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-pill);
}

.package-card__media { background: var(--surface-muted); aspect-ratio: 1 / 1; }
.package-card__media img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-2); }

.package-card__body { padding: var(--sp-3); text-align: center; display: flex; flex-direction: column; gap: var(--sp-1); flex: 1; }
.package-card__name { font-weight: 700; font-size: var(--fs-base); }
.package-card__meta { font-size: var(--fs-xs); color: var(--ink-tertiary); }
.package-card__price { font-size: var(--fs-lg); font-weight: 800; color: var(--price-ink); }
.package-card__compare { font-size: var(--fs-sm); color: var(--ink-tertiary); text-decoration: line-through; }
.package-card__cta { margin-top: auto; padding: var(--sp-3); }

/* --- Direct order area ---------------------------------------------------- */
/* Left column: package selection. Right column: customer information.
   Locked layout — the two columns stack on mobile, left column first. */

.order { background: var(--surface-muted); }

.order__grid { display: grid; gap: var(--sp-5); align-items: start; }

@media (min-width: 960px) {
  .order__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--sp-6); }
}

.order-panel {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.order-panel__head {
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-inverse);
  color: var(--ink-brand);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.order-panel__head .step {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-brand);
  color: var(--ink-on-brand);
  font-size: var(--fs-sm);
  font-weight: 800;
  flex: none;
}

.order-panel__body { padding: var(--sp-4); }
@media (min-width: 768px) { .order-panel__body { padding: var(--sp-5); } }

/* --- Selectable package rows --------------------------------------------- */

.pick-list { display: grid; gap: var(--sp-3); }

.pick {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-card);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

@media (min-width: 480px) { .pick { grid-template-columns: 76px minmax(0, 1fr) auto; } }

.pick:hover { border-color: var(--accent-line-soft); background: var(--surface-highlight); }

/* The real radio stays in the DOM for keyboard and assistive tech; it is
   visually replaced by the indicator below. */
.pick__input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}

.pick__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  overflow: hidden;
}
.pick__media img { width: 100%; height: 100%; object-fit: contain; }

.pick__info { min-width: 0; }
.pick__name { font-weight: var(--fw-bold); line-height: var(--lh-heading); }
.pick__meta { font-size: var(--fs-xs); color: var(--ink-tertiary); }
.pick__badge {
  display: inline-block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--state-trust-ink);
  background: var(--state-trust-bg);
  border-radius: var(--radius-pill);
  padding: 1px var(--sp-2);
}

.pick__right { display: flex; align-items: center; gap: var(--sp-3); }
.pick__price { font-weight: 800; color: var(--price-ink); font-size: var(--fs-md); white-space: nowrap; }

.pick__indicator {
  width: 24px; height: 24px;
  flex: none;
  border: 2px solid var(--border-firm);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.pick__indicator::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: background-color var(--speed) var(--ease);
}

/* Selected state — honey-yellow/gold, per the locked design. */
.pick:has(.pick__input:checked) {
  border-color: var(--border-selected);
  background: var(--surface-highlight);
  box-shadow: 0 0 0 3px var(--state-selected-glow);
}

.pick:has(.pick__input:checked) .pick__indicator {
  border-color: var(--border-selected);
  background: var(--surface-card);
}
.pick:has(.pick__input:checked) .pick__indicator::after { background: var(--state-selected-mark); }

/* Keyboard focus has to be visible on the label, since the input is hidden. */
.pick:has(.pick__input:focus-visible) {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 2px;
}

/* Fallback for browsers without :has() — the JS adds this class too. */
.pick.is-selected {
  border-color: var(--border-selected);
  background: var(--surface-highlight);
  box-shadow: 0 0 0 3px var(--state-selected-glow);
}
.pick.is-selected .pick__indicator { border-color: var(--border-selected); background: var(--surface-card); }
.pick.is-selected .pick__indicator::after { background: var(--state-selected-mark); }

/* --- Form fields ---------------------------------------------------------- */

.field { margin-bottom: var(--sp-4); }

.field__label {
  display: block;
  margin-bottom: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.field__label .req { color: var(--state-error-ink); margin-inline-start: 2px; }
.field__optional { font-weight: 400; color: var(--ink-tertiary); font-size: var(--fs-xs); }

.field__control {
  width: 100%;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-card);
  color: var(--ink);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  /* 16px prevents iOS Safari from zooming when a field is focused. */
  font-size: 16px;
}

.field__control:hover { border-color: var(--border-strong); }
.field__control:focus {
  outline: none;
  border-color: var(--border-selected);
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.24);
}

textarea.field__control { min-height: 96px; resize: vertical; line-height: var(--lh-body); }

select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-inline-end: var(--sp-10);
}

.field__hint { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--ink-tertiary); }

.field__error {
  display: none;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--state-error-ink);
}

/* Invalid state: red border on the field, message revealed. */
.field.is-invalid .field__control { border-color: var(--state-error-ink); background: var(--state-error-bg); }
.field.is-invalid .field__control:focus { box-shadow: 0 0 0 3px var(--state-error-glow); }
.field.is-invalid .field__error { display: block; }

.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* --- Invalid package selection ------------------------------------------- */

.pick-list.is-invalid .pick { border-color: var(--state-error-ink); }
.pick-list.is-invalid { border-radius: var(--radius); }

.package-error {
  display: none;
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--state-error-bg);
  border: 1px solid var(--state-error-border);
  border-radius: var(--radius);
  color: var(--state-error-ink);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.package-error.is-visible { display: block; }

/* Shake — used for an invalid field or the package list. */
@keyframes mc-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
}

.shake { animation: mc-shake 520ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shake { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Order summary -------------------------------------------------------- */

.summary {
  margin-top: var(--sp-5);
  border: 2px dashed var(--accent-line-soft);
  border-radius: var(--radius);
  background: var(--surface-highlight);
  padding: var(--sp-4);
}

.summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-1);
  font-size: var(--fs-sm);
}

.summary__row dt { color: var(--ink-secondary); }
.summary__row dd { margin: 0; font-weight: 700; }

.summary__row--total {
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 2px solid rgba(201, 151, 43, 0.45);
  font-size: var(--fs-lg);
}
.summary__row--total dt { color: var(--ink-primary); font-weight: var(--fw-bold); }
.summary__row--total dd { color: var(--price-ink); font-weight: 800; }

.summary__free { color: var(--state-success-ink); font-weight: 800; }

.cod-note {
  margin-top: var(--sp-3);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--state-trust-ink);
  background: var(--state-trust-bg);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.cod-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.form-error {
  display: none;
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--state-error-bg);
  border: 1px solid var(--state-error-border);
  border-radius: var(--radius);
  color: var(--state-error-ink);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.form-error.is-visible { display: block; }

.submit-wrap { margin-top: var(--sp-5); }

.btn--submit .spinner { display: none; }
.btn--submit.is-busy .spinner { display: inline-block; }
.btn--submit.is-busy .label { display: none; }

.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(17, 17, 17, 0.25);
  border-top-color: var(--ink-primary);
  border-radius: 50%;
  animation: mc-spin 700ms linear infinite;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* --- Floating Call Now ---------------------------------------------------- */
/* Never allowed to sit over content: the page reserves space at the bottom,
   and the button hides itself while the order CTA is on screen. */

.floating-call {
  position: fixed;
  z-index: var(--z-floating);
  bottom: calc(var(--sp-4) + var(--safe-bottom));
  inset-inline-end: calc(var(--sp-4) + var(--safe-right));
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--action-primary-from), var(--action-primary-to));
  color: var(--action-primary-ink);
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
}

.floating-call--left { inset-inline-end: auto; inset-inline-start: calc(var(--sp-4) + var(--safe-left)); }

.floating-call svg { width: 20px; height: 20px; }

.floating-call.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
}

/* Reserve room so the button never overlaps the last element on the page. */
body.has-floating-call { padding-bottom: calc(76px + var(--safe-bottom)); }
@media (min-width: 900px) { body.has-floating-call { padding-bottom: calc(84px + var(--safe-bottom)); } }

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

.site-footer {
  background: var(--surface-inverse);
  color: rgba(255, 249, 234, 0.86);
  padding-block: var(--sp-10) var(--sp-6);
}

.site-footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); } }

.site-footer img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.site-footer__tagline { margin-top: var(--sp-3); color: var(--ink-brand); font-weight: 700; letter-spacing: 0.6px; }
.site-footer__about { margin-top: var(--sp-2); font-size: var(--fs-sm); max-width: 44ch; }

/* Holds Bengali ("কাস্টমার কেয়ার", "পলিসি"), so no uppercase and no
   tracking - see the Bengali guard in tokens.css. */
.site-footer h3 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--ink-brand);
  margin-bottom: var(--sp-3);
}

.site-footer a { color: rgba(255, 249, 234, 0.86); }
.site-footer a:hover { color: var(--ink-brand); text-decoration: underline; }

/* Footer links are touch targets too — pad them out to a comfortable height
   rather than leaving them as bare 19px text runs. */
.site-footer li a,
.site-footer__about + p a,
.site-footer p a {
  display: inline-block;
  min-height: var(--tap-min-compact);
  line-height: var(--tap-min-compact);
}
.site-footer li + li { margin-top: 0; }
.footer-call { min-height: 48px; }

.footer-call {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--ink-brand);
  font-family: var(--font-en);
}

.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); }
.social-row a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.social-row a:hover { background: var(--surface-brand); color: var(--ink-on-brand); }
.social-row svg { width: 20px; height: 20px; }

.site-footer__bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 249, 234, 0.6);
}

/* --- Order Complete (LOCKED) --------------------------------------------- */

.complete { padding-block: var(--sp-8) var(--sp-12); background: var(--surface-muted); min-height: 70vh; }
.complete__card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.complete__top {
  background: linear-gradient(160deg, var(--surface-nature), var(--action-nature-bg));
  color: var(--ink-inverse);
  text-align: center;
  padding: var(--sp-8) var(--sp-5) var(--sp-6);
}

.complete__tick {
  width: 76px; height: 76px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--surface-card);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16);
}
.complete__tick svg { width: 40px; height: 40px; color: var(--state-success-ink); }

@keyframes mc-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.complete__tick { animation: mc-pop 480ms var(--ease) both; }

.complete__heading { font-size: var(--fs-xl); font-weight: var(--fw-black); line-height: var(--lh-heading); }
.complete__support { margin-top: var(--sp-2); font-size: var(--fs-md); color: rgba(255, 249, 234, 0.92); }

.complete__body { padding: var(--sp-5); }

.order-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 2px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface-highlight);
}
.order-id__label { font-size: var(--fs-sm); color: var(--ink-secondary); }
.order-id__value {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--ink-primary);
  word-break: break-all;
}
.copy-btn {
  min-height: 42px;
  padding: var(--sp-2) var(--sp-4);
  border: 2px solid var(--ink-primary);
  border-radius: var(--radius-pill);
  background: transparent;
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.copy-btn:hover { background: var(--action-inverse-bg); color: var(--action-inverse-ink); }
.copy-btn.is-copied { background: var(--action-success-bg); border-color: var(--action-success-bg); color: var(--action-success-ink); }

.detail-list { margin-top: var(--sp-5); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; }
.detail-list__row {
  display: grid;
  grid-template-columns: minmax(96px, 38%) 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}
.detail-list__row + .detail-list__row { border-top: 1px solid var(--border-subtle); }
.detail-list__row dt { color: var(--ink-secondary); }
.detail-list__row dd { margin: 0; font-weight: 600; word-break: break-word; }

.detail-list__row--total {
  background: var(--surface-highlight);
  font-size: var(--fs-md);
}
.detail-list__row--total dt, .detail-list__row--total dd { font-weight: 800; }
.detail-list__row--total dd { color: var(--price-ink); }

.cod-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--state-trust-bg);
  color: var(--state-trust-ink);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.next-step {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface-muted);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-secondary);
}

.complete__actions { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
@media (min-width: 520px) { .complete__actions { grid-template-columns: 1fr 1fr; } }

/* --- Policy / error / maintenance pages ----------------------------------- */

.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h1 { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: var(--sp-4); }
.prose h2, .prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); font-size: var(--fs-lg); font-weight: 700; }
.prose p { margin-bottom: var(--sp-4); color: var(--ink-secondary); }
.prose ul { list-style: disc; padding-inline-start: var(--sp-6); margin-bottom: var(--sp-4); color: var(--ink-secondary); }
.prose li { margin-bottom: var(--sp-2); }
.prose a { color: var(--action-nature-bg); text-decoration: underline; }

.state-page { text-align: center; padding-block: var(--sp-16); }
.state-page__code { font-size: 4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.state-page__title { margin-top: var(--sp-3); font-size: var(--fs-xl); font-weight: 700; }
.state-page__text { margin-top: var(--sp-3); color: var(--ink-secondary); max-width: 48ch; margin-inline: auto; }
.state-page__actions { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* --- Placeholder image warning (admin-visible only via query flag) -------- */

.placeholder-ribbon {
  position: absolute;
  top: var(--sp-2);
  inset-inline-end: var(--sp-2);
  background: var(--surface-danger);
  color: var(--ink-on-danger);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

@media print {
  .site-header, .floating-call, .complete__actions, .skip-link { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
}

/* --- Focus ring on dark surfaces ----------------------------------------- */
/* A single outline colour cannot serve both a white card and the dark green
   hero. Black covers every light surface; these dark sections switch to honey
   yellow, which reads at 6.7:1 on the dark green and 10.3:1 on black. */

.hero :focus-visible,
.site-footer :focus-visible,
.complete__top :focus-visible,
.order-panel__head :focus-visible,
.skip-link:focus-visible {
  outline-color: var(--focus-ring-inverse);
}
