/* ============================================================
   IMAGENIA — Global Design System
   Fonts: Manrope (headlines) + Inter (body)
   Tokens from DESIGN.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@400,0&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --primary: #154212;
  --primary-container: #2D5A27;
  --secondary: #006e1c;
  --surface: #fbf9f8;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f6f3f2;
  --surface-container: #f0eded;
  --surface-container-high: #eae8e7;
  --surface-container-highest: #e4e2e1;
  --surface-dim: #dcd9d9;
  --on-surface: #1b1c1c;
  --on-surface-variant: #42493e;
  --on-primary: #ffffff;
  --on-secondary: #ffffff;
  --outline: #72796e;
  --outline-variant: #c2c9bb;
  --primary-fixed-dim: #a1d494;
  --secondary-container: #91f78e;
  --on-secondary-container: #00731e;
  --tertiary: #60223e;
  --error: #ba1a1a;
  --shadow-ambient: 0 20px 40px rgba(27, 28, 28, 0.06);
  --shadow-card: 0 4px 16px rgba(27, 28, 28, 0.04);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: 300ms ease-in-out;
}

@media (max-width: 1024px) {
  ::-webkit-scrollbar {
    display: none;
  }

  html {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── Typography ────────────────────────────────────────────── */
.font-headline {
  font-family: 'Manrope', sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.label-sm {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.label-md {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* ── Glass Navigation ────────────────────────────────────────── */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 249, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-ambient);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: down;
  justify-content: space-between;
  padding: 0.3rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 117px;
  width: auto;
  max-width: 400px;
  object-fit: fill;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(27, 28, 28, 0.65);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-search {
  position: relative;
  display: none;
}

@media (min-width: 900px) {
  .nav-search {
    display: block;
  }
}

.nav-search input {
  background: var(--surface-container-low);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  width: 12rem;
  color: var(--on-surface);
  transition: var(--transition);
}

.nav-search input:focus {
  outline: 2px solid rgba(21, 66, 18, 0.2);
  width: 15rem;
}

.nav-search .search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--on-surface-variant);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 899px) {
  .hamburger {
    display: flex;
    z-index: 100;
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 3rem;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

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

  .nav-links a {
    font-size: 1.25rem;
  }
}

/* ── Promo Bar ───────────────────────────────────────────────── */
.promo-bar {
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 101;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-container);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(194, 201, 187, 0.4);
}

.btn-secondary:hover {
  background: var(--surface-container-low);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  padding: 0.625rem;
  border-radius: var(--radius-md);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 28, 28, 0.1);
}

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-container-low);
  position: relative;
}

.card-image img {
  transition: transform 0.6s ease;
}

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

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.tag-pill {
  padding: 0.2rem 0.6rem;
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 500;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-container-low) 0%, var(--surface-container) 100%);
}

.card-placeholder .material-symbols-outlined {
  font-size: 3rem;
  color: var(--outline-variant);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 66, 18, 0.95) 0%, rgba(45, 90, 39, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(161, 212, 148, 0.2);
  border: 1px solid rgba(161, 212, 148, 0.4);
  border-radius: 99px;
  color: var(--primary-fixed-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Category Grid ───────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.category-card:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

.category-card:hover .cat-icon,
.category-card:hover .cat-name {
  color: #fff;
}

.cat-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.cat-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ── Product Grid ────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--surface-container-high);
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.75rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.tab-btn span.material-symbols-outlined {
  font-size: 1.5rem;
}

.tab-btn:hover,
.tab-btn:active,
.tab-btn.active {
  color: #006E1C;
  transform: scale(1.1);
}

.tab-btn.active {
  border-bottom-color: #006E1C;
}

/* ── Filters (Products page) ─────────────────────────────────── */
.filters-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-container-high);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-checkbox span {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  min-height: 2rem;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface-container-low);
  border: none;
  border-bottom: 2px solid var(--surface-container-high);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--on-surface);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  padding: 0.75rem;
  border: none;
  border-bottom: 2px solid var(--surface-container-high);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--on-surface-variant);
  opacity: 0.6;
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(27, 28, 28, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px rgba(27, 28, 28, 0.2);
  max-width: 640px;
  width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1rem 2rem 2rem;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-close:hover {
  background: var(--surface-container-high);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--surface-container-low);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 120px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  filter: none !important;
  background: transparent !important;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(27, 28, 28, 0.55);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(27, 28, 28, 0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-container-high);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(27, 28, 28, 0.4);
}

/* ── Instagram Strip ─────────────────────────────────────────── */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
}

@media (max-width: 600px) {
  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ig-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-container-low);
  cursor: pointer;
}

.ig-item img {
  transition: transform 0.5s ease;
}

.ig-item:hover img {
  transform: scale(1.08);
}

