/*
 * RCA Seed — brand layer on top of the Quark 2 / Blades CSS design system.
 * Loaded last (priority 80) so everything here overrides theme.css without !important.
 */

:root,
:root[data-theme="light"] {
  /* Default brand green, pulled from the logo (#213316). This is only the
     fallback — the live value comes from Admin > Appearance > Accent Color
     and is injected after this stylesheet (see base.html.twig), so editors
     can change the brand color site-wide without touching code. */
  --rca-green: #213316;
  --rca-green-2: color-mix(in oklab, #213316 65%, white 35%);
  --rca-green-dark: color-mix(in oklab, #213316 78%, black 22%);
  --rca-green-light: color-mix(in oklab, #213316 16%, white 84%);
  --rca-ink: #161611;
  /* Site-wide base background: a light, airy shade of the brand green
     (not plain cream) — applies everywhere via var(--q2-bg) below, since
     every page's <body> background-color is var(--q2-bg) (see theme.css). */
  --rca-cream: color-mix(in oklab, #213316 9%, white 91%);
  --rca-gold: #b8860b;
  --rca-gold-light: #f1e2b8;
  --rca-whatsapp: #25d366;
  --rca-whatsapp-dark: #1aa851;

  --q2-bg: var(--rca-cream);
  --q2-bg-elev: #ffffff;
  --q2-bg-muted: color-mix(in oklab, #213316 18%, white 82%);
  --q2-text: var(--rca-ink);
  --q2-text-strong: #000000;
}

:root[data-theme="dark"] {
  --rca-green: color-mix(in oklab, #213316 50%, white 50%);
  --rca-green-2: color-mix(in oklab, #213316 35%, white 65%);
  --rca-green-dark: color-mix(in oklab, #213316 65%, white 20%);
  --rca-green-light: color-mix(in oklab, #213316 25%, black 75%);
  --rca-ink: #eeede4;
  --rca-cream: #1c1f16;
  --rca-gold: #e0ad46;
  --rca-gold-light: #3a2f14;
  --rca-whatsapp: #25d366;
  --rca-whatsapp-dark: #1aa851;

  --q2-bg: #1c1f16;
  --q2-bg-muted: #262a1c;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base tweaks ---------- */

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a.plain {
  text-decoration: none;
  color: inherit;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rca-green);
  margin-bottom: 0.5rem;
}

.section-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin-bottom: 0.5rem;
}

/* Home page sections are full-bleed: each <section class="section-pad ...">
   carries its own background edge-to-edge, while its own inner .container
   div keeps the actual content readable at the normal 1200px column width.
   This "vw breakout" trick works because .section-pad's only parent is the
   page's own centered .container (see base.html.twig), so (50% - 50vw)
   always shifts it to span the full viewport regardless of that width. */
.section-pad {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section-pad { padding: 2.5rem 0; }
}

.bg-muted {
  background: var(--q2-bg-muted);
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--q2-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--rca-green);
  color: #fff;
  box-shadow: var(--q2-shadow-raised);
}
.btn-primary:hover { background: var(--rca-green-dark); color: #fff; }

.btn-whatsapp {
  background: var(--rca-whatsapp);
  color: #fff;
  box-shadow: var(--q2-shadow-raised);
}
.btn-whatsapp:hover { background: var(--rca-whatsapp-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--q2-border-strong);
  color: var(--q2-text);
}
.btn-outline:hover { border-color: var(--rca-green); color: var(--rca-green); }

.btn-gold {
  background: var(--rca-gold);
  color: #1b1304;
}
.btn-gold:hover { filter: brightness(1.06); color: #1b1304; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* =====================================================================
   HEADER — redesigned
   Two rows: a slim utility bar (company info, admin-editable) and a main
   bar (logo + nav + CTA, all sourced from Grav content — nothing below
   is hardcoded copy, only layout/visual rules). Chosen trade-off: generous
   spacing between every element for a premium, uncluttered feel, which
   means the full nav needs real width — below ~1500px it hands off to the
   theme's built-in hamburger menu rather than cramming everything in or
   letting it wrap. 1500px still clears most laptop/desktop screens
   (1536/1600/1920); narrower windows get the mobile nav instead. */

:root {
  /* 96px logo + exactly 16px margin top and bottom (set on the logo image
     itself, see below) = 128px. Matches the row's natural height so no
     extra centering slack gets added on top. */
  --q2-header-height: 128px;
}
#header .container,
.topbar .container {
  max-width: 1600px;
}

/* ---------- Utility bar ----------
 * Solid brand-green fill with white text/icons, per explicit request —
 * reads as a confident "action bar" rather than a pale tint. */
.topbar {
  background: var(--rca-green);
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.1px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  flex-wrap: wrap;
}
.topbar a { color: #ffffff; text-decoration: none; }
.topbar a:hover { color: var(--rca-gold-light); text-decoration: underline; }
.topbar-contacts { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar-contacts span, .topbar-social { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar-contacts span + span { position: relative; padding-left: 1.5rem; }
.topbar-contacts span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.35;
}
.topbar-contacts i { color: #ffffff; font-size: 0.85rem; width: 1em; text-align: center; }
.topbar-social { gap: 0.75rem; }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.topbar-social a:hover { background: #ffffff; color: var(--rca-green); }
@media (max-width: 760px) {
  .topbar .hide-mobile { display: none; }
  .topbar-contacts span + span::before { display: none; }
}

/* ---------- Logo ----------
 * The crest is a detailed circular badge (ring text + emblem), not a flat
 * wordmark — it needs real size and a bit of framing to read as a mark,
 * not a dot, without overpowering the row. */
.navbar-brand { gap: 0.875rem; }
.navbar-brand img {
  height: 96px;
  width: 96px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--q2-nav-border, rgba(0,0,0,0.08));
  /* Fixed 16px gap above/below the logo, tied to the logo itself rather
     than the row's centering, so it holds regardless of row height. */
  margin-block: 16px;
}
.overlay .mobile-logo .navbar-brand img {
  height: 92px;
  width: 92px;
}

/* ---------- Logo fallback wordmark ---------- */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pico-font-family-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rca-green);
}
.brand-wordmark i { color: var(--rca-gold); }

/* ---------- Main nav row ----------
 * .desktop-menu ships as flex-grow:1 with its content right-justified —
 * fine while the nav wraps across lines, but once it fits on one line all
 * the row's spare width piles up as dead space in front of the links.
 * Give the logo and the nav their own generous, fixed gap instead, and
 * let .navbar-section.actions' own margin-left:auto (theme.css) pin the
 * CTA + toggle to the far right with its own breathing room.
 *
 * The menu has since grown to 7 top-level items (some with long uppercase
 * labels like "Social Responsibility"), so it can no longer be forced onto
 * one line without overflowing — `min-width: 0` lets this flex item actually
 * shrink instead of refusing to and blowing out the row, and `flex-wrap: wrap`
 * lets the links drop to a second line instead of being clipped/hidden when
 * they still don't fit. */
#header .navbar { gap: 2.25rem; }
.desktop-menu {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 0.25rem;
}
.dropmenu > ul.navigation {
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dropmenu > ul.navigation > li > a {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* A vertical rule separates "navigate" from "act", the way a well-spaced
 * professional header groups its controls instead of leaving the CTA to
 * float. */
.navbar-section.actions {
  gap: 1.1rem;
  padding-left: 1.5rem;
  position: relative;
}
.navbar-section.actions::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--q2-divider);
}

/* "Order Now" — a dedicated CTA in the header actions, not a page inside
 * the dropdown menu, so it never competes with the nav for line space. */
.order-now-btn {
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* A permanent, subtle separation from whatever sits below — not just the
 * theme's scroll-triggered shadow — so the header reads as its own
 * deliberate layer even before the visitor scrolls. */
#header { border-bottom: 1px solid var(--q2-nav-border, var(--q2-divider)); }

/* A header this spacious (big logo + generously spaced nav + a real CTA,
 * separated by a divider) needs real width — below ~1500px hand off to
 * the theme's hamburger menu instead of cramming everything down or
 * letting it wrap. */
@media (max-width: 1500px) {
  .desktop-menu { display: none !important; }
  .mobile-menu { display: block !important; }
  .mobile-container { display: block; }
}
@media (min-width: 861px) and (max-width: 1500px) {
  #header .navbar { min-height: 128px; }
}

/* ---------- Scroll-reveal system ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="pop"] { transform: translateY(16px) scale(0.94); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 3D tilt cards ---------- */

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
[data-tilt] .tilt-pop {
  transform: translateZ(28px);
}

/* ---------- Section divider (organic wave) ---------- */

.divider {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
}
.divider path { fill: currentColor; }
.divider.flip { transform: scaleY(-1); }

/* ---------- Floating decorative shapes ---------- */

.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  animation: float-drift 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(14px, -22px) rotate(8deg); }
}

/* ---------- Button shine sweep ---------- */

.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 120%; }

/* ---------- Crest / logo badge feature ---------- */

.crest-badge {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--rca-cream);
  box-shadow: 0 20px 45px -12px rgba(0,0,0,0.5), 0 0 0 6px rgba(184,134,11,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.crest-badge img { width: 100%; height: 100%; object-fit: contain; }
.crest-badge:hover {
  transform: rotateY(360deg);
}

/* ---------- Hero 3D Slider ---------- */

.slider3d-section {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(184,134,11,0.12), transparent 55%),
    linear-gradient(165deg, var(--rca-cream), var(--rca-green-light) 60%, var(--q2-bg-muted) 100%);
  padding: 3rem 0 4.5rem;
  overflow: hidden;
}

.slider3d {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 420px;
  perspective: 1400px;
}
@media (max-width: 900px) { .slider3d { height: 320px; } }
@media (max-width: 560px) { .slider3d { height: 230px; } }

.slider3d-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.slider3d .slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 72%;
  height: 100%;
  margin-left: -36%;
  border-radius: var(--q2-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity;
}

.slider3d .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider3d .slide .slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.slider3d .slide.is-active .slide-caption { opacity: 1; }

.slider3d-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  color: var(--rca-green-dark);
  border: 1px solid rgba(40,56,24,0.15);
  box-shadow: 0 6px 16px -6px rgba(40,56,24,0.3);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.slider3d-nav:hover { background: #fff; }
.slider3d-nav.prev { left: 0.5rem; }
.slider3d-nav.next { right: 0.5rem; }
@media (max-width: 560px) {
  .slider3d-nav { width: 2.1rem; height: 2.1rem; }
}

.slider3d-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.slider3d-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: rgba(40,56,24,0.25);
  cursor: pointer;
  padding: 0;
}
.slider3d-dots button.is-active {
  background: var(--rca-gold);
  width: 1.5rem;
  border-radius: var(--q2-radius-pill);
  transition: width 0.25s ease;
}

.hero-tagline {
  text-align: center;
  color: var(--rca-ink);
  margin-bottom: 1.75rem;
}
.hero-tagline .eyebrow { color: var(--rca-green); }
.hero-tagline h1 { color: var(--rca-green-dark); margin: 0; }
.hero-tagline p { color: var(--q2-text-muted); margin-top: 0.5rem; }

/* ---------- Hero: full-bleed photo slider ---------- */

.hero-fullbleed {
  padding: 0;
  background: var(--rca-ink);
}

.hero-fullbleed .slider3d.mode-fade {
  max-width: none;
  width: 100%;
  height: 78vh;
  min-height: 460px;
  max-height: 800px;
  perspective: none;
}
@media (max-width: 900px) { .hero-fullbleed .slider3d.mode-fade { height: 62vh; min-height: 380px; } }
@media (max-width: 560px) { .hero-fullbleed .slider3d.mode-fade { height: 52vh; min-height: 300px; } }

.hero-fullbleed .slider3d.mode-fade .slider3d-track {
  transform-style: flat;
}

.hero-fullbleed .slider3d.mode-fade .slide {
  position: absolute;
  inset: 0;
  top: 0; left: 0;
  width: 100%; height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.6s cubic-bezier(.25,.46,.45,.94);
}
.hero-fullbleed .slider3d.mode-fade .slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-fullbleed .slider3d.mode-fade .slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  animation: hero-kenburns 16s ease-in-out infinite;
}
.hero-fullbleed .slider3d.mode-fade .slide:nth-child(2n) img { animation-duration: 19s; animation-direction: alternate-reverse; }
.hero-fullbleed .slider3d.mode-fade .slide:nth-child(3n) img { animation-duration: 22s; animation-delay: -5s; }
.hero-fullbleed .slider3d.mode-fade .slide:nth-child(5n) img { animation-duration: 17s; animation-delay: -9s; }

@keyframes hero-kenburns {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10,14,6,0.82) 0%, rgba(10,14,6,0.4) 36%, rgba(10,14,6,0.05) 62%, transparent 100%),
    linear-gradient(90deg, rgba(10,14,6,0.35) 0%, transparent 45%);
}

.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 3rem clamp(1.25rem, 6vw, 4.5rem) 3.75rem;
  max-width: 44rem;
  color: #fff;
}
.hero-caption .eyebrow {
  color: var(--rca-gold-light);
  letter-spacing: 0.12em;
}
.hero-caption h1 {
  font-family: 'Fraunces', 'Cal Sans', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 0.85rem;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-caption p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 32rem;
  margin: 0;
}
.hero-caption-static {
  position: relative;
  padding: 5rem clamp(1.25rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(184,134,11,0.16), transparent 55%),
    linear-gradient(165deg, var(--rca-cream), var(--rca-green-light) 70%);
  color: var(--rca-ink);
}
.hero-caption-static .eyebrow { color: var(--rca-green); }
.hero-caption-static h1 { color: var(--rca-green-dark); text-shadow: none; }
.hero-caption-static p { color: var(--q2-text-muted); }

.hero-icons {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-icon {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.45);
  color: #fff;
  perspective: 600px;
  pointer-events: none;
  animation-name: hero-icon-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.hero-icon.is-lg { width: 60px; height: 60px; font-size: 1.3rem; }
.hero-icon.is-sm { width: 44px; height: 44px; font-size: 1rem; }

.hero-icon i {
  display: inline-block;
  animation-name: hero-icon-spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes hero-icon-float {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-20px) translateX(-6px) rotate(6deg); }
}
@keyframes hero-icon-spin {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  50% { transform: rotateY(180deg) rotateX(12deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}

@media (max-width: 900px) {
  .hero-icon:nth-child(n+5) { display: none; }
}
@media (max-width: 640px) {
  .hero-icon.is-lg { width: 42px; height: 42px; font-size: 0.95rem; }
  .hero-icon.is-sm { width: 34px; height: 34px; font-size: 0.8rem; }
  .hero-icon:nth-child(n+4) { display: none; }
}

.hero-fullbleed .slider3d-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
}
.hero-fullbleed .slider3d-nav { z-index: 6; }

/* ---------- Inner-page banner (e.g. Products) ---------- */

.products-banner-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  text-align: center;
}
/* #body-wrapper's own top padding (theme.css) otherwise leaves a plain
   cream gap between the nav and a full-bleed banner that opens the page. */
#body-wrapper:has(.products-banner-section) {
  padding-block-start: 0;
}
.products-banner-section .content-item { max-width: 60ch; margin-inline: auto; }
.products-banner-section.no-banner {
  background: var(--q2-bg-muted);
  padding-block: 3rem;
}
.products-banner-section.no-banner h1,
.products-banner-section.no-banner .eyebrow,
.products-banner-section.no-banner p { color: inherit; }

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .card-grid.cols-3 { grid-template-columns: 1fr; } }

.item-card {
  background: var(--q2-bg-elev);
  border-radius: var(--q2-radius-md);
  box-shadow: var(--q2-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---------- Organic motif: product section blobs + leaves ---------- */

.products-organic-section {
  position: relative;
  overflow: hidden;
  /* Slightly darker than the standard .bg-muted tint, still built from the
     admin-editable brand green (Admin > Appearance > Accent Color), so this
     section keeps following that setting rather than a hardcoded color. */
  background: color-mix(in oklab, var(--rca-green) 32%, var(--rca-cream) 68%);
}
.products-organic-section .section-head,
.products-organic-section .card-grid { position: relative; z-index: 1; }

.organic-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.organic-blob.blob-1 {
  width: 320px; height: 320px;
  top: -90px; left: -110px;
  background: color-mix(in oklab, var(--rca-green) 26%, transparent);
}
.organic-blob.blob-2 {
  width: 260px; height: 260px;
  bottom: -70px; right: -90px;
  background: color-mix(in oklab, var(--rca-gold) 22%, transparent);
}

.leaf-accent {
  position: absolute;
  width: 56px; height: 56px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: float-drift 13s ease-in-out infinite;
}
.leaf-accent.leaf-1 { top: 8%; left: 4%; }
.leaf-accent.leaf-2 { bottom: 10%; right: 5%; animation-delay: -6s; transform: scaleX(-1); }
@media (max-width: 760px) { .leaf-accent { display: none; } }

.item-card.seed-packet { position: relative; }
.item-card.seed-packet::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--rca-green), var(--rca-gold));
  z-index: 1;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--q2-shadow-raised);
}
.item-card .item-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--q2-bg-muted);
}
.product-grid .item-card .item-card-media {
  aspect-ratio: 1 / 1;
}
.product-grid .item-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/* 10 products, 5 per row on desktop, stepping down for smaller screens. */
.product-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }
.item-card .item-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.item-card:hover .item-card-media img { transform: scale(1.05); }
.item-card .item-card-body {
  padding: 1.1rem 1.25rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.item-card .item-card-body h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.item-card .item-card-body p {
  color: var(--q2-text-muted);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}
.item-card .item-card-cta {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rca-green);
}

