/* ==========================================================================
   SAURAM AGRO INTERNATIONAL PVT. LTD. (SAI)
   style.css — single stylesheet for the whole static site
   --------------------------------------------------------------------------
   Contents
   01. Design tokens
   02. Base / reset
   03. Layout helpers
   04. Buttons & chips
   05. Header / navigation / search
   06. Hero
   07. Sections (about, quality, mission, vision, stats)
   08. Product cards, filters, catalogue
   09. Product details page
   10. Contact & enquiry form
   11. Modal
   12. Footer & back-to-top
   13. Motion / reveal animations
   14. Responsive breakpoints
   ========================================================================== */


/* 01. DESIGN TOKENS ------------------------------------------------------- */

:root {
  /* Brand palette — green is primary, brochure colours used as accents */
  --sai-green-900: #0d3524;
  --sai-green-700: #14603c;
  --sai-green-500: #1c8a52;
  --sai-green-300: #6bbf85;
  --sai-green-050: #e9f4ec;

  --sai-yellow: #f2b21c;
  --sai-yellow-soft: #fdf3d8;
  --sai-blue: #1a6fa3;
  --sai-orange: #e2622a;

  --ink: #14211b;
  --ink-soft: #4a5a52;
  --line: #dfe7e0;
  --paper: #f6f9f5;
  --surface: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Noto Serif Devanagari", serif;
  --font-body: "Public Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.8vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.9rem);

  /* Structure */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shell: 1220px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 76px;

  --shadow-soft: 0 10px 30px -18px rgba(13, 53, 36, 0.45);
  --shadow-lift: 0 22px 44px -24px rgba(13, 53, 36, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* 02. BASE ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Devanagari renders better with a touch more leading */
html[lang="hi"] body,
html[lang="mr"] body {
  line-height: 1.8;
}

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

a {
  color: var(--sai-green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sai-green-500);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--sai-green-900);
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

:focus-visible {
  outline: 3px solid var(--sai-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 200;
  background: var(--sai-green-700);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 03. LAYOUT -------------------------------------------------------------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--paper {
  background: var(--surface);
}

.section--mint {
  background: var(--sai-green-050);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  color: var(--ink-soft);
}

/* Small green rule that sits above a heading — used sparingly */
.rule {
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sai-green-500), var(--sai-yellow));
  margin-bottom: 1.1rem;
}

.grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
}


/* 04. BUTTONS & CHIPS ----------------------------------------------------- */

.btn {
  --btn-bg: var(--sai-green-700);
  --btn-fg: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.45rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  cursor: pointer;

  transition:
    transform 0.18s var(--ease),
    background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  --btn-bg: var(--sai-yellow);
  --btn-fg: var(--sai-green-900);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--sai-green-700);
  border-color: var(--sai-green-300);
}

.btn--ghost:hover {
  --btn-bg: var(--sai-green-050);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--sai-green-900);
}

.btn--sm {
  padding: 0.55rem 1rem;
  min-height: 40px;
}

.btn--block {
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--sai-green-050);
  color: var(--sai-green-700);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.chip--pack {
  background: var(--sai-yellow-soft);
  color: #7a5405;
}

.chip--tea {
  background: #e6f0f7;
  color: var(--sai-blue);
}


/* 05. HEADER / NAV -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition:
    box-shadow 0.25s var(--ease),
    padding 0.25s var(--ease);
}

.site-header.is-stuck {
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  transition: min-height 0.25s var(--ease);
}

.site-header.is-stuck .nav {
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--sai-green-900);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0 auto 0 1.5rem;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.nav-links a:hover {
  background: var(--sai-green-050);
  color: var(--sai-green-700);
}

.nav-links a[aria-current="page"] {
  color: var(--sai-green-700);
  background: var(--sai-green-050);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--sai-green-700);
  color: #fff;
}

.lang-switch button:hover {
  color: var(--sai-green-700);
}

.lang-switch button[aria-pressed="true"]:hover {
  color: #fff;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--sai-green-900);
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.icon-btn:hover {
  background: var(--sai-green-050);
  border-color: var(--sai-green-300);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
}

/* Search panel */
.search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1rem 0 1.25rem;
}

.search-panel.is-open {
  display: block;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  background: var(--paper);
}

.search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0.5rem 0;
  min-width: 0;
}

.search-field input:focus {
  outline: none;
}

.search-results {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  font-size: var(--step--1);
}

.search-results a:hover {
  background: var(--sai-green-050);
}

.search-results span:last-child {
  color: var(--ink-soft);
}

