/* ===========================================
   Shree Durga Prasad & Sons — Brand Stylesheet
   =========================================== */

/* ===== Splash screen ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,169,97,.15), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(227,6,19,.25), transparent 55%),
    linear-gradient(135deg, #0E0E1F 0%, #1A1A2E 50%, #2a0a10 100%);
  overflow: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.splash.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.splash-active { overflow: hidden; }

/* Ornamental circles */
.splash::before, .splash::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: splashFloat 6s ease-in-out infinite alternate;
}
.splash::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(227,6,19,.45), transparent 70%);
  top: -10%; left: -8%;
}
.splash::after {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201,169,97,.35), transparent 70%);
  bottom: -15%; right: -10%;
  animation-delay: -3s;
}
@keyframes splashFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

/* Rotating gold ring */
.splash-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  border: 1px dashed rgba(201,169,97,.35);
  animation: splashRing 18s linear infinite;
  pointer-events: none;
}
.splash-ring.inner {
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  border: 1px solid rgba(227,6,19,.25);
  animation: splashRing 14s linear infinite reverse;
}
@keyframes splashRing {
  to { transform: rotate(360deg); }
}

/* Content stack */
.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 100%;
}

.splash-logo {
  width: 200px;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(227,6,19,.4),
    0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(255,255,255,.1);
  animation: splashLogoIn 1s cubic-bezier(.2,.8,.2,1) both;
  background: #fff;
  padding: 10px;
}
@keyframes splashLogoIn {
  0%   { transform: scale(.7) rotate(-6deg); opacity: 0; filter: blur(8px); }
  100% { transform: scale(1) rotate(0); opacity: 1; filter: blur(0); }
}

/* Shine sweep across logo */
.splash-logo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.splash-logo-wrap::after {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%);
  transform: skewX(-18deg);
  animation: splashShine 2.4s ease-in-out .8s forwards;
}
@keyframes splashShine {
  to { left: 160%; }
}

/* Wordmark */
.splash-wordmark {
  margin-top: 36px;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  opacity: 0;
  animation: splashRise .8s ease .6s forwards;
}
.splash-wordmark span {
  display: block;
  background: linear-gradient(90deg, #F8E4B8 0%, #C9A961 50%, #F8E4B8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: splashShimmer 3s linear infinite;
}
@keyframes splashShimmer {
  to { background-position: 200% center; }
}

.splash-tag {
  margin-top: 14px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  opacity: 0;
  animation: splashRise .8s ease 1s forwards;
}
.splash-tag::before, .splash-tag::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: rgba(201,169,97,.6);
  vertical-align: middle;
  margin: 0 14px;
}

@keyframes splashRise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Loader bar */
.splash-bar {
  margin-top: 40px;
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: splashRise .6s ease 1.2s forwards;
}
.splash-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: splashLoad 1.4s ease-in-out 1.2s infinite;
}
@keyframes splashLoad {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .splash, .splash *, .splash::before, .splash::after { animation: none !important; }
}