/* ---------- Product detail page ---------- */

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}
@media (max-width: 860px) {
  .product-hero { grid-template-columns: 1fr; }
}
.product-hero .product-photo {
  border-radius: var(--q2-radius-lg);
  overflow: hidden;
  box-shadow: var(--q2-shadow-raised);
  aspect-ratio: 1 / 1;
}
.product-hero .product-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-hero .product-category {
  display: inline-block;
  background: var(--rca-green-light);
  color: var(--rca-green-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--q2-radius-pill);
  margin-bottom: 0.85rem;
}
.product-hero h1 { margin-bottom: 0.75rem; }
.product-hero .product-desc { color: var(--q2-text-muted); margin-bottom: 1.75rem; }

.related-products { padding: 1rem 0 3.5rem; }

/* ---------- Enquiry modal ---------- */

.enquiry-modal {
  padding: 0;
  border: none;
  border-radius: var(--q2-radius-lg);
  box-shadow: var(--q2-shadow-dropdown);
  max-width: 480px;
  width: calc(100% - 2rem);
  background: var(--q2-bg-elev);
}
.enquiry-modal::backdrop {
  background: rgba(10, 15, 10, 0.6);
  backdrop-filter: blur(2px);
}
.enquiry-modal .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--q2-divider);
}
.enquiry-modal .modal-head h3 { margin: 0; font-size: 1.1rem; }
.enquiry-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--q2-text-muted);
}
.enquiry-modal .modal-body { padding: 1.3rem 1.4rem 1.5rem; }
.enquiry-modal form .form-group { margin-bottom: 0.9rem; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }
.team-card { text-align: center; }
.team-card .team-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  box-shadow: var(--q2-shadow-raised);
}
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0 0 0.2rem; }
.team-card .team-title { color: var(--rca-green); font-weight: 600; font-size: 0.9rem; }

