/* ==========================================================================
   GRUPO MAYORGA — DESIGN SYSTEM
   Corporate agroindustrial. Green + gold identity, refined.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color — Brand */
  --primary: #0F172A;
  --primary-soft: #1F2937;
  --secondary: #C9A961;          /* Refined gold (less saturated) */
  --secondary-soft: #E6D9B4;
  --tertiary: #1B4D3E;            /* Corporate green */
  --tertiary-light: #2E8B57;
  --tertiary-deep: #0F3D31;       /* Premium dark green */
  --tertiary-glow: rgba(46, 139, 87, 0.18);
  --accent: #C1D0B5;
  --accent-light: #F3F4F6;
  --cream: #FAF7F0;
  --cream-deep: #F5EFE3;

  /* Color — Surface */
  --white: #FFFFFF;
  --bg-soft: #F9FAFB;
  --border-soft: #E5E7EB;
  --border-strong: #D1D5DB;

  /* Color — Text */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --text-light: #F9FAFB;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 2.5rem;    /* 40 */
  --space-8: 3rem;      /* 48 */
  --space-9: 4rem;      /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-11: 6rem;     /* 96 */
  --space-12: 8rem;     /* 128 */

  /* Typography */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 30px 70px rgba(15, 23, 42, 0.14);
  --shadow-glow-green: 0 12px 32px rgba(46, 139, 87, 0.28);
  --shadow-glow-gold: 0 12px 32px rgba(201, 169, 97, 0.28);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Easings */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: all 0.4s var(--ease-out-quart);

  /* Layout */
  --container-max: 1240px;
  --nav-h: 80px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: bodyFadeIn 0.6s var(--ease-out-quart) forwards;
}

@keyframes bodyFadeIn {
  to { opacity: 1; }
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

::selection {
  background: var(--tertiary-light);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--primary);
}

p {
  line-height: 1.75;
}

.text-gradient {
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--tertiary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: var(--space-5);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--secondary);
  display: inline-block;
}

.eyebrow.eyebrow-light {
  color: var(--secondary-soft);
}

.eyebrow.eyebrow-light::before {
  background: var(--secondary);
}

.eyebrow.eyebrow-center {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   4. UTILITIES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 10;
}

.container-narrow {
  max-width: 880px;
}

.bg-light { background-color: var(--accent-light); }
.bg-cream { background-color: var(--cream); }
.bg-soft { background-color: var(--bg-soft); }
.bg-dark { background-color: var(--primary); color: var(--text-light); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.relative { position: relative; }
.z-10 { z-index: 10; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Decorative section divider (curve SVG) */
.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 5;
}

.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-divider.divider-top { top: 0; }
.section-divider.divider-bottom { bottom: 0; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out-quart),
              background-color 0.3s,
              color 0.3s,
              box-shadow 0.4s,
              border-color 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.7s var(--ease-out-quart);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

.btn-primary {
  background-color: var(--tertiary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(27, 77, 62, 0.28);
}

.btn-primary:hover {
  background-color: var(--tertiary-deep);
  box-shadow: 0 16px 38px rgba(27, 77, 62, 0.36);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--tertiary);
  padding: 0.6rem 1rem;
}

.btn-ghost:hover {
  color: var(--tertiary-deep);
  background: var(--tertiary-glow);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.2rem 2.8rem;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   6. SCROLL PROGRESS BAR (top)
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--tertiary-light), var(--secondary));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.4rem 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.06);
  padding: 0.7rem 0;
}

