/* ============================================================
   PGM Foundation — Theme CSS
   Author: The Free Website Guys — thefreewebsiteguys.com
   ============================================================ */

/* ---- Design Tokens (fallback values — overridden by inline CSS from Customizer) ---- */
:root {
  --color-background:         #F9F6F1;
  --color-foreground:         #15281F;
  --color-primary:            #1E3E2E;
  --color-primary-foreground: #F9F6F1;
  --color-accent:             #DC8E18;
  --color-accent-foreground:  #FFFFFF;
  --color-secondary:          #F1EDE4;
  --color-muted-foreground:   #556D61;
  --color-border:             #DED9CF;
  --color-card:               #FFFFFF;
  --logo-height:              44px;

  --font-display:   'Inter', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-editorial: 'Fraunces', serif;

  --radius:         0.375rem;
  --btn-radius:     0.375rem;
  --btn-height:     2.75rem;
  --btn-padding:    0.75rem 1.5rem;
  --btn-font-size:  0.9375rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0;
  --btn-text-transform: none;
  --btn-icon-padding: 0.625rem;

  --card-radius:     var(--radius);
  --section-padding: 2rem;
  --header-height:   80px;

  --shadow-soft:     0 4px 20px -4px rgba(21,40,31,0.08);
  --shadow-elevated: 0 18px 50px -12px rgba(21,40,31,0.22);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  /* Matches React Index.tsx easeSmooth / Framer */
  --ease-motion: cubic-bezier(0.25, 0.4, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-foreground);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted-foreground);
}

.eyebrow-light { color: rgba(249,246,241,0.6); }
.eyebrow-accent { color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted-foreground); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container-wide { padding-inline: 2.5rem; }
}

.scroll-mt { scroll-margin-top: 6rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}
.btn-accent:hover { opacity: 0.9; }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
}
.btn-outline:hover { border-color: var(--color-accent); }

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(249,246,241,0.4);
  color: rgba(249,246,241,1);
}
.btn-outline-light:hover {
  background: rgba(249,246,241,1);
  color: var(--color-foreground);
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* ============================================================
   ICON UTILITIES
   ============================================================ */
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-xs { width: 1rem;    height: 1rem; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  background-color: transparent;
}

.site-header.is-solid {
  background-color: rgba(249,246,241,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .site-nav { height: 5rem; }
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.site-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  line-height: var(--logo-height);
}

.site-brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: none;
  transition: color 0.3s ease;
}

@media (min-width: 640px) { .site-brand-name { display: inline; } }

/* Transparent header: invert logo + white text */
.site-header:not(.is-solid) .site-logo-img {
  filter: brightness(0) invert(1);
}
.site-header:not(.is-solid) .site-logo-text,
.site-header:not(.is-solid) .site-brand-name {
  color: white;
}

.site-header.is-solid .site-logo-text,
.site-header.is-solid .site-brand-name {
  color: var(--color-foreground);
}

/* Desktop nav */
.site-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 768px) { .site-nav-desktop { display: flex; } }

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

.theme-nav-list a,
.theme-nav-list li > a,
.site-nav-desktop > button {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.site-header:not(.is-solid) .theme-nav-list a,
.site-header:not(.is-solid) .theme-nav-list li > a,
.site-header:not(.is-solid) .site-nav-desktop > button:not(.btn-donate-nav):not(.cart-btn) {
  color: rgba(255,255,255,0.9);
}
.site-header:not(.is-solid) .theme-nav-list a:hover,
.site-header:not(.is-solid) .theme-nav-list li > a:hover,
.site-header:not(.is-solid) .site-nav-desktop > button:not(.btn-donate-nav):not(.cart-btn):hover {
  color: white;
}

.site-header.is-solid .theme-nav-list a,
.site-header.is-solid .theme-nav-list li > a,
.site-header.is-solid .site-nav-desktop > button:not(.btn-donate-nav):not(.cart-btn) {
  color: rgba(21,40,31,0.8);
}
.site-header.is-solid .theme-nav-list a:hover,
.site-header.is-solid .site-nav-desktop > button:not(.btn-donate-nav):not(.cart-btn):hover {
  color: var(--color-foreground);
}

/* Underline effect */
.theme-nav-list a::after,
.theme-nav-list li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list a:hover::after,
.theme-nav-list li > a:hover::after { transform: scaleX(1); }

/* Donate button in nav */
.btn-donate-nav {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--btn-radius);
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
  transition: opacity 0.2s ease;
}
.btn-donate-nav:hover { opacity: 0.9; }

a.btn-donate-nav {
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
}

.mobile-menu a.btn-donate-nav.mobile-donate {
  display: block;
}

/* Cart button */
.cart-btn {
  position: relative;
  padding: 0.375rem;
  transition: opacity 0.2s ease;
  color: inherit;
}
.cart-btn:hover { opacity: 0.7; }

.site-header:not(.is-solid) .cart-btn { color: rgba(255,255,255,0.9); }
.site-header.is-solid   .cart-btn { color: rgba(21,40,31,0.8); }

.theme-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }

/* Mobile controls */
.site-nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .site-nav-mobile-controls { display: none; } }

