/* ==========================================================================
   South Pole — site vitrine
   Direction : corporate / industriel — sobre, structuré, peu d'ornements.
   Une seule famille (Inter, auto-hébergée), palette dérivée du logo
   (cuivre du toit, vert du mot FRIGO) sur fond neutre froid.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}

:root {
  /* Palette (thème clair) */
  --bg:            #F5F6F7;
  --surface:       #FFFFFF;
  --surface-2:     #ECEEF0;
  --line:          #DCE0E4;
  --ink:           #1B2024;
  --ink-soft:      #5B6570;
  --copper:        #A15A2E;
  --copper-dark:   #7C4321;
  --copper-tint:   #F1E3D6;
  --green:         #2F5233;
  --green-dark:    #1F3A23;
  --green-tint:    #E2E9E2;
  --ok:            #2F5233;
  --danger:        #A3311B;

  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .06), 0 1px 1px rgba(20, 24, 28, .04);
  --shadow-md: 0 8px 20px rgba(20, 24, 28, .08), 0 2px 6px rgba(20, 24, 28, .05);
  --shadow-lg: 0 20px 48px rgba(20, 24, 28, .16), 0 6px 14px rgba(20, 24, 28, .08);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --font-display: 'Barlow Condensed', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --space-section: clamp(56px, 7vw, 96px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #14171A;
    --surface:     #1C2024;
    --surface-2:   #23282D;
    --line:        #333A40;
    --ink:         #EDEFF1;
    --ink-soft:    #A8B0B8;
    --copper:      #DC8C58;
    --copper-dark: #B8703E;
    --copper-tint: #2A2320;
    --green:       #7EAF88;
    --green-dark:  #5C8F66;
    --green-tint:  #1D2621;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:          #14171A;
  --surface:     #1C2024;
  --surface-2:   #23282D;
  --line:        #333A40;
  --ink:         #EDEFF1;
  --ink-soft:    #A8B0B8;
  --copper:      #DC8C58;
  --copper-dark: #B8703E;
  --copper-tint: #2A2320;
  --green:       #7EAF88;
  --green-dark:  #5C8F66;
  --green-tint:  #1D2621;
  color-scheme: dark;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.16;
  text-wrap: balance;
  color: var(--ink);
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.002em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.005em;
}
h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
p  { color: var(--ink-soft); max-width: 62ch; text-align: justify; text-justify: inter-word; hyphens: auto; }
p.lead { font-size: 1.1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--copper); outline-offset: 3px; border-radius: 3px; }

/* ---- eyebrow / tags ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--copper-dark);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--copper); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .92rem; padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: #FFF7F1; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--copper-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-dark); }
.btn-lg { padding: 15px 30px; font-size: .98rem; }

/* ---- top bar ---- */
.topbar { background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, transparent); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar-contacts { display: flex; align-items: center; gap: 22px; }
.topbar-contacts a, .topbar-contacts span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar-contacts a:hover { color: #fff; }
.topbar-contacts svg { width: 14px; height: 14px; opacity: .8; flex: none; }
.topbar-note { color: color-mix(in srgb, var(--bg) 55%, transparent); letter-spacing: .02em; }
@media (max-width: 700px) { .topbar-note { display: none; } }
@media (max-width: 520px) { .topbar-contacts span.hide-xs { display: none; } }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; color: var(--ink); letter-spacing: 0.005em; }
.brand-text span { font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; color: var(--copper-dark); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none;
  font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: var(--copper-dark); box-shadow: inset 0 -2px 0 var(--copper); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav { position: fixed; inset: 78px 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 18px 24px; gap: 2px; border-top: 1px solid var(--line); transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity .18s ease, transform .18s ease; overflow-y: auto; }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.02rem; }
  .nav a.is-active { box-shadow: none; background: var(--copper-tint); }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 10px; margin-left: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---- hero ---- */
.hero { position: relative; }
.hero .container { display: grid; grid-template-columns: 1fr .82fr; align-items: stretch; min-height: clamp(420px, 52vw, 560px); }
.hero-content { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(40px, 6vw, 72px); padding-right: 48px; }
.hero h1 { margin-top: 16px; }
.hero .lead { margin-top: 18px; font-size: 1.12rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 40px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--ink); letter-spacing: 0; line-height: 1; }
.hero-stats div span { font-size: .78rem; color: var(--ink-soft); }