.navbar.scrolled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tertiary-light), var(--secondary));
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.navbar.scrolled .logo-img,
.navbar.solid .logo-img {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  height: 52px;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: var(--tertiary-light);
  transition: width 0.4s var(--ease-out-quart);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a,
.navbar.solid .nav-links a {
  color: var(--text-dark);
}

.navbar.scrolled .nav-links a:hover,
.navbar.solid .nav-links a:hover,
.navbar.scrolled .nav-links a.active,
.navbar.solid .nav-links a.active {
  color: var(--tertiary);
}

/* CTA in nav (desktop only) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tertiary);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius-pill);
  font-size: 0.88rem !important;
  transition: background 0.3s, transform 0.3s;
}

.nav-cta:hover {
  background: var(--tertiary-deep);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.navbar.scrolled .nav-cta,
.navbar.solid .nav-cta {
  color: var(--white) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-quart), opacity 0.3s;
}

.navbar.scrolled .nav-toggle,
.navbar.solid .nav-toggle {
  background: var(--accent-light);
  border-color: var(--border-soft);
}

.navbar.scrolled .nav-toggle span,
.navbar.solid .nav-toggle span {
  background: var(--text-dark);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: calc(var(--nav-h) + 2rem) var(--space-6) var(--space-6);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-quart);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-quart);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.drawer-links li {
  border-bottom: 1px solid var(--border-soft);
}

.drawer-links a {
  display: block;
  padding: 1.1rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}

.drawer-links a:hover,
.drawer-links a.active {
  color: var(--tertiary);
  padding-left: 8px;
}

.drawer-cta {
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   TOPBAR — bloque verde con curva en la parte inferior (estilo Asgardia)
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 112px;            /* alto para contener topbar info + pill */
  border-radius: 0 0 56px 56px;  /* curva pronunciada abajo = efecto Asgardia */
  background: var(--tertiary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1000;            /* debajo del pill */
  display: flex;
  align-items: flex-start;  /* info de contacto arriba */
  padding-top: 10px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.topbar-item:hover { color: #fff; }
.topbar-item svg { flex-shrink: 0; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.topbar-right a {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.topbar-right a:hover { color: #fff; }

/* TOPBAR scroll-hide */
.topbar {
  transition: top 0.4s var(--ease-out-quart), opacity 0.3s;
}
.topbar.hidden {
  top: -130px;
  opacity: 0;
  pointer-events: none;
}

/* HOME NAV — pill adentro del bloque verde, sobre el fondo (efecto Asgardia) */
.home-nav {
  top: 48px;           /* dentro del bloque verde, debajo del texto del topbar */
  left: 40px;
  right: 40px;
  width: auto;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--tertiary-light);  /* borde verde = Asgardia */
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 1050;       /* encima del topbar para verse sobre el verde */
  transition: top 0.4s var(--ease-out-quart),
              left 0.4s var(--ease-out-quart),
              right 0.4s var(--ease-out-quart),
              border-radius 0.4s var(--ease-out-quart),
              background 0.4s,
              box-shadow 0.4s,
              border 0.4s;
}

.home-nav .nav-container {
  padding: 0 var(--space-5);
}

.home-nav:not(.scrolled) .nav-links a {
  color: var(--primary);
}
.home-nav:not(.scrolled) .nav-links a.active,
.home-nav:not(.scrolled) .nav-links a:hover {
  color: var(--tertiary);
}
.home-nav:not(.scrolled) .nav-links a::after {
  background: var(--tertiary);
}
.home-nav:not(.scrolled) .nav-cta {
  background: var(--tertiary);
  color: #fff;
}
.home-nav:not(.scrolled) .nav-cta:hover {
  background: var(--tertiary-deep);
}

/* Al hacer scroll: se expande a barra completa oscura */
.home-nav.scrolled {
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  border: none;
  background: rgba(10,18,35,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  padding: 0;
}

.home-nav.scrolled .nav-container {
  padding: 0 var(--space-7);
}

/* scrolled — links become white */
.home-nav.scrolled .nav-links a { color: rgba(255,255,255,0.85); }
.home-nav.scrolled .nav-links a:hover,
.home-nav.scrolled .nav-links a.active { color: #fff; }

/* HOME HERO — topbar(112px) + breathing room */
.hero-home .hero-container {
  padding-top: 175px;
}

/* HERO SERVICES STRIP */
.hero-services-strip {
  position: relative;
  z-index: 10;
  margin-top: -72px;
  margin-bottom: var(--space-12);
}

.hero-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.hero-service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  border-top: 4px solid var(--tertiary);
  position: relative;
  overflow: hidden;
}

.hero-service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(27,77,62,0.04), transparent);
  transition: height 0.4s var(--ease-out-quart);
}

.hero-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.18);
}

.hero-service-card:hover::after { height: 100%; }

.hero-service-card:nth-child(2) { border-top-color: #B45309; }
.hero-service-card:nth-child(2)::after { background: linear-gradient(to top, rgba(180,83,9,0.04), transparent); }
.hero-service-card:nth-child(3) { border-top-color: #DB2777; }
.hero-service-card:nth-child(3)::after { background: linear-gradient(to top, rgba(219,39,119,0.04), transparent); }

.hero-service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(27,77,62,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tertiary);
}
.hero-service-card:nth-child(2) .hero-service-icon {
  background: rgba(180,83,9,0.09);
  color: #B45309;
}
.hero-service-card:nth-child(3) .hero-service-icon {
  background: rgba(219,39,119,0.08);
  color: #DB2777;
}

.hero-service-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.hero-service-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .hero-services-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-services-strip { margin-top: var(--space-4); margin-bottom: var(--space-6); }
  .topbar-left { gap: var(--space-3); }
}

@media (max-width: 900px) {
  .home-nav { left: 16px; right: 16px; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .home-nav { top: 10px; left: 12px; right: 12px; }
}

/* --------------------------------------------------------------------------
   8. HERO (home)
   -------------------------------------------------------------------------- */
.hero {
  height: 100vh;
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background-color: var(--primary);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  animation: cinematicFade 24s infinite linear;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Capa vertical: transparente arriba (imagen visible alrededor del pill)
     y oscura en el área de texto */
  background:
    linear-gradient(to bottom,
      rgba(5, 12, 25, 0.08)  0%,
      rgba(5, 12, 25, 0.08) 16%,
      rgba(5, 12, 25, 0.68) 30%,
      rgba(5, 12, 25, 0.80) 62%,
      rgba(5, 12, 25, 0.55) 100%),
    linear-gradient(100deg,
      rgba(5, 12, 25, 0.70) 0%,
      rgba(5, 12, 25, 0.35) 55%,
      rgba(5, 12, 25, 0.05) 100%);
  z-index: -1;
}


@keyframes cinematicFade {
  0%   { opacity: 0; transform: scale(1.05); }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

.hero-content {
  max-width: 760px;
  z-index: 1;
  text-align: left;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-quart) forwards 0.1s;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tertiary-light);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(46, 139, 87, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out-quart) forwards 0.3s;
}

.hero p {
  font-size: 1.18rem;
  line-height: 1.75;
  margin-bottom: 2.4rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out-quart) forwards 0.5s;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out-quart) forwards 0.7s;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out-quart) forwards 0.9s;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--tertiary-light);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.22);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: bounceDown 2.5s ease-in-out infinite;
  z-index: 5;
  cursor: pointer;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   9. INTERNAL HERO (page headers)
   -------------------------------------------------------------------------- */