.mobile-menu-toggle {
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}
.mobile-menu-toggle:hover { opacity: 0.7; }

.site-header:not(.is-solid) .mobile-menu-toggle { color: white; }
.site-header.is-solid .mobile-menu-toggle { color: var(--color-foreground); }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  animation: fadeIn 0.2s ease;
}
.mobile-menu[hidden] { display: none; }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}
.mobile-nav-list a,
.mobile-nav-list li > a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s ease;
}
.mobile-nav-list a:hover { color: var(--color-accent); }

.mobile-donate {
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) { .desktop-only { display: flex !important; } }
@media (max-width: 767px) { .cart-btn.desktop-only { display: none !important; } }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.85;
  will-change: transform;
  transform: scale(1);
  transition: transform 0.1s linear;
}

.hero-overlay-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(21,40,31,0.85), rgba(21,40,31,0.45) 60%, transparent);
}

.hero-overlay-tb {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,40,31,0.85), transparent 50%, rgba(21,40,31,0.3));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 4rem;
  padding-top: 8rem;
}

@media (min-width: 768px) {
  .hero-content { padding-bottom: 5rem; padding-top: 10rem; }
}
@media (min-width: 1024px) {
  .hero-content { padding-bottom: 6rem; }
}

/* Scroll-driven motion (Framer heroY / heroOpacity) — updated via main.js */
.hero-content-motion {
  will-change: transform, opacity;
}

.hero-text-wrap { max-width: 62rem; }

/* Hero mount — parity with Index.tsx motion.* initial/animate */
@keyframes heroEntrance20 {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroEntrance30 {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroEntrance20 0.7s var(--ease-motion) 0.3s forwards;
}

.hero-heading {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroEntrance30 0.9s var(--ease-motion) 0.4s forwards;
}

.hero-accent-line {
  display: block;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(249,246,241,0.85);
  max-width: 40rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroEntrance20 0.8s var(--ease-motion) 0.7s forwards;
}

@media (min-width: 768px) { .hero-description { font-size: 1.125rem; } }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: heroEntrance20 0.8s var(--ease-motion) 0.9s forwards;
}

/* ============================================================
   VALUES MARQUEE
   ============================================================ */
.marquee-band {
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
  border-top: 1px solid rgba(249,246,241,0.1);
  border-bottom: 1px solid rgba(249,246,241,0.1);
  overflow: hidden;
  padding: 1.25rem 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

@media (min-width: 768px) { .marquee-item { font-size: 1.875rem; } }

.marquee-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
.animate-marquee { animation: marquee 35s linear infinite; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background-color: var(--color-background);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .about-inner {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.about-image-col { order: 2; }
@media (min-width: 1024px) { .about-image-col { order: 1; } }

.about-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-secondary);
}

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

.about-image-accent {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  width: 6rem;
  height: 6rem;
  background-color: var(--color-accent);
  border-radius: var(--radius);
  z-index: -1;
  display: none;
}
@media (min-width: 768px) { .about-image-accent { display: block; } }

.about-text-col { order: 1; }
@media (min-width: 1024px) { .about-text-col { order: 2; } }

.about-text-col .eyebrow { margin-bottom: 1rem; }

.about-text-col .section-heading { margin-bottom: 1.5rem; }

.about-body {
  color: var(--color-muted-foreground);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-body strong { color: var(--color-foreground); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.about-stat-number {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  display: block;
}

.about-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
}

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.programs-section {
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
}

.programs-header {
  max-width: 48rem;
  padding-top: 5rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) { .programs-header { padding-top: 7rem; } }

.programs-heading { line-height: 1.05; margin-bottom: 1.5rem; }

.programs-desc {
  color: rgba(249,246,241,0.7);
  font-size: 1.125rem;
  max-width: 40rem;
  line-height: 1.6;
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); padding-bottom: 7rem; }
}

.program-card {
  background: rgba(249,246,241,0.05);
  border: 1px solid rgba(249,246,241,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.program-card:hover {
  background: rgba(249,246,241,0.1);
  border-color: rgba(220,142,24,0.4);
  transform: translateY(-6px);
}

.program-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.program-card:hover .program-card-image img { transform: scale(1.05); }

.program-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }

.program-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  stroke-width: 1.5;
}

.program-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.program-card-desc {
  color: rgba(249,246,241,0.65);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.program-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 0.3s ease;
}
.program-card:hover .program-card-cta { gap: 0.75rem; }

.cta-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.founder-section { background-color: var(--color-background); }

.founder-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .founder-inner {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: stretch;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.founder-text-col .eyebrow { margin-bottom: 1rem; }
.founder-text-col .section-heading { margin-bottom: 1.5rem; }

.founder-title {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
}

.founder-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
  flex: 1;
}
.founder-body strong { color: var(--color-foreground); }
.founder-body em { font-style: italic; }

.founder-image-col {
  display: flex;
  flex-direction: column;
  min-height: 26rem;
}