/* ---------- Offices / contact cards ---------- */

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
@media (max-width: 760px) { .office-grid { grid-template-columns: 1fr; } }
.office-card {
  background: var(--q2-bg-elev);
  border-radius: var(--q2-radius-md);
  box-shadow: var(--q2-shadow-card);
  overflow: hidden;
}
.office-card .office-photo { aspect-ratio: 16/10; overflow: hidden; }
.office-card .office-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.office-card .office-body { padding: 1.4rem 1.5rem; }
.office-card h3 { margin: 0 0 0.6rem; }
.office-card p { margin: 0.2rem 0; color: var(--q2-text-muted); }
.office-card a { color: var(--rca-green); }

/* ---------- Gallery grid (generic default.html.twig) ---------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .photo-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); } }
.photo-gallery a {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--q2-radius);
  overflow: hidden;
  box-shadow: var(--q2-shadow-card);
}
.photo-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.photo-gallery a:hover img { transform: scale(1.06); }

/* ---------- Intro + Stats (3D) section ---------- */

.intro-stats-section {
  position: relative;
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* intro text panel: glass card with 3D pointer-tilt */
.intro-panel {
  position: relative;
  padding: 2.5rem 2.25rem;
  border-radius: var(--q2-radius-lg);
  background: linear-gradient(165deg, var(--q2-bg-elev), var(--rca-green-light) 160%);
  box-shadow: var(--q2-shadow-raised);
  border: 1px solid rgba(33, 51, 22, 0.08);
  perspective: 1200px;
  overflow: hidden;
}
.intro-panel .tilt-pop { transform: translateZ(36px); }
.intro-panel .eyebrow { display: block; }
.intro-panel h2 { margin: 0 0 1rem; color: var(--rca-green-dark); }
.intro-panel .content-item { color: var(--q2-text-muted); }
.intro-panel .content-item p:last-child { margin-bottom: 0; }

.intro-panel-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.22), transparent 70%);
  pointer-events: none;
}