@media (max-width: 720px) {
  .splash::before { width: 260px; height: 260px; }
  .splash::after  { width: 320px; height: 320px; }
  .splash-logo { width: 160px; padding: 8px; border-radius: 16px; }
  .splash-ring { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .splash-ring.inner { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .splash-wordmark { margin-top: 28px; font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .splash-tag { font-size: .72rem; letter-spacing: .35em; }
  .splash-tag::before, .splash-tag::after { width: 18px; margin: 0 8px; }
  .splash-bar { margin-top: 30px; width: 140px; }
}
@media (max-width: 420px) {
  .splash-inner { padding: 28px 18px; }
  .splash-logo { width: 130px; }
  .splash-ring { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .splash-ring.inner { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
  .splash-wordmark { margin-top: 22px; font-size: 1.4rem; letter-spacing: .02em; }
  .splash-tag { font-size: .66rem; letter-spacing: .3em; margin-top: 10px; }
  .splash-tag::before, .splash-tag::after { width: 14px; margin: 0 6px; }
  .splash-bar { margin-top: 24px; width: 120px; }
}
@media (max-width: 340px) {
  .splash-logo { width: 110px; }
  .splash-ring { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .splash-ring.inner { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .splash-wordmark { font-size: 1.22rem; }
}


:root {
  --brand-red: #E30613;
  --brand-red-dark: #B8050F;
  --brand-red-soft: #FCE9EB;
  --ink: #1A1A2E;
  --ink-soft: #4A4A5E;
  --cream: #FFF8F0;
  --cream-dark: #F5EBDC;
  --gold: #C9A961;
  --gold-dark: #A88844;
  --white: #ffffff;
  --border: #E8E2D5;
  --shadow-sm: 0 2px 8px rgba(26,26,46,.06);
  --shadow-md: 0 8px 30px rgba(26,26,46,.10);
  --shadow-lg: 0 20px 50px rgba(26,26,46,.15);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
p, li, a { overflow-wrap: break-word; }

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p  { color: var(--ink-soft); }

a { color: var(--brand-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-red-dark); }

img { max-width: 100%; display: block; }

/* ===== Inline SVG icon system ===== */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  stroke-width: 2;
}
.topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  color: var(--gold);
  vertical-align: -2px;
}
.topbar-icon .icon-svg { width: 13px; height: 13px; }
.feature .icon .icon-svg,
.contact-card .icon .icon-svg {
  width: 26px;
  height: 26px;
}
.contact-card .icon .icon-svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .feature .icon .icon-svg { width: 22px; height: 22px; }
  .topbar-icon .icon-svg { width: 12px; height: 12px; }
}

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

/* ===== Top bar ===== */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: .82rem;
  padding: 10px 0;
  border-bottom: 2px solid var(--brand-red);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 700px) {
  .topbar { font-size: .75rem; text-align: center; }
  .topbar .container { justify-content: center; }
  .topbar span + span { margin-left: 0; }
}
.topbar a { color: var(--cream); }
.topbar span + span { margin-left: 18px; }

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 54px;
  width: auto;
  border-radius: 8px;
}
.brand-text .name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1;
}
.brand-text .tag {
  font-size: .7rem;
  color: var(--brand-red);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav-links a:hover { background: var(--brand-red-soft); color: var(--brand-red); }
.nav-links a.active { color: var(--brand-red); }
.nav-links a.active::after {
  content: ''; display: block; height: 2px; background: var(--brand-red);
  width: 60%; margin: 4px auto 0; border-radius: 2px;
}

.nav-cta {
  background: var(--brand-red);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; border-radius: 6px; }
.nav-toggle span {
  width: 26px; height: 2px; background: var(--ink); border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand-red); color: var(--white); }
.btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white);}
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--brand-red); }
.btn-outline { background: transparent; color: var(--brand-red); border-color: var(--brand-red); }
.btn-outline:hover { background: var(--brand-red); color: var(--white); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(184,5,15,.78) 100%),
    url('https://images.unsplash.com/photo-1564507592333-c60657eea523?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(201,169,97,.15), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 100px;
  max-width: 820px;
}
.hero .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p.lead {
  color: rgba(255,255,255,.9);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 620px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.2);
  max-width: 820px;
}
.hero-stats .stat { min-width: 0; }
.hero-stats .stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.hero-stats .stat .lbl {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  margin-top: 6px;
  letter-spacing: .05em;
}

/* ===== Page header (non-home) ===== */
.page-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1564507592333-c60657eea523?auto=format&fit=crop&w=1800&q=80') center/cover;
  opacity: .12;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); margin-bottom: 12px;}
.page-header p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.breadcrumb {
  font-size: .85rem; color: rgba(255,255,255,.7);
  margin-bottom: 20px; letter-spacing: .1em; text-transform: uppercase;
}
.breadcrumb a { color: var(--gold); }

/* ===== Sections ===== */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand-red);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; }

.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink p { color: rgba(255,255,255,.8); }

/* ===== Cards ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-red-soft); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-dark); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-tag {
  display: inline-block;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-red);
  font-weight: 600;
  padding-top: 18px;
}
.card-link:hover { gap: 12px; }

/* Feature card */
.feature {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .3s;
}
.feature:hover { border-color: var(--brand-red); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 56px; height: 56px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { font-size: .95rem; }

/* ===== Split sections ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split.reverse .split-text { order: 2; }
.split-text .eyebrow {
  color: var(--brand-red);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 16px; font-size: 1.02rem; }
.split-text ul { list-style: none; margin: 20px 0; }
.split-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
}
.split-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: 700;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--brand-red);
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::before {
  content: '';
  position: absolute;
  top: 32px;
  width: 18px; height: 18px;
  background: var(--white);
  border: 3px solid var(--brand-red);
  border-radius: 50%;
  z-index: 2;
}
.tl-item:nth-child(odd)::before { right: -9px; }
.tl-item:nth-child(even)::before { left: -9px; }
.tl-card {
  background: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.tl-year {
  color: var(--brand-red);
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.tl-card h4 { margin-bottom: 6px; font-size: 1.1rem; }
.tl-card p { font-size: .92rem; }

/* ===== CTA strip ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(201,169,97,.2), transparent 50%);
}
.cta-strip > .container { position: relative; }
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto;}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  padding: 70px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
footer a { color: rgba(255,255,255,.75); display: block; padding: 6px 0; font-size: .95rem; }
footer a:hover { color: var(--gold); }
.foot-brand img { height: 60px; margin-bottom: 16px; border-radius: 8px; background: #fff; padding: 4px; }
.foot-brand p { color: rgba(255,255,255,.7); font-size: .92rem; max-width: 320px;}
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* ===== Contact form ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: .03em;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px var(--brand-red-soft);
}
.form-field textarea { resize: vertical; min-height: 140px;}

/* Contact blocks */
.contact-info {
  display: grid;
  gap: 22px;
}
.contact-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all .25s;
}
.contact-card:hover { border-color: var(--brand-red); box-shadow: var(--shadow-sm); }
.contact-card .icon {
  width: 48px; height: 48px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-card h4 { font-family: 'Inter', sans-serif; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; color: var(--ink-soft);}
.contact-card p, .contact-card a { color: var(--ink); font-weight: 500; margin: 0; overflow-wrap: anywhere; word-break: break-word; }
.contact-card { min-width: 0; }
.contact-card > div:last-child { min-width: 0; flex: 1; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 360px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Pricing / Subscription tiles for dairy page */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.price {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s;
  position: relative;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price.featured { border-color: var(--brand-red); box-shadow: var(--shadow-md); }
.price.featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-red); color: var(--white);
  padding: 4px 14px; border-radius: 999px;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.price h3 { margin-bottom: 6px; }
.price .amt {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--brand-red);
  font-weight: 700;
  margin: 14px 0 4px;
}
.price .amt small { font-size: .85rem; color: var(--ink-soft); font-weight: 400;}
.price ul { list-style: none; margin: 20px 0; }
.price ul li { padding: 8px 0 8px 26px; position: relative; font-size: .95rem; color: var(--ink-soft);}
.price ul li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-red); font-weight: 700; }