.founder-image-wrap {
  position: relative;
  flex: 1;
  min-height: 26rem;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-secondary);
}
.founder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-image-accent {
  position: absolute;
  bottom: -0.75rem;
  left: -0.75rem;
  width: 6rem;
  height: 6rem;
  background-color: var(--color-primary);
  border-radius: var(--radius);
  z-index: -1;
  display: none;
}
@media (min-width: 768px) { .founder-image-accent { display: block; } }

.founder-quote-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(241,237,228,0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.founder-quote-text {
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-foreground);
}
.founder-quote-attr {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
  margin-top: 0.75rem;
}

/* ============================================================
   GET INVOLVED SECTION
   ============================================================ */
.get-involved-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.gi-parallax-bg {
  position: absolute;
  inset: 0;
  z-index: -20;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.15);
  background-color: var(--color-foreground);
}

.gi-overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: rgba(21,40,31,0.75);
}

.gi-content {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 8rem;
}
@media (min-width: 768px) { .gi-content { padding-top: 8rem; padding-bottom: 10rem; } }

.gi-header {
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.gi-heading {
  color: rgba(249,246,241,1);
  margin-bottom: 1.25rem;
}

.gi-desc {
  color: rgba(249,246,241,0.8);
  font-size: 1.125rem;
}

.gi-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .gi-cards { grid-template-columns: repeat(3, 1fr); } }

.gi-card {
  position: relative;
  padding: 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: var(--color-foreground);
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: block;
}
.gi-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
}

.gi-card-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}
.gi-card:hover .gi-card-accent-bar { transform: scaleY(1); }

.gi-card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: rgba(220,142,24,0.1);
  color: var(--color-accent);
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}
.gi-card:hover .gi-card-icon-wrap { transform: scale(1.1) rotate(-6deg); }

.gi-card-icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }

.gi-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.gi-card-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.gi-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ============================================================
   DONATE SECTION
   ============================================================ */
.donate-section { background-color: var(--color-background); }

.donate-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .donate-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .donate-info-col { position: sticky; top: 7rem; }
}

.donate-info-col .eyebrow { margin-bottom: 1rem; }
.donate-info-col .section-heading { margin-bottom: 1.5rem; }

.donate-desc {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.donate-impacts { display: flex; flex-direction: column; gap: 0.75rem; }

.donate-impact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(241,237,228,0.5);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.5;
}

.donate-impact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
  stroke-width: 1.5;
}
.donate-impact-amount {
  color: var(--color-foreground);
  font-weight: 700;
}

/* Donate Card */
.donate-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .donate-card { padding: 2.5rem; } }

.donate-card-heart {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.donate-card-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .donate-card-heading { font-size: 1.875rem; } }

.donate-card-desc {
  color: var(--color-muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.donate-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

.donate-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.donate-check-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.donate-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.donate-fine-print {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  text-align: center;
  line-height: 1.5;
}
.donate-fine-print .text-accent { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   VOLUNTEER SECTION
   ============================================================ */
.volunteer-section { background-color: var(--color-secondary); }

.volunteer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .volunteer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .volunteer-info-col { position: sticky; top: 7rem; }
}

.volunteer-info-col .eyebrow { margin-bottom: 1rem; }
.volunteer-info-col .section-heading { margin-bottom: 1.5rem; }

.volunteer-desc {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.volunteer-image {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
}
.volunteer-image img { width: 100%; height: 100%; object-fit: cover; }

.volunteer-form-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .volunteer-form-card { padding: 2rem; } }

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.form-label { font-size: 0.875rem; font-weight: 500; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.form-input::placeholder { color: var(--color-muted-foreground); }
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220,142,24,0.15);
}

.form-textarea { resize: none; }

select.form-input { cursor: pointer; }

.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* Interest tags */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.interest-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}
.interest-tag.is-active,
.interest-tag:hover {
  background: var(--color-accent);
  color: var(--color-accent-foreground);
  border-color: var(--color-accent);
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(241,237,228,0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.form-success[hidden] { display: none; }

.success-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.success-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-accent-foreground);
}
.success-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-message { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 30rem;
  max-height: 47.5rem;
  overflow: hidden;
  isolation: isolate;
}

.quote-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -20;
}

.quote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -20;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: rgba(21,40,31,0.65);
}

.quote-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-figure {
  max-width: 56rem;
  text-align: center;
  color: rgba(249,246,241,1);
}

/* Framer QuoteSection: whileInView 0.9s easeSmooth */
.quote-figure.js-reveal {
  transition:
    opacity 0.9s var(--ease-motion),
    transform 0.9s var(--ease-motion);
}

.quote-mark {
  font-size: 5rem;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-editorial);
  font-style: italic;
}
@media (min-width: 768px) { .quote-mark { font-size: 6rem; } }