/* Heading highlight — carried over from the source template's boxed word */
.hl {
  background: var(--sai-yellow);
  color: var(--sai-green-900);
  padding: 0 0.3em;
  border-radius: 6px;
  font-style: normal;
}


/* 06. HERO ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--sai-green-050) 0%, transparent 60%),
    var(--surface);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sai-green-700);
  background: var(--sai-green-050);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  margin-bottom: 0.6rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--sai-green-500);
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero-facts div strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--sai-green-700);
  line-height: 1;
}

.hero-facts div span {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Organic leaf-shaped media frame */
.hero-media {
  position: relative;
  aspect-ratio: 5 / 5.4;
  border-radius: 46% 46% 46% 46% / 40% 40% 60% 60%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sai-green-500), var(--sai-green-900));
  box-shadow: var(--shadow-lift);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #eaf5ee;
  padding: 2rem;
  gap: 0.4rem;
}

.hero-media .media-fallback strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
}

.hero-media .media-fallback span {
  font-size: var(--step--1);
  opacity: 0.8;
}

.leaf-float {
  position: absolute;
  color: var(--sai-green-300);
  opacity: 0.45;
  pointer-events: none;
}

.leaf-float--1 {
  top: 12%;
  left: 4%;
  width: 48px;
  animation: drift 9s ease-in-out infinite;
}

.leaf-float--2 {
  bottom: 14%;
  right: 6%;
  width: 64px;
  animation: drift 11s ease-in-out infinite reverse;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-16px) rotate(8deg);
  }
}

/* Hero mosaic — four real product photographs from the SAI brochure */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.15fr 0.85fr;
  gap: 12px;
}

.hero-mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sai-green-050);
  box-shadow: var(--shadow-soft);
}

.hero-mosaic figure:first-child {
  border-radius: var(--radius-lg) var(--radius) var(--radius) var(--radius);
}

.hero-mosaic figure:last-child {
  border-radius: var(--radius) var(--radius) var(--radius-lg) var(--radius);
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-mosaic figure:hover img {
  transform: scale(1.05);
}

.about-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-figure img {
  width: 100%;
  object-fit: cover;
}


/* 07. CONTENT SECTIONS ---------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.range-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.range-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--sai-green-900);
}

.range-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--sai-green-500);
  margin-top: 3px;
}

/* Quality — the one bold, brochure-inspired shape on the page */
.quality-card {
  position: relative;
  border-radius: var(--radius-lg) 90px var(--radius-lg) 90px;
  background: linear-gradient(140deg, var(--sai-green-700), var(--sai-green-900) 70%);
  color: #eaf5ee;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.quality-card h2 {
  color: #fff;
}

.quality-card p {
  color: #d9eade;
  font-size: var(--step-1);
  max-width: 58ch;
}

.quality-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(242, 178, 28, 0.35), transparent 65%);
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.pillar--mission {
  border-top: 5px solid var(--sai-green-500);
}

.pillar--vision {
  border-top: 5px solid var(--sai-blue);
}

.pillar h3 {
  margin-bottom: 0.7rem;
}

.pillar p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--sai-green-900);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #eaf5ee;
}

.stat-strip div {
  text-align: center;
}

.stat-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--sai-yellow);
  line-height: 1;
}

.stat-strip span {
  font-size: var(--step--1);
  opacity: 0.85;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--sai-green-700), var(--sai-green-500));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}


/* 08. PRODUCTS ------------------------------------------------------------ */

.catalogue-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.filter-btn:hover {
  border-color: var(--sai-green-300);
  color: var(--sai-green-700);
}

.filter-btn[aria-pressed="true"] {
  background: var(--sai-green-700);
  border-color: var(--sai-green-700);
  color: #fff;
}

.catalogue-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  min-width: min(320px, 100%);
}

.catalogue-search input {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0.5rem 0;
  flex: 1;
  min-width: 0;
}

.catalogue-search input:focus {
  outline: none;
}

.catalogue-search svg {
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
}

.result-count {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--sai-green-300);
  box-shadow: var(--shadow-lift);
}

.product-card.is-hidden {
  display: none;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--sai-green-050), #ffffff);
  overflow: hidden;
}

/* Original product image positioning */
.product-media img {
  top: -12px;
  left: 42px;
  position: relative;
  width: 68%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

/* Placeholder shown until a real photograph is dropped into images/products/ */
.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem;
  color: var(--sai-green-700);
}