/* stat cards: 3D tilt + animated counters */
.stats-grid-3d {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 480px) {
  .stats-grid-3d { grid-template-columns: 1fr; }
}

.stat-card {
  position: relative;
  border-radius: var(--q2-radius-lg);
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  border: 1px solid rgba(33, 51, 22, 0.08);
  padding: 1.75rem 1.25rem;
  text-align: center;
  perspective: 900px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(184, 134, 11, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.stat-card:hover {
  box-shadow: var(--q2-shadow-dropdown);
  border-color: rgba(184, 134, 11, 0.35);
}
.stat-card:hover::before { opacity: 1; }

.stat-card-inner.tilt-pop { transform: translateZ(28px); }

.stat-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--rca-green), var(--rca-green-2));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 22px -8px rgba(33, 51, 22, 0.55);
}

.stat-card .stat-num {
  font-family: var(--pico-font-family-display);
  font-size: 2.1rem;
  color: var(--rca-green);
  line-height: 1;
}
.stat-card .stat-label {
  color: var(--q2-text-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* ---------- Timeline (About Us) ---------- */

.timeline { position: relative; margin: 0 auto; max-width: 760px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--q2-divider);
}
.timeline-item { position: relative; padding-left: 3rem; margin-bottom: 1.75rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.55rem; top: 0.25rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--rca-green);
  border: 3px solid var(--q2-bg);
  box-shadow: 0 0 0 2px var(--rca-green);
}
.timeline-item .timeline-year {
  font-family: var(--pico-font-family-display);
  color: var(--rca-green);
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}
.timeline-item p { margin: 0; color: var(--q2-text-muted); }