/* Misc */
.logo-badge {
  background: var(--brand-red);
  padding: 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: inline-block;
}
.logo-badge img { height: 48px; }

.image-banner {
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Quote block */
.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}
.quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.5;
}
.quote cite {
  font-style: normal;
  color: var(--gold);
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ===== Credentials row ===== */
.credentials-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cred {
  padding: 24px 22px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.cred:last-child { border-right: none; }
.cred:hover { background: var(--brand-red-soft); }
.cred-lbl {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 600;
  margin-bottom: 6px;
}
.cred-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .02em;
}
@media (max-width: 700px) {
  .cred { border-right: none; border-bottom: 1px solid var(--border); }
  .cred:last-child { border-bottom: none; }
}

/* ===== Brands marquee grid ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.brand-chip {
  padding: 18px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  transition: all .25s;
  letter-spacing: .02em;
}
.brand-chip:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.brand-chip.featured {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: var(--white);
  border-color: transparent;
}
.brand-chip.featured:hover { color: var(--gold); }

/* ===== Image safety / loading ===== */
.card-img, .split img, .hero, .page-header {
  background-color: var(--cream-dark);
}
img { background: var(--cream-dark); }

/* Select caret */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%231A1A2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 44px;
}

/* Small: keep card body grow consistent when in gradient variant */
.card .card-body { min-height: 0; }

/* Prevent Playfair italic-feel collision inside buttons */
.btn { font-family: 'Inter', sans-serif; }

/* Smooth image loading */
img { transition: opacity .3s; }
img:not([src]), img[src=""] { opacity: 0; }

/* ===== Medium screen nav compaction ===== */
@media (max-width: 1180px) and (min-width: 1025px) {
  .nav-links a { padding: 10px 12px; font-size: .9rem; }
  .nav-links { gap: 2px; }
  .brand-text .name { font-size: 1rem; }
}