.hero-panel { position: relative; overflow: hidden; background: var(--green-dark); }
.hero-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, color-mix(in srgb, var(--green-dark) 78%, transparent), color-mix(in srgb, var(--green-dark) 22%, transparent) 60%, color-mix(in srgb, var(--ink) 45%, transparent));
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding-right: 24px; }
  .hero-panel { min-height: 260px; }
}
@media (max-width: 480px) {
  .hero-stats { padding-top: 20px; }
  .hero-stats div { padding-right: 18px; margin-right: 18px; }
}

/* ---- section shell ---- */
.section { padding-block: var(--space-section); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 12px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---- services grid ---- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 30px 26px 26px; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
  display: flex; flex-direction: column; align-items: stretch; height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--copper) 35%, var(--line)); transform: translateY(-2px); }
.card.tone-green:hover { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.card .icon {
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--copper-dark); margin-bottom: 20px;
}
.card .icon svg { width: 30px; height: 30px; stroke-width: 1.4; }
.card.tone-green .icon { color: var(--green-dark); }
.card h3 {
  margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.card p { font-size: .92rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-weight: 700; font-size: .86rem; color: var(--copper-dark); text-decoration: none; white-space: nowrap; }
.card a.card-link svg { flex: none; }
.card a.card-link:hover { gap: 9px; }
.card a.card-link svg { transition: transform .15s ease; }

/* ---- process / steps ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.step { position: relative; padding: 22px 24px 0 0; border-top: 1px solid var(--line); }
.step:first-child { padding-left: 0; }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-icon {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  color: var(--copper-dark); order: 2;
}
.step-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }
.step-top::after {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--copper); letter-spacing: 0;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .88rem; }

/* ---- band / CTA ---- */
.band {
  position: relative; overflow: hidden;
  background: var(--green-dark);
  border-top: 3px solid var(--copper);
  color: #F1F4F1; border-radius: var(--radius-sm); padding: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(-45deg, color-mix(in srgb, #fff 6%, transparent) 0 1px, transparent 1px 14px);
  mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
}
.band > * { position: relative; z-index: 1; }
.band h2, .band p { color: #F1F4F1; }
.band p { color: color-mix(in srgb, #F1F4F1 82%, transparent); }
.band .btn-primary { background: #F1F4F1; color: var(--green-dark); border-radius: 3px; }
.band .btn-primary:hover { background: #fff; }

/* ---- about split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.figure-frame {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-2);
  padding: 40px; display: grid; place-items: center; aspect-ratio: 4/3;
}
.figure-frame img { width: 58%; }
.figure-frame.figure-art { padding: 0; overflow: hidden; box-shadow: var(--shadow-md); border-color: transparent; }
.figure-frame.figure-art img { width: 100%; height: 100%; object-fit: cover; }

.values { display: grid; gap: 16px; margin-top: 8px; }
.value-row { display: flex; gap: 14px; align-items: flex-start; }
.value-row .dot { width: 8px; height: 8px; margin-top: 8px; flex: none; background: var(--copper); }
.value-row h3 { font-size: 1rem; margin-bottom: 4px; }
.value-row p { font-size: .9rem; }

/* ---- stats strip ---- */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
@media (max-width: 700px) {
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}
@media (max-width: 460px) {
  .stats-strip .container { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
}
.stat strong { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--ink); letter-spacing: 0; line-height: 1; }
.stat span { font-size: .82rem; color: var(--ink-soft); }

/* ---- counter widget cards ---- */
.counter-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.counter-card .icon {
  width: 34px; height: 34px; margin: 0 auto 18px;
  color: var(--copper-dark);
}
.counter-card .icon svg { width: 34px; height: 34px; stroke-width: 1.3; }
.counter-card span { display: block; margin-top: 8px; font-size: 1rem; font-weight: 700; color: var(--ink); }

.counter-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: none; padding-top: 0; }
.info-row .icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--copper-tint); color: var(--copper-dark); display: grid; place-items: center; flex: none; }
.info-row .icon svg { width: 19px; height: 19px; }
.info-row strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 3px; }
.info-row a { text-decoration: none; font-weight: 600; }
.info-row a:hover { color: var(--copper-dark); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px; }
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
label { font-size: .82rem; font-weight: 700; color: var(--ink); }
label .opt { font-weight: 500; color: var(--ink-soft); }
input, textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .95rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 16%, transparent); outline: none; }
textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; font-weight: 600; margin-bottom: 20px; border: 1.5px solid transparent; }
.alert-ok { background: var(--green-tint); color: var(--green-dark); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.alert-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }

/* ---- localisation (carte) ---- */
.map-card {
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface-2); position: relative;
}
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.15) contrast(1.02); }
.map-card-sm iframe { height: 200px; }
.map-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface);
}
.map-bar .addr { display: flex; align-items: center; gap: 12px; }
.map-bar .addr .icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--copper-tint); color: var(--copper-dark); display: grid; place-items: center; flex: none; }
.map-bar .addr .icon svg { width: 19px; height: 19px; }
.map-bar .addr strong { display: block; font-size: .92rem; }
.map-bar .addr span { font-size: .84rem; color: var(--ink-soft); }

/* ---- page hero (sous-pages) ---- */
.page-hero { padding-block: 48px 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .eyebrow { margin-bottom: 12px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--copper-dark); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 85%, transparent); padding-block: 56px 24px; margin-top: 0; }
.site-footer a { text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo-chip { background: #fff; border-radius: var(--radius-sm); padding: 5px 8px; display: inline-flex; }
.footer-brand img { height: 26px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.24rem; font-weight: 700; color: #fff; }
.site-footer p { color: color-mix(in srgb, var(--bg) 65%, transparent); font-size: .88rem; }
.site-footer h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: color-mix(in srgb, var(--bg) 70%, transparent); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: color-mix(in srgb, var(--bg) 85%, transparent); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: color-mix(in srgb, var(--bg) 55%, transparent); }

/* ---- galerie ---- */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.gallery-filter {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-weight: 700; font-size: .82rem; padding: 9px 16px; border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.gallery-filter:hover { border-color: var(--copper); color: var(--copper-dark); }
.gallery-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { display: block; width: 100%; border: none; padding: 0; background: none; text-align: left; cursor: pointer; }
.gallery-figure {
  display: block;
  position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/3; background: var(--surface-2);
  transition: box-shadow .18s ease;
}
.gallery-item:hover .gallery-figure { box-shadow: var(--shadow-md); }
.gallery-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-badge {
  position: absolute; top: 10px; right: 10px; background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: 5px 9px; border-radius: var(--radius-sm);
}
.gallery-zoom {
  position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 25%, transparent);
  opacity: 0; transition: opacity .18s ease;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-zoom svg { width: 30px; height: 30px; color: #fff; }
.gallery-caption { display: block; padding: 12px 2px 0; }
.gallery-caption .eyebrow { font-size: .66rem; }
.gallery-caption h3 { font-size: .94rem; margin-top: 5px; font-weight: 700; color: var(--ink); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: color-mix(in srgb, #08090A 88%, transparent); padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; }
.lightbox-frame { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.lightbox-frame img { width: 100%; max-height: 72vh; object-fit: contain; display: block; background: var(--surface-2); }
.lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px 0; color: #EDEFF1; }
.lightbox-caption h3 { color: #fff; font-size: 1.05rem; }
.lightbox-caption p { color: color-mix(in srgb, #EDEFF1 70%, transparent); margin: 0; font-size: .84rem; }
.lightbox-controls { position: absolute; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; padding: 10px; pointer-events: none; }
.lightbox-btn {
  pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, #08090A 55%, transparent); color: #fff; display: grid; place-items: center;
}
.lightbox-btn svg { width: 18px; height: 18px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; left: 0; right: 0; padding: 0 10px; }
.lightbox-prev, .lightbox-next {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, #08090A 55%, transparent); color: #fff; display: grid; place-items: center;
}
.lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

/* ---- standalone icon boxes (outside .card) + small utilities ---- */
.icon-box {
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--copper-dark); margin-bottom: 18px;
}
.icon-box svg { width: 30px; height: 30px; stroke-width: 1.4; }
.icon-box.tone-green { color: var(--green-dark); }
.icon-box-lg { width: 52px; height: 52px; }
.icon-box-lg svg { width: 52px; height: 52px; }
.order-2 { order: 2; }

/* ---- misc utils ---- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