/* ---------- Founder spotlight ---------- */

.founder-spotlight-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 8%, color-mix(in oklab, var(--rca-gold) 14%, transparent), transparent 55%),
    linear-gradient(170deg, var(--q2-bg), var(--rca-green-light) 140%);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.75rem;
  align-items: center;
}
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; }
}

.founder-photo-frame {
  perspective: 1200px;
  max-width: 320px;
  margin: 0 auto;
}
@media (max-width: 400px) {
  .founder-photo-frame { max-width: 240px; }
}
.founder-photo-ring {
  position: relative;
  padding: 0.6rem;
  border-radius: var(--q2-radius-lg);
  background: linear-gradient(145deg, var(--rca-green), var(--rca-green-2));
  box-shadow: var(--q2-shadow-raised);
}
.founder-photo-ring.tilt-pop { transform: translateZ(30px); }
.founder-photo-ring img {
  display: block;
  width: 100%;
  aspect-ratio: 420 / 480;
  object-fit: cover;
  border-radius: calc(var(--q2-radius-lg) - 0.35rem);
  filter: grayscale(0.15);
}

.founder-text-panel {
  position: relative;
  padding: 1rem 0;
}
.founder-quote-icon {
  display: block;
  font-size: 2.25rem;
  color: var(--rca-gold);
  opacity: 0.35;
  margin-bottom: 0.75rem;
}
.founder-text-panel h3 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.founder-years {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--q2-radius-pill);
  background: var(--rca-green-light);
  color: var(--rca-green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.founder-text-panel p {
  color: var(--q2-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Why Choose Us ---------- */

.why-choose-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 10%, color-mix(in oklab, var(--rca-gold) 12%, transparent), transparent 55%),
    linear-gradient(170deg, color-mix(in oklab, var(--rca-green) 10%, var(--q2-bg) 90%), color-mix(in oklab, var(--rca-green) 30%, var(--rca-cream) 70%) 130%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  border-radius: var(--q2-radius-lg);
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  border: 1px solid rgba(33, 51, 22, 0.08);
  padding: 2rem 1.6rem;
  perspective: 900px;
  display: block;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.why-card:hover { box-shadow: var(--q2-shadow-dropdown); }
.why-card-inner.tilt-pop { transform: translateZ(26px); }

.why-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.1rem;
  border-radius: var(--q2-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--rca-green), var(--rca-green-2));
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px -10px rgba(184, 134, 11, 0.6);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.why-card:hover .why-icon { transform: rotateY(180deg); }
.why-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.why-card p { margin: 0; color: var(--q2-text-muted); font-size: 0.92rem; }
.why-card .item-card-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rca-green);
}
.why-card-link { cursor: pointer; }
.why-card-link:hover { border-color: rgba(184, 134, 11, 0.4); }
.why-card-link:hover .item-card-cta i { transform: translateX(3px); }
.why-card .item-card-cta i { display: inline-block; transition: transform 0.2s ease; }

