/* Ikram Hair Oil — full editorial redesign.
   Fonts: Amiri (display Naskh) + Almarai (body sans), via Google Fonts.
   Palette: drenched dark olive, ivory type, single antique-gold accent.
   Layout: full-bleed alternating image sections, no card grids. */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Almarai:wght@300;400;700;800&display=swap');

:root {
  --ink:        oklch(0.16 0.04 130);          /* deepest dark olive */
  --bg:         oklch(0.20 0.05 130);          /* page bg */
  --surface-1:  oklch(0.24 0.05 130);          /* raised plate */
  --surface-2:  oklch(0.28 0.04 130);          /* well */

  --ivory:      oklch(0.95 0.02 85);
  --ivory-soft: oklch(0.88 0.02 85 / 0.78);
  --ivory-mute: oklch(0.85 0.02 85 / 0.55);
  --ivory-line: oklch(0.85 0.02 85 / 0.14);

  --paper:      oklch(0.97 0.01 85);
  --paper-edge: oklch(0.88 0.02 85);
  --paper-ink:  oklch(0.20 0.03 130);
  --paper-mute: oklch(0.46 0.02 130);

  --gold:       oklch(0.78 0.13 85);
  --gold-deep:  oklch(0.70 0.13 80);
  --gold-soft:  oklch(0.80 0.13 85 / 0.16);

  --danger:     oklch(0.55 0.20 27);
  --ok:         oklch(0.65 0.16 145);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-1:  220ms var(--ease);
  --t-2:  500ms var(--ease);

  --serif: "Amiri", "Times New Roman", serif;
  --sans:  "Almarai", "Segoe UI", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(60% 40% at 50% 0%, oklch(0.26 0.06 130) 0%, transparent 70%),
    var(--bg);
  min-height: 100vh;
}

::selection { background: var(--gold); color: var(--ink); }

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

main { display: block; }

/* ============================ Top bar ================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 28px);
  position: relative;
  z-index: 4;
}
.mark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid oklch(0.78 0.13 85 / 0.40);
  padding: 5px 10px;
  border-radius: 999px;
  background: oklch(0.78 0.13 85 / 0.06);
}

/* ============================ Hero ===================================== */
.hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 880px;
  padding: 0 clamp(0px, 2vw, 14px);
}
.hero-img {
  width: 100%;
  border-radius: 0;
  box-shadow:
    0 30px 80px -30px oklch(0 0 0 / 0.7),
    0 8px 24px -8px oklch(0 0 0 / 0.4);
}
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(14px, 4vw, 28px) 8px;
  max-width: 720px;
  margin: 0 auto;
}
.price {
  font-family: var(--serif);
  color: var(--gold);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.price b {
  font-weight: 700;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
}
.price i {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.hero-cta {
  flex: 0 0 auto;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: var(--gold);
  padding: 14px 26px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 0 oklch(0.98 0.02 85 / 0.5) inset,
    0 10px 22px -8px oklch(0.78 0.13 85 / 0.45);
  transition: background var(--t-1), transform 80ms ease-out;
}
.hero-cta:hover { background: var(--gold-deep); }
.hero-cta:active { transform: translateY(1px); }

/* ============================ Section kickers ========================== */
/* Used sparingly — once per section to set tone. Not on every block. */
.section-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ============================ Benefits ================================= */
.benefits {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 10vw, 80px) clamp(20px, 5vw, 28px) clamp(20px, 6vw, 40px);
  text-align: center;
}
.benefits .section-kicker { text-align: center; }
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(22px, 5vw, 32px) 0;
  width: 100%;
  max-width: 520px;
  position: relative;
}
/* Short centered hairline separator between benefits */
.benefit:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: var(--ivory-line);
}
.benefit-num {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 7.5vw, 44px);
  color: var(--gold);
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.benefit-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 5vw, 26px);
  color: var(--ivory);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
  text-wrap: balance;
}
.benefit-body {
  margin: 0 auto;
  color: var(--ivory-soft);
  font-size: clamp(14.5px, 3.4vw, 16px);
  line-height: 1.75;
  max-width: 44ch;
  text-wrap: pretty;
}