.internal-hero {
  position: relative;
  height: 50vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding-top: var(--nav-h);
}

.internal-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.55);
}

.internal-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-quart) forwards 0.3s;
}

.internal-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-quart) forwards 0.15s;
}

.internal-hero .breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.internal-hero .breadcrumb a:hover {
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   10. SECTION SHARED
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-12) 0;
  position: relative;
}

.section-sm { padding: var(--space-9) 0; }
.section-lg { padding: var(--space-12) 0 calc(var(--space-12) + var(--space-4)); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.13rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   11. REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out-quart);
}

.reveal-fade.active { opacity: 1; }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}

.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}

.reveal-right.active { opacity: 1; transform: translateX(0); }

/* --------------------------------------------------------------------------
   12. STATS BAR (counters)
   -------------------------------------------------------------------------- */
.stats-bar {
  background: var(--cream);
  padding: var(--space-9) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0% 50%, rgba(46, 139, 87, 0.05), transparent 30%),
    radial-gradient(circle at 100% 50%, rgba(201, 169, 97, 0.06), transparent 30%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border-strong);
  opacity: 0.6;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--tertiary-glow), rgba(201, 169, 97, 0.15));
  color: var(--tertiary);
}

.stat-counter {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--tertiary-deep);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.stat-counter .stat-suffix {
  font-size: 0.6em;
  color: var(--secondary);
  font-weight: 600;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   13. ICON TILES (features grid)
   -------------------------------------------------------------------------- */
.icon-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.icon-tile {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.icon-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--tertiary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-quart);
}

.icon-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--tertiary-light);
}

.icon-tile:hover::before {
  transform: scaleX(1);
}

.icon-tile-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--tertiary), var(--tertiary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-glow-green);
}

.icon-tile-icon.icon-gold {
  background: linear-gradient(135deg, var(--secondary), #B89548);
  box-shadow: var(--shadow-glow-gold);
}

.icon-tile h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  color: var(--primary);
}

.icon-tile p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. CHARTS (SVG)
   -------------------------------------------------------------------------- */
.charts-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.chart-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--tertiary-light);
}

.chart-card-header {
  margin-bottom: var(--space-6);
}

.chart-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.chart-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chart-svg-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
}

.chart-footnote {
  margin-top: var(--space-4);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Donut chart */
.chart-donut {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.chart-donut .donut-track {
  fill: none;
  stroke: var(--border-soft);
  stroke-width: 22;
}

.chart-donut .donut-segment {
  fill: none;
  stroke-width: 22;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.6s var(--ease-out-quart);
}

.chart-donut .donut-center-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  fill: var(--primary);
  text-anchor: middle;
}

.chart-donut .donut-center-sub {
  font-size: 9px;
  fill: var(--text-muted);
  text-anchor: middle;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-4);
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.legend-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-value {
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Bar chart horizontal */
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 500;
}

.bar-row-value {
  color: var(--tertiary-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  width: 100%;
  height: 10px;
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tertiary), var(--tertiary-light));
  border-radius: var(--radius-pill);
  width: 0;
  transition: width 1.6s var(--ease-out-quart);
}

