/* =========================================================
   Iconiq Gifts | Diwali hamper landing page
   Colours come from the logo: brownish red and gold.
   To match the logo exactly, change --ox-700 and --gold below.
   Fonts (Libre Caslon Display + Hind) load from Google Fonts in index.html.
   ========================================================= */

:root {
  --ox-950: #2E0A08;
  --ox-900: #3F0F0C;
  --ox-800: #561510;
  --ox-700: #6E1D14;   /* main brownish red */
  --ox-600: #8A2A1B;

  --gold: #C9A24A;     /* main gold */
  --gold-300: #DDB965;
  --gold-100: #EFD9A0;

  --paper: #FBF5E8;
  --paper-2: #F3E9D2;
  --paper-hi: #FFFAF0;
  --ink: #2B1410;
  --ink-soft: #5E4139;
  --line: rgba(110, 29, 20, .2);
  --err: #9B1C13;

  --serif: 'Libre Caslon Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hind', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1160px;
  --r: 4px;

  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9A24A' stroke-opacity='.17' stroke-width='1'%3E%3Cpath d='M36 2 70 36 36 70 2 36z'/%3E%3Ccircle cx='36' cy='36' r='12'/%3E%3Cpath d='M36 24v24M24 36h24'/%3E%3C/g%3E%3C/svg%3E");
  --lattice-ox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%236E1D14' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M36 2 70 36 36 70 2 36z'/%3E%3Ccircle cx='36' cy='36' r='12'/%3E%3Cpath d='M36 24v24M24 36h24'/%3E%3C/g%3E%3C/svg%3E");
  --diya: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M32 3c-5 8-8 12-8 17 0 5 3.6 8 8 8s8-3 8-8c0-5-3-9-8-17z' fill='%23C9A24A' fill-opacity='.75'/%3E%3Cpath d='M6 30h52c0 11-10.5 20-26 20S6 41 6 30z' fill='%23C9A24A' fill-opacity='.75'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }
/* An <img> with no src stays hidden, so empty photo slots show a neat placeholder.
   As soon as you add a src, the photo appears. */
img:not([src]) { display: none; }
[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ox-700);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--gold-300);
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.5rem;
  font: 600 1rem/1.2 var(--sans);
  border: 1.5px solid transparent; border-radius: var(--r);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { padding: .55rem 1.05rem; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }

.btn-gold { background: var(--gold); color: var(--ox-950); border-color: #B08A34; }
.btn-gold:hover { background: var(--gold-300); }

.btn-ox { background: var(--ox-700); color: var(--gold-100); border-color: var(--ox-700); }
.btn-ox:hover { background: var(--ox-900); }

.btn-line { background: transparent; color: var(--gold-100); border-color: rgba(201, 162, 74, .75); }
.btn-line:hover { background: rgba(201, 162, 74, .14); }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: 3px; color: inherit;
}

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ox-950); color: var(--gold-100); text-align: center; font-size: .94rem; padding: .55rem 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper-hi);
  border-bottom: 1px solid rgba(176, 138, 52, .55);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ox-700); flex: none; }
.brand-logo { height: 160px; width: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font: 400 1.6rem/1 var(--serif); letter-spacing: .005em; }
/* When your logo image is added, the text mark hides itself */
.brand-logo[src] ~ .brand-mark, .brand-logo[src] ~ .brand-name { display: none; }

.nav { display: flex; gap: 1.8rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ox-600); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 1.3rem; flex: none; }
.header-phone { color: var(--ox-700); text-decoration: none; font-weight: 600; }
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ox-800); color: var(--gold-100);
  padding: clamp(1.8rem, 3.5vw, 3rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 4px solid var(--gold);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--lattice);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 95%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 95%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}

.hero-place { margin-bottom: .9rem; font-size: 1rem; color: var(--gold-300); }
.hero h1 {
  font: 400 clamp(2.1rem, 4.2vw, 3.1rem)/1.14 var(--serif);
  color: #FBF1D6; max-width: 17em; letter-spacing: -.005em;
  text-wrap: balance;
}
.hero-lede { margin-top: 1rem; max-width: 33rem; font-size: 1.08rem; color: rgba(251, 241, 214, .86); }
.hero-price { margin-top: .9rem; font-size: 1.15rem; font-weight: 600; color: var(--gold-100); }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }

.hero-visual { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; align-items: flex-end; margin-top: 2rem; }

.arch {
  position: relative; overflow: hidden;
  flex: 0 0 min(260px, 100%); aspect-ratio: 10 / 11;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  border: 1.5px solid rgba(201, 162, 74, .75);
  border-radius: 999px 999px 4px 4px;
  background: var(--ox-900);
}
.lamp { width: 64px; }
.flame { transform-origin: 32px 28px; }
.arch-note { padding: 0 2rem; text-align: center; font-size: .92rem; color: rgba(239, 217, 160, .75); }
.arch-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