.quote-text {
  font-size: clamp(1.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.quote-attribution {
  margin-top: 2rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(249,246,241,0.7);
}
@media (min-width: 768px) { .quote-attribution { font-size: 1rem; } }

.quote-attr-sep { color: rgba(249,246,241,0.4); margin: 0 0.5rem; }

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section { background-color: var(--color-background); }

.partners-header {
  max-width: 48rem;
  padding-top: 5rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) { .partners-header { padding-top: 7rem; } }

.partners-header .eyebrow { margin-bottom: 1rem; }
.partners-header .section-heading { margin-bottom: 1.5rem; }

.partners-desc {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px)  { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .partners-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.partner-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  aspect-ratio: 4/3;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.partner-card:hover {
  border-color: rgba(220,142,24,0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}
@media (min-width: 768px) { .partner-card { padding: 2rem; } }

.partner-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.partner-logo {
  max-height: 5rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.partner-card:hover .partner-logo { filter: grayscale(0); }

.partner-name-text {
  font-size: 1.25rem;
  color: rgba(85,109,97,0.7);
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.partner-card:hover .partner-name-text { color: var(--color-accent); }

.partner-name-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted-foreground);
  text-align: center;
}

/* Partners CTA */
.partners-cta {
  background: rgba(241,237,228,0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .partners-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    margin-bottom: 7rem;
  }
}

.partners-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}
@media (min-width: 768px) { .partners-cta-title { font-size: 1.5rem; } }

.partners-cta-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  max-width: 36rem;
}

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section { background-color: var(--color-secondary); }

.shop-header {
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .shop-header { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-top: 7rem; margin-bottom: 3.5rem; }
}

.shop-header-text { max-width: 40rem; }
.shop-header .eyebrow { margin-bottom: 1rem; }
.shop-header .section-heading { margin-bottom: 1.5rem; }

.shop-desc {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ============================================================
   PRODUCT GRID + CARDS
   ============================================================ */
.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 5rem;
  align-items: stretch;
}
@media (min-width: 640px)  { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; padding-bottom: 7rem; } }

.theme-product-card-wrap { height: 100%; }

.theme-product-card {
  position: relative;
  background-color: var(--color-card);
  border: 1px solid rgba(222,217,207,0.6);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    box-shadow 0.3s var(--ease-motion),
    transform 0.35s var(--ease-motion);
}
.theme-product-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

/* Hit-area overlay (Pattern A — Section 31.3) */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  display: block;
}

.theme-product-card * { pointer-events: none; }

/* Overlay must stay clickable (rule above sets pointer-events on all descendants). */
.theme-product-card a.theme-card-link {
  pointer-events: auto;
}

/* Image wrapper */
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-secondary);
}

.theme-product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-motion);
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.05); }

/* Product badges */
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
}
.product-badge--sold-out {
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
}
.product-badge--supports,
.product-badge--sale {
  background: rgba(249,246,241,0.9);
  color: var(--color-muted-foreground);
  border: 1px solid var(--color-border);
}

/* Card body */
.theme-product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-top: 1px solid rgba(222,217,207,0.6);
}

.product-card-eyebrow { margin-bottom: 0.5rem; }

.product-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
  transition: color 0.2s ease;
}
.theme-product-card:hover .product-card-name { color: var(--color-accent); }

.product-card-price {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { background-color: var(--color-secondary); }

.faq-header {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding-top: 5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .faq-header { padding-top: 7rem; } }

.faq-header .eyebrow { margin-bottom: 1rem; }
.faq-header .section-heading { margin-bottom: 0; }

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) { .faq-list { padding-bottom: 7rem; } }

.faq-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.faq-question:hover { background: rgba(241,237,228,0.4); }

.faq-question-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
@media (min-width: 768px) { .faq-question-text { font-size: 1.125rem; } }

.faq-chevron-icon { flex-shrink: 0; color: var(--color-muted-foreground); }
.faq-chevron-icon svg { width: 1.25rem; height: 1.25rem; }
.faq-item.is-open .faq-chevron-icon { color: var(--color-accent); }
.faq-item .icon-chevron-up { display: none; }
.faq-item .icon-chevron-down { display: block; }
.faq-item.is-open .icon-chevron-up { display: block; }
.faq-item.is-open .icon-chevron-down { display: none; }

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

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}
.faq-item.is-open .faq-answer:not([hidden]) {
  animation: faqAnswerIn 0.3s var(--ease-motion) forwards;
}
.faq-answer[hidden] { display: none; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
}

.cta-inner {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) { .cta-inner { padding-top: 6rem; padding-bottom: 6rem; } }

.cta-heading {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
}

.cta-desc {
  color: rgba(249,246,241,0.7);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
}

.site-footer .container-wide {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .site-footer .container-wide { padding-top: 5rem; padding-bottom: 5rem; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-brand-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.footer-logo { display: block; filter: brightness(0) invert(1); }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(249,246,241,0.65);
  line-height: 1.6;
  max-width: 24rem;
  margin-bottom: 1.25rem;
}

.footer-social { display: flex; gap: 1rem; }

.footer-social-link {
  color: rgba(249,246,241,0.7);
  transition: color 0.2s ease;
}
.footer-social-link:hover { color: var(--color-accent); }

.footer-col-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249,246,241,0.6);
  margin-bottom: 1rem;
}

.footer-nav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem 1.5rem;
  list-style: none;
}

.footer-nav-list a,
.footer-nav-list li > a,
.footer-nav-list li > button {
  font-size: 0.875rem;
  color: rgba(249,246,241,0.75);
  transition: color 0.2s ease;
  cursor: pointer;
}
.footer-nav-list a:hover,
.footer-nav-list li > a:hover { color: var(--color-accent); }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(249,246,241,0.75);
}

