/* ==========================================================================
   Kesari — design system  (index.html + about-us.html)
   ========================================================================== */

:root {
  --cream:      #FBF7F1;
  --cream-alt:  #F6ECDD;
  --tan:        #F1E1C7;
  --tan-deep:   #E7CFA6;
  --card:       #FDF8EF;
  --ink:        #2B1810;
  --ink-soft:   #5c4d3e;
  --orange:     #D6862E;
  --orange-dark:#BD6F1E;
  --line:       #ecdfc9;
  --white:      #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .font-display {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

input:focus, textarea:focus { outline: none; }

.container {
  max-width: 100% !important;
  padding-right: 5% !important;
  padding-left: 5% !important;
}

/* ---------- Blend helpers ---------- */
/* multiply removes white baked into PNGs when the parent bg is warm/cream */
.blend-illustration {
  mix-blend-mode: multiply;
  background: transparent;
}
.contact-deco-inline {
  mix-blend-mode: multiply;
  background: transparent;
  display: block;
}
/* Spudshed logo in find-card */
.find-card img[alt="Spudshed"],
.find-card-content img {
  mix-blend-mode: multiply;
  background: transparent;
}

/* ---------- Buttons ---------- */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  padding: 13px 30px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-orange i { font-size: 18px; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .eyebrow-rule {
  flex: 0 0 auto;
  width: 52px;
  height: 1.5px;
  background: var(--orange);
  opacity: .65;
}
.eyebrow.center { justify-content: center; }

/* ---------- Header / Navbar ---------- */
.site-header {
  background: #2E1A0E;
  border-bottom: 1px solid rgba(214, 134, 46, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/*
  Logo sits in a cream badge so mix-blend-mode:multiply works against cream
  rather than the dark navbar background. The shadow makes it feel elevated,
  not accidental.
*/
.logo-mark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: var(--cream);
  border-radius: 8px;
  padding: 4px 10px;
  isolation: isolate;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.logo-mark img {
  height: 48px !important;
  width: auto;
  mix-blend-mode: multiply;
}

.nav-link {
  color: rgba(251,247,241,0.8);
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: var(--orange); }
.nav-link.active { color: var(--orange); border-color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--cream);
  padding-top: 40px;
  padding-bottom: 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-deco-left {
  position: absolute;
  left: -40px;
  top: 20px;
  width: 240px;
  height: auto;
  opacity: .45;
  pointer-events: none;
  z-index: 1;
}
.hero-deco-grains {
  position: absolute;
  left: 360px;
  bottom: 60px;
  width: 120px;
  height: auto;
  opacity: .65;
  pointer-events: none;
  z-index: 2;
}

/* Photo bleeds to right viewport edge, fades in from left */
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%);
  z-index: 1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text-col {
  position: relative;
  z-index: 4;          /* must sit above wave-divider (z-index 3) */
  max-width: 560px;
  padding: 60px 0 130px; /* bottom clearance for the 90px wave */
}
.hero-text-col h1 { font-size: 3.25rem; line-height: 1.12; }
.hero-text-col p  { font-size: 1.125rem; }

.wave-divider {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 3;
  pointer-events: none; /* must not block clicks on the button above */
}

/* ---------- Journey ---------- */
.journey-section {
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 100px;
}

.journey-bg-illustration {
  position: absolute;
  left: 5%;
  bottom: 0;
  width: 480px;
  max-width: 38%;
  height: auto;
  opacity: .75;
  pointer-events: none;
  z-index: 0;
}

/* Each step-item contains its number + card as one unit */
.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* Dashed connecting line between numbers */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 1px;
  background-image: linear-gradient(to right, var(--orange) 55%, transparent 0%);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-item .step-num {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step-card {
  position: relative;
  background: transparent;
  overflow: visible;
  width: 100%;
}
.step-card .step-img-wrap {
  position: relative;
  height: 270px;
  border-radius: 135px 135px 16px 16px;
  overflow: hidden;
}
.step-card .step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-icon-badge {
  position: absolute;
  left: 50%;
  top: 270px;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(43, 24, 16, .16);
  z-index: 10;
}
.step-icon-badge i { color: var(--orange); font-size: 22px; }
.step-card .step-body {
  padding: 38px 8px 12px;
  text-align: center;
}
.step-card .step-body h3 { font-size: 1.25rem; }
.step-card .step-body p  { font-size: 0.95rem; line-height: 1.55; }

/* ---------- Promise / Quality ---------- */
.promise-section {
  position: relative;
  background: linear-gradient(120deg, var(--tan-deep) 0%, var(--tan) 45%, var(--cream) 100%);
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Image bleeds off the left edge with an organic curved border */
.promise-media {
  position: relative;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  width: calc(100% + (100vw - 100%) / 2);
  height: 560px;
  border-radius: 0 220px 220px 0 / 0 160px 160px 0;
  overflow: hidden;
  box-shadow: 14px 0 44px rgba(43, 24, 16, .18);
}
.promise-media img { width: 100%; height: 100%; object-fit: cover; }

.promise-deco {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 260px;
  height: auto;
  opacity: .50;
  pointer-events: none;
  z-index: 0;
}

.promise-content { padding-left: 20px; }
.promise-content h2 { font-size: 2.75rem; line-height: 1.2; }
.promise-content p.intro { font-size: 1.15rem; margin-bottom: 2rem; }

.promise-points-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.promise-point { display: flex; align-items: center; gap: 18px; }
.promise-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(214, 134, 46, .65);
}
.promise-icon i { color: #fff; font-size: 22px; }
.promise-point p { font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.4; margin: 0; }

/* ---------- About Us hero (mirrors index hero, image on left) ---------- */
.about-hero-section {
  position: relative;
  background: var(--cream);
  padding-top: 40px;
  padding-bottom: 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Photo bleeds off the left edge, fades to the right */
.about-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 18%);
  mask-image: linear-gradient(to left, transparent 0%, black 18%);
  z-index: 1;
}
.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-text-col {
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin-left: auto;
  margin-right: 8%;
  padding: 60px 0;
}
.about-text-col h1 { font-size: 3.25rem; line-height: 1.12; }
.about-text-col p  { font-size: 1.125rem; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(214, 134, 46, 0.12);
}
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-toggle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-item .faq-panel { padding: 0 26px 22px; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }

/* ---------- FAQ + Find us ---------- */
.faq-find-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}
.faq-deco-wheat {
  position: absolute;
  left: 20px;
  bottom: 80px;
  width: 240px;
  height: auto;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.faq-windmill {
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 155px;
  height: auto;
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* ---------- Find us / Spudshed card ---------- */
.find-card {
  position: relative;
  background: var(--tan);
  border-radius: 24px;
  padding: 48px 40px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(43, 24, 16, 0.08);
}
.find-card .find-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 24px 24px 0;
  opacity: .95;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%);
}
.find-card-content {
  position: relative;
  z-index: 10;
  max-width: 55%;
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  background: linear-gradient(180deg, var(--tan) 0%, var(--cream-alt) 100%);
  padding-top: 100px;
  padding-bottom: 100px;
}
.contact-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.contact-input::placeholder { color: #9c8f7f; }
.contact-input:focus { border-color: var(--orange); }

.contact-deco-inline {
  width: 340px;
  max-width: 100%;
  height: auto;
  opacity: .75;
  margin-top: 24px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2E1A0E;
  color: rgba(251,247,241,0.85);
  position: relative;
  overflow: hidden;
}
.site-footer h3 { color: #FBF7F1; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; }
.site-footer a, .site-footer p { color: rgba(251,247,241,0.65); font-size: 15px; }
.site-footer a:hover { color: var(--orange); }
.site-footer i { color: rgba(251,247,241,0.5); }

/* Logo badge in footer — cream bg so multiply blend works against it, not the dark bg */
.footer-logo-wrap {
  display: inline-block;
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 14px;
  isolation: isolate;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  mix-blend-mode: multiply;
}

.footer-bottom { background: rgba(0,0,0,0.2); }
.footer-bottom p { color: rgba(251,247,241,0.45) !important; }

/* ---------- Utility ---------- */
.text-ink     { color: var(--ink); }
.text-ink-soft{ color: var(--ink-soft); }
.bg-cream     { background: var(--cream); }
.bg-cream-alt { background: var(--cream-alt); }
.bg-tan       { background: var(--tan); }
.bg-card      { background: var(--card); }

/* ---------- Responsive (≤ 900px) ---------- */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
    flex-direction: column;
  }
  .hero-media {
    position: relative !important;
    width: 100% !important;
    height: 320px !important;
    order: -1;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
  }
  .hero-text-col {
    max-width: 100%;
    padding: 24px 0 100px;
  }
  .hero-deco-left, .hero-deco-grains { display: none; }

  .journey-grid { grid-template-columns: 1fr !important; }
  .journey-bg-illustration {
    opacity: 0.45 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: none !important;
    bottom: 0 !important;
  }
  .steps-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .steps-grid::before { display: none; }

  .promise-grid { grid-template-columns: 1fr !important; }
  .promise-media {
    margin-left: 0 !important;
    width: 100% !important;
    height: 320px !important;
    border-radius: 16px !important;
  }
  .promise-content { padding-left: 0 !important; }
  .promise-deco { display: none; }

  .about-hero-section {
    min-height: auto;
    padding-top: 0;
    flex-direction: column;
  }
  .about-hero-media {
    position: relative !important;
    width: 100% !important;
    height: 320px !important;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
  }
  .about-text-col {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    padding: 24px 0;
  }

  .faq-find-grid { grid-template-columns: 1fr !important; }
  .find-card { margin-top: 24px; }
  .find-card-content { max-width: 100% !important; }
  .find-card .find-photo { display: none; }
  .faq-deco-wheat { display: none; }
  .faq-windmill { display: none; }

  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-deco-inline { width: 240px; }

  .about-grid { grid-template-columns: 1fr !important; }

  #mobile-menu { background: #2E1A0E !important; }
  #mobile-menu .nav-link { color: rgba(251,247,241,0.8); font-size: 1.5rem; }
  #mobile-menu .nav-link.active { color: var(--orange); }
}