.bar-row[data-color="gold"] .bar-fill {
  background: linear-gradient(90deg, var(--secondary), #B89548);
}

/* Sparkline */
.chart-spark {
  width: 100%;
  height: 100%;
}

.spark-line {
  fill: none;
  stroke: var(--tertiary-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s var(--ease-out-quart);
}

.spark-line.drawn { stroke-dashoffset: 0; }

.spark-fill {
  fill: url(#sparkGradient);
  opacity: 0;
  transition: opacity 1s ease 1.2s;
}

.spark-fill.drawn { opacity: 1; }

.spark-dot {
  fill: var(--tertiary-light);
  stroke: var(--white);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.5s ease 1.5s;
}

.spark-dot.drawn { opacity: 1; }

/* Mini sparkline (blog sidebar) */
.spark-mini {
  width: 60px;
  height: 22px;
  flex-shrink: 0;
}

.spark-mini polyline {
  fill: none;
  stroke: var(--tertiary-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Radar chart */
.chart-radar {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.radar-grid {
  fill: none;
  stroke: var(--border-soft);
  stroke-width: 1;
}

.radar-axis {
  stroke: var(--border-soft);
  stroke-width: 1;
}

.radar-shape {
  fill: rgba(46, 139, 87, 0.18);
  stroke: var(--tertiary);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: all 1.6s var(--ease-out-quart);
}

.radar-point {
  fill: var(--tertiary-deep);
  r: 4;
}

.radar-label {
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-body);
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   15. ABOUT
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: var(--space-5);
  color: var(--primary);
  line-height: 1.15;
  font-family: var(--font-display);
}

.about-text p {
  color: var(--text-body);
  margin-bottom: var(--space-4);
  font-size: 1.08rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-soft);
}

.stat-item-mini h4 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.stat-item-mini p {
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-4deg);
  transition: var(--transition);
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(46, 139, 87, 0.15));
  z-index: 2;
  pointer-events: none;
}

.img-frame:hover {
  transform: perspective(1000px) rotateY(0deg);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
}

.img-frame img,
.img-hover-effect {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-quart);
}

.img-frame:hover img {
  transform: scale(1.04);
}

.img-frame-tag {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* Legacy compatibility */
.img-hover-effect {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  transform: perspective(1000px) rotateY(-5deg);
}

.img-hover-effect:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   16. TIMELINE (nosotros)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding: var(--space-6) 0;
  max-width: 880px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--tertiary), var(--secondary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--space-8);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--tertiary);
  box-shadow: 0 0 0 6px rgba(46, 139, 87, 0.12);
  z-index: 2;
}

.timeline-item.major .timeline-dot {
  background: var(--secondary);
  border-color: var(--tertiary-deep);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.timeline-text {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   17. PRODUCTS (accordion + grid + comparison)
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-7);
  perspective: 1500px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--tertiary-light);
}

.product-img-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.25));
  z-index: 1;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-quart);
}

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

.product-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-info {
  padding: var(--space-6) var(--space-5);
  text-align: left;
}

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
  color: var(--primary);
  font-family: var(--font-display);
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Accordion */
.catalog-accordion {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.accordion-header {
  padding: var(--space-6) var(--space-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  gap: var(--space-4);
}

.accordion-header h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.accordion-header h3 .acc-num {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}

.accordion-header:hover h3 {
  color: var(--tertiary);
}

.accordion-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.4s var(--ease-out-quart), background 0.3s;
  color: var(--tertiary-light);
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 var(--space-7);
  transition: max-height 0.6s var(--ease-out-quart), opacity 0.4s ease, padding 0.4s ease;
}

.accordion-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--tertiary-light);
}

.accordion-item.active .accordion-header {
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg, var(--cream), var(--white));
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--tertiary);
  color: var(--white);
}

.accordion-item.active .accordion-content {
  max-height: 2500px;
  opacity: 1;
  padding: var(--space-7);
}

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  border-color: var(--tertiary-light);
  color: var(--tertiary);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--tertiary);
  color: var(--white);
  border-color: var(--tertiary);
  box-shadow: var(--shadow-glow-green);
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}

.compare-table th,
.compare-table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.compare-table th {
  background: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.compare-table th:first-child {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

.compare-check {
  color: var(--tertiary-light);
  display: inline-flex;
}

.compare-x {
  color: var(--text-faint);
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   18. BRANDS
   -------------------------------------------------------------------------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  align-items: stretch;
  justify-items: stretch;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-7) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.brand-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(46, 139, 87, 0.06));
  transition: height 0.5s var(--ease-out-quart);
  pointer-events: none;
}

.brand-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--tertiary-light);
}

.brand-item:hover::after { height: 100%; }

.brand-img {
  width: 100%;
  max-width: 200px;
  height: 130px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease-out-quart);
}

.brand-item:hover .brand-img {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
  margin-top: auto;
  text-align: center;
}

.brand-cta {
  font-size: 0.82rem;
  color: var(--tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s;
}

.brand-item:hover .brand-cta { gap: 10px; }

/* --------------------------------------------------------------------------
   19. CTA BLOCK
   -------------------------------------------------------------------------- */
.cta-block {
  background: linear-gradient(135deg, var(--tertiary-deep) 0%, var(--tertiary) 60%, var(--tertiary-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(201, 169, 97, 0.18), transparent 30%);
  pointer-events: none;
}

.cta-block h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: var(--space-4);
  position: relative;
  font-family: var(--font-display);
}

.cta-block p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto var(--space-6);
  position: relative;
}

.cta-block .btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  position: relative;
}

/* --------------------------------------------------------------------------
   20. BLOG — magazine layout
   -------------------------------------------------------------------------- */
.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-soft);
}

.blog-search {
  position: relative;
  flex: 0 0 320px;
  max-width: 100%;
}

.blog-search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.blog-search input:focus {
  border-color: var(--tertiary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--tertiary-glow);
}

.blog-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: var(--transition);
  white-space: nowrap;
}

.chip:hover {
  color: var(--tertiary);
  border-color: var(--tertiary-light);
}

.chip.active {
  background: var(--tertiary);
  color: var(--white);
  border-color: var(--tertiary);
}

.chip-count {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

.chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Featured post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-10);
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

.blog-featured-img {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-quart);
}