/* ============================ Heritage ================================= */
.heritage {
  margin: clamp(20px, 6vw, 50px) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.heritage-fig {
  margin: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.heritage-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  max-height: 540px;
}
.heritage-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      oklch(0.16 0.04 130 / 0.10) 0%,
      transparent 30%,
      transparent 70%,
      oklch(0.16 0.04 130 / 0.55) 100%);
  pointer-events: none;
}
.heritage-copy {
  padding: clamp(36px, 9vw, 64px) clamp(22px, 6vw, 40px);
  max-width: 640px;
  margin: 0 auto;
  text-align: start;
}
.heritage-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 7.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin: 0 0 18px;
  text-wrap: balance;
}
.heritage-body {
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.85;
  color: var(--ivory-soft);
  margin: 0 0 14px;
  max-width: 56ch;
}
.heritage-body:last-child { margin-bottom: 0; }

@media (min-width: 800px) {
  .heritage {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    max-width: 1100px;
    margin: clamp(40px, 6vw, 70px) auto 0;
    padding: 0 clamp(20px, 4vw, 32px);
    gap: clamp(28px, 5vw, 56px);
  }
  .heritage-fig img { aspect-ratio: 4/5; max-height: 620px; border-radius: var(--r-lg); }
  .heritage-fig::after { border-radius: var(--r-lg); }
}

/* ============================ Ingredients ============================== */
.ingredients {
  margin: clamp(40px, 9vw, 80px) 0 0;
  display: grid;
  grid-template-columns: 1fr;
}
.ingredients-copy {
  padding: clamp(40px, 9vw, 64px) clamp(22px, 6vw, 40px) clamp(28px, 6vw, 44px);
  max-width: 680px;
  margin: 0 auto;
  text-align: start;
}
.ingredients-title {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ivory);
  margin: 0 0 28px;
  text-wrap: balance;
}
.ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ingredients-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: clamp(16px, 3.5vw, 20px) 0;
  border-bottom: 1px dashed var(--ivory-line);
}
.ingredients-list li:last-child { border-bottom: none; }
.ingredients-list span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(19px, 4.8vw, 24px);
  color: var(--ivory);
  line-height: 1.35;
}
.ingredients-list em {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(13.5px, 3.4vw, 15.5px);
  color: var(--ivory-mute);
  text-align: end;
  flex: 0 1 auto;
  line-height: 1.5;
}
.ingredients-fig {
  margin: 0;
  padding: 0 clamp(0px, 2vw, 12px);
}
.ingredients-fig img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 20px 50px -20px oklch(0 0 0 / 0.5);
}

@media (min-width: 800px) {
  .ingredients {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    max-width: 1100px;
    margin: clamp(60px, 8vw, 100px) auto 0;
    padding: 0 clamp(20px, 4vw, 32px);
    gap: clamp(28px, 5vw, 56px);
  }
  .ingredients-fig img { border-radius: var(--r-lg); aspect-ratio: 1/1; max-height: 620px; }
}

/* ============================ Form ===================================== */
.form-wrap {
  padding: clamp(50px, 10vw, 90px) clamp(16px, 4vw, 28px) 24px;
  max-width: 720px;
  margin: 0 auto;
}

.form-card {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--r-lg);
  padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 32px);
  box-shadow:
    0 1px 0 0 oklch(0.95 0.02 85 / 0.06) inset,
    0 30px 80px -30px oklch(0 0 0 / 0.65),
    0 6px 18px -4px oklch(0 0 0 / 0.30);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
}

.form-head {
  text-align: center;
  margin-bottom: 26px;
}
.form-head .section-kicker { text-align: center; margin-bottom: 10px; }
.form-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 5.8vw, 32px);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.form-sub {
  margin: 0;
  font-size: 14px;
  color: var(--paper-mute);
  font-weight: 400;
}

.form { display: flex; flex-direction: column; gap: 16px; }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 520px) {
  .row { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label,
.field legend {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.req { color: var(--danger); margin-inline-start: 3px; }
.hint { margin: 4px 0 0; color: var(--paper-mute); font-size: 12px; }

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--paper-edge);
  border-radius: 0;
  padding: 11px 2px 9px;
  min-height: 42px;
  transition: border-color var(--t-1), box-shadow var(--t-1);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-mute) 50%),
                    linear-gradient(135deg, var(--paper-mute) 50%, transparent 50%);
  background-position:
    calc(0% + 14px) 18px,
    calc(0% + 20px) 18px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-inline-start: 32px;
}
[dir="rtl"] .field select {
  background-position:
    calc(100% - 20px) 18px,
    calc(100% - 14px) 18px;
}
.field textarea { min-height: 64px; resize: vertical; padding-top: 8px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-bottom-color: var(--danger);
  box-shadow: 0 1px 0 0 var(--danger);
}
.field input::placeholder, .field textarea::placeholder {
  color: oklch(0.58 0.02 130);
  font-weight: 400;
}