.footer-email-link:hover { color: var(--color-accent); }

.footer-location {
  font-size: 0.875rem;
  color: rgba(249,246,241,0.65);
  line-height: 1.6;
}

.footer-ein {
  font-size: 0.75rem;
  color: rgba(249,246,241,0.5);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(249,246,241,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy, .footer-tax-note { font-size: 0.75rem; color: rgba(249,246,241,0.5); }
.footer-credit { font-size: 0.75rem; color: rgba(249,246,241,0.45); }
.footer-credit a { color: rgba(249,246,241,0.7); transition: color 0.2s ease; text-decoration-color: transparent; }
.footer-credit a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--color-foreground); }
.back-icon { width: 1rem; height: 1rem; }

/* ============================================================
   INNER PAGE LAYOUT
   ============================================================ */
.page-main, .contact-main, .blog-main, .single-post-main,
.shop-archive-main, .single-product-main, .not-found-main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.page-content-wrap { padding: 2.5rem 0; }
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.entry-content { max-width: 48rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-content-wrap { padding: 2.5rem 0 5rem; }

.contact-header { margin-bottom: 3rem; }
.contact-header .eyebrow { margin-bottom: 0.75rem; }

.contact-heading {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact-intro {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  max-width: 40rem;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; gap: 2.5rem; } }

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-box {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-tax-box {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-info-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contact-tax-heading { opacity: 0.8; color: rgba(249,246,241,0.8); }

.contact-info-list { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.contact-info-icon { width: 1rem; height: 1rem; color: var(--color-accent); flex-shrink: 0; }

.contact-info-item a { transition: color 0.2s ease; word-break: break-all; }
.contact-info-item a:hover { color: var(--color-accent); }

.contact-social-links { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.contact-social-link:hover { color: var(--color-accent); }
.contact-social-icon { width: 1rem; height: 1rem; }

.contact-tax-note { font-size: 0.875rem; line-height: 1.6; opacity: 0.9; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-header-section {
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
  padding: 8rem 0 4rem;
}
@media (min-width: 768px) { .blog-header-section { padding: 10rem 0 6rem; } }

.blog-header-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: blogHeaderEyebrow 0.6s var(--ease-motion) forwards;
}

.blog-page-heading {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 48rem;
  opacity: 0;
  animation: blogHeaderSlide20 0.7s var(--ease-motion) 0.1s forwards;
}

.blog-page-desc {
  color: rgba(249,246,241,0.75);
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.625;
  margin-top: 1.25rem;
  opacity: 0;
  animation: blogHeaderSlide20 0.7s var(--ease-motion) 0.2s forwards;
}

/* Blog header mount — parity with Blog.tsx motion.* */
@keyframes blogHeaderEyebrow {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blogHeaderSlide20 {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-posts-section {
  padding: 4rem 0;
  background-color: var(--color-background);
}
@media (min-width: 768px) { .blog-posts-section { padding: 6rem 0; } }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Blog cards — parity with React Blog.tsx (no bordered card shell) */
.blog-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.blog-card:hover { box-shadow: none; }

.blog-card-image-link {
  display: block;
  overflow: hidden;
  border-radius: 0.375rem;
  margin-bottom: 1.25rem;
  background-color: var(--color-secondary);
}
.blog-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-motion);
  display: block;
}
.blog-card-img--placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background-color: var(--color-secondary);
}
.blog-card-cta .cta-icon,
.blog-card-cta .cta-icon svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
}

.blog-card-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #71717a;
  margin-bottom: 0.75rem;
}

/* Título casi negro (Lovable); evita el tinte verde de --color-foreground */
.blog-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #09090b;
}
.blog-card-title a {
  color: #09090b;
  transition: color 0.2s ease;
}
.blog-card-title a:hover { color: var(--color-accent); }

.blog-card-excerpt {
  font-size: 0.875rem;
  font-weight: 400;
  color: #52525b;
  line-height: 1.625;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.3s var(--ease-motion), transform 0.3s var(--ease-motion), color 0.2s ease;
}
.blog-card-cta:hover,
.blog-card-cta:focus-visible {
  color: var(--color-accent);
  filter: brightness(0.85);
}
.blog-card-cta .cta-icon {
  transition: transform 0.3s var(--ease-motion);
}
.blog-card:hover .blog-card-cta { gap: 0.375rem; }
.blog-card:hover .blog-card-cta .cta-icon {
  transform: translate(0.125rem, -0.125rem);
}

.blog-no-posts { color: var(--color-muted-foreground); text-align: center; padding: 3rem 0; }

/* ============================================================
   SINGLE POST
   ============================================================ */
/* Mount animations — parity with BlogPost.tsx motion.* */
@keyframes singlePostEntrance10 {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes singlePostEntrance20 {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-hero {
  position: relative;
  background-color: var(--color-foreground);
  color: rgba(249,246,241,1);
  padding: 8rem 0 4rem;
  overflow: hidden;
}
@media (min-width: 768px) { .post-hero { padding: 10rem 0 6rem; } }

.post-hero-bg {
  position: absolute;
  inset: 0;
}
.post-hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-foreground) 20%, rgba(21,40,31,0.8) 60%, rgba(21,40,31,0.4)); }