.blog-featured:hover .blog-featured-img img {
  transform: scale(1.05);
}

.blog-featured-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.35));
  z-index: 1;
}

.featured-badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  background: var(--secondary);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-featured-content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-content .post-meta { margin-bottom: var(--space-3); }

.blog-featured-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--space-4);
  line-height: 1.2;
  color: var(--primary);
  font-family: var(--font-display);
}

.blog-featured-content p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* Blog layout (grid + sidebar) */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-9);
  align-items: flex-start;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--tertiary-light);
}

.blog-card.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-quart);
}

.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.category-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--tertiary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.blog-card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.post-meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  font-family: var(--font-display);
}

.blog-excerpt {
  color: var(--text-body);
  margin-bottom: var(--space-5);
  flex-grow: 1;
  font-size: 0.97rem;
  line-height: 1.65;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
}

.blog-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.blog-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tertiary), var(--tertiary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.blog-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}

.blog-read-more {
  color: var(--tertiary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  transition: gap 0.3s, color 0.3s;
}

.blog-read-more:hover {
  color: var(--tertiary-deep);
  gap: 10px;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.sidebar-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  font-family: var(--font-body);
  font-weight: 700;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-soft);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-soft);
}

.trending-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.trending-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  min-width: 24px;
}

.trending-content {
  flex: 1;
  min-width: 0;
}

.trending-content a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.trending-content a:hover { color: var(--tertiary); }

.trending-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Newsletter */
.newsletter-card {
  background: linear-gradient(135deg, var(--tertiary-deep), var(--tertiary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.newsletter-card h4 {
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.newsletter-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  position: relative;
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  margin-bottom: var(--space-5);
  position: relative;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.newsletter-form button:hover {
  background: #B89548;
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-9);
}

.pagination button,
.pagination a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.pagination button:hover,
.pagination a:hover {
  border-color: var(--tertiary);
  color: var(--tertiary);
}

.pagination .active {
  background: var(--tertiary);
  color: var(--white);
  border-color: var(--tertiary);
}

/* No results state */
.no-results {
  text-align: center;
  padding: var(--space-9) 0;
  color: var(--text-muted);
  display: none;
}

.no-results.visible { display: block; }

.no-results h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   21. BLOG POST (single article)
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--tertiary-light), var(--secondary));
  z-index: 9999;
  transition: width 0.1s linear;
}

.post-hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--space-9)) 0 var(--space-7);
  background: var(--cream);
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(46, 139, 87, 0.06), transparent 35%),
    radial-gradient(circle at 90% 70%, rgba(201, 169, 97, 0.08), transparent 35%);
  pointer-events: none;
}

.post-hero .container { position: relative; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tertiary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-5);
  transition: gap 0.3s, color 0.3s;
}

.post-back:hover {
  gap: 12px;
  color: var(--tertiary-deep);
}

.post-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  max-width: 880px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-6);
}

.post-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.post-meta-author .blog-author-avatar {
  width: 44px;
  height: 44px;
  font-size: 0.9rem;
}

.post-meta-author .author-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.post-meta-author .author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-meta-info {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.post-meta-info .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-cover {
  width: 100%;
  height: clamp(280px, 50vw, 460px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-lg);
}

/* Post body layout */
.post-layout {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: var(--space-8);
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-9) var(--space-6);
  align-items: flex-start;
}

.post-toc-col,
.post-share-col {
  position: sticky;
  top: 110px;
}

.post-toc h4,
.post-share h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  font-weight: 700;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-soft);
}

.post-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.5;
  display: block;
  padding-left: 10px;
  border-left: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.post-toc a:hover,
.post-toc a.active {
  color: var(--tertiary);
  border-left-color: var(--tertiary);
}

.post-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--tertiary-light);
  color: var(--tertiary);
  transform: translateX(3px);
}

.share-btn svg { flex-shrink: 0; }

/* Article content */
.post-content {
  font-size: 1.13rem;
  color: var(--text-body);
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto;
}

.post-content p { margin-bottom: var(--space-5); }

.post-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  float: left;
  padding: 0.4rem 0.7rem 0 0;
  color: var(--tertiary);
}

.post-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: var(--space-8) 0 var(--space-4);
  color: var(--primary);
  font-family: var(--font-display);
  scroll-margin-top: 100px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--primary);
  font-family: var(--font-display);
  scroll-margin-top: 100px;
}

.post-content blockquote {
  position: relative;
  margin: var(--space-7) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--tertiary-light);
  background: var(--cream);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--primary);
}

.post-content blockquote::before {
  content: '"';
  font-family: var(--font-display);
  position: absolute;
  top: -12px;
  left: 18px;
  font-size: 4rem;
  color: var(--tertiary-light);
  opacity: 0.4;
  line-height: 1;
}

.post-content blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.9rem;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-weight: 600;
}

.post-content ul,
.post-content ol {
  margin: 0 0 var(--space-5) var(--space-6);
}

.post-content li { margin-bottom: 8px; }

.post-content strong { color: var(--primary); font-weight: 700; }