/* category cards: same visual language as why-card, laid out 4-across */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .category-grid { grid-template-columns: 1fr; } }

.why-card.is-active {
  border-color: var(--rca-gold);
  box-shadow: 0 0 0 2px var(--rca-gold), var(--q2-shadow-dropdown);
}

.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  border-radius: var(--q2-radius-md);
  background: var(--rca-green-light);
  color: var(--rca-green-dark);
  font-size: 0.95rem;
}
.product-filter-bar i { margin-right: 0.3rem; }

/* ---------- Order Now steps ---------- */

.order-cta-section { position: relative; overflow: hidden; }

.order-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-step {
  flex: 1 1 240px;
  max-width: 280px;
  border-radius: var(--q2-radius-lg);
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  border: 1px solid rgba(33, 51, 22, 0.08);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  position: relative;
  perspective: 900px;
  transition: box-shadow 0.35s ease;
}
.order-step:hover { box-shadow: var(--q2-shadow-dropdown); }
.order-step-inner.tilt-pop { transform: translateZ(26px); }

.order-step-num {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--rca-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px -4px rgba(33, 51, 22, 0.5);
}
.order-step-icon {
  width: 3rem;
  height: 3rem;
  margin: 0.75rem auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rca-green-light);
  color: var(--rca-green-dark);
  font-size: 1.2rem;
}
.order-step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.order-step p { margin: 0; color: var(--q2-text-muted); font-size: 0.88rem; }