/* ===== Responsive / Tablet & Mobile ===== */
@media (max-width: 1024px) {
  /* Tighter container padding on tablet/mobile */
  .container { padding: 0 20px; }

  /* Lock body scroll while drawer is open */
  body.menu-open { overflow: hidden; }

  /* Mobile slide-in drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 88px 18px 28px;
    gap: 2px;
    box-shadow: -12px 0 40px rgba(26,26,46,.18);
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; list-style: none; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: 10px;
    text-align: left;
  }
  .nav-links a.active { background: var(--brand-red-soft); color: var(--brand-red); }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta {
    margin-top: 14px;
    text-align: center !important;
    padding: 13px 22px !important;
  }

  /* Backdrop overlay */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,11,23,.48);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  /* Hamburger → X animation */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 250;
    padding: 8px;
    margin-right: -8px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle span {
    position: absolute;
    left: 50%;
    margin-left: -13px;
    width: 26px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease, top .3s cubic-bezier(.4,0,.2,1);
  }
  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 20px; }
  .nav-toggle span:nth-child(3) { top: 26px; }
  .nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
  .nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

  /* Layout */
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-text { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .timeline::before { left: 20px; }
  .tl-item { width: 100%; left: 0 !important; padding-left: 50px; padding-right: 0; text-align: left !important;}
  .tl-item::before { left: 11px !important; right: auto !important; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }

  /* Hero */
  .hero { min-height: 480px; }
  .hero-inner { padding-top: 64px; padding-bottom: 56px; }
  .hero p.lead { font-size: 1.02rem; margin-bottom: 28px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { padding: 12px 22px; font-size: .9rem; }
  .hero-stats { margin-top: 36px; padding-top: 28px; gap: 18px; grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat .num { font-size: 1.9rem; }
  .hero-stats .stat .lbl { font-size: .78rem; }

  /* Page header */
  .page-header { padding: 60px 0 48px; }
  .page-header p { font-size: 1rem; padding: 0 6px; }
  .breadcrumb { margin-bottom: 14px; font-size: .78rem; }

  /* Section heads */
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 1rem; }

  /* Cards / features */
  .card-body { padding: 22px 20px; }
  .card-body h3 { font-size: 1.2rem; }
  .card-body p { font-size: .93rem; }
  .feature { padding: 26px 22px; }
  .feature .icon { width: 48px; height: 48px; border-radius: 12px; font-size: 1.3rem; margin-bottom: 14px; }
  .feature h3 { font-size: 1.08rem; }
  .feature p { font-size: .9rem; }

  /* Split text */
  .split-text p { font-size: .98rem; }

  /* CTA strip */
  .cta-strip { padding: 56px 0; }
  .cta-strip p { font-size: 1rem; }

  /* Footer */
  footer { padding: 50px 0 24px; }
  .foot-grid { margin-bottom: 28px; }
  footer h4 { margin-bottom: 14px; }
  .foot-brand img { height: 48px; }
  .foot-bottom { font-size: .78rem; gap: 8px; }

  /* Brand chips */
  .brand-chip { padding: 8px 14px; font-size: .85rem; }

  /* Credentials row */
  .cred-val { font-size: .95rem; }
}

@media (max-width: 700px) {
  .topbar { padding: 8px 0; font-size: .78rem; }
  .topbar .container { gap: 6px; line-height: 1.4; }
  .topbar span + span { margin-left: 0; }
  .nav-inner { padding: 10px 0; }
}

@media (max-width: 560px) {
  /* Container: tighter edges on phone */
  .container { padding: 0 16px; }

  /* Typography — phone-tuned */
  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); line-height: 1.18; }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.22; }
  h3 { font-size: 1.15rem; }
  p  { font-size: .96rem; }

  /* Brand in nav */
  .brand img { height: 40px; }
  .brand-text .name { font-size: .94rem; letter-spacing: 0; }
  .brand-text .tag { font-size: .66rem; letter-spacing: .12em; }

  /* Hero */
  .hero-inner { padding-top: 56px; padding-bottom: 48px; max-width: 100%; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .12em; padding: 6px 14px; margin-bottom: 18px; }
  .hero h1 { margin-bottom: 16px; }
  .hero p.lead { font-size: .95rem; margin-bottom: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; padding-top: 22px; }
  .hero-stats .stat .num { font-size: 1.65rem; }

  /* Page header */
  .page-header { padding: 52px 0 44px; }
  .page-header p { font-size: .95rem; }

  /* Sections */
  section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }

  /* Buttons */
  .btn { padding: 12px 22px; font-size: .9rem; }

  /* Cards */
  .card-body { padding: 20px 18px; }
  .feature { padding: 22px 18px; }

  /* Splits */
  .split { gap: 28px; }
  .split-text ul li { padding: 6px 0 6px 22px; font-size: .95rem; }

  /* Grids — single col on very narrow */
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid .foot-brand { max-width: 100%; }

  /* CTA */
  .cta-strip { padding: 48px 0; }

  /* Quote banner */
  .quote p { font-size: 1.1rem; }

  /* Credentials */
  .credentials-row { gap: 14px; flex-direction: column; text-align: center; }
  .credentials-row .cred { padding: 10px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .credentials-row .cred:last-child { border-bottom: none; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats .stat .num { font-size: 1.5rem; }
  .btn { padding: 11px 18px; font-size: .85rem; }
}

/* ===== Developer credit strip (Anuyog) ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: 'Inter', system-ui, sans-serif;
}
.site-footer .container.site-footer__inner,
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer__copy {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .01em;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
}
.site-footer__brand {
  color: #7fc8ff;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer__brand:hover,
.site-footer__brand:focus-visible {
  color: #a8dbff;
  text-decoration: underline;
  outline: none;
}
.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.site-footer__logo-link:hover,
.site-footer__logo-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}
.site-footer__logo {
  width: min(140px, 46vw);
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent !important;
}
@media (max-width: 560px) {
  .site-footer { padding: 18px 0; }
  .site-footer__copy { font-size: .78rem; }
  .site-footer__logo { height: 30px; }
}
