/* ==========================================================
   Vel Brand – Rice Mill Website
   Shared styles for index.html and about.html
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --sand: #F2DDA4;          /* brand sand / wheat */
  --forest: #003E1F;        /* brand deep green */
  --lime: #2BC016;          /* brand bright green */
  --green-900: #003E1F;
  --green-800: #003E1F;
  --green-700: #0a5a2d;
  --green-100: #e3f2dc;
  --gold: #e0a92c;
  --gold-light: #f5cf6a;
  --brown: #8a4b14;
  --cream: #fbf3da;
  --ink: #23302a;
  --muted: #5c6b63;
  --line: #e4e0d4;
  --white: #fff;

  --font-head: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(11, 61, 39, .08);
  --shadow-md: 0 10px 28px rgba(11, 61, 39, .16);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--green-800); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--cream { background: var(--sand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: #000; padding: .6rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: .5rem; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .75rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-weight: 500; font-size: .95rem; line-height: 1.2;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn .icon { transition: transform .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--lime); color: #04200f; }
.btn--outline { background: rgba(255, 255, 255, .92); color: var(--green-800); border-color: var(--green-700); }
.btn--outline:hover { background: var(--lime); border-color: var(--lime); color: #04200f; }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: var(--gold-light); }
.btn--gold { background: var(--gold); color: #1d1a0d; }
.btn--gold:hover { background: var(--gold-light); }
.btn--sm { padding: .6rem 1.2rem; font-size: .88rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; height: var(--header-h);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
/* Logo overlaps the hero slightly on desktop, like the reference */
.brand { position: relative; z-index: 2; display: block; flex: none; }
.brand { align-self: flex-start; margin-top: 4px; }
.brand img { height: 112px; width: auto; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .4)); transition: height .3s ease, transform .3s; }
.brand:hover img { transform: scale(1.04); }
/* Once the page scrolls, the logo shrinks to sit neatly inside the header bar */
.site-header.is-scrolled .brand { align-self: center; margin-top: 0; }
.site-header.is-scrolled .brand img { height: 56px; filter: none; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); margin-inline: auto; }
.nav__link { position: relative; font-size: .9rem; font-weight: 500; padding: .4rem 0; color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--forest); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__phone { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 500; }
.nav__phone .icon { color: var(--green-700); }
.nav__search { background: none; border: 0; padding: .4rem; color: var(--ink); font-size: 1.2rem; display: grid; place-items: center; transition: color .25s, transform .25s; }
.nav__search:hover { color: var(--green-700); transform: scale(1.1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--green-800); border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav__toggle span { top: 21px; }
.nav__toggle span::before { left: 0; top: -7px; }
.nav__toggle span::after { left: 0; top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Search bar (toggled by the search icon) */
.search-bar { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: .8rem 0; display: none; }
.search-bar.is-open { display: block; }
.search-bar form { display: flex; gap: .6rem; }
.search-bar input { flex: 1; min-width: 0; padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-pill); font: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: clamp(460px, 62vw, 640px);
  background: var(--forest) center / cover no-repeat;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 62, 31, .92) 0%, rgba(0, 62, 31, .6) 45%, rgba(0, 62, 31, .1) 100%);
}
.hero__inner { position: relative; padding: 3rem 0; }
.hero__content { max-width: 560px; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); color: #fff; line-height: 1.05; text-shadow: 0 3px 14px rgba(0, 0, 0, .45); margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--sand); display: block; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); max-width: 460px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* Compact hero for inner pages */
.hero--page { min-height: clamp(240px, 28vw, 330px); }
.hero--page h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .2em; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .icon { font-size: .8em; }

/* ---------- Feature strip ---------- */
.features { background: var(--sand); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { display: flex; align-items: center; gap: .9rem; padding: 0 .5rem; }
.feature + .feature { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.feature__icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 1.5rem;
  color: var(--green-700); border: 2px solid var(--green-700); border-radius: 50%; background: #fff;
  transition: background-color .3s, color .3s, transform .3s;
}
.feature:hover .feature__icon { background: var(--lime); border-color: var(--lime); color: #fff; transform: rotate(-8deg) scale(1.08); }
.feature h3 { font-size: .98rem; margin: 0; }
.feature p { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* About-page variant: larger, stacked-on-narrow */
.features--about .feature h3 { font-size: 1.05rem; }
.features--about .feature p { font-size: .85rem; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.2rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.title-flourish { display: inline-flex; align-items: center; gap: .6rem; }
.title-flourish .icon { color: var(--gold); font-size: 2.2rem; stroke-width: 1.4; }
.title-line { display: block; width: 46px; height: 2px; background: var(--gold); margin: .6rem 0 1.2rem; }
.section-head .title-line { margin-inline: auto; }
h2 .accent, h1 .accent { color: var(--brown); }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-100); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.card__title { display: flex; gap: .7rem; align-items: flex-start; }
.card__title .icon { font-size: 2.1rem; color: var(--gold); stroke-width: 1.3; margin-top: .1rem; }
.card h3 { font-size: 1.25rem; margin-bottom: .3em; }
.card h3 .accent { color: var(--brown); }
.card p { color: var(--muted); font-size: .92rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.tag { background: var(--green-100); color: var(--green-800); font-size: .75rem; padding: .25rem .8rem; border-radius: var(--radius-pill); transition: background-color .25s, color .25s; }
.card:hover .tag { background: var(--forest); color: var(--sand); }
.card .btn { margin-top: auto; align-self: center; min-width: 180px; }
.card--compact .card__media { aspect-ratio: 16 / 9; }

/* ---------- Split section (paddy to plate / our story) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.split p { color: var(--muted); }
.split__media { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split__media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.zoom { overflow: hidden; border-radius: var(--radius); }
.zoom img { transition: transform .8s ease; }
.zoom:hover img { transform: scale(1.06); }
.split__badges {
  position: absolute; left: 6%; right: -2%; bottom: -1.6rem; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .9rem .6rem;
}
.badge { display: flex; align-items: center; gap: .6rem; padding: 0 .8rem; }
.badge + .badge { border-left: 1px solid var(--line); }
.badge .icon { font-size: 1.9rem; color: var(--green-700); padding: .35rem; box-sizing: content-box; border: 2px solid var(--green-700); border-radius: 50%; }
.badge strong { display: block; font-family: var(--font-head); font-size: .85rem; line-height: 1.2; color: var(--green-800); }
.badge span { font-size: .72rem; color: var(--muted); line-height: 1.3; display: block; }
.has-badges { padding-bottom: 3.4rem; }

/* ---------- Process timeline ---------- */
.process { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.process__step { flex: 1; text-align: center; max-width: 210px; margin-inline: auto; }
.process__img {
  width: clamp(96px, 11vw, 130px); aspect-ratio: 1; margin: 0 auto .8rem; border-radius: 50%; overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--shadow-md);
}
.process__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.process__step:hover .process__img img { transform: scale(1.12); }
.process__step h3 { font-size: 1rem; margin-bottom: .2em; }
.process__step p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.4; }
.process__arrow { flex: none; align-self: flex-start; margin-top: clamp(40px, 5vw, 58px); font-size: 1.6rem; color: var(--green-700); }

.promise { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: center; background: var(--sand); border: 1px solid rgba(0,62,31,.15); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.promise h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.promise p { font-size: .88rem; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta {
  position: relative; color: #fff; overflow: hidden;
  background: var(--forest) right center / cover no-repeat;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 62, 31, .96) 0%, rgba(0, 62, 31, .8) 50%, rgba(8, 40, 22, .15) 100%); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .3em; }
.cta p { margin: 0 0 1.2rem; max-width: 520px; }
.cta--compact { padding: clamp(1.6rem, 4vw, 2.4rem) 0; }
.cta--compact h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #e8efe9; font-size: .88rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; padding: 2.6rem 0 2rem; }
.footer__brand img { height: 92px; width: auto; margin-bottom: .6rem; }
.footer__tagline { font-family: var(--font-head); color: var(--sand); font-size: 1.15rem; margin-bottom: .4rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin-bottom: .9rem; }
.footer__links li + li { margin-top: .45rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .4rem; opacity: .9; transition: color .25s, transform .25s, opacity .25s; }
.footer__links a:hover { color: var(--gold-light); opacity: 1; transform: translateX(4px); }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact li + li { margin-top: .7rem; }
.footer__contact .icon { font-size: 1.15rem; color: var(--gold-light); margin-top: .2rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.footer__bottom em { font-family: var(--font-head); color: var(--gold-light); }

/* ---------- Scroll animations (triggered by IntersectionObserver) ---------- */
.js [data-animate] {
  opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 120ms); will-change: opacity, transform;
}
.js [data-animate="fade-left"] { transform: translateX(-48px); }
.js [data-animate="fade-right"] { transform: translateX(48px); }
.js [data-animate="fade-up"] { transform: translateY(40px); }
.js [data-animate="zoom-in"] { transform: scale(.92); }
.js [data-animate].is-visible { opacity: 1; transform: none; will-change: auto; }
/* Once revealed, drop the stagger delay so hover effects feel instant */
.js [data-animate].is-done { transition-delay: 0s; transition: transform .35s ease, box-shadow .35s ease, opacity .3s; }


/* ---------- Immersive home hero (full-bleed, transparent header) ---------- */
.site-header--overlay { position: fixed; inset: 0 0 auto 0; }
.site-header--overlay:not(.is-scrolled) { background: transparent; box-shadow: none; }
.site-header--overlay:not(.is-scrolled) .nav__link,
.site-header--overlay:not(.is-scrolled) .nav__search { color: #fff; }
.site-header--overlay:not(.is-scrolled) .nav__link:hover,
.site-header--overlay:not(.is-scrolled) .nav__link.is-active { color: #fff; }
.site-header--overlay:not(.is-scrolled) .nav__link::after { background: #fff; }
.site-header--overlay:not(.is-scrolled) .nav__toggle span,
.site-header--overlay:not(.is-scrolled) .nav__toggle span::before,
.site-header--overlay:not(.is-scrolled) .nav__toggle span::after { background: #fff; }
.site-header--overlay:not(.is-scrolled) .nav__toggle[aria-expanded="true"] span { background: transparent; }
.site-header--overlay .nav__menu.is-open .nav__link { color: var(--ink); }

.hero--home {
  min-height: 100vh; min-height: 100svh; align-items: flex-end; flex-direction: column; justify-content: flex-end;
  background-position: center 40%;
}
.hero--home::before {
  background:
    linear-gradient(180deg, rgba(0, 62, 31, .55) 0%, rgba(0, 62, 31, 0) 28%),
    linear-gradient(90deg, rgba(0, 62, 31, .85) 0%, rgba(0, 62, 31, .35) 50%, rgba(0, 62, 31, 0) 80%),
    linear-gradient(0deg, rgba(0, 38, 19, .75) 0%, rgba(0, 38, 19, 0) 45%);
}
.hero--home .hero__inner { width: min(100% - 2rem, var(--container)); padding: 0 0 clamp(3rem, 9vh, 5.5rem); }
.hero--home .hero__content { max-width: 600px; }
.hero--home h1 { font-size: clamp(2.8rem, 7.5vw, 5.2rem); line-height: 1.02; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--ghost:hover { background: var(--lime); border-color: var(--lime); color: #04200f; }

@media (max-width: 767px) {
  .hero--home .hero__inner { padding-top: 8rem; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
  body { font-size: 1.05rem; }
}

@media (max-width: 1023px) {
  .nav__toggle { display: block; }
  .nav__phone span { display: none; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: var(--shadow-md); padding: .5rem 1rem 1rem; margin: 0;
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; padding-block: 0;
    transition: max-height .4s ease, opacity .3s, visibility .3s;
  }
  .nav__menu.is-open { max-height: 80vh; visibility: visible; opacity: 1; padding-block: .5rem 1rem; overflow-y: auto; }
  .nav__link { padding: .85rem .3rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--green-100); padding-left: .8rem; border-radius: 6px; }
  .nav__actions { margin-left: auto; }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
  .feature:nth-child(3) { border-left: 0; padding-left: .5rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 520px; justify-self: center; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; text-align: center; }
  .promise .btn { margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .brand img { height: 78px; }
  .site-header.is-scrolled .brand img { height: 46px; }
  .nav__actions .btn { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(0, 62, 31, .85), rgba(0, 62, 31, .6)); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero { background-position: 65% center; }

  .features__grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; padding-left: .5rem; }
  .cards { grid-template-columns: 1fr; }
  .cards > :last-child:nth-child(odd) { max-width: none; }

  .split__badges { position: static; grid-template-columns: 1fr; margin-top: 1rem; padding: .8rem; gap: .8rem; }
  .badge + .badge { border-left: 0; border-top: 1px solid var(--line); padding-top: .8rem; }
  .has-badges { padding-bottom: 0; }

  /* Timeline becomes a vertical list with downward arrows */
  .process { flex-direction: column; align-items: center; gap: .4rem; }
  .process__step { max-width: 320px; width: 100%; }
  .process__arrow { margin: 0; transform: rotate(90deg); }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta::before { background: linear-gradient(180deg, rgba(0, 62, 31, .9), rgba(0, 62, 31, .75)); }
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__bottom .container { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 400px) {
  .btn { padding: .7rem 1.1rem; }
}

/* ---------- Products page ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.chip { padding: .5rem 1.2rem; border: 1.5px solid var(--forest); border-radius: var(--radius-pill); font-size: .88rem; font-weight: 500; color: var(--forest); transition: background-color .25s, color .25s, transform .25s; }
.chip:hover { background: var(--forest); color: var(--sand); transform: translateY(-2px); }
.product { scroll-margin-top: var(--header-h); }
.split--reverse { grid-template-columns: 1.25fr 1fr; }
.product .zoom img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.specs { margin: 1.2rem 0; display: grid; gap: .7rem; }
.specs div { display: grid; grid-template-columns: 90px 1fr; gap: .8rem; padding-bottom: .7rem; border-bottom: 1px dashed rgba(0, 62, 31, .25); }
.specs dt { font-weight: 600; color: var(--forest); font-size: .88rem; }
.specs dd { margin: 0; color: var(--muted); font-size: .92rem; }
.product .card__tags { margin-bottom: 1.4rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.compare th, .compare td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.compare thead th { background: var(--forest); color: var(--sand); font-family: var(--font-body); font-weight: 600; }
.compare tbody th { font-family: var(--font-head); color: var(--forest); font-size: 1.05rem; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr { transition: background-color .25s; }
.compare tbody tr:hover { background: var(--cream); }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.contact__info h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.contact__list { display: grid; gap: 1.1rem; margin: 1.6rem 0; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list strong { display: block; font-family: var(--font-head); color: var(--forest); font-size: 1.05rem; }
.contact__list a, .contact__list span { color: var(--muted); font-size: .95rem; }
.contact__list a:hover { color: var(--forest); text-decoration: underline; }
.contact__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--forest); font-size: 1.3rem; transition: background-color .3s, color .3s, transform .3s; }
.contact__list li:hover .contact__icon { background: var(--lime); color: #fff; transform: scale(1.08); }
.contact__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.4rem, 3vw, 2.2rem); border-top: 5px solid var(--lime); }
.form-card h3 { font-size: 1.6rem; margin-bottom: .2em; }
.form-card__sub { color: var(--muted); font-size: .85rem; margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--forest); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  padding: .75rem 1rem; border: 1.5px solid #cfd8cf; border-radius: 10px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(43, 192, 22, .18); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field__error { color: #c0392b; font-size: .78rem; }
.form-status { margin: 1rem 0 0; font-size: .92rem; }
.form-status.is-success { color: var(--forest); background: var(--green-100); border-left: 4px solid var(--lime); padding: .8rem 1rem; border-radius: 8px; }
.form-status.is-error { color: #a93226; }
.map__frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid #fff; aspect-ratio: 21 / 9; min-height: 320px; background: var(--green-100); }
.map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1023px) {
  .contact { grid-template-columns: 1fr; }
  .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 2; }
}
@media (max-width: 767px) {
  .form-grid { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: .1rem; }
  .map__frame { aspect-ratio: 4 / 3; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-animate] { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Added content blocks (checklist, info cards, gallery, FAQ) ---------- */
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
.checklist strong { color: var(--green-800); }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.info-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.info-card:hover .info-card__img img { transform: scale(1.06); }
.info-card__body { padding: 1.1rem 1.3rem 1.4rem; }
.info-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.info-card p { color: var(--muted); font-size: .92rem; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--green-100); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { padding: .6rem .9rem; font-size: .85rem; color: var(--green-800); background: #fff; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--green-800); }
.faq details[open] summary { margin-bottom: .5rem; }
.faq p { margin: 0; color: var(--muted); font-size: .94rem; }

@media (max-width: 900px) {
  .info-cards, .gallery { grid-template-columns: 1fr; }
}

/* ---------- Language selector (Google Translate) ----------
   The trigger reuses .btn.btn--primary.btn--sm, so it is styled by exactly
   the same rules as the "Enquire Now" button. Only the dropdown is new. */
.lang { position: relative; display: inline-flex; }
.lang__btn:hover .icon { transform: none; }
.lang__btn .icon { transition: transform .25s; }
.lang__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + .5rem); right: 0; min-width: 11rem; z-index: 120;
  margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu li {
  padding: .55rem .9rem; border-radius: 8px; cursor: pointer;
  font-size: .88rem; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.lang__menu li:hover, .lang__menu li:focus { background: var(--green-100); color: var(--forest); outline: none; }
.lang__menu li[aria-selected="true"] { background: var(--green-700); color: #fff; }
/* Keep Google's own widget invisible */
#google_translate_element { position: absolute; width: 0; height: 0; overflow: hidden; }
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style*="vertical-align"] { vertical-align: baseline !important; }

/* The Enquire button is hidden below 768px by the existing theme; keep the language button visible there */
@media (max-width: 1023px) {
  .nav__actions { gap: .5rem; }
}
@media (max-width: 767px) {
  .nav__actions .lang__btn { display: inline-flex; }
}
/* Same width as the "Enquire Now" button where that button is visible */
@media (min-width: 768px) {
  .lang__btn { min-width: 9.55rem; }
}

/* ---------- Four-product card grids (Home / About) ---------- */
.cards--4 { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1023px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 > :last-child:nth-child(odd) { grid-column: auto; max-width: none; justify-self: stretch; }
}
@media (max-width: 767px) {
  .cards--4 { grid-template-columns: 1fr; }
}

/* ---------- About: Our Story ---------- */
.split p.story__tagline, .story__vision, .story__tagline { font-family: var(--font-body), "Noto Sans Tamil", sans-serif; }
.story__title { margin-bottom: .2rem; }
.story__vision {
  margin: .4rem 0 1.2rem; padding: 1rem 1.3rem;
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream); color: var(--forest);
  font-size: 1.1rem; font-weight: 600; line-height: 1.6;
}
.story__vision span { color: var(--brown); }
.split p.story__tagline { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--forest); margin-bottom: 1.4rem; }
:lang(ta) { font-family: var(--font-body), "Noto Sans Tamil", "Latha", "Nirmala UI", sans-serif; }

/* ---------- Footer: map link + social icons ---------- */
.footer__contact a[target="_blank"] { opacity: .9; transition: color .25s, opacity .25s; }
.footer__contact a[target="_blank"]:hover { color: var(--gold-light); opacity: 1; }
.footer__social { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); color: var(--gold-light);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.footer__social a:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--forest); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Home: header now sticky/white like inner pages, so the hero sits below it ---------- */
.hero--home { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }

/* ---------- Home: Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.testimonial {
  margin: 0; padding: 1.6rem 1.7rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .3s, box-shadow .3s;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial__stars { color: var(--gold); font-size: 1.25rem; letter-spacing: .15em; line-height: 1; }
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.7; }
.testimonial figcaption { font-weight: 600; color: var(--forest); padding-top: .8rem; border-top: 1px solid var(--line); }
@media (max-width: 767px) { .testimonials { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .testimonial:hover { transform: none; } }

/* ---------- Home: Testimonials with customer photos ---------- */
.testimonials--people { grid-template-columns: repeat(3, 1fr); }
.testimonial--person { align-items: center; text-align: center; }
.testimonial__photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow-sm); flex: none;
}
.testimonial--person .testimonial__who { display: flex; flex-direction: column; gap: .2rem; padding: 0; border: 0; }
.testimonial__name { color: var(--forest); font-size: 1.1rem; font-weight: 700; }
.testimonial__biz { color: var(--ink); font-size: .95rem; font-weight: 500; }
.testimonial__date { color: var(--muted); font-size: .85rem; font-weight: 400; }
.testimonial--person blockquote { padding-top: .8rem; border-top: 1px solid var(--line); width: 100%; }
@media (max-width: 1023px) { .testimonials--people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .testimonials--people { grid-template-columns: 1fr; } }


/* ==========================================================================
   Floating Google Review button  (markup: functions.php → wp_footer)
   z-index 900: above page + header (100), below gallery/recipe overlays (1000).
   Set --vel-review-offset to lift it if another floating widget is added.
   ========================================================================== */
.vel-review {
  --vel-review-offset: 0px;
  position: fixed; z-index: 900;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--vel-review-offset));
  display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  pointer-events: none;
}
.vel-review__btn {
  pointer-events: auto;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .12);
  animation: vel-review-float 3.2s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.vel-review__btn svg { display: block; width: 24px; height: 24px; }
.vel-review__btn:hover, .vel-review__btn:focus-visible {
  animation-play-state: paused; transform: scale(1.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .15);
}
.vel-review__btn:focus-visible { outline: 3px solid var(--lime, #2BC016); outline-offset: 3px; }
.vel-review__btn:active { transform: scale(.96); }

.vel-review__tip {
  pointer-events: none; position: relative;
  background: var(--forest, #003E1F); color: #fff;
  font: 500 .85rem/1.2 'Poppins', system-ui, sans-serif; white-space: nowrap;
  padding: .55rem .85rem; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  opacity: 0; visibility: hidden; transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.vel-review__tip::after {
  content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px;
  background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.vel-review:hover .vel-review__tip,
.vel-review:focus-within .vel-review__tip,
.vel-review.is-peek .vel-review__tip { opacity: 1; visibility: visible; transform: none; }

@keyframes vel-review-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

@media (min-width: 768px) {
  .vel-review { right: 24px; bottom: calc(24px + var(--vel-review-offset)); }
  .vel-review__btn { width: 56px; height: 56px; }
  .vel-review__btn svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .vel-review__btn { animation: none; transition: none; }
  .vel-review__tip { transition: none; }
}
@media print { .vel-review { display: none; } }