.order-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rca-gold);
  font-size: 1.3rem;
  flex: 0 0 auto;
}
@media (max-width: 760px) { .order-step-arrow { transform: rotate(90deg); } }

/* ---------- Testimonials ---------- */

.testimonials-section {
  position: relative;
  background:
    radial-gradient(ellipse at 10% 90%, color-mix(in oklab, var(--rca-green) 12%, transparent), transparent 55%),
    var(--q2-bg);
}

.infra-tint-section {
  position: relative;
  background:
    radial-gradient(ellipse at 90% 85%, color-mix(in oklab, var(--rca-green) 14%, transparent), transparent 55%),
    var(--q2-bg);
}

.history-tint-section {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 15%, color-mix(in oklab, var(--rca-gold) 10%, transparent), transparent 50%),
    linear-gradient(175deg, var(--q2-bg), var(--rca-green-light) 150%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  border-radius: var(--q2-radius-lg);
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
  border: 1px solid rgba(33, 51, 22, 0.08);
  padding: 2rem 1.75rem;
  perspective: 900px;
  transition: box-shadow 0.35s ease;
}
.testimonial-card:hover { box-shadow: var(--q2-shadow-dropdown); }
.testimonial-card-inner.tilt-pop { transform: translateZ(24px); }

.testimonial-quote-icon {
  color: var(--rca-gold);
  opacity: 0.4;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.testimonial-rating { color: var(--rca-gold); font-size: 0.8rem; margin-bottom: 0.75rem; }
.testimonial-rating .is-dim { color: var(--q2-divider); }
.testimonial-text {
  color: var(--q2-text);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0 0 1.4rem;
}
.testimonial-person { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--rca-green), var(--rca-green-2));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-role { color: var(--q2-text-muted); font-size: 0.8rem; }

/* ---------- Scholar table ---------- */

.content-item table { width: 100%; }
.content-item table th { background: var(--q2-bg-muted); }
.content-item table td, .content-item table th { font-size: 0.9rem; }

/* ---------- Form submit button ---------- */

.form-wrapper .buttons {
  margin-top: 1.75rem;
}
.form-wrapper .btn-submit-order {
  min-width: 220px;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  box-shadow: var(--q2-shadow-raised);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-wrapper .btn-submit-order:hover {
  transform: translateY(-2px);
  box-shadow: var(--q2-shadow-dropdown);
}
@media (max-width: 560px) {
  .form-wrapper .buttons { width: 100%; }
  .form-wrapper .btn-submit-order { width: 100%; }
}

/* ---------- Footer contact block ---------- */

@media (max-width: 760px) {
  .dealer-grower-layout { grid-template-columns: 1fr !important; }
}

.footer-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(184, 134, 11, 0.16), transparent 55%),
    radial-gradient(ellipse at 12% 85%, rgba(33, 51, 22, 0.14), transparent 55%),
    linear-gradient(165deg, var(--rca-cream), var(--rca-green-light) 75%);
}
:root[data-theme="dark"] .footer-cta {
  background:
    radial-gradient(ellipse at 82% 18%, rgba(224, 173, 70, 0.1), transparent 55%),
    linear-gradient(165deg, var(--q2-bg-muted), var(--rca-green-light) 170%);
}

.contact-cta-panel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3.25rem 2.5rem;
  border-radius: var(--q2-radius-lg);
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-raised);
  border: 1px solid rgba(33, 51, 22, 0.08);
  perspective: 1200px;
  overflow: hidden;
}
.contact-cta-panel .tilt-pop { transform: translateZ(34px); }
.contact-cta-panel .btn-row { margin-top: 1.75rem; }
@media (max-width: 480px) {
  .contact-cta-panel { padding: 2.25rem 1.5rem; }
}

