/* ── GenBridges shared design system ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream:       #FAFAF7;
  --surface:     #F2F0EC;
  --white:       #FFFFFF;
  --sage:        #7A9E87;
  --sage-light:  rgba(122,158,135,0.12);
  --blush:       #D4A5A5;
  --blush-light: rgba(212,165,165,0.13);
  --gold:        #C9A96E;
  --gold-light:  rgba(201,169,110,0.11);
  --text:        #2C2C2C;
  --muted:       #6B6B6B;
  --border:      rgba(122,158,135,0.18);
  --footer-bg:   #2c4034;
  --nav-h:       68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

/* ── typography ─── */
.fd { font-family: 'Playfair Display', Georgia, serif; }
.h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px,5.5vw,68px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px,3.2vw,40px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
}
.h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text);
}

/* ── nav ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,247,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; background: var(--sage);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 8px 13px; border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover, .nav-link.active { color: var(--sage); background: var(--sage-light); }
.nav-link.active { font-weight: 600; }
.nav-link:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* ── nav dropdown ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500;
  color: var(--muted); padding: 8px 13px; border-radius: 8px;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-dropdown-btn:hover, .nav-dropdown.open .nav-dropdown-btn { color: var(--sage); background: var(--sage-light); }
.nav-dropdown-btn svg { transition: transform .2s ease; flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-btn svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); background: #fff; border-radius: 16px;
  border: 1px solid var(--border); padding: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.10);
  min-width: 240px; z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block !important; }
.nav-dropdown-item {
  display: block; width: 100%;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-dropdown-item:hover { background: var(--sage-light); color: var(--sage); }
.nav-dropdown-item.active { color: var(--sage); font-weight: 600; }

/* ── buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; border: none;
  cursor: pointer; text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.btn:active { transform: scale(0.98) !important; }
.btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.btn-sage   { background: var(--sage); color: #fff; box-shadow: 0 2px 8px rgba(122,158,135,0.28),0 8px 24px rgba(122,158,135,0.14); }
.btn-sage:hover   { transform: translateY(-2px) scale(1.01); box-shadow: 0 4px 14px rgba(122,158,135,0.38),0 16px 40px rgba(122,158,135,0.18); }
.btn-ghost  { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover  { border-color: var(--sage); background: var(--sage-light); transform: translateY(-1px); }
.btn-blush  { background: var(--blush); color: #fff; box-shadow: 0 2px 8px rgba(212,165,165,0.3); }
.btn-blush:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,165,165,0.38); }
.btn-gold   { background: var(--gold);  color: #fff; box-shadow: 0 2px 8px rgba(201,169,110,0.3); }
.btn-gold:hover   { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,169,110,0.38); }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 10px; }

/* ── cards ─── */
.card {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(122,158,135,0.06), 0 4px 14px rgba(122,158,135,0.08);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(122,158,135,0.07),0 12px 32px rgba(122,158,135,0.13),0 24px 56px rgba(122,158,135,0.07);
}

/* ── micro-components ─── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 11px; border-radius: 999px;
}
.divider {
  width: 44px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sage), var(--blush));
  margin-top: 16px;
}
.section-label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
}
.read-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--sage); text-decoration: none;
  transition: gap 0.2s ease;
}
.read-more:hover { gap: 9px; }
.read-more:focus-visible { outline: 2px solid var(--sage); border-radius: 4px; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 48px;
}
.icon-chip {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── page header (inner pages) ─── */
.page-hero {
  padding: 120px 28px 72px;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%,  rgba(122,158,135,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 100%, rgba(212,165,165,0.12) 0%, transparent 60%),
    var(--cream);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-light); border: 1px solid rgba(122,158,135,0.26);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 24px;
}
.page-tag-dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
.page-tag-text { font-size: 13px; font-weight: 500; color: var(--sage); }

/* ── section wrapper ─── */
.section { padding: 80px 28px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background:
  radial-gradient(ellipse 70% 50% at 90% 50%, rgba(122,158,135,0.07) 0%, transparent 70%),
  var(--surface);
}

/* ── content grid ─── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px,1fr)); gap: 24px; }

/* ── filter pills ─── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-pill {
  font-size: 13.5px; font-weight: 500; padding: 8px 18px;
  border-radius: 999px; border: 1.5px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all 0.18s ease;
}
.filter-pill:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-light); }
.filter-pill.active { background: var(--sage); color: #fff; border-color: var(--sage); }
.filter-pill:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* ── animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; } .d4 { animation-delay: 0.5s; }

/* ── footer ─── */
footer { background: var(--footer-bg); padding: 64px 28px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 52px;
}
.footer-col-title {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px;
  transition: color 0.18s ease;
}
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── email input ─── */
.email-input {
  flex: 1; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 18px;
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.email-input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,158,135,0.15); }
.email-input::placeholder { color: var(--muted); }

/* ── Accessibility: font size ─── */
[data-fontsize="large"]  body, [data-fontsize="large"]  { font-size: 19px; }
[data-fontsize="xlarge"] body, [data-fontsize="xlarge"] { font-size: 22px; }
[data-fontsize="large"]  .h1 { font-size: clamp(46px,6vw,76px); }
[data-fontsize="xlarge"] .h1 { font-size: clamp(50px,6.5vw,84px); }
[data-fontsize="large"]  .h2 { font-size: clamp(30px,3.6vw,44px); }
[data-fontsize="xlarge"] .h2 { font-size: clamp(34px,4vw,50px); }
[data-fontsize="large"]  .h3 { font-size: 22px; }
[data-fontsize="xlarge"] .h3 { font-size: 25px; }

/* ── Accessibility: high contrast ─── */
[data-contrast="high"] {
  --cream:       #FFFFFF;
  --surface:     #F0F0F0;
  --text:        #000000;
  --muted:       #333333;
  --border:      rgba(0,0,0,0.28);
  --sage:        #1A5E35;
  --sage-light:  rgba(26,94,53,0.1);
  --blush:       #A83232;
  --gold:        #8A6200;
}
[data-contrast="high"] body { background: #fff; }
[data-contrast="high"] .card { border-color: rgba(0,0,0,0.22); }
[data-contrast="high"] .nav-link { color: #000; }
[data-contrast="high"] .nav-link.active,
[data-contrast="high"] .nav-link:hover  { color: #1A5E35; }
[data-contrast="high"] nav { background: rgba(255,255,255,0.98); }

/* ── Accessibility: reduced motion ─── */
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation-duration:   0.01ms !important;
  animation-delay:      0ms !important;
  transition-duration:  0.01ms !important;
  scroll-behavior:      auto !important;
}

/* ── responsive ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .section { padding: 60px 20px; }
  .page-hero { padding: 100px 20px 56px; }
}
