/* ============================================================
   ARDO / ARBUSCOR — "Raíces" design system (shared)
============================================================ */
:root {
  --cream:        #F7F3EA;
  --cream-deep:   #EDE8DB;
  --ink:          #1C2A1E;
  --ink-muted:    #4A5C4D;
  --green-dark:   #0D4A28;
  --green:        #1A6B3C;
  --green-light:  #2A8B52;
  --gold:         #C8922A;
  --gold-light:   #E8B860;
  --gold-pale:    #F5E8CC;
  --white:        #FFFFFF;
  --hairline:     rgba(13,74,40,0.15);

  --ff-display:   'Fraunces', Georgia, serif;
  --ff-body:      'Source Sans 3', 'Helvetica Neue', sans-serif;

  --max-w:        1200px;
  --gutter:       clamp(1.25rem, 5vw, 3rem);
  --section-gap:  clamp(4.5rem, 9vw, 8rem);

  --radius-sm:    4px;
  --radius-md:    10px;
  --radius-lg:    18px;
  --shadow-card:  0 2px 16px rgba(13,74,40,0.08), 0 1px 4px rgba(13,74,40,0.05);
  --shadow-float: 0 8px 32px rgba(13,74,40,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ──────────────────────────────────────────── */
.t-display     { font-family: var(--ff-display); font-weight: 300; line-height: 1.1;  letter-spacing: -0.02em; }
.t-display-bold{ font-family: var(--ff-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.t-heading     { font-family: var(--ff-display); font-weight: 600; line-height: 1.2;  letter-spacing: -0.02em; }
.t-label       { font-family: var(--ff-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.t-italic      { font-style: italic; font-weight: 300; }

/* ── Layout ──────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-gap); }
.section--cream { background: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }
.section--green { background: var(--green-dark); color: var(--white); }

.section-label { display: flex; align-items: center; gap: 0.75rem; color: var(--gold); margin-bottom: 1.5rem; }
.section-label::after { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--gold); }
.section--green .section-label { color: var(--gold-light); }
.section--green .section-label::after { background: var(--gold-light); }

.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--green-dark); margin-bottom: 1rem; }
.section--green .section-title { color: var(--white); }
.section-lead  { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-muted); line-height: 1.75; max-width: 60ch; }
.section--green .section-lead { color: rgba(255,255,255,0.7); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.8rem; border-radius: 0.35rem; cursor: pointer;
  border: 2px solid var(--green-dark); transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn-primary   { background: var(--green-dark); color: var(--white); }
.btn-primary:hover   { background: var(--green); border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,74,40,0.25); }
.btn-secondary { background: transparent; color: var(--green-dark); }
.btn-secondary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ── Language switcher (fixed, top-right) ────────────────── */
#lang-switch {
  display: inline-flex; gap: 2px; padding: 3px; flex-shrink: 0;
  background: var(--white); border: 1.5px solid var(--hairline); border-radius: 2rem;
  box-shadow: 0 1px 6px rgba(13,74,40,0.10);
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--ff-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--ink-muted); padding: 0.32rem 0.6rem; border-radius: 2rem; transition: background .15s, color .15s;
}
.lang-btn .lang-flag { font-size: 0.95rem; }
.lang-btn:hover { color: var(--green-dark); background: var(--gold-pale); }
.lang-btn.is-active { background: var(--green-dark); color: var(--white); }

/* ── Header / nav ────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,234,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand-mark { display: flex; flex-direction: column; line-height: 1; gap: 0.12rem; }
.brand-main { font-family: var(--ff-display); font-weight: 700; font-size: 1.89rem; color: var(--green-dark); }
.brand-sub  { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
#site-nav { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
#site-nav a { position: relative; font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); padding: 0.5rem 0.6rem; border-radius: 0.3rem; transition: color .15s, background .15s; }
#site-nav a:hover { color: var(--green-dark); background: var(--gold-pale); }
#site-nav a.is-active { color: var(--green-dark); }
/* active = gold bar ABOVE the label (tab style), absolutely positioned so the text never shifts */
#site-nav a.is-active::before { content: ''; position: absolute; top: 0; left: 0.6rem; right: 0.6rem; height: 3px; background: var(--gold); border-radius: 2px; }
.header-right { display: flex; align-items: center; gap: 0.85rem; }
.nav-toggle-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle-btn span { display: block; width: 22px; height: 2px; background: var(--green-dark); border-radius: 2px; }

/* ── Generic page banner (inner pages) ───────────────────── */
.page-banner {
  position: relative; background: var(--green-dark); color: var(--white); overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.page-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200,146,42,0.18), transparent 55%); pointer-events: none;
}
.page-banner.has-photo { background-size: cover; background-position: center; }
.page-banner.has-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13,74,40,0.92), rgba(13,74,40,0.62)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner .crumb { color: var(--gold-light); margin-bottom: 1rem; }
.page-banner h1 { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; line-height: 1.05; }
.page-banner p { margin-top: 1rem; font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(255,255,255,0.78); max-width: 52ch; }

/* ── HERO (home) ─────────────────────────────────────────── */
#inicio { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 11vw, 9rem) clamp(3.5rem, 7vw, 6rem); background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-since { display: inline-block; padding: 0.3rem 0.9rem; border: 1px solid var(--gold); border-radius: 2rem; color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-tagline { font-size: clamp(0.75rem,1.2vw,0.85rem); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.hero-headline { font-size: clamp(2.3rem, 5vw, 4rem); color: var(--green-dark); margin-bottom: 1.5rem; }
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: clamp(1rem,1.7vw,1.12rem); color: var(--ink-muted); line-height: 1.75; max-width: 44ch; margin-bottom: 2.25rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero visual: real photo + floating stat (bug-fixed stacking) */
.hero-visual { position: relative; z-index: 1; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow-card); background: var(--cream-deep);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,74,40,0.45), transparent 45%); }
.hero-photo-caption {
  position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 2;
  color: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-float-card {
  position: absolute; top: -1.4rem; left: -1.6rem; z-index: 5;       /* fix: sits above photo */
  background: var(--white); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-float); border-left: 3px solid var(--gold); min-width: 165px;
}
.hero-float-card .float-number { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.hero-float-card .float-label  { font-size: 0.72rem; color: var(--ink-muted); font-weight: 600; letter-spacing: 0.05em; margin-top: 0.25rem; }
.hero-ornament { position: absolute; top: -4rem; right: -8rem; width: min(50vw,460px); height: min(50vw,460px); border-radius: 50%; background: radial-gradient(circle at 60% 40%, rgba(200,146,42,0.10), rgba(26,107,60,0.05) 50%, transparent 70%); pointer-events: none; }

/* ── Figures ─────────────────────────────────────────────── */
.figures-header { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem,5vw,4rem); }
.figures-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); overflow: hidden; }
.figure-item { padding: clamp(1.5rem,3vw,2.25rem); border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); transition: background .2s; }
.figure-item:hover { background: rgba(200,146,42,0.08); }
.figure-value { font-family: var(--ff-display); font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 700; color: var(--gold-light); line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.55rem; }
.figure-label { font-size: 0.85rem; color: rgba(255,255,255,0.72); line-height: 1.45; }