.post-stats-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: var(--space-7) 0;
  padding: var(--space-6);
  background: var(--cream);
  border-radius: var(--radius-md);
}

.post-stat {
  text-align: center;
}

.post-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--tertiary);
  line-height: 1;
  margin-bottom: 6px;
}

.post-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Author bio */
.author-bio {
  margin-top: var(--space-9);
  padding: var(--space-7);
  background: var(--cream);
  border-radius: var(--radius-lg);
  display: flex;
  gap: var(--space-5);
  align-items: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tertiary), var(--tertiary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-bio-info h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.author-bio-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Related posts */
.related-section {
  background: var(--bg-soft);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* --------------------------------------------------------------------------
   22. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-9);
  align-items: flex-start;
}

.contact-info-block {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-soft);
}

.contact-info-block:last-child { border-bottom: none; }

.contact-info-block h4 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-weight: 700;
}

.contact-info-block h4 svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--tertiary-glow);
  color: var(--tertiary);
}

.contact-info-block p {
  color: var(--text-body);
  font-size: 1.05rem;
  font-weight: 500;
  padding-left: 50px;
  line-height: 1.5;
}

.contact-info-block a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-block a:hover { color: var(--tertiary); }

.contact-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-soft);
}

.contact-card h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-2);
  color: var(--primary);
  font-family: var(--font-display);
}

.contact-card-sub {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  font-size: 0.95rem;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-5);
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--bg-soft);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--tertiary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--tertiary-glow);
}

.form-control.invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-feedback {
  font-size: 0.8rem;
  margin-top: 6px;
  color: #DC2626;
  display: none;
}

.form-control.invalid + .form-feedback { display: block; }

.form-status {
  margin-top: var(--space-4);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 139, 87, 0.1);
  color: var(--tertiary-deep);
  border: 1px solid var(--tertiary-light);
}

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Map */
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  height: 380px;
  position: relative;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--tertiary-light);
  box-shadow: var(--shadow-md);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  gap: var(--space-4);
}

.faq-q:hover { color: var(--tertiary); }

.faq-q-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-quart), background 0.3s;
}

.faq-item.open .faq-q-icon {
  transform: rotate(45deg);
  background: var(--tertiary);
  color: var(--white);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-6);
  transition: max-height 0.5s var(--ease-out-quart), padding 0.4s ease;
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 var(--space-6) var(--space-5);
}

/* --------------------------------------------------------------------------
   23. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-11) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tertiary), var(--secondary));
}

.footer-bg-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(46, 139, 87, 0.1);
  border-radius: 50%;
  filter: blur(120px);
  bottom: -300px;
  right: -200px;
  pointer-events: none;
}

.footer-bg-blob-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(201, 169, 97, 0.08);
  border-radius: 50%;
  filter: blur(100px);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-9);
  position: relative;
  z-index: 2;
}

.footer-col h3 {
  font-size: 0.78rem;
  margin-bottom: var(--space-5);
  color: var(--white);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding-bottom: var(--space-3);
  font-family: var(--font-body);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--secondary);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-3);
  font-size: 0.93rem;
  line-height: 1.7;
}

.footer-col p a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-col p a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-brand .footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-4);
}

.footer-brand .footer-logo-row img {
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.footer-brand .footer-logo-row span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
}

.footer-stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-stat {
  display: flex;
  flex-direction: column;
}

.footer-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--secondary);
  font-weight: 600;
  line-height: 1;
}

.footer-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
}

.social-icon svg {
  fill: currentColor;
  transition: fill 0.3s;
}

.social-icon:hover {
  background: var(--tertiary);
  transform: translateY(-3px);
  border-color: var(--tertiary);
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
  color: var(--white);
}

.footer-newsletter input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 10px;
}

.footer-newsletter input::placeholder { color: rgba(255, 255, 255, 0.4); }

.footer-newsletter input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.08);
}

.footer-newsletter button {
  width: 100%;
  padding: 0.8rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background: #B89548;
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
}

.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-5);
  width: 100%;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover { color: var(--secondary); }

/* --------------------------------------------------------------------------
   24. FLOATING ELEMENTS
   -------------------------------------------------------------------------- */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 14px 22px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  z-index: 9999;
  transition: all 0.3s var(--ease-out-quart);
  font-weight: 600;
  font-size: 0.95rem;
  gap: 10px;
  animation: waPulse 3s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35); }
  50%      { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.55); }
}

.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  background-color: #1EBE57;
  color: white;
  animation: none;
}

.wa-icon { display: flex; align-items: center; }
.wa-icon svg { display: block; }

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 9998;
  border: 1px solid var(--border-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s, color 0.3s;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--tertiary);
  color: var(--white);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   25. LIGHTBOX
   -------------------------------------------------------------------------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95%;
  max-height: 90vh;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.5s var(--ease-out-quart);
  display: flex;
  justify-content: center;
}

#lightbox.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 90vh;
}

.modal-grid.has-info {
  background: var(--white);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  max-width: 1000px;
}