.post-hero-content { position: relative; }
.post-back-link { color: rgba(249,246,241,0.7); margin-bottom: 2rem; }
.post-back-link:hover { color: var(--color-accent); }

.post-date {
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: singlePostEntrance10 0.6s var(--ease-motion) forwards;
}

.post-heading {
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 56rem;
  opacity: 0;
  animation: singlePostEntrance20 0.7s var(--ease-motion) 0.1s forwards;
}

.post-cover-wrap { margin-top: -2rem; position: relative; z-index: 10; padding-bottom: 0; }
@media (min-width: 768px) { .post-cover-wrap { margin-top: -3rem; } }

.post-cover-image {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-secondary);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: singlePostEntrance20 0.7s var(--ease-motion) 0.2s forwards;
}
.post-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body-wrap { padding: 4rem 0 5rem; }
@media (min-width: 768px) { .post-body-wrap { padding: 5rem 0; } }

.post-body-content {
  max-width: 40rem;
  margin: 0 auto;
}
.post-body-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(21,40,31,0.85);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .post-body-content p { font-size: 1.125rem; } }

.post-back-footer {
  max-width: 40rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-main {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
}

.not-found-inner { text-align: center; }

.not-found-code {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.not-found-msg {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

/* ============================================================
   WOOCOMMERCE SINGLE PRODUCT
   ============================================================ */
.single-product-main { background-color: var(--color-background); }

.single-product-wrap { padding-top: 1.5rem; padding-bottom: 5rem; }

.product-back-link-wrap { margin-bottom: 1.5rem; }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

/* Gallery */
.theme-product-gallery { min-width: 0; max-width: 100%; }

.product-main-image-wrap {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-secondary);
  margin-bottom: 1rem;
}

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

.theme-product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.product-thumb-btn {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.product-thumb-btn.is-active { border-color: var(--color-accent); }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product info */
.theme-product-info { min-width: 0; max-width: 100%; }

.product-cats { margin-bottom: 0.75rem; }
.posted_in a { transition: color 0.2s ease; }
.posted_in a:hover { color: var(--color-accent); }

.product-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.product-price .woocommerce-Price-amount { color: var(--color-foreground); }

.product-stock {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.product-stock--out {
  background: rgba(21,40,31,0.08);
  color: var(--color-foreground);
}
.product-stock--in { display: none; }

.product-description {
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Variation table */
.single-product .variations.shop_attributes { width: 100%; margin-bottom: 1.5rem; }

.single-product .variations.shop_attributes tbody,
.single-product .variations.shop_attributes tbody tr,
.single-product .variations.shop_attributes tbody td {
  display: block;
  width: 100%;
}

.single-product .variations.shop_attributes tbody td.label {
  padding-bottom: 0.5rem;
}
.single-product .variations.shop_attributes tbody td.label label {
  font-size: 0.875rem;
  font-weight: 600;
}

.single-product .variations.shop_attributes tbody td.value {
  padding-top: 0;
  padding-bottom: 1rem;
}

/* Hidden native select */
.theme-attr-select-hidden { display: none !important; }

/* Variation buttons */
.variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variation-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}
.variation-btn:hover { border-color: var(--color-accent); }
.variation-btn.is-selected {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

/* Add to cart area (simple + variable): Lovable ProductDetail row — qty intrinsic width, button flex-1 */
.theme-add-to-cart-area {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
}
@media (max-width: 480px) {
  .theme-add-to-cart-area {
    flex-wrap: wrap;
  }
}

.theme-add-to-cart-area .theme-quantity-wrapper {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.theme-add-to-cart-area .single_add_to_cart_button.button,
.theme-add-to-cart-area a.single_add_to_cart_button,
.theme-add-to-cart-area a.add_to_cart_button {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.theme-qty-minus, .theme-qty-plus {
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-minus svg,
.theme-qty-plus svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.theme-qty-input {
  padding: 0.75rem;
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-foreground);
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* WooCommerce Add to Cart Button Overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-accent) !important;
  color: var(--color-accent-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-accent) !important;
  color: var(--color-accent-foreground) !important;
}

/* Disabled state (Section 11.4.1) */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-accent) !important;
}

/* Button loading state (Section 31.8) */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Hide "View cart" injected by WooCommerce (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
  display: none !important;
}

/* Single variation wrap */
.single_variation_wrap { margin-top: 1.5rem; }

/* Details section */
.product-details-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.product-details-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.woocommerce-product-details__short-description {
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}
.woocommerce-product-details__short-description ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.woocommerce-product-details__short-description ul li::before {
  content: '';
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  margin-right: 0.75rem;
  vertical-align: middle;
}

/* Related products */
.related-products { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--color-border); }

.related-products-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.related-products-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
  padding-bottom: 0 !important;
}
@media (min-width: 1024px) { .related-products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ============================================================
   WOOCOMMERCE SHOP ARCHIVE
   ============================================================ */
.shop-archive-main { background-color: var(--color-background); }

.shop-archive-header { padding: 2rem 0 0; }

.shop-archive-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.shop-no-products { padding: 3rem 0; text-align: center; color: var(--color-muted-foreground); }

/* ============================================================
   SIDE CART DRAWER
   ============================================================ */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21,40,31,0.4);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-background);
  z-index: 60;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--transition-smooth);
}

