/* ==========================================
   ESPAI CORRIOLS — Main Stylesheet
   ========================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300;1,9..144,400&display=swap');

/* --- CSS Variables --- */
:root {
  --green:       #90c9a6;
  --green-dark:  #5fa880;
  --green-light: #c8e8d5;
  --green-pale:  #edf7f1;
  --cream:       #faf8f3;
  --warm-white:  #ffffff;
  --terra:       #d4956a;
  --terra-dark:  #b06a3a;
  --terra-pale:  #fdf3ec;
  --amber:       #e8b84b;
  --amber-pale:  #fef9ec;
  --brown:       #7a6652;
  --brown-light: #c4b09a;
  --text:        #111111;
  --text-soft:   #1a1a1a;
  --border:      #e2ddd8;
  --shadow:      rgba(90, 80, 60, 0.08);
  --shadow-md:   rgba(90, 80, 60, 0.15);

  --font-body:    'Nunito Sans', sans-serif;
  --font-serif:   'Nunito Sans', sans-serif;
  --font-display: 'Nunito Sans', sans-serif;

  --radius:      12px;
  --radius-lg:   24px;
  --radius-xl:   40px;

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 1px;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  transition: var(--transition);
  line-height: 1;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  background: var(--green);
  color: white;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  text-align: justify;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

/* Section h2 with display font (applied via .display-title class) */
.display-title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1rem; color: var(--text-soft); font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px var(--shadow);
  padding: 0.8rem 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.navbar__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
}

.navbar__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: -2px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  border-radius: 999px;
  transition: var(--transition);
  text-align: center;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text);
  background: var(--green-pale);
}

.navbar__cta {
  background: var(--green);
  color: white !important;
  padding: 0.55rem 1.25rem;
}

.navbar__cta:hover {
  background: var(--green-dark) !important;
  color: white !important;
}

/* Navbar dropdown */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.navbar__dropdown-toggle svg {
  transition: transform var(--transition);
}

.navbar__dropdown:hover .navbar__dropdown-toggle svg {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow-md);
  min-width: 140px;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  display: flex;
}

.navbar__dropdown-item {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.navbar__dropdown-item:hover,
.navbar__dropdown-item.active {
  background: var(--green-pale);
  color: var(--text);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.navbar__mobile.open { display: flex; }

.navbar__mobile a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.navbar__mobile a:last-child { border-bottom: none; }
.navbar__mobile a.active { color: var(--green-dark); }

.navbar__mobile-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  padding: 0.75rem 0 0.25rem;
}


/* ==========================================
   HERO — HOME
   ========================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(80px);
}

.hero__bg-shape--1 {
  width: 500px; height: 500px;
  background: var(--green);
  top: 5%; right: 5%;
}

.hero__bg-shape--2 {
  width: 400px; height: 400px;
  background: var(--green-light);
  bottom: -100px; left: -80px;
}

.hero__bg-shape--3 {
  width: 300px; height: 300px;
  background: #f5e6c8;
  top: 40%; left: 30%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__badge svg {
  width: 14px;
  height: 14px;
  fill: var(--green-dark);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--green-dark);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-soft);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero visual card */
.hero__visual {
  position: relative;
}

.hero__card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotate(-4deg) translateX(-10px) translateY(10px);
  box-shadow: 0 16px 48px var(--shadow-md);
  z-index: 0;
}
.hero__card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow-md);
  aspect-ratio: 4/3;
  position: relative;
  z-index: 1;
}

.hero__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--green-dark);
}

.hero__card-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

.hero__card-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__card-badge-icon {
  width: 42px;
  height: 42px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__card-badge-icon svg {
  width: 22px; height: 22px; fill: var(--green-dark);
}

.hero__card-badge-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.hero__card-badge-text span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero__float {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: var(--green);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(144, 201, 166, 0.4);
}

.hero__float strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-serif);
  line-height: 1;
}