/* ── Image band (full-width photo strip) ─────────────────── */
.image-band { position: relative; min-height: clamp(260px, 38vw, 460px); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.image-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,74,40,0.78), rgba(13,74,40,0.15) 60%, transparent); }
.image-band .container { position: relative; z-index: 1; padding-block: 2.5rem; }
.image-band .band-quote { font-family: var(--ff-display); font-style: italic; font-weight: 300; color: var(--white); font-size: clamp(1.3rem, 3vw, 2.1rem); max-width: 22ch; line-height: 1.3; }
.image-band .band-credit { margin-top: 0.6rem; font-size: 0.7rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }

/* ── Sectors (preview grid on home) ──────────────────────── */
.sectors-layout { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2.5rem,6vw,6rem); align-items: start; }
.sectors-intro { position: sticky; top: 6rem; }
.sectors-deco { display: block; width: 3rem; height: 3px; background: var(--gold); margin-top: 2rem; border-radius: 2px; }
.sectors-grid { display: grid; grid-template-columns: 1fr 1fr; }
.sector-item { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--hairline); transition: background .15s; }
.sector-item:nth-child(odd) { border-right: 1px solid var(--hairline); }
.sector-item:hover { background: var(--gold-pale); }
.sector-icon { font-size: 1.4rem; flex-shrink: 0; width: 2.2rem; text-align: center; }
.sector-name { font-size: 0.9rem; color: var(--ink); line-height: 1.3; }