.hero-notes { flex: 1 1 200px; display: grid; gap: 1.1rem; }
.hero-notes li { padding-left: 1rem; border-left: 2px solid var(--gold); }
.hero-notes strong { display: block; font-weight: 600; color: #FBF1D6; }
.hero-notes span { font-size: .95rem; color: rgba(251, 241, 214, .75); }

/* ---------- Enquiry form ---------- */
.hero-right { position: sticky; top: 84px; }
.quote {
  position: relative;
  padding: 2rem 1.9rem 1.8rem;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .35);
}
.quote::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(176, 138, 52, .8); border-radius: 2px;
}
.quote h2 { font: 400 1.75rem/1.2 var(--serif); color: var(--ox-700); }
.quote-sub { margin: .35rem 0 1.3rem; color: var(--ink-soft); font-size: .98rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .25rem; font-size: .92rem; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: .7rem .8rem;
  font: 400 1rem/1.3 var(--sans); color: var(--ink);
  background: #FFFDF7; border: 1px solid #C9B385; border-radius: 3px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236E1D14' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
}
.field select:invalid { color: #7E6A5F; }
.field input:focus, .field select:focus { border-color: var(--ox-700); }
.field.has-error input, .field.has-error select { border-color: var(--err); background: #FFF6F3; }
.err { display: block; margin-top: .25rem; font-size: .88rem; color: var(--err); }
.flash select, .flash input { animation: flash 1.1s ease-out; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.hamper-note {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  margin: 0 0 1rem; padding: .6rem .8rem;
  background: var(--paper-2); border-left: 3px solid var(--gold);
  font-size: .92rem; color: var(--ink);
}
.form-error { margin-bottom: .8rem; padding: .6rem .8rem; background: #FBE9E5; color: var(--err); font-size: .93rem; border-radius: 3px; }
.fine { margin-top: .8rem; font-size: .85rem; color: var(--ink-soft); text-align: center; }

.thanks h2 { margin-bottom: .8rem; }
.thanks p { margin-bottom: .8rem; color: var(--ink-soft); }
.thanks strong { color: var(--ink); }
.thanks:focus { outline: none; }

/* ---------- Sections (shared) ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }

.section h2 {
  font: 400 clamp(1.8rem, 3.4vw, 2.6rem)/1.15 var(--serif);
  max-width: 21em; margin-bottom: .8rem; color: var(--ox-700);
  text-wrap: balance;
}
.section .lede { max-width: 41rem; margin-bottom: 2.4rem; color: var(--ink-soft); }

/* ---------- Why Iconiq ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--gold); }
.compare-col { padding: 2.4rem 2.6rem 2rem; }
.compare-col--old { background: var(--paper-hi); }
.compare-col--new { background: var(--ox-700); color: rgba(251, 241, 214, .92); }
.compare h3 { font: 400 1.55rem/1.2 var(--serif); margin-bottom: 1rem; }
.compare-col--old h3 { color: var(--ink); }
.compare-col--new h3 { color: var(--gold-100); }
.compare li { padding: .9rem 0; border-top: 1px solid rgba(110, 29, 20, .18); }
.compare-col--old li { color: var(--ink-soft); }
.compare-col--new li { border-top-color: rgba(239, 217, 160, .25); }
.compare li:first-child { border-top: 0; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.8rem; }
.trio > div { padding-left: 1.1rem; border-left: 2px solid var(--gold); }
.trio h3 { font: 400 1.4rem/1.2 var(--serif); color: var(--ox-700); margin-bottom: .3rem; }
.trio p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Budget staircase ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: end; }
.step {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.5rem 1.2rem 1.4rem;
  border-top: 4px solid var(--gold);
  background: var(--bg); color: var(--fg);
}
.step:nth-child(1) { --bg: var(--paper-hi); --fg: var(--ink);       --head: var(--ox-700); padding-top: 1.5rem; }
.step:nth-child(2) { --bg: #EAD8AA;         --fg: var(--ink);       --head: var(--ox-700); padding-top: 3.1rem; }
.step:nth-child(3) { --bg: var(--gold);     --fg: var(--ox-950);    --head: var(--ox-900); padding-top: 4.7rem; border-top-color: var(--ox-700); }
.step:nth-child(4) { --bg: var(--ox-600);   --fg: rgba(251, 241, 214, .92); --head: var(--gold-100); padding-top: 6.3rem; }
.step:nth-child(5) { --bg: var(--ox-900);   --fg: rgba(251, 241, 214, .92); --head: var(--gold-100); padding-top: 7.9rem; }
.step h3 { font: 400 2.3rem/1.05 var(--serif); color: var(--head); }
.per { font-size: .92rem; opacity: .85; }
.ideal { margin: .9rem 0 1rem; padding-top: .9rem; border-top: 1px solid currentColor; border-top-color: rgba(128, 90, 60, .4); font-size: .97rem; }
.ideal b { display: block; font-weight: 600; }
.step .btn { margin-top: auto; width: 100%; padding-inline: .8rem; }

/* ---------- Hamper gallery ---------- */
.hampers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.hamper {
  display: flex; flex-direction: column;
  background: var(--paper-hi); border: 1px solid rgba(176, 138, 52, .5);
}
.hamper-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--lattice-ox), var(--paper-2);
}
/* Placeholder, visible until you add a photo */
.hamper-media::before {
  content: ""; position: absolute; inset: 0;
  background: var(--diya) center 42% / 46px no-repeat;
}
.hamper-media::after {
  content: "Add hamper photo"; position: absolute; left: 0; right: 0; top: calc(42% + 38px);
  text-align: center; font-size: .86rem; color: var(--ink-soft);
}
.hamper-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hamper-body { display: flex; flex-direction: column; gap: .3rem; flex: 1; padding: 1rem 1rem 1.1rem; }
.hamper-name { margin-bottom: .7rem; font: 400 1.25rem/1.25 var(--serif); color: var(--ox-700); }
.hamper-body .btn { margin-top: auto; }

/* ---------- Timeline ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.tl::before { content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 2px; background: var(--line); }
.tl li { position: relative; padding: 1.7rem 1.2rem 0 0; }
.tl li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px;
  border-radius: 50%; background: var(--paper-hi); border: 2px solid var(--ox-700);
}
.tl .is-key::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .35); }
.tl time { display: block; margin-bottom: .3rem; font: 400 1.35rem/1.2 var(--serif); color: var(--ox-700); }
.tl span { display: block; font-size: .97rem; color: var(--ink-soft); }
.tl .is-key span { color: var(--ink); font-weight: 500; }

/* ---------- Good to know ---------- */
.terms { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
.terms div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; color: var(--ox-700); }

/* ---------- Closing CTA ---------- */
.final { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--ox-900); color: var(--gold-100); border-top: 4px solid var(--gold); overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; background-image: var(--lattice);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 65%);
          mask-image: linear-gradient(270deg, #000, transparent 65%);
  pointer-events: none;
}
.final-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: center; }
.final h2 { font: 400 clamp(1.7rem, 3.2vw, 2.4rem)/1.2 var(--serif); color: #FBF1D6; text-wrap: balance; }
.final-actions { display: grid; gap: 1.1rem; justify-items: start; }
.final-phone { font: 400 clamp(1.8rem, 3.4vw, 2.5rem)/1 var(--serif); color: var(--gold-100); text-decoration: none; }
.final-btns { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ox-950); color: rgba(239, 217, 160, .75); font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0; }
.footer-row a { color: var(--gold-100); }