.delivery { border: none; background: transparent; padding: 0; margin: 0; }
.delivery legend { padding: 0; margin-bottom: 8px; }
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  background: oklch(0.93 0.01 85);
  border: 1.5px solid var(--paper-edge);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-1), border-color var(--t-1), color var(--t-1);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
  text-align: center;
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio:hover { border-color: var(--gold-deep); }
.radio:has(input:checked) { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.radio.is-checked { background: var(--ink); color: var(--gold); border-color: var(--ink); }

#address-field.hidden { display: none; }
#address-field[hidden] { display: none; }

.captcha label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.captcha input { max-width: 140px; }

.err {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 700;
}
.err:empty { display: none; }

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ============================ Summary ================================== */
.summary {
  background: oklch(0.93 0.01 85);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 8px;
  border: 1px solid var(--paper-edge);
}
.summary .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  font-size: 14px;
  color: var(--paper-mute);
}
.summary .line b {
  color: var(--ink);
  font-weight: 800;
  font-feature-settings: "tnum" 1;
}
.summary .total {
  border-top: 1px solid var(--paper-edge);
  margin-top: 8px;
  padding-top: 12px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}
.summary .total b { font-size: 24px; }

/* ============================ CTA ====================================== */
.cta {
  width: 100%;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: 10px;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 0 oklch(0.98 0.02 85 / 0.5) inset,
    0 12px 30px -10px oklch(0.78 0.13 85 / 0.55);
  transition: transform 80ms ease-out, background var(--t-1), box-shadow var(--t-1);
}
.cta:hover { background: var(--gold-deep); box-shadow: 0 1px 0 0 oklch(0.98 0.02 85 / 0.5) inset, 0 16px 36px -10px oklch(0.78 0.13 85 / 0.65); }
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: .65; cursor: progress; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.delivery-note {
  text-align: center;
  color: var(--paper-mute);
  font-size: 13px;
  margin: 16px 0 0;
  letter-spacing: 0.01em;
}

.form-error {
  background: oklch(0.95 0.04 27);
  color: oklch(0.40 0.18 27);
  border: 1px solid oklch(0.85 0.10 27);
  border-radius: var(--r-md);
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 0;
}

/* ============================ Success ================================== */
.success {
  position: fixed;
  inset: 0;
  background: oklch(0.10 0.03 130 / 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
}
.success[hidden] { display: none; }
.success-card {
  background: var(--surface-1);
  color: var(--ivory);
  border: 1px solid var(--ivory-line);
  border-radius: var(--r-lg);
  max-width: 460px;
  width: 100%;
  padding: 0 0 24px;
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / 0.6);
  text-align: center;
  max-height: 92vh;
  overflow-y: auto;
}
.success-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.success-mark {
  width: 60px; height: 60px; line-height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  margin: -36px auto 14px;
  border: 4px solid var(--surface-1);
  box-shadow: 0 8px 22px -6px oklch(0.78 0.13 85 / 0.5);
  position: relative;
  z-index: 1;
}
.success-card h2 {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ivory);
  font-size: 26px;
  letter-spacing: -0.01em;
  padding: 0 24px;
}
.success-msg {
  margin: 0 0 16px;
  padding: 0 28px;
  color: var(--ivory-soft);
  font-size: 15px;
  line-height: 1.75;
}
.success-summary {
  text-align: start;
  margin: 14px 20px 18px;
  font-size: 13.5px;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 14px;
  row-gap: 8px;
  background: var(--ink);
  border: 1px solid var(--ivory-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.success-summary dt {
  color: var(--ivory-mute);
  font-weight: 400;
  font-family: var(--sans);
}
.success-summary dd {
  margin: 0;
  color: var(--ivory);
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}
.success-card .cta {
  width: calc(100% - 40px);
  margin: 0 20px;
}

/* ============================ Footer =================================== */
.foot {
  text-align: center;
  color: var(--ivory-mute);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 40px 14px 24px;
}
.foot p { margin: 4px 0; }
.foot-sub { font-size: 11px; color: var(--ivory-mute); }

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