.contact-cta-glow {
  position: absolute;
  inset: -35% -15% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.2), transparent 70%);
  pointer-events: none;
}

.crest-badge-pulse { position: relative; }
.crest-badge-pulse::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--rca-gold);
  opacity: 0.5;
  animation: pulse-ring 2.6s cubic-bezier(.4, 0, .6, 1) infinite;
}
.crest-badge-pulse::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--rca-gold);
  opacity: 0.5;
  animation: pulse-ring 2.6s cubic-bezier(.4, 0, .6, 1) infinite;
  animation-delay: 1.3s;
}
@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Site footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--q2-bg-muted);
}

.site-footer-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(175deg, rgba(248, 246, 239, 0.96) 0%, rgba(248, 246, 239, 0.93) 45%, rgba(239, 236, 224, 0.96) 100%),
    url('../images/footer-bg-wheat.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
:root[data-theme="dark"] .site-footer-bg {
  background-image:
    linear-gradient(175deg, rgba(28, 31, 22, 0.94) 0%, rgba(28, 31, 22, 0.9) 45%, rgba(38, 42, 28, 0.95) 100%),
    url('../images/footer-bg-wheat.jpg');
}

.site-footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.75rem;
  padding: 4rem 0 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

.footer-col-brand .navbar-brand img { height: 96px; width: 96px; }
.footer-col-brand .brand-wordmark { font-size: 1.4rem; }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rca-gold);
  color: var(--rca-ink);
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: var(--rca-green-dark);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  position: relative;
  color: var(--rca-green-dark);
  font-size: 1.02rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: var(--q2-radius-pill);
  background: var(--rca-gold);
}

.footer-contact-list,
.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: var(--q2-text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}
.footer-contact-list li i {
  flex: none;
  margin-top: 0.2rem;
  width: 1.1rem;
  color: var(--rca-gold);
  text-align: center;
}
.footer-contact-list li a,
.footer-contact-list li strong {
  color: var(--q2-text);
}
.footer-contact-list li a {
  text-decoration: none;
}
.footer-contact-list li a:hover {
  color: var(--rca-green);
  text-decoration: underline;
}

.footer-link-list li { margin-bottom: 0.75rem; }
.footer-link-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--q2-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
.footer-link-list li a i {
  font-size: 0.7rem;
  color: var(--rca-gold);
  transition: transform 0.2s ease;
}
.footer-link-list li a:hover {
  color: var(--rca-green);
  gap: 0.8rem;
}
.footer-link-list li a:hover i { transform: translateX(2px); }

.footer-bottom {
  border-top: 1px solid var(--q2-divider);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--q2-text-muted);
}
.footer-bottom-inner p { margin: 0; }
.footer-credit { font-weight: 500; }
@media (max-width: 560px) {
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- Generic page sub-header (partials/page-banner.html.twig) ---------- */
/* Placed in the `hero` block, outside #body-wrapper, so it is full-bleed
   with no extra width hacks needed. */

.page-subheader .page-subheader-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.page-subheader-subtitle {
  margin-top: 0.5rem;
}
.page-subheader.no-banner {
  background: var(--q2-bg-muted);
  padding-block: 3rem;
  min-height: auto;
}
.page-subheader.no-banner h1,
.page-subheader.no-banner .eyebrow,
.page-subheader.no-banner p {
  color: inherit;
}
/* `.eyebrow` isn't part of Quark2's text-light/text-dark hero presets, so
   give it a readable tone against a dark photo overlay (also benefits the
   Products page banner, which uses the same .hero.text-light combination). */
.hero.text-light .eyebrow {
  color: var(--rca-gold-light, #f1e2b8);
}

/* Home page hero title style - chosen in Admin: Home > Hero / Slider > Hero Title Style.
   'italic-serif' keeps the original look from the .hero-caption h1 rule above. */
.hero-caption h1.hero-title-bold-sans {
  font-family: 'Inter', 'Cal Sans', sans-serif;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

/* Banner shown as a whole image (no crop) - only for pages that have banner_fit: full in their frontmatter.
   Used on: Social Responsibility > Scholarship Program & Awards. The image already carries its own heading,
   so the overlay is hidden and the h1 stays in the page only for screen readers / SEO. */
.hero.hero-medium.page-subheader.banner-fit-full {
  min-height: 0;
  height: min(46.4vw, 75vh);
  padding: 0;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.hero.page-subheader.banner-fit-full .image-overlay { display: none; }
.hero.page-subheader.banner-fit-full .container {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