/* ── Sector detail cards (empresa page) ──────────────────── */
.sector-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.sector-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(13,74,40,0.12); }
.sector-card-figure { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); overflow: hidden; }
.sector-card-figure img { width: 100%; height: 100%; object-fit: cover; }
.sector-card-emoji { position: absolute; right: 0.75rem; bottom: 0.5rem; font-size: 2.4rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.sector-card-body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; }
.sector-card-num { font-family: var(--ff-display); font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.sector-card h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; color: var(--green-dark); margin: 0.3rem 0 1rem; line-height: 1.2; }
.sector-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sector-card li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; }
.sector-card li::before { content: ''; position: absolute; left: 0; top: 0.6rem; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ── Countries itinerary (home/paises) ───────────────────── */
.countries-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,7rem); align-items: start; }
.countries-intro { position: sticky; top: 6rem; padding-top: 1rem; }
.countries-map-hint { background: linear-gradient(135deg, var(--green-dark), var(--green)); border-radius: var(--radius-md); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 2rem; }
.countries-map-hint .map-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.countries-map-hint .map-text { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 300; font-style: italic; color: var(--white); line-height: 1.4; }
.itinerary { position: relative; padding-left: 1.5rem; }
.itinerary::before { content: ''; position: absolute; left: 0.65rem; top: 1.4rem; bottom: 1.4rem; width: 1px; background: linear-gradient(to bottom, var(--gold), var(--green)); }
.itinerary-item { position: relative; display: flex; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem 1rem 1.5rem; margin-left: 0.4rem; border-radius: var(--radius-sm); transition: background .15s; }
.itinerary-item:hover { background: rgba(200,146,42,0.07); }
.itinerary-node { position: absolute; left: -1.85rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(200,146,42,0.12); }
.itinerary-item:first-child .itinerary-node { background: var(--gold); }
.itinerary-item:last-child .itinerary-node { background: var(--green); border-color: var(--green); }
.itinerary-flag { font-size: 1.75rem; }
.itinerary-name { font-family: var(--ff-display); font-size: 1.35rem; color: var(--green-dark); }
.itinerary-counter { margin-left: auto; font-family: var(--ff-display); font-size: 0.72rem; font-weight: 600; color: var(--ink-muted); opacity: 0.5; }

/* ── Country chips (home corridor teaser) ────────────────── */
.country-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0; }
.country-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); border: 1px solid var(--hairline); border-radius: 2rem; padding: 0.45rem 0.95rem; font-weight: 600; font-size: 0.9rem; color: var(--green-dark); transition: background .15s, transform .15s; }
.country-chip .flag { font-size: 1.15rem; }
.country-chip:hover { background: var(--gold-pale); transform: translateY(-1px); }

/* ── Map ─────────────────────────────────────────────────── */
#map { width: 100%; height: clamp(340px, 52vh, 560px); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); z-index: 0; }
.leaflet-popup-content { font-family: var(--ff-body); }

/* ── Philosophy + founder ────────────────────────────────── */
.philosophy-layout { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(3rem,6vw,6rem); align-items: start; }
.philosophy-ornament { font-family: var(--ff-display); font-size: 5rem; font-weight: 700; color: var(--gold); opacity: 0.15; line-height: 1; margin-bottom: -1rem; }
.philosophy-text { font-size: clamp(1rem,1.6vw,1.1rem); color: var(--ink); line-height: 1.85; font-style: italic; font-weight: 300; border-left: 3px solid var(--gold); padding-left: 1.75rem; }
.founder-card { background: var(--green-dark); color: var(--white); border-radius: var(--radius-md); padding: clamp(1.75rem,4vw,2.5rem); position: sticky; top: 6rem; text-align: center; }
.founder-photo { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; border: 3px solid rgba(255,255,255,0.18); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.founder-name { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 600; color: var(--white); margin-bottom: 0.35rem; }
.founder-role { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.25rem; }
.founder-divider { width: 2.5rem; height: 1px; background: rgba(255,255,255,0.2); margin: 0 auto 1.25rem; }
.founder-note { font-size: 0.88rem; color: rgba(255,255,255,0.66); line-height: 1.65; font-style: italic; }

/* ── Timeline (about) ────────────────────────────────────── */
.timeline { position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.4rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: linear-gradient(var(--gold), var(--green)); }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -1.72rem; top: 0.35rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-pale); }
.timeline-year { font-family: var(--ff-display); font-weight: 700; font-size: 1.35rem; color: var(--green-dark); }
.timeline-text { color: var(--ink-muted); font-size: 0.95rem; }