@media (min-width: 992px) {
  .modal-grid.has-info {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-img-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
  object-fit: cover;
}

.modal-grid.has-info .lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.modal-info-col {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.spec-label { font-weight: 600; color: var(--primary); }
.spec-val { color: var(--text-muted); font-weight: 500; }

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10;
}

.modal-grid.has-info ~ .lightbox-close {
  color: var(--text-dark);
  top: 15px;
  right: 25px;
}

.lightbox-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   26. FOCUS STATES (accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--tertiary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}

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

/* --------------------------------------------------------------------------
   27. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1 1 280px; }
  .post-layout { grid-template-columns: 1fr; padding: var(--space-7) var(--space-5); }
  .post-toc-col, .post-share-col { position: static; }
  .post-share { flex-direction: row; flex-wrap: wrap; }
  .charts-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid .chart-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .section { padding: var(--space-10) 0; }
  .section-title { font-size: 2.4rem; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .img-frame { transform: none; }
  .img-hover-effect { transform: none; }
  .hero-container { padding-top: 90px; }
  .hero h1 { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); }
  .charts-grid { grid-template-columns: 1fr; }
  .charts-grid .chart-card:first-child { grid-column: auto; }
  .trust-divider { display: none; }
  .hero-trust-strip { gap: 1.2rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-5); }
  .section { padding: var(--space-9) 0; }
  .hero h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
  .hero p { font-size: 1rem; }
  .hero-content { text-align: center; }
  .hero-container { padding-top: 80px; }
  .hero-ctas { justify-content: center; }
  .hero-trust-strip { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-badge { font-size: 0.78rem; }
  .scroll-indicator { bottom: 20px; }
  .internal-hero h1 { font-size: 2.2rem; }
  .internal-hero { height: 40vh; min-height: 280px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .contact-card { padding: var(--space-6); }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .stat-item::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search { flex-basis: auto; }
  .floating-wa-btn { bottom: 20px; right: 20px; padding: 10px 15px; }
  .wa-text { display: none; }
  .scroll-top-btn { left: 20px; bottom: 20px; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.6rem; }
  .post-content { font-size: 1.05rem; }
  .post-content > p:first-of-type::first-letter { font-size: 3.4rem; }
  .author-bio { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 50px; }
  .timeline-dot { left: 4px; }
  .post-stats-inline { grid-template-columns: 1fr; gap: var(--space-3); }
  .cta-block { padding: var(--space-7) var(--space-5); }
}

/* --------------------------------------------------------------------------
   28. EXTRA UTILITIES — aliases and new components
   -------------------------------------------------------------------------- */

/* section-cream: alternate warm background */
.section-cream {
  background: var(--cream);
}

/* icon-tiles-grid: responsive 3-up grid */
.icon-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (max-width: 900px) {
  .icon-tiles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .icon-tiles-grid { grid-template-columns: 1fr; }
}

/* btn-outline: green outline variant (for light backgrounds) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-quart);
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--tertiary);
  color: var(--tertiary);
}
.btn-outline:hover {
  background: var(--tertiary);
  color: #fff;
}

/* contact-info-item: icon + text block */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.contact-info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(27, 77, 62, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tertiary);
}
.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

/* timeline-dot-active: highlight current milestone */
.timeline-dot-active {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.2);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tertiary);
  min-width: 52px;
  padding-top: 2px;
}

/* form-error: inline validation message */
.form-error {
  display: block;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 16px;
}
.form-control.is-invalid {
  border-color: #ef4444;
}
.form-control.is-valid {
  border-color: var(--tertiary-light);
}

/* spin animation for form spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .reveal, .reveal-left, .reveal-right, .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }

  .slide { animation: none; opacity: 1; }
  .slide:not(:first-child) { display: none; }
}

/* --------------------------------------------------------------------------
   BRAND HERO — cinematic slider for brand sub-pages
   -------------------------------------------------------------------------- */
.brand-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--nav-h);
}

.brand-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--primary);
}

.brand-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  animation: brandFade 16s infinite linear;
}

.brand-slide:nth-child(1) { animation-delay: 0s; }
.brand-slide:nth-child(2) { animation-delay: 8s; }

@keyframes brandFade {
  0%   { opacity: 0; transform: scale(1.05); }
  6%   { opacity: 1; }
  44%  { opacity: 1; }
  50%  { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.14); }
}

.brand-hero .hero-overlay {
  z-index: 1;
}

.brand-hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: 0 var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.brand-hero-content .eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-quart) forwards 0.2s;
}

.brand-hero-content h1 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-quart) forwards 0.4s;
}

.brand-hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  max-width: 520px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-quart) forwards 0.6s;
}

.brand-hero-content .btn-group {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-quart) forwards 0.8s;
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .brand-hero { height: 48vh; min-height: 320px; }
  .brand-hero-content h1 { font-size: 2.6rem; }
}

/* --------------------------------------------------------------------------
   PRICE CARDS — Ready Meats catalog
   -------------------------------------------------------------------------- */
.price-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}

.cat-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-4);
}

.cat-divider:first-child { margin-top: 0; padding-top: 0; }

.cat-divider-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.cat-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.cat-divider-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tertiary);
  background: rgba(27, 77, 62, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--tertiary);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tertiary-light);
}