/* ── Section divider (tonal) ─────────────────────────────────── */
.section-alt {
  background: var(--surface-container-low);
}

.section-dark {
  background: var(--primary);
  color: #fff;
}

/* ── Skeleton loader ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-container-low) 25%, var(--surface-container) 50%, var(--surface-container-low) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Toasts ──────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(27, 28, 28, 0.15);
  animation: toast-in 0.3s ease;
  max-width: 320px;
}

.toast.success {
  background: var(--primary);
  color: #fff;
}

.toast.error {
  background: var(--error);
  color: #fff;
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.page-header {
  position: relative;
  padding: 10rem 0 6rem;
  background: var(--surface-container-low);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-header h1 {
  color: var(--primary);
  transition: color 0.3s ease;
}

.page-header p {
  color: var(--on-surface-variant);
  margin-top: 0.75rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.page-header.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(21, 66, 18, 0.8), rgba(21, 66, 18, 0.4));
  z-index: 1;
}

.page-header.has-image .container {
  position: relative;
  z-index: 2;
}

.page-header.has-image h1,
.page-header.has-image p,
.page-header.has-image .label-sm {
  color: #fff !important;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.page-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  transition: var(--transition);
  cursor: pointer;
}

.page-btn:hover {
  background: var(--surface-container-low);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
}

/* ── Material Symbols ────────────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-muted {
  color: var(--on-surface-variant);
}

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

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

/* ── Hero Slider ─────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--primary);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

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

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.slide.active .slide-bg {
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(21, 66, 18, 0.88) 0%, rgba(21, 66, 18, 0.35) 60%, transparent 100%);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 6rem;
  max-width: 1440px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.slide-text {
  max-width: 640px;
  z-index: 2;
}

.slide-text h1 {
  color: #fff;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.slide-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.65;
  white-space: pre-line;
}

.slide-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Alternating positioning */
.slide:nth-child(even) .slide-content {
  justify-content: flex-end;
  text-align: right;
}

.slide:nth-child(even) .slide-text p {
  margin-left: auto;
}

.slide:nth-child(even) .slide-cta {
  justify-content: flex-end;
}

.slide:nth-child(even) .slide-overlay {
  background: linear-gradient(to left, rgba(21, 66, 18, 0.88) 0%, rgba(21, 66, 18, 0.35) 60%, transparent 100%);
}

/* Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 1.5rem;
}

.slider-next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .slide-content {
    padding: 0 1.5rem;
    text-align: center;
    justify-content: center;
  }

  .slide-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .slide-cta {
    justify-content: center;
  }

  .slider-btn {
    top: auto;
    bottom: 1.25rem;
    transform: none;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.2);
  }

  .slider-btn:hover {
    transform: scale(1.1);
  }

  .slider-prev {
    left: 1.25rem;
  }

  .slider-next {
    right: 1.25rem;
  }

  .slider-dots {
    bottom: 1.85rem;
  }
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ── About / Benefits section ────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--on-surface-variant);
  line-height: 1.75;
  font-size: 1rem;
}

.about-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.benefit-row:hover {
  transform: translateX(4px);
}

.benefit-icon {
  font-size: 1.75rem;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.benefit-desc {
  font-size: 0.825rem;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

/* ── Category cards with image ───────────────────────────────── */
.cat-img-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 0.5rem 0 1.5rem;
}

@media (max-width: 1200px) {
  .cat-img-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cat-img-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cat-img-grid {
    grid-template-columns: 1fr;
  }
}

.cat-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.cat-carousel::-webkit-scrollbar {
  display: none;
}

.cat-carousel .cat-img-card {
  flex: 0 0 160px;
  height: 140px;
}

.cat-carousel .cat-img-card-overlay {
  padding: 0.75rem;
}

.cat-carousel .cat-img-card-name {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.cat-carousel .cat-img-card-link {
  font-size: 0.6rem;
}

.cat-carousel .cat-img-card-placeholder .material-symbols-outlined {
  font-size: 2rem;
}

.cat-img-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  background: var(--surface-container-low);
  transition: transform var(--transition);
}

.cat-img-card:hover,
.cat-img-card.active {
  transform: translateY(-4px);
}

.cat-img-card.active {
  outline: 3px solid var(--secondary);
  outline-offset: -3px;
  box-shadow: 0 12px 24px rgba(21, 66, 18, 0.25);
}

.cat-img-card.active .cat-img-card-overlay {
  background: linear-gradient(to top, rgba(21, 66, 18, 0.95) 0%, rgba(21, 66, 18, 0.4) 100%);
}

.cat-img-card.active .cat-img-card-link {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

.cat-img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.cat-img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 66, 18, 0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  z-index: 2;
}

.cat-img-card-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cat-img-card-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-fixed-dim);
}