/* ---------- Mobile bar ---------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  grid-template-columns: 1fr 1.2fr 1.4fr; gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: var(--ox-950); border-top: 1px solid rgba(201, 162, 74, .4);
}

/* ---------- Motion (only if the visitor allows it) ---------- */
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(-1deg); }
  45%      { transform: scale(.93, 1.07) rotate(1.6deg); }
  70%      { transform: scale(1.03, .96) rotate(-.6deg); }
}
@keyframes flash {
  from { background-color: #F6E3A6; }
  to   { background-color: #FFFDF7; }
}
@media (prefers-reduced-motion: no-preference) {
  .flame { animation: flicker 2.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flash select, .flash input { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
}

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-left, .hero-visual { display: contents; }
  .hero-copy { order: 1; }
  .arch { order: 2; flex: none; width: min(260px, 100%); }
  .hero-right { position: static; order: 3; }
  .hero-notes { order: 4; }
  .quote { max-width: 34rem; }

  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .step:nth-child(n) { padding-top: 1.5rem; }
  .step:last-child { grid-column: 1 / -1; }
  .terms { grid-template-columns: 1fr; }
  .final-grid { grid-template-columns: 1fr; }

  /* timeline turns vertical */
  .tl { grid-template-columns: 1fr; padding-left: .2rem; }
  .tl::before { left: 6px; right: auto; top: .4rem; bottom: 1rem; width: 2px; height: auto; }
  .tl li { padding: 0 0 1.5rem 2rem; }
  .tl li::before { top: .3rem; }
}

@media (max-width: 820px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 4.6rem; }
  .header-phone { display: none; }
  .trio { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: auto; }
  .hampers { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .hamper-body { padding: .8rem .8rem .9rem; }
  .hamper-name { font-size: 1.1rem; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .quote { padding: 1.7rem 1.3rem 1.5rem; }
  .compare-col { padding: 1.7rem 1.4rem 1.4rem; }
  .terms div { grid-template-columns: 1fr; gap: .2rem; }
  .brand-name { font-size: 1.35rem; }
  .header-actions .btn { padding: .5rem .9rem; }
}

@media (max-width: 380px) {
  .header-row { gap: .6rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-logo { height: 38px; max-width: 150px; object-fit: contain; }
  .header-actions .btn { padding: .45rem .7rem; font-size: .88rem; }
}

/* Photo fix: any <img> inside a hamper card or the hero arch fills its frame */
.hamper-media img,
.arch > img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}

/* Hide the "Add hamper photo" placeholder once a photo is present */
.hamper-media:has(img[src])::before,
.hamper-media:has(img[src])::after { display: none; }