/* ── Self-hosted fonts ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/dm-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:           #f4fdf0;
  --bg-soft:      #EDFAE5;
  --bg-alt:       #DBECCD;
  --bg-white:     #ffffff;
  --bg-card:      #F5FCF0;
  --primary:      #3d7060;
  --primary-dark: #2B5544;
  --darker:       #1a3730;
  --text:         #2D5544;
  --text-muted:   #4a6d5e;
  --border:       #c5dbb5;
  --border-soft:  #dff0d3;
  --max-width: 1100px;
  --gap: 2rem;

  --gold:        #B5823A;
  --gold-light:  #CEAB6E;
  --gold-muted:  rgba(181, 130, 58, 0.09);
  --gold-border: rgba(181, 130, 58, 0.24);

  --shadow-sm:   0 1px 3px rgba(26, 55, 48, 0.06);
  --shadow-card: 0 4px 20px rgba(26, 55, 48, 0.08), 0 1px 4px rgba(26, 55, 48, 0.04);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-btn: 9999px;
  --rtl: 48px; --rtr: 8px; --rbl: 8px; --rbr: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--text); }
h1 { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 500; }
h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; }
h4 { font-family: var(--font-sans); font-weight: 600; }
p  { color: var(--text-muted); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

section       { padding: 5rem 0; }
section.alt   { background: var(--bg-alt); }
section.white { background: var(--bg-white); }
section.soft  { background: var(--bg-soft); }
section.dark  { background: var(--primary-dark); }
section.dark h2, section.dark h3, section.dark p { color: white; }

/* ── Grids ── */
.grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2-alt { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }

/* ── Cards (coins asymétriques) ── */
.card {
  background: var(--bg-alt);
  border-top-left-radius:    var(--rtl);
  border-top-right-radius:   var(--rtr);
  border-bottom-left-radius: var(--rbl);
  border-bottom-right-radius:var(--rbr);
  padding: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card.white { background: var(--bg-card); border: 1px solid var(--border); }
.card h3 { margin-bottom: 0.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, color 0.2s;
  border: none;
  line-height: 1;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }

.btn-dark { background: var(--darker); color: #e8f5e2; }
.btn-dark:hover { background: var(--primary-dark); color: #e8f5e2; }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--bg); }

/* ── Section header ── */
.section-header { margin-bottom: 3rem; }
.section-header p { margin-top: 0.75rem; font-size: 1.05rem; max-width: 640px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0.75rem auto 0; }

/* ── Eyebrow pill ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-alt);
  border: 2px solid var(--border);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.25rem;
}

/* ── Iris asymmetric shape utility ── */
.iris-shape {
  border-top-left-radius:     var(--rtl);
  border-top-right-radius:    var(--rtr);
  border-bottom-left-radius:  var(--rbl);
  border-bottom-right-radius: var(--rbr);
}

/* ── Serif intro paragraph ── */
.intro-para {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
}

/* ── Gold decorative rule ── */
.gold-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* ── Entrance animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.animate-in[data-delay="1"] { animation-delay: 0.10s; }
.animate-in[data-delay="2"] { animation-delay: 0.22s; }
.animate-in[data-delay="3"] { animation-delay: 0.36s; }
.animate-in[data-delay="4"] { animation-delay: 0.50s; }
.animate-in[data-delay="5"] { animation-delay: 0.65s; }
@media (prefers-reduced-motion: reduce) {
  .animate-in { animation: none; opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}
a:focus-visible, button:focus-visible { outline-color: var(--primary); }

/* ── Image styles ── */
.img-pill-right {
  border-top-left-radius: 0;
  border-top-right-radius: 9999px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 9999px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.img-cover { object-fit: cover; width: 100%; height: 100%; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-2-alt { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}

/* ── Language transition loader ─────────────────────────────────────── */
#iris-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f4fdf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#iris-loader.show { opacity: 1; pointer-events: auto; }
#iris-loader img {
  width: 60px;
  height: 60px;
  opacity: 0.85;
}
#iris-loader p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #6a9480;
}
