/* ============================================================
   Ambika Appalam Depot — Design Tokens
   Palette drawn from banana leaf, turmeric, clay and sun-dried
   discs. Signature motif: the appalam itself — a circle.
   ============================================================ */
:root {
  --bg: #FFFFFF;          /* white middle content */
  --bg-card: #FFFFFF;     /* card surface */
  --ink: #2B2117;         /* deep coffee-brown, not black */
  --ink-soft: #5B4E3F;
  --leaf: #3B5731;        /* banana leaf green */
  --leaf-dark: #28401F;
  --marigold: #E8A33D;    /* turmeric gold */
  --marigold-dark: #C77F1E;
  --terracotta: #B5482F;  /* clay red */
  --terracotta-dark: #8F3622;
  --line: rgba(43, 33, 23, 0.12);

  --brand-blue: #00B3FE;  /* header / footer background */
  --on-blue: #FFFFFF;     /* header / footer foreground */
  --on-blue-soft: rgba(255, 255, 255, 0.8);
  --on-blue-line: rgba(255, 255, 255, 0.25);

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-brand: 'Cooper Black', 'Cooper Std Black', 'Cooper BT', 'Bevan', Georgia, 'Times New Roman', serif;

  --radius-card: 22px;
  --shadow-soft: 0 14px 34px rgba(43, 33, 23, 0.10);
  --shadow-deep: 0 22px 50px rgba(43, 33, 23, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.9em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-deep); }
.btn--ghost {
  background: transparent;
  border-color: var(--leaf);
  color: var(--leaf);
}
.btn--ghost:hover { background: var(--leaf); color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-blue);
  border-bottom: 1px solid var(--on-blue-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--on-blue);
}
.brand__word { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.5rem;
  color: var(--on-blue);
}
.brand__sub {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-blue-soft);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__link {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--on-blue-soft);
  position: relative;
  padding: 4px 0;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--on-blue);
  transition: right 0.2s ease;
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { right: 0; }
.site-nav__link.is-active { color: var(--on-blue); font-weight: 600; }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--on-blue); display: block; }

/* ============================================================
   Hero — scattered appalam discs (signature element)
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  max-width: 12ch;
}
.hero__copy h1 em {
  font-style: italic;
  color: var(--terracotta);
}
.hero__copy p {
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero__cta { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

.disc-field {
  position: relative;
  height: 420px;
}
.disc {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 6px solid var(--bg-card);
}
.disc img { width: 100%; height: 100%; object-fit: cover; }
.disc--1 { width: 230px; height: 230px; top: 0; left: 38%; animation: float-a 7s ease-in-out infinite; }
.disc--2 { width: 165px; height: 165px; top: 56%; left: 4%; animation: float-b 8s ease-in-out infinite; }
.disc--3 { width: 150px; height: 150px; top: 10%; left: 0%; animation: float-c 6.5s ease-in-out infinite; }
.disc--4 { width: 195px; height: 195px; top: 48%; left: 60%; animation: float-a 9s ease-in-out infinite; }

@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes float-c { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
  .disc { animation: none !important; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--leaf {
  background: var(--leaf);
  color: #fff;
}
.section--leaf h2, .section--leaf p { color: #fff; }
.section--cream { background: var(--bg-card); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.2em; }

/* ============================================================
   Category circles
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.cat-tile { text-align: center; }
.cat-tile__disc {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--bg-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-tile:hover .cat-tile__disc { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-deep); }
.cat-tile__disc img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.cat-tile__count {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ============================================================
   Product grid + cards
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-deep); }
.product-card__disc {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  width: 78%;
  border: 4px solid var(--bg);
}
.product-card__disc img { width: 100%; height: 100%; object-fit: cover; }
.product-card__cat {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marigold-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-card__desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.product-card__link {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--terracotta);
}

/* ============================================================
   Filter bar (products page)
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-card);
}
.filter-chip.is-active {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}
.filter-chip__count { opacity: 0.65; font-size: 0.8em; margin-left: 4px; }

.search-box {
  margin-bottom: 28px;
  max-width: 420px;
}
.search-box input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: var(--bg-card);
}
.search-box input:focus {
  outline: none;
  border-color: var(--marigold);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--marigold);
}
.stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ============================================================
   Product detail
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.product-detail__disc {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--bg-card);
  box-shadow: var(--shadow-deep);
}
.product-detail__disc img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--leaf-dark); font-weight: 500; }
.product-detail__gallery {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.product-detail__gallery img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   About / Press / Contact / Retail
   ============================================================ */
.page-banner {
  padding: 56px 0 36px;
  text-align: center;
}
.page-banner p { max-width: 60ch; margin: 0 auto; }

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.about-block:nth-child(even) .about-block__copy { order: 2; }

.director-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.director-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.director-card__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.director-card__role {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 10px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.press-grid img {
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}
.contact-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; }
.contact-card__meta { font-size: 0.88rem; color: var(--ink-soft); }
.contact-card__meta a { color: var(--leaf-dark); font-weight: 500; }

.map-embed {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
}
.map-embed iframe { width: 100%; height: 520px; border: none; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--brand-blue);
  color: var(--on-blue-soft);
  margin-top: 60px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 24px 36px;
}
.site-footer__mark { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px; border: 2px solid var(--on-blue); }
.site-footer__name {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  color: var(--on-blue);
  margin-bottom: 6px;
}
.site-footer__tagline { color: var(--on-blue-soft); font-size: 0.92rem; max-width: 26ch; }
.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-blue);
  margin-bottom: 14px;
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer__list a { color: var(--on-blue-soft); font-size: 0.92rem; }
.site-footer__list a:hover { color: var(--on-blue); }
.site-footer__text { color: var(--on-blue-soft); font-size: 0.92rem; }
.site-footer__text a { color: var(--on-blue-soft); }
.site-footer__text a:hover { color: var(--on-blue); }
.site-footer__bottom {
  border-top: 1px solid var(--on-blue-line);
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--on-blue-soft);
  text-align: center;
}

/* ============================================================
   404
   ============================================================ */
.not-found {
  text-align: center;
  padding: 110px 20px;
}
.not-found__disc {
  width: 160px; height: 160px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: var(--marigold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-deep);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .disc-field { height: 320px; margin-top: 20px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-block { grid-template-columns: 1fr; }
  .about-block:nth-child(even) .about-block__copy { order: 0; }
  .director-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--brand-blue);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--on-blue-line);
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-burger { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