/* ── Cards: project / finca ──────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.media-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.media-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(13,74,40,0.12); }
.media-card-figure { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-deep); }
.media-card-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.media-card:hover .media-card-figure img { transform: scale(1.05); }
.media-card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.media-card-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.media-card h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; color: var(--green-dark); margin: 0.35rem 0 0.6rem; line-height: 1.2; }
.media-card p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.6; }
.media-card.is-flagship { grid-column: 1 / -1; }
.media-card.is-flagship { flex-direction: row; }
.media-card.is-flagship .media-card-figure { flex: 1 1 45%; aspect-ratio: auto; }
.media-card.is-flagship .media-card-body { flex: 1 1 55%; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem,4vw,3rem); }
.media-card.is-flagship h3 { font-size: clamp(1.5rem,3vw,2.2rem); }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0.75rem; }
.gallery-tile { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; background: var(--cream-deep); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 0.9rem 0.7rem; color: var(--white); font-size: 0.82rem; font-weight: 600; background: linear-gradient(to top, rgba(13,74,40,0.85), transparent); opacity: 0; transition: opacity .2s; }
.gallery-tile:hover figcaption { opacity: 1; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(13,20,12,0.92); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: 0 12px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: var(--white); font-size: 2.5rem; line-height: 1; cursor: pointer; }

/* ── Legal table ─────────────────────────────────────────── */
.legal-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.legal-table th, .legal-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--hairline); font-size: 0.92rem; vertical-align: top; }
.legal-table th { width: 38%; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.legal-table td { color: var(--ink); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-item-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.contact-item-value { font-size: 1rem; color: var(--ink); }
.contact-item-value a { color: var(--green); }
.contact-item-value a:hover { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-cta { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; background: var(--green-dark); color: var(--white); font-weight: 600; font-size: 1.05rem; padding: 1rem 1.6rem; border-radius: var(--radius-sm); transition: background .2s, transform .15s; }
.contact-cta:hover { background: var(--green); transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────── */
#site-footer { background: var(--ink); color: rgba(255,255,255,0.55); padding-block: 3rem 2rem; margin-top: 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-brand-name { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; color: var(--white); }
.footer-brand-slogan { font-size: 0.8rem; color: rgba(255,255,255,0.45); font-style: italic; font-weight: 300; max-width: 40ch; }
.footer-legal { font-size: 0.72rem; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--gold-light); }
.footer-base { padding-top: 1.5rem; font-size: 0.76rem; color: rgba(255,255,255,0.4); }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; } .reveal-delay-4 { transition-delay: .4s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .figures-header, .sectors-layout, .countries-layout, .philosophy-layout, .contact-layout { grid-template-columns: 1fr; }
  .sectors-intro, .countries-intro, .founder-card { position: static; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .hero-photo { aspect-ratio: 16/10; }
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-item:nth-child(odd) { border-right: none; }
  .media-card.is-flagship { flex-direction: column; }
  .media-card.is-flagship .media-card-figure { aspect-ratio: 16/9; }
}
@media (max-width: 1024px) {
  #site-nav { display: none; }
  #site-nav.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: rgba(247,243,234,0.98); backdrop-filter: blur(12px); padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--hairline); gap: 0.2rem; }
  #site-nav.open a { width: 100%; padding: 0.7rem 0.4rem; font-size: 0.95rem; }
  #site-nav.open a.is-active::before { top: 0.7rem; left: 0; right: auto; width: 3px; height: 1.1rem; }
  .nav-toggle-btn { display: flex; }
}
@media (max-width: 720px) {
  .figures-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .figures-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .lang-btn .lang-code { display: none; }
}

/* ── Accessibility ───────────────────────────────────────── */
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .media-card-figure img, .gallery-tile img { transition: none; }
}