.hero__float span {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn svg {
  width: 18px; height: 18px;
}

.btn--primary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 20px rgba(144, 201, 166, 0.35);
}

.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 28px rgba(95, 168, 128, 0.4);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--green-dark);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover { color: var(--green); }

.btn--white {
  background: white;
  color: var(--green-dark);
}

.btn--white:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-tag--terra {
  background: rgba(212, 149, 106, 0.18);
  color: var(--terra-dark);
}

.section-tag--amber {
  background: rgba(232, 184, 75, 0.2);
  color: #9a6e00;
}

/* ==========================================
   WAVE DIVIDERS
   ========================================== */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; }

/* ==========================================
   FEATURES / PILLARS GRID
   ========================================== */
.features {
  background: var(--terra-pale);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: 0 16px 48px var(--shadow-md);
  transform: translateY(-6px);
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.08);
}

/* Icon color variants — applied via nth-child or explicit class */
.feature-card:nth-child(1) .feature-card__icon,
.feature-card:nth-child(4) .feature-card__icon {
  background: var(--green-pale);
}
.feature-card:nth-child(1) .feature-card__icon svg,
.feature-card:nth-child(4) .feature-card__icon svg { fill: var(--green-dark); }

.feature-card:nth-child(2) .feature-card__icon,
.feature-card:nth-child(5) .feature-card__icon {
  background: rgba(212, 149, 106, 0.18);
}
.feature-card:nth-child(2) .feature-card__icon svg,
.feature-card:nth-child(5) .feature-card__icon svg { fill: var(--terra-dark); }

.feature-card:nth-child(3) .feature-card__icon,
.feature-card:nth-child(6) .feature-card__icon {
  background: rgba(232, 184, 75, 0.2);
}
.feature-card:nth-child(3) .feature-card__icon svg,
.feature-card:nth-child(6) .feature-card__icon svg { fill: #9a6e00; }

.feature-card__icon svg {
  width: 34px; height: 34px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature-card p { font-size: 0.95rem; }

/* ==========================================
   QUOTE SECTION
   ========================================== */
.quote-section {
  background: var(--green);
  padding: 5rem 0;
  text-align: center;
}

.quote-section__inner {
  max-width: 760px;
  margin: 0 auto;
}

.quote-section blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: white;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.quote-section blockquote::before { content: '\201C'; }
.quote-section blockquote::after  { content: '\201D'; }

.quote-section cite {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ==========================================
   INFO CARDS ROW
   ========================================== */
.info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 8px 30px var(--shadow-md);
  transition: var(--transition);
}

.info-card:hover { transform: translateY(-4px); }

.info-card__icon {
  width: 48px; height: 48px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.info-card__icon svg { width: 24px; height: 24px; fill: var(--green-dark); }

.info-card strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.info-card span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
}

/* ==========================================
   TWO-COLUMN SPLIT
   ========================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__content { }

.split__content h2 { margin-bottom: 1.25rem; }

.split__content .lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.split__image {
  position: relative;
}

.split__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px var(--shadow-md);
}

.split__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-dark);
  opacity: 0.5;
}

.split__img-placeholder svg {
  width: 60px; height: 60px;
}

.split__accent {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: var(--green);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 8px 30px rgba(144,201,166,0.4);
  font-size: 0.9rem;
}

.split__accent strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

/* ==========================================
   VALUES LIST
   ========================================== */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.value-item__dot {
  width: 22px;
  height: 22px;
  background: var(--green-pale);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item__dot svg {
  width: 10px; height: 10px; fill: var(--green-dark);
}

.value-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ==========================================
   SCHEDULE TABLE
   ========================================== */
.schedule {
  background: var(--green-pale);
}

.schedule__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--green-light);
}

.schedule__header {
  display: contents;
}

.schedule__header-cell {
  background: var(--green);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.schedule__row {
  display: contents;
}

.schedule__cell {
  background: white;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.schedule__cell:first-child { font-weight: 600; color: var(--text); }

.schedule__row:nth-child(even) .schedule__cell {
  background: var(--green-pale);
}

/* ==========================================
   NATURE SECTION (Philosophy)
   ========================================== */
.nature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.nature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--green);
  transition: var(--transition);
}

.nature-card:hover {
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-2px);
}