body.cart-open #theme-cart-drawer {
  transform: translateX(0);
}

#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-drawer-close {
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.cart-drawer-close:hover { opacity: 0.6; }
.cart-drawer-close-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  stroke-width: 1.5;
}

/* Empty state */
.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cart-empty-icon {
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
  width: 3rem;
  height: 3rem;
  stroke-width: 1;
}
.cart-empty-msg { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.cart-continue-btn { cursor: pointer; }

/* Cart items */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item { display: flex; gap: 1rem; }

.cart-item-image-link {
  width: 5rem;
  height: 6rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  transition: opacity 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-name:hover { opacity: 0.7; }

.cart-item-variation {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.125rem;
}

.cart-item-price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 0.125rem;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cart-qty-btn {
  padding: 0.25rem;
  border-radius: var(--radius);
  color: var(--color-foreground);
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-qty-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
}

.cart-item-qty-display {
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}

.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

/* Cart footer */
.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }

.cart-shipping-note {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

/* ============================================================
   WOOCOMMERCE NOTICES (Section 14.1)
   ============================================================ */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }

#theme-cart-drawer .woocommerce-message { display: none; }

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.woocommerce-error { border-color: #dc2626; background-color: #fef2f2; }

/* ============================================================
   CHECKOUT BLOCK (Section 13)
   ============================================================ */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
  max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
  display: block;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout.wc-block-checkout--is-checkout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 24rem;
    gap: 2rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.checkout-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

/* Woo Blocks: align with Lovable / shadcn-style fields (Checkout.tsx inputClass) */
body.woocommerce-checkout {
  --wc-blocks-border-color: var(--color-border);
  --wc-blocks-border-radius: var(--radius);
}

/* Padding solo en el control; quitar padding extra de wrappers del bloque */
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-select,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-block-components-combobox,
body.woocommerce-checkout .wc-block-components-form-field {
  padding: 0 !important;
}

/* Separación vertical entre filas del formulario de dirección (p. ej. nombre/apellidos y país) */
body.woocommerce-checkout .wc-block-components-address-form {
  gap: 1rem !important;
  row-gap: 1rem !important;
  column-gap: 1rem !important;
}

body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-select:first-of-type {
  margin-top: 1rem !important;
}

body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-select ~ .wc-block-components-select {
  margin-top: 0.75rem !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-textarea label,
body.woocommerce-checkout .wc-block-components-form-field-label,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input label {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
  display: block;
  color: var(--color-foreground) !important;
  font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option__label {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--color-foreground) !important;
  font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input__input,
body.woocommerce-checkout .wc-block-components-text-input input[type="text"],
body.woocommerce-checkout .wc-block-components-text-input input[type="email"],
body.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
body.woocommerce-checkout .wc-block-components-text-input input[type="number"],
body.woocommerce-checkout .wc-block-components-text-input input[type="url"],
body.woocommerce-checkout .wc-block-components-phone-number-input input[type="tel"],
body.woocommerce-checkout .wc-block-components-phone-number-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-combobox input[type="text"],
body.woocommerce-checkout .components-text-control__input {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: var(--color-foreground) !important;
  background-color: var(--color-background) !important;
  padding: 0.75rem 1rem !important;
  min-height: 2.75rem !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-text-input__input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder,
body.woocommerce-checkout .wc-block-components-combobox input::placeholder,
body.woocommerce-checkout .wc-block-components-phone-number-input input::placeholder {
  color: var(--color-muted-foreground) !important;
  opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input__input:focus,
body.woocommerce-checkout .wc-block-components-text-input input[type="text"]:focus,
body.woocommerce-checkout .wc-block-components-text-input input[type="email"]:focus,
body.woocommerce-checkout .wc-block-components-text-input input[type="tel"]:focus,
body.woocommerce-checkout .wc-block-components-phone-number-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input:focus,
body.woocommerce-checkout .wc-block-components-combobox input[type="text"]:focus,
body.woocommerce-checkout .components-text-control__input:focus {
  outline: none !important;
  border-color: transparent !important;
  box-shadow:
    0 0 0 2px var(--color-background),
    0 0 0 4px var(--color-accent) !important;
}

body.woocommerce-checkout .wc-block-components-select__container {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background-color: var(--color-background) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

body.woocommerce-checkout .wc-block-components-select__container select,
body.woocommerce-checkout .wc-block-components-select__container .wc-block-components-select__select {
  appearance: auto !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  min-height: 2.75rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: var(--color-foreground) !important;
  background-color: transparent !important;
}

body.woocommerce-checkout .wc-block-components-select__container select:focus,
body.woocommerce-checkout .wc-block-components-select__container .wc-block-components-select__select:focus {
  outline: none !important;
  box-shadow:
    inset 0 0 0 2px var(--color-background),
    inset 0 0 0 4px var(--color-accent) !important;
}

body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control,
body.woocommerce-checkout .wc-block-components-combobox .components-form-token-field {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background-color: var(--color-background) !important;
  padding: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-combobox input[type="text"] {
  border: none !important;
  border-radius: 0 !important;
}

body.woocommerce-checkout .wc-block-components-textarea textarea {
  min-height: 5rem !important;
  resize: vertical !important;
}

body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  width: 1.125rem !important;
  height: 1.125rem !important;
  min-height: 1.125rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.25rem !important;
  accent-color: var(--color-accent) !important;
}

body.woocommerce-checkout .wc-block-components-radio-control__input,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__input {
  accent-color: var(--color-accent) !important;
}

body.woocommerce-checkout .wc-block-components-validation-error {
  font-size: 0.8125rem !important;
  margin-top: 0.25rem !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-accent) !important;
  color: var(--color-accent-foreground) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: var(--btn-font-weight) !important;
  font-size: var(--btn-font-size) !important;
  transition: opacity 0.2s ease !important;
  border: none !important;
  width: 100% !important;
  padding: 0.875rem 1.5rem !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.9 !important;
}

body.woocommerce-checkout h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.woocommerce-checkout .wc-block-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner {
  grid-column: 1 / -1;
}

/* ============================================================
   THANK YOU PAGE (Section 22.8)
   ============================================================ */
.thankyou-wrap { padding: 2rem 0 4rem; }

body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  list-style: none;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
  color: var(--color-foreground);
}

body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  max-width: 30rem;
  overflow-wrap: break-word;
}

body.theme-thankyou-page { overflow-x: hidden; }

/* ============================================================
   ANIMATION HELPERS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* Reveal animations for JS-triggered elements (Framer-style fadeUp) */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--ease-motion),
    transform 0.7s var(--ease-motion);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal[data-delay="100"] { transition-delay: 0.1s; }
.js-reveal[data-delay="200"] { transition-delay: 0.2s; }
.js-reveal[data-delay="300"] { transition-delay: 0.3s; }

/* Staggered children (~0.08s like React staggerChildren) */
.js-reveal-stagger > .js-reveal:nth-child(1)  { transition-delay: 0s; }
.js-reveal-stagger > .js-reveal:nth-child(2)  { transition-delay: 0.08s; }
.js-reveal-stagger > .js-reveal:nth-child(3)  { transition-delay: 0.16s; }
.js-reveal-stagger > .js-reveal:nth-child(4)  { transition-delay: 0.24s; }
.js-reveal-stagger > .js-reveal:nth-child(5)  { transition-delay: 0.32s; }
.js-reveal-stagger > .js-reveal:nth-child(6)  { transition-delay: 0.4s; }
.js-reveal-stagger > .js-reveal:nth-child(7)  { transition-delay: 0.48s; }
.js-reveal-stagger > .js-reveal:nth-child(8)  { transition-delay: 0.56s; }
.js-reveal-stagger > .js-reveal:nth-child(9)  { transition-delay: 0.64s; }
.js-reveal-stagger > .js-reveal:nth-child(10) { transition-delay: 0.72s; }
.js-reveal-stagger > .js-reveal:nth-child(11) { transition-delay: 0.8s; }
.js-reveal-stagger > .js-reveal:nth-child(12) { transition-delay: 0.88s; }
.js-reveal-stagger > .js-reveal:nth-child(13) { transition-delay: 0.96s; }
.js-reveal-stagger > .js-reveal:nth-child(14) { transition-delay: 1.04s; }
.js-reveal-stagger > .js-reveal:nth-child(15) { transition-delay: 1.12s; }
.js-reveal-stagger > .js-reveal:nth-child(16) { transition-delay: 1.2s; }

.reveal-fade {
  opacity: 0;
  animation: fadeIn 0.7s ease 0.3s forwards;
}
.reveal-fade-delay-1 { opacity: 0; animation: slideUp 0.9s ease 0.4s forwards; }
.reveal-fade-delay-2 { opacity: 0; animation: slideUp 0.8s ease 0.7s forwards; }
.reveal-fade-delay-3 { opacity: 0; animation: slideUp 0.8s ease 0.9s forwards; }

/* Respect prefers-reduced-motion: shorten keyframe animations; keep marquee loop (decorative). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .marquee-track.animate-marquee {
    animation-duration: 35s !important;
    animation-iteration-count: infinite !important;
  }
  .js-reveal { opacity: 1; transform: none; }
  .hero-content-motion { will-change: auto; }
  .hero-eyebrow,
  .hero-heading,
  .hero-description,
  .hero-ctas {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .blog-header-eyebrow,
  .blog-page-heading,
  .blog-page-desc {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .post-date,
  .post-heading,
  .post-cover-image {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .faq-item.is-open .faq-answer:not([hidden]) {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767px) {
  .donate-card { padding: 1.5rem; }
  .volunteer-form-card { padding: 1.25rem; }
  .gi-content { padding-top: 5rem; padding-bottom: 6rem; }
  .quote-section { height: 60vh; min-height: 28rem; }
  .cta-heading { font-size: 2rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, #theme-cart-drawer, #theme-cart-overlay { display: none; }
  body { background: white; color: black; }
}