.media-placeholder .ph-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.media-placeholder .ph-note {
  font-size: 0.72rem;
  color: var(--ink-soft);
  border: 1px dashed var(--sai-green-300);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  justify-self: center;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--sai-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.product-body {
  padding: 1.1rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 0;
  color: var(--sai-green-900);
}

.product-cat {
  font-size: var(--step--1);
  color: var(--sai-green-700);
  font-weight: 600;
  margin: 0;
}

.product-desc {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
}

.pack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.product-actions .btn {
  flex: 1;
  padding-inline: 0.7rem;
}

.empty-state {
  border: 1px dashed var(--sai-green-300);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
}


/* 09. PRODUCT DETAILS ----------------------------------------------------- */

.breadcrumb {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--sai-green-700);
}

.detail-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.detail-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--sai-green-050), #ffffff);
  border: 1px solid var(--line);
  overflow: hidden;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-panel h1 {
  font-size: var(--step-3);
  margin-bottom: 0.35rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.spec-block {
  margin-top: 1.8rem;
}

.spec-block h2 {
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}

.spec-block p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.spec-note {
  border-left: 3px solid var(--sai-yellow);
  background: var(--sai-yellow-soft);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #6b4a05;
  font-size: var(--step--1);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}


/* 10. CONTACT & FORMS ----------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--sai-green-500);
  flex: 0 0 auto;
  margin-top: 4px;
}

.contact-list strong {
  display: block;
  font-size: var(--step--1);
  color: var(--sai-green-900);
}

.contact-list span {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--sai-green-900);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sai-green-500);
  box-shadow: 0 0 0 3px var(--sai-green-050);
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--sai-green-050);
  color: var(--sai-green-700);
  font-size: var(--step--1);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.map-frame {
  border: 1px dashed var(--sai-green-300);
  border-radius: var(--radius);
  background: var(--sai-green-050);
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
  font-size: var(--step--1);
}


/* 11. MODAL --------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(13, 53, 36, 0.55);
}

.modal.is-open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-lift);
  animation: modal-in 0.22s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  font-size: var(--step-2);
  margin: 0;
}


/* 12. FOOTER & BACK TO TOP ------------------------------------------------ */

.site-footer {
  background: var(--sai-green-900);
  color: #c9dccf;
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  margin-top: var(--section-y);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
}

.site-footer h3 {
  color: #fff;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.site-footer p {
  color: #b7cfbe;
  font-size: var(--step--1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: #c9dccf;
  text-decoration: none;
  font-size: var(--step--1);
}

.footer-links a:hover {
  color: var(--sai-yellow);
}

.social-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.social-row a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e7f2ea;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.social-row a:hover {
  background: var(--sai-green-700);
  border-color: var(--sai-green-500);
}

.social-row svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.site-footer .lang-switch {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.site-footer .lang-switch button {
  color: #c9dccf;
}

.site-footer .lang-switch button[aria-pressed="true"] {
  background: var(--sai-green-500);
  color: #fff;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--sai-green-700);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s;
  box-shadow: var(--shadow-lift);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 18px;
  height: 18px;
}


/* 13. MOTION -------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

.hero-anim > * {
  animation: hero-rise 0.7s var(--ease) both;
}

.hero-anim > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-anim > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-anim > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-anim > *:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }
}


/* 14. RESPONSIVE ---------------------------------------------------------- */

@media (max-width: 1024px) {

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    aspect-ratio: 5 / 4;
    max-width: 560px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 900px) {

  .nav-toggle {
    display: grid;
    order: 3;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .site-header {
    position: sticky;
  }

  .nav {
    position: relative;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .brand-tag {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE HEADER FIX
   ============================================================ */

@media (max-width: 900px) {

  .site-header {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .nav {
    position: relative;
    width: 100%;
    min-height: 68px;
    gap: 0.5rem;
  }

  /* ---------------- BRAND ---------------- */

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    overflow: hidden;
  }

  .brand img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-name {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tag {
    display: none;
  }


  /* ---------------- DESKTOP NAV → MOBILE MENU ---------------- */

  .nav-links {
    display: none;

    position: absolute;
    left: 0;
    right: 0;
    top: 100%;

    width: 100%;
    max-width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 0;
    margin: 0;

    padding: 0.6rem 1rem 1.25rem;

    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);

    z-index: 100;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    min-width: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 0.7rem;
    border-radius: var(--radius-sm);
  }


  /* ---------------- RIGHT SIDE HEADER ACTIONS ---------------- */

  .nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0;
  }


  /* Language selector */

  .lang-switch {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .lang-switch button {
    padding: 0.28rem 0.48rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }


  /* Search button */

  .nav-actions .icon-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }


  /* Hamburger */

  .nav-toggle {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    padding: 0;
    margin: 0;

    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;

    color: var(--sai-green-900);
    cursor: pointer;
  }

  .nav-toggle:hover {
    background: var(--sai-green-050);
    border-color: var(--sai-green-300);
  }
}


/* ============================================================
   iPHONE / SMALL MOBILE HEADER
   ============================================================ */

@media (max-width: 620px) {

  .nav {
    min-height: 64px;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .nav-actions .icon-btn,
  .nav-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-switch button {
    padding: 0.25rem 0.4rem;
    font-size: 0.68rem;
  }

  .nav-links {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 400px) {

  .nav {
    gap: 0.3rem;
  }

  .brand {
    gap: 0.35rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .nav-actions {
    gap: 0.2rem;
  }

  .nav-actions .icon-btn,
  .nav-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .lang-switch button {
    padding: 0.22rem 0.34rem;
    font-size: 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   MOBILE FIXES
   These rules only adjust responsive behaviour.
   Desktop styling above remains unchanged.
   -------------------------------------------------------------------------- */

@media (max-width: 620px) {

  /* Prevent any element from creating horizontal page overflow */
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Keep the main content inside the phone width */
  .shell {
    width: calc(100% - 2rem);
    max-width: 100%;
  }


  /* ---------------- PRODUCTS ---------------- */

  /* IMPORTANT:
     iPhone 16 Pro Max is wider than 400px, so the old
     190px auto-fill rule was creating TWO product cards.
     Force exactly ONE card per row on mobile. */

  .product-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    gap: 1.25rem;
  }

  .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .product-media {
    width: 100%;
    max-width: 100%;
  }

  .product-body {
    width: 100%;
    min-width: 0;
  }

  .product-name,
  .product-cat,
  .product-desc {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }


  /* Keep the product image inside the card.
     This does NOT change the desktop product image styling. */

  .product-media img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }


  /* ---------------- CATALOGUE ---------------- */

  .catalogue-bar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .catalogue-search {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .filter-row {
    width: 100%;
    max-width: 100%;
  }

  .filter-btn {
    max-width: 100%;
  }


  /* ---------------- CTA ---------------- */

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
  }


  /* ---------------- FORMS ---------------- */

  .form-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .field {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .field input,
  .field select,
  .field textarea {
    width: 100%;
    max-width: 100%;
  }


  /* ---------------- MODAL / SEND ENQUIRY ---------------- */

  .modal {
    padding: 0.75rem;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 100%;

    height: 100dvh;
    min-height: 100dvh;

    overflow: hidden;
  }

  .modal-box {
    width: 100%;
    max-width: 100%;

    max-height: calc(100dvh - 1.5rem);

    padding: 1.1rem;

    overflow-x: hidden;
    overflow-y: auto;

    box-sizing: border-box;
  }

  .modal-head {
    width: 100%;
    min-width: 0;
  }

  .modal-head h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .modal-box .form-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .modal-box .field {
    width: 100%;
    min-width: 0;
  }

  .modal-box input,
  .modal-box select,
  .modal-box textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal-box textarea {
    min-height: 100px;
    max-height: 180px;
  }

  .modal-box .btn {
    width: 100%;
    max-width: 100%;
  }


  /* ---------------- FOOTER ---------------- */

  /* The previous auto-fit footer could create multiple
     narrow columns on an iPhone. Use one clean column. */

  .site-footer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    gap: 1.75rem;
  }

  .footer-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer p,
  .site-footer a,
  .footer-links,
  .footer-links li {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .footer-bottom {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }


  /* ---------------- IMAGES / MEDIA ---------------- */

  img,
  svg,
  video {
    max-width: 100%;
  }


  /* ---------------- PRODUCT ACTIONS ---------------- */

  .product-actions {
    width: 100%;
    max-width: 100%;
  }

  .product-actions .btn {
    min-width: 0;
  }


  /* ---------------- HERO MOSAIC ---------------- */

  .hero-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-mosaic figure,
  .hero-mosaic figure:first-child,
  .hero-mosaic figure:last-child {
    min-height: 220px;
  }
}


@media (max-width: 400px) {

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

  .product-actions {
    flex-direction: column;
  }

  .hero-facts {
    gap: 1rem 1.6rem;
  }

  .lang-switch button {
    padding: 0.28rem 0.45rem;
    font-size: 0.72rem;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-box {
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }
}


/* Extra-small phones */

@media (max-width: 350px) {

  .shell {
    width: calc(100% - 1.25rem);
  }

  .nav {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .modal {
    padding: 0.35rem;
  }

  .modal-box {
    max-height: calc(100dvh - 0.7rem);
    padding: 0.9rem;
  }
}


@media print {
  .site-header,
  .to-top,
  .site-footer,
  .product-actions {
    display: none !important;
  }
}