.nature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--green-dark);
}

.nature-card p { font-size: 0.95rem; margin: 0; }

/* ==========================================
   TEAM SECTION
   ========================================== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
  transition: var(--transition);
}

.team-card:hover { transform: translateY(-4px); }

.team-card__avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: white;
  font-weight: 600;
}

.team-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }

.team-card .role {
  font-size: 0.85rem;
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.team-card p { font-size: 0.9rem; }

/* ==========================================
   MAP / LOCATION
   ========================================== */
.map-section {
  background: white;
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.location__info h2 { margin-bottom: 1.5rem; }

.location__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.location__detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.location__detail-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location__detail-icon svg { width: 22px; height: 22px; fill: var(--green-dark); }

.location__detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.location__detail-text span { font-size: 1rem; color: var(--text); font-weight: 600; }

.map__embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  background: var(--green-pale);
  position: relative;
}

.map__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--green-dark);
}

.map__placeholder svg { width: 48px; height: 48px; opacity: 0.6; }

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact {
  background: var(--cream);
}

.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h2 { margin-bottom: 1rem; }
.contact__info > p { margin-bottom: 2rem; }

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.contact__link:hover { color: var(--green-dark); }

.contact__link-icon {
  width: 42px; height: 42px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__link-icon svg { width: 20px; height: 20px; fill: var(--green-dark); }

.contact__form {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 8px 40px var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success svg {
  width: 56px; height: 56px;
  fill: var(--green);
  margin: 0 auto 1rem;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq {
  background: white;
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item.open { border-color: var(--green-light); }

.faq__question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.faq__question:hover { color: var(--green-dark); }

.faq__icon {
  width: 28px; height: 28px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq__icon svg { width: 14px; height: 14px; fill: var(--green-dark); transition: var(--transition); }

.faq__item.open .faq__icon { background: var(--green); }
.faq__item.open .faq__icon svg { fill: white; transform: rotate(45deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq__item.open .faq__answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq__answer p { font-size: 0.95rem; }

/* ==========================================
   CTA BANNER
   ========================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner__inner { position: relative; z-index: 1; }

.cta-banner h2 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--green-pale), var(--green-light));
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.gallery__item:hover { transform: scale(1.02); }

.gallery__item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }

.gallery__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  opacity: 0.4;
}

.gallery__placeholder svg { width: 40px; height: 40px; }

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */
.page-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, var(--green-pale) 0%, var(--cream) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 500px; height: 500px;
  background: var(--green-light);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(60px);
}

.page-hero .section-tag { margin-bottom: 1rem; }

.page-hero h1 { margin-bottom: 1rem; }

.page-hero .lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  justify-content: center;
}

.breadcrumb a { color: var(--green-dark); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 12px; height: 12px; fill: var(--text-soft); }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand { }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer__logo-icon {
  width: 42px; height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon svg { width: 22px; height: 22px; fill: white; }

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
}

.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.7);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social-link:hover { background: var(--green); }
.footer__social-link svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.75); }
.footer__social-link:hover svg { fill: white; }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.75rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer__nav a:hover { color: white; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.footer__bottom p { margin: 0; color: rgba(255,255,255,0.7); }
.footer__bottom span { color: rgba(255,255,255,0.7); }
.footer__bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer__bottom a:hover { color: white; }

/* ==========================================
   IMAGES
   ========================================== */

/* Logo in navbar — mix-blend-mode: multiply elimina el fons blanc
   i deixa que el color de la web es vegi a través */
.navbar__logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.footer__logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 6px 14px;
}

/* Images inside split sections */
.split__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery images */
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery__item:hover img { transform: scale(1.04); }

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { order: -1; }
  .hero__float { right: 1rem; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .info-row { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split--reverse { direction: ltr; }

  .team__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }

  .features__grid { grid-template-columns: 1fr; }

  .info-row { grid-template-columns: 1fr 1fr; }

  .nature-grid { grid-template-columns: 1fr; }

  .schedule__grid { display: flex; flex-direction: column; }
  .schedule__header { display: none; }
  .schedule__row { display: flex; flex-direction: column; }
  .schedule__cell { border: none; border-bottom: 1px solid var(--border); }

  .location__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  .team__grid { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(1) { grid-row: auto; aspect-ratio: 1; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .split__accent { position: static; margin-top: 1.5rem; display: inline-block; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .info-row { grid-template-columns: 1fr; }
  .hero__float { display: none; }
}

/* ==========================================
   LEGAL PAGE
   ========================================== */
.legal-section {
  padding: 4rem 0 6rem;
  background: white;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-toc {
  background: var(--cream);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.legal-toc__title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc a {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.legal-toc a:hover { text-decoration: underline; }

.legal-block {
  margin: 0;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--green-pale);
}

.legal-block:last-child {
  border-bottom: none;
}

.legal-block h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  color: var(--text);
}

.legal-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 1.75rem 0 0.6rem;
}

.legal-block p {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-block ul, .legal-block ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-block li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-block a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--green-light);
}

.legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--green-pale);
  color: var(--text-soft);
  vertical-align: top;
  line-height: 1.6;
}

.legal-table tr:last-child td { border-bottom: none; }

.legal-block code {
  background: var(--cream);
  border: 1px solid var(--green-light);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.85em;
  color: var(--green-dark);
  font-family: monospace;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 8000;
  width: min(680px, calc(100vw - 2rem));
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--green-light);
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
}

.cookie-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner--hiding {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__icon {
  width: 22px;
  height: 22px;
  fill: var(--green-dark);
  flex-shrink: 0;
}

.cookie-banner__text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-banner__btn--reject {
  background: none;
  border: 1.5px solid var(--green-light);
  color: var(--text-soft);
}

.cookie-banner__btn--reject:hover {
  border-color: var(--green);
  color: var(--text);
}

.cookie-banner__btn--accept {
  background: var(--green);
  border: 1.5px solid var(--green);
  color: white;
}

.cookie-banner__btn--accept:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-end; }
}