.price-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.3;
  font-weight: 600;
}

.price-card-detail {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.price-card-footer {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
  margin-top: var(--space-3);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tertiary);
  line-height: 1;
}

.price-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-variable {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Wholesale / catalog notice */
.catalog-notice {
  background: var(--cream);
  border: 1px solid var(--secondary-soft);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-7);
  margin-top: var(--space-8);
}

.catalog-notice h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.catalog-notice-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
}

.catalog-notice-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-body);
}

.catalog-notice-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   ROSE VARIETIES — Blooms Legacy catalog
   -------------------------------------------------------------------------- */
.roses-collections {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.rose-section {}

.rose-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.rose-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  border: 3px solid rgba(255,255,255,0.6);
}

.rose-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 600;
}

.rose-section-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: auto;
  background: var(--bg-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.varieties-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.variety-chip {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid var(--chip-color, var(--tertiary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.variety-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--chip-color, var(--tertiary-light));
}

.variety-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, var(--tertiary));
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   CATALOG PHOTO CARDS — Ready Meats (with images)
   -------------------------------------------------------------------------- */
.catalog-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-5);
}

.catalog-photo-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.catalog-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--tertiary-light);
}

.catalog-photo-card-img-wrap {
  width: 100%;
  height: 195px;
  overflow: hidden;
  background: var(--bg-soft);
}

.catalog-photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-quart);
  display: block;
}

.catalog-photo-card:hover .catalog-photo-card-img {
  transform: scale(1.07);
}

.catalog-photo-card-body {
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.catalog-photo-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

.catalog-photo-card-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.5;
}

.catalog-photo-card-footer {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   BLOOM PHOTO CARDS — Blooms Legacy rose catalog
   -------------------------------------------------------------------------- */
.bloom-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: var(--space-4);
}

.bloom-photo-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.bloom-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.bloom-photo-card-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--bg-soft);
}

.bloom-photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-quart);
  display: block;
}

.bloom-photo-card:hover .bloom-photo-card-img {
  transform: scale(1.06);
}

.bloom-photo-card-name {
  padding: var(--space-3) var(--space-3);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  border-top: 3px solid var(--chip-color, var(--tertiary));
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   WORDPRESS THEME — EXTRA ALIASES & BLOG STYLES
   -------------------------------------------------------------------------- */

/* Variable aliases used in WP templates */
:root {
  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --surface-alt:    #F9FAFB;
  --border-color:   #E5E7EB;
  --tertiary-tint:  rgba(27, 77, 62, 0.10);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-card-img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out-quart); }
.blog-card:hover .blog-card-img { transform: scale(1.04); }

.blog-card-content { padding: var(--space-6); }
.blog-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-3); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.blog-card-title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.35; margin-bottom: var(--space-3); }
.blog-card-title a { color: var(--text-dark); text-decoration: none; }
.blog-card-title a:hover { color: var(--tertiary); }
.blog-card-excerpt { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-5); line-height: 1.6; }
.blog-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--tertiary); text-decoration: none; }
.blog-card-link:hover { color: var(--tertiary-deep); }

/* Post content */
.post-content-wrap { max-width: 800px; margin: 0 auto; }
.post-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-body); }
.post-content h2, .post-content h3 { font-family: var(--font-display); margin: var(--space-8) 0 var(--space-4); color: var(--text-dark); }
.post-content p { margin-bottom: var(--space-5); }
.post-content img { width: 100%; border-radius: var(--radius-md); margin: var(--space-6) 0; }
.post-content a { color: var(--tertiary); }
.post-content ul, .post-content ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.post-content li { margin-bottom: var(--space-2); }
.post-content blockquote { border-left: 4px solid var(--tertiary); padding: var(--space-4) var(--space-6); background: var(--cream); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: var(--space-6) 0; font-style: italic; }

/* Post meta */
.post-meta-bottom { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-soft); }
.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-pill { background: var(--cream); color: var(--text-muted); font-size: 0.8rem; padding: 4px 12px; border-radius: var(--radius-pill); text-decoration: none; border: 1px solid var(--border-soft); }
.tag-pill:hover { background: var(--tertiary); color: #fff; border-color: var(--tertiary); }

/* Post navigation */
.post-navigation { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-soft); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: var(--space-4); }
.post-navigation .nav-previous, .post-navigation .nav-next { max-width: 48%; }
.post-navigation a { text-decoration: none; color: var(--text-dark); }
.post-navigation .nav-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.post-navigation .nav-title { font-weight: 600; font-size: 0.95rem; color: var(--tertiary); }

/* Pagination */
.pagination { margin-top: var(--space-10); display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--border-soft); color: var(--text-body); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.pagination .page-numbers.current { background: var(--tertiary); color: #fff; border-color: var(--tertiary); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--tertiary); color: var(--tertiary); }
.pagination .prev, .pagination .next { width: auto; padding: 0 var(--space-4); }

/* WordPress admin bar offset */
.admin-bar .topbar { top: 32px; }
.admin-bar .navbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
  .admin-bar .navbar { top: 46px; }
}
