/* ==================================================================
   Giltoor — homepage styles
   Palette is grounded in the brand itself: "gul-toor" is a real
   Kashmiri wildflower with a golden-yellow bloom that pushes up
   through the last of the winter snow — hence the gold. Ink and
   chilli-red echo the deep, premium tone already used on the
   giltoor.com coming-soon page and the chilli-powder QR pages, so
   this homepage feels like the same brand rather than a new one.
   ================================================================== */

:root {
  --color-ink: #1c130d;          /* near-black warm brown — matches giltoor.com */
  --color-ink-soft: #2c2019;
  --color-gold: #e8a317;         /* gul-toor gold — signature header colour */
  --color-gold-deep: #c68a0f;
  --color-ivory: #f6efe1;        /* warm paper — section backgrounds */
  --color-white: #ffffff;
  --color-chilli: #7c2d22;       /* muted spice red — price / accent only */
  --color-body-text: #4b3f35;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, Segoe UI, sans-serif;

  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 16px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
p { margin: 0 0 1em; }
button { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-chilli);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn--primary { background: var(--color-ink); color: var(--color-gold); }
.btn--primary:hover { background: var(--color-ink-soft); }

/* ==================================================================
   1. Utility bar — Get in touch + Search
   ================================================================== */
.utility-bar {
  background: var(--color-ink);
  color: var(--color-ivory);
  font-size: 0.85rem;
  position: relative;
  z-index: 50;
}
.utility-bar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.utility-bar__contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.utility-bar__label { opacity: 0.7; }
.utility-bar__contact a { opacity: 0.9; }
.utility-bar__contact a:hover { opacity: 1; text-decoration: underline; }

.utility-bar__search { position: relative; }
#site-search {
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
}
#site-search::placeholder { color: rgba(255, 255, 255, 0.5); }
#site-search:focus { background: rgba(255, 255, 255, 0.14); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
}
.search-results li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.search-results li a:hover,
.search-results li a:focus-visible { background: var(--color-ivory); }
.search-results__type { font-size: 0.72rem; color: var(--color-chilli); white-space: nowrap; }
.search-results__empty { padding: 12px; font-size: 0.85rem; color: #7a7a7a; }

@media (min-width: 768px) {
  .utility-bar__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .utility-bar__search { width: 300px; }
}

/* ==================================================================
   2. Main header — logo + nav
   ================================================================== */
.main-header {
  background: var(--color-gold);
  color: var(--color-white);
  position: relative; /* containing block for the mobile dropdown below */
  z-index: 40;
}
.main-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { color: var(--color-white); }
.logo__mark svg { width: 30px; height: 30px; display: block; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-white); display: block; }

/* Mobile: a dropdown panel anchored to .main-header (its containing
   block, set above) so it always sits directly under the header
   instead of relying on the browser's "static position" fallback —
   that ambiguity was why part of the menu used to render hidden
   behind other content. */
.main-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-gold-deep);
  z-index: 45;
  box-shadow: 0 14px 28px rgba(28, 19, 13, 0.28);
  max-height: calc(100vh - 100%);
  overflow-y: auto;
}
.main-nav.is-open { display: flex; }
.main-nav a {
  color: var(--color-white);
  padding: 14px 20px;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    flex-direction: row;
    gap: 30px;
    position: static;
    background: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .main-nav a { padding: 0; border-top: none; position: relative; }
  .main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--color-white);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  .main-nav a:hover::after { transform: scaleX(1); }
}

/* ==================================================================
   3. Hero — full-width image
   ================================================================== */
.hero { position: relative; }
.hero__media {
  width: 100%;
  height: auto;
  max-height: 56vh;
  object-fit: cover;
}
.hero__content {
  position: relative;
  margin-top: -90px;
  margin-inline: 16px;
  background: var(--color-white);
  padding: 26px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(28, 19, 13, 0.18);
}
.hero__title { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.hero__subtitle { color: var(--color-body-text); max-width: 46ch; }

@media (min-width: 768px) {
  .hero__media { max-height: 68vh; }
  .hero__content { margin-top: -150px; margin-inline: 60px; max-width: 1100px; }
}

/* ==================================================================
   4. Story — text + image, side-by-side on desktop
   ================================================================== */
.story {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 56px 20px;
  max-width: var(--container);
  margin-inline: auto;
}
.story__media {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.story__content { max-width: 62ch; }
.story__content h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.story__content p { color: var(--color-body-text); }

@media (min-width: 768px) {
  .story { flex-direction: row; align-items: center; gap: 60px; padding: 90px 20px; }
  .story__media { flex: 1; object-fit: cover; height: 380px; }
  .story__content { flex: 1; }
}

/* ==================================================================
   5. New Arrivals — shop-style grid
   ================================================================== */
.arrivals { background: var(--color-ivory); padding: 56px 20px 64px; }
.arrivals__inner { max-width: var(--container); margin-inline: auto; }
.arrivals__head { margin-bottom: 30px; max-width: 50ch; }
.arrivals__head h2 { font-size: clamp(1.6rem, 3.8vw, 2.2rem); }
.arrivals__head p { color: #6b5c4d; margin: 0; }

.arrivals__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 18px;
}
.product-card { display: block; color: inherit; }
.product-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.product-card__name { font-weight: 600; margin-bottom: 2px; font-size: 0.95rem; }
.product-card__price { color: var(--color-chilli); font-weight: 700; margin: 0; }

@media (min-width: 900px) {
  .arrivals__grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }
}

/* ==================================================================
   6. Footer
   ================================================================== */
.site-footer { background: var(--color-ink); color: var(--color-ivory); }
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 52px 20px 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(246, 239, 225, 0.8);
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--color-white); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(246, 239, 225, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  margin-bottom: 0;
}
.site-footer__bottom {
  border-top: 1px solid rgba(246, 239, 225, 0.15);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(246, 239, 225, 0.6);
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
