/* =========================================================================
   Patidar Products — stylesheet
   Design language: a heritage "hallmark seal" system in oxblood + foil gold,
   pulled from the actual packaging (see logo & product photography).
   ========================================================================= */

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

:root {
  /* --- Brand palette (sampled from the product packaging) --- */
  --maroon-900: #3f150b;
  --maroon-800: #4a170c;
  --maroon-700: #6c2412;
  --maroon-600: #82311c;
  --gold-600: #b07f38;
  --gold-500: #c9974f;
  --gold-300: #e3c98f;
  --gold-100: #f3e3c3;
  --parchment: #f8f2e6;
  --paper: #fffaf1;
  --ink: #2b1810;
  --ink-soft: #5a4436;
  --leaf-600: #4f6b34;
  --leaf-100: #e7edda;
  --line: rgba(108, 36, 18, 0.14);

  /* --- Type --- */
  --font-display: 'Rokkitt', 'Bitter', Georgia, serif;
  --font-body: 'Karla', 'Segoe UI', system-ui, sans-serif;

  /* --- Rhythm --- */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(63, 21, 11, 0.06), 0 10px 24px -12px rgba(63, 21, 11, 0.25);
  --shadow-hero: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  --container: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--maroon-800);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); }
p + p { margin-top: 0.9em; }

.lede { font-size: 1.1rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}

.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }
.section--parchment { background: var(--parchment); }
.section--paper { background: var(--paper); }
.section--maroon {
  background: linear-gradient(160deg, var(--maroon-900), var(--maroon-700));
  color: #f6ece1;
}
.section--maroon h2, .section--maroon h3 { color: #fbf3e7; }
.section--maroon p { color: rgba(246, 236, 225, 0.82); }
.section--gold-100 { background: var(--gold-100); }

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head.center { margin-inline: auto; text-align: center; }

/* Pairs a text intro with a quiet seal accent, filling the row without
   competing with the copy — reuses the signature mark instead of
   leaving dead space. */
.intro-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.intro-row .section-head { margin-bottom: 0; flex: 1; }
.intro-row .seal-accent { width: 130px; height: 130px; opacity: 0.32; color: var(--gold-600); flex: none; }
@media (max-width: 900px) { .intro-row .seal-accent { display: none; } }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--maroon-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--maroon-900);
  box-shadow: 0 10px 24px -10px rgba(201, 151, 79, 0.65);
}
.btn-primary:hover { background: var(--gold-300); }
.btn-outline {
  border-color: rgba(246, 236, 225, 0.45);
  color: inherit;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost {
  border-color: var(--maroon-700);
  color: var(--maroon-800);
}
.btn-ghost:hover { background: var(--maroon-800); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Utility bar + Header ---------- */
.utility-bar {
  background: var(--maroon-900);
  color: rgba(246, 236, 225, 0.86);
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding-block: 8px;
  flex-wrap: wrap;
}
.utility-bar a { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--gold-300); }
.utility-bar svg { width: 14px; height: 14px; flex: none; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 76px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--maroon-800); }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--maroon-800); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav ul { display: flex; gap: 2px; align-items: center; }
.primary-nav a {
  display: inline-block;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.primary-nav a:hover { color: var(--maroon-700); background: var(--gold-100); }
.primary-nav a[aria-current="page"] {
  color: var(--maroon-800);
  background: var(--gold-100);
}
.primary-nav .nav-cta {
  margin-left: 6px;
  background: var(--maroon-800);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.primary-nav .nav-cta:hover { background: var(--maroon-700); }

/* ---------- Hero / seal ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 85% -10%, #5c2314 0%, var(--maroon-900) 55%, var(--maroon-900) 100%);
  color: #f6ece1;
  padding: 84px 0 92px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); }
.hero h1 { color: #fdf6ec; }
.hero h1 em { color: var(--gold-300); font-style: normal; }
.hero-sub { color: rgba(246, 236, 225, 0.86); font-size: 1.08rem; max-width: 46ch; margin-top: 18px; }
.hero .btn-row { margin-top: 32px; }

.hero-seal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.seal {
  width: min(280px, 90%);
  height: auto;
  color: var(--gold-300);
  animation: seal-spin 60s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .seal { animation: none; } }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.seal .seal-core { color: #fdf6ec; }
.seal-static { animation: none; }

/* small seal used as section accent */
.mark { width: 46px; height: 46px; color: var(--gold-500); }
.mark--maroon { color: var(--maroon-700); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(63, 21, 11, 0.32); }

.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--gold-100), var(--paper));
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  position: relative;
}
.product-card__media img { max-height: 100%; width: auto; margin-inline: auto; filter: drop-shadow(0 12px 18px rgba(63,21,11,0.18)); }
.product-card__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--maroon-800); color: #fdf6ec;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.product-card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.product-card__body h3 { margin-bottom: 8px; }
.product-card__body p { font-size: 0.95rem; flex: 1; }
.product-card__ingredients {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 0.82rem; color: var(--ink-soft);
}
.product-card__ingredients strong { color: var(--maroon-700); display: block; margin-bottom: 4px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.icon-card { padding: 26px 24px; text-align: left; }
.icon-card .mark { margin-bottom: 14px; }
.icon-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.icon-card p { font-size: 0.94rem; }

.pillar-list { display: grid; gap: 16px; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.pillar .mark { flex: none; width: 32px; height: 32px; margin-top: 2px; }
.pillar h3 { font-size: 1rem; margin-bottom: 4px; }
.pillar p { font-size: 0.92rem; }

/* ---------- Numbered process (Quality page — a real sequence) ---------- */
.process { counter-reset: step; display: grid; gap: 22px; }
.process-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--maroon-900);
  background: var(--gold-300);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.95rem; }