/* ==========================================
   FAQ PAGE
   ========================================== */
.faq-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1.5px solid var(--green-light);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  max-width: 480px;
  margin: 2rem auto 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(144, 201, 166, 0.2);
}

.faq-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-soft);
}

.faq-search input {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
}

.faq-search input::placeholder { color: var(--text-soft); }

.faq-page {
  padding: 1.5rem 0 6rem;
  background: var(--cream);
}

.faq-no-results {
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
  padding: 3rem 0;
}

.faq-no-results a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
}

.faq-category {
  margin-bottom: 2rem;
}

.faq-category__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--green-pale);
}

.faq-category__icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-category__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--green-dark);
}

.faq-category__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
}

.faq-category h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin: 0;
}

.btn--outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

@media (max-width: 600px) {
  .faq-search { margin: 1.5rem 1rem 0; }
  .faq-category__header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ==========================================
   GALLERY PAGE
   ========================================== */
.gallery-section {
  padding: 1.5rem 0 6rem;
  background: var(--cream);
}

/* Filter buttons */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.gallery-filter {
  background: white;
  border: 1.5px solid var(--green-light);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.gallery-filter.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* Masonry grid */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay span {
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.gallery-item--hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox--open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 15, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transition: opacity 0.15s ease;
}

.lightbox__img--fade {
  opacity: 0;
}

.lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  color: white;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 22px;
  height: 22px;
}

.lightbox__close  { top: 1.25rem; right: 1.25rem; }
.lightbox__prev   { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next   { right: 1.25rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
}

@media (max-width: 600px) {
  .gallery-grid { columns: 1; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
}