.cat-img-card-placeholder {
  position: absolute;
  inset: 0;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-img-card-placeholder .material-symbols-outlined {
  font-size: 3.5rem;
  color: var(--outline-variant);
}

/* ── Mosaic Grid inside card ── */
.cat-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  gap: 2px;
  background: var(--surface-container-high);
  z-index: 1;
}

.cat-mosaic-cell {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.cat-mosaic-cell img,
.cat-mosaic-cell div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-img-card:hover .cat-mosaic-cell img {
  transform: scale(1.08);
}

/* ── Promo Banner ────────────────────────────────────────────── */
.promo-banner {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--primary-container);
}

.promo-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.promo-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 66, 18, 0.7);
}

.promo-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 4rem 2rem;
}

.promo-banner-content h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.promo-banner-content .btn-white {
  background: #fff;
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: var(--transition);
}

.promo-banner-content .btn-white:hover {
  background: var(--primary-fixed-dim);
}

/* ── Quote form layout ───────────────────────────────────────── */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(27, 28, 28, 0.12);
}

@media (max-width: 768px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

.quote-image {
  position: relative;
  min-height: 400px;
  background: var(--surface-container);
}

.quote-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-image-placeholder .material-symbols-outlined {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.2);
}

.quote-form-panel {
  background: var(--surface-container-lowest);
  padding: 3rem;
}

.quote-form-panel h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.quote-form-panel p {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ── Footer Dark ─────────────────────────────────────────────── */
footer.footer-dark {
  background: #1e2622;
  padding: 5rem 0 2rem;
  margin-top: auto;
}

footer.footer-dark .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 900px) {
  footer.footer-dark .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  footer.footer-dark .footer-grid {
    grid-template-columns: 1fr;
  }
}

footer.footer-dark .footer-logo {
  color: #fff;
}

footer.footer-dark .footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

footer.footer-dark .footer-tagline {
  color: rgba(255, 255, 255, 0.45);
}

footer.footer-dark .footer-heading {
  color: var(--primary-fixed-dim);
}

footer.footer-dark .footer-links a {
  color: rgba(255, 255, 255, 0.5);
}

footer.footer-dark .footer-links a:hover {
  color: #fff;
}

/* Proyectos y Clientes Grid */
.footer-clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
  width: 100%;
  margin-top: 1rem;
}

.client-logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: #ffffff;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.client-logo-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-logo-wrapper img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a.client-logo-item:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

a.client-logo-item:hover .client-logo-wrapper img {
  transform: scale(1.1);
}

/* Footer Map */
.footer-map-wrapper {
  margin-top: 4rem;
  width: 100%;
}

.footer-map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.footer-map-container iframe {
  width: 100% !important;
  height: 100% !important;
  filter: grayscale(1) invert(0.9) contrast(0.9);
  /* Dark mode map look */
}

.footer-map-container:hover iframe {
  filter: grayscale(0.2) invert(0) contrast(1);
  transition: filter 0.5s ease;
}

footer.footer-dark .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  position: relative;
}

/* Impact stat rows in footer */
.footer-impact-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-impact-stat:last-child {
  border-bottom: none;
}

.footer-impact-icon {
  font-size: 1.25rem;
  color: var(--primary-fixed-dim);
  flex-shrink: 0;
}

.footer-impact-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.footer-impact-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-fixed-dim);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-icon:hover {
  background: #ffffff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 20px rgba(161, 212, 148, 0.3);
}

.footer-social-icon img {
  width: 20px;
  height: 20px;
  /* Brand green filter (#154212) */
  filter: brightness(0) saturate(100%) invert(18%) sepia(21%) saturate(1989%) hue-rotate(65deg) brightness(93%) contrast(93%);
  object-fit: contain;
}

/* ── Plastic Counter Section ───────────────────────────────── */
.counter-section {
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
}

.counter-inner {
  max-width: 900px;
  margin: 0 auto;
}

.counter-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.counter-prefix,
.counter-suffix {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--secondary);
  letter-spacing: 0.02em;
}

.counter-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 11rem);
  color: var(--secondary);
  letter-spacing: 0.04em;
  line-height: 1;
  /* Counting animation */
  transition: opacity 0.3s ease;
}

.counter-num.counting {
  opacity: 0.85;
}

.counter-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.5vw, 1.35rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.counter-sublabel {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  letter-spacing: 0.03em;
}

/* Animate in on scroll */
.counter-section .counter-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.counter-section.in-view .counter-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ── WhatsApp Floating Button ─────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Tooltip */
.whatsapp-float::before {
  content: "Chatea con nosotros";
  position: absolute;
  right: 80px;
  background: var(--surface-container-highest);
  color: var(--on-surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-card);
}

.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float::before {
    display: none;
  }
}