.process-arrow {
  display: none;
}

/* ---------- Business division cards ---------- */
.division {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.division h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.division h3 .mark { width: 30px; height: 30px; }
.division ul { margin-top: 14px; display: grid; gap: 8px; }
.division li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--ink-soft); }
.division li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--gold-500); flex: none; }
.division .est { display: inline-block; margin-top: 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
  color: #fdf6ec;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fdf6ec; font-size: 1.6rem; }
.cta-band p { color: rgba(253, 246, 236, 0.82); margin-top: 6px; }

/* ---------- Quote/founder block ---------- */
.founder {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--gold-100); border-radius: var(--radius-lg); padding: 28px 30px;
}
.founder .mark { width: 60px; height: 60px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-list { display: grid; gap: 18px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .mark { width: 26px; height: 26px; flex: none; margin-top: 2px; color: var(--gold-500); }
.contact-info-item h3 { font-size: 0.95rem; margin-bottom: 4px; color: var(--maroon-800); }
.contact-info-item p, .contact-info-item a { font-size: 0.94rem; color: var(--ink-soft); display: block; }
.contact-info-item a:hover { color: var(--maroon-700); }

.map-frame {
  margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-card);
}
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--maroon-800); }
.form-row input, .form-row textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--parchment); color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
.form-row textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; font-size: 0.94rem; }
.alert-success { background: var(--leaf-100); color: #2f4520; border: 1px solid rgba(79, 107, 52, 0.3); }
.alert-error { background: #fbe6e1; color: #7a2312; border: 1px solid rgba(122, 35, 18, 0.25); }

/* ---------- Media page ---------- */
.media-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
}
.media-feature img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.media-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.media-gallery figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--paper); }
.media-gallery figcaption { padding: 14px 16px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.media-mix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.media-mix li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--maroon-800);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-900); color: rgba(246, 236, 225, 0.78); }
.footer-top { padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 76px; width: auto; }
.footer-about p { color: rgba(246, 236, 225, 0.7); font-size: 0.92rem; }
.site-footer h4 {
  color: #fdf6ec; font-family: var(--font-body); font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: rgba(246, 236, 225, 0.78); }
.footer-links a:hover { color: var(--gold-300); }
.footer-contact { display: grid; gap: 12px; font-size: 0.92rem; }
.footer-contact a { color: rgba(246, 236, 225, 0.78); }
.footer-contact a:hover { color: var(--gold-300); }
.footer-bottom {
  border-top: 1px solid rgba(246, 236, 225, 0.14);
  padding: 18px 0; font-size: 0.82rem; color: rgba(246, 236, 225, 0.6);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--maroon-900), var(--maroon-700));
  color: #f6ece1; padding: 52px 0 60px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5; pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 0.82rem; color: rgba(246,236,225,0.7); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-300); }
.page-hero h1 { color: #fdf6ec; }
.page-hero p { color: rgba(246, 236, 225, 0.85); max-width: 58ch; margin-top: 12px; }

/* ---------- Scroll reveal ----------
   Gated behind .js (added by an inline script in <head>) so content is
   fully visible by default — if JavaScript fails or is disabled, nothing
   is ever hidden. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 100px 0; }
.error-page .seal { margin-inline: auto; margin-bottom: 24px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-seal-wrap { order: -1; }
  .seal { width: 190px; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-feature { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -18px rgba(63,21,11,0.35);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 420px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; }
  .primary-nav a { padding: 12px 10px; }
  .primary-nav .nav-cta { margin-left: 0; text-align: center; }
  .utility-bar .container { justify-content: center; padding-block: 7px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .media-gallery, .media-mix { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder .mark { margin-inline: auto; }
  .cta-band { flex-direction: column; text-align: center; }
  .form-row.two { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 64px; }
}

@media (max-width: 480px) {
  .media-mix { grid-template-columns: 1fr 1fr; }
  .brand-text span { display: none; }
}
