/* Chigwell Round Table
   Brand: Round Table International brand manual 2026 (Nunito Sans, RTI palette) */

:root {
  --orange: #efa841;
  --yellow: #f7c546;
  --blue: #accaeb;
  --ink: #0f0f0f;
  --char: #1e1e1e;
  --char-2: #262626;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f2ee;
  --muted: #b5b1a9;
  --paper: #f7f5f0;
  --paper-ink: #1b1b1b;
  --paper-muted: #5c5850;
  --bar: linear-gradient(90deg, var(--yellow), var(--orange) 35%, var(--blue));
  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 15, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup img { width: 40px; height: 40px; }
.lockup-text { display: flex; flex-direction: column; line-height: 1; }
.lockup-rt { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.lockup-rt b { font-weight: 800; color: var(--text); }
.lockup-rt span { font-weight: 300; }
.lockup-name { font-size: 22px; font-weight: 900; letter-spacing: 0.01em; margin-top: 3px; }

.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--orange); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 44px; height: 4px; border-radius: 2px; background: var(--bar); }

h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 900; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 6.4vw, 78px); }
h2 { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: 22px; font-weight: 800; letter-spacing: 0; }
.hl { color: var(--orange); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  padding: 14px 22px; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--yellow); }
.btn-ghost { border-color: rgba(255,255,255,0.25); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%;
  background: radial-gradient(closest-side, rgba(239,168,65,0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero .lede { margin: 0 0 34px; }

.hero-mark { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; }
.hero-mark .orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(172, 202, 235, 0.35);
  animation: spin 80s linear infinite;
}
.hero-mark .orbit::before, .hero-mark .orbit::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); top: 50%; left: -6px; margin-top: -6px;
  box-shadow: 0 0 18px rgba(247,197,70,0.8);
}
.hero-mark .orbit::after { background: var(--blue); left: auto; right: -6px; box-shadow: 0 0 18px rgba(172,202,235,0.8); }
.hero-mark .glow { position: absolute; inset: 14%; border-radius: 50%; box-shadow: 0 30px 120px rgba(239,168,65,0.35); }
.hero-mark img { position: absolute; inset: 12%; width: 76%; height: 76%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(239,168,65,0.28);
  box-shadow: 0 0 0 48px rgba(239,168,65,0.035), 0 0 0 96px rgba(172,202,235,0.03), 0 0 0 144px rgba(255,255,255,0.02);
  pointer-events: none;
}
.page-hero h1 { margin: 20px 0 18px; max-width: 14em; }
.page-hero .lede { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 16px; max-width: 16em; }
.section-head p { margin: 0; color: var(--muted); max-width: 26em; }

.light { background: var(--paper); color: var(--paper-ink); }
.light .section-head p, .light .muted { color: var(--paper-muted); }
.light .eyebrow { color: #b36e10; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid #e8e4dc;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.pillar .num { font-size: 56px; font-weight: 200; line-height: 1; color: var(--orange); margin-bottom: 26px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--paper-muted); }
.pillar::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--bar); opacity: 0; transition: opacity .25s; }
.pillar:hover::after { opacity: 1; }

/* Quote */
.quote { position: relative; overflow: hidden; background: var(--char); }
.quote .wrap { display: grid; grid-template-columns: 4px 1fr; gap: clamp(24px, 4vw, 48px); }
.quote .rule { background: var(--bar); border-radius: 2px; background: linear-gradient(180deg, var(--yellow), var(--orange) 40%, var(--blue)); }
.quote blockquote { margin: 0; font-size: clamp(26px, 3.6vw, 44px); font-weight: 300; line-height: 1.25; color: var(--orange); }
.quote figcaption { margin-top: 22px; color: var(--muted); font-size: 15px; letter-spacing: 0.04em; }
.quote figcaption b { color: var(--text); }

/* Split / prose */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split h2 { margin-top: 16px; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.light .prose { color: #3a3732; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 6vw, 64px); }
.fact { background: var(--ink); padding: 28px 26px; }
.fact .big { font-size: clamp(36px, 4vw, 48px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.fact .big .hl { color: var(--orange); }
.fact p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.maxim {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-size: clamp(22px, 3.4vw, 40px); font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase;
}
.maxim img { width: clamp(44px, 5vw, 60px); height: auto; }

/* Cards (contact) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 30px; border-radius: var(--radius); text-decoration: none;
  background: var(--char); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, background .25s;
  min-height: 220px;
}
.card:hover { transform: translateY(-4px); border-color: rgba(239,168,65,0.6); background: var(--char-2); }
.card .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.card .icon svg { width: 28px; height: 28px; }
.card .icon.fb { background: #1877f2; color: #fff; }
.card .icon.ig { background: radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 75%, #4f5bd5 100%); color: #fff; }
.card .icon.rt { background: #fff; padding: 6px; }
.card .icon.rt img { width: 100%; height: 100%; }
.card h3 { font-size: 24px; }
.card p { margin: 0; color: var(--muted); }
.card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--orange); }
.card .go svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .go svg { transform: translate(3px, -3px); }

.light .card { background: #fff; border-color: #e8e4dc; color: var(--paper-ink); }
.light .card:hover { background: #fff; border-color: var(--orange); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.light .card p { color: var(--paper-muted); }
.light .card .go { color: #b36e10; }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(120deg, #f7c546 0%, #efa841 45%, #accaeb 130%); color: var(--ink); }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; border-radius: 50%; border: 2px solid rgba(15,15,15,0.12); box-shadow: 0 0 0 36px rgba(255,255,255,0.12), 0 0 0 72px rgba(255,255,255,0.08); pointer-events: none; }
.cta h2 { max-width: 14em; position: relative; z-index: 1; }
.cta p { position: relative; z-index: 1; max-width: 34em; margin: 16px 0 28px; font-size: 18px; color: #2a2316; }
.cta .btns { position: relative; z-index: 1; }
.cta .btn-primary { background: var(--ink); color: #fff; }
.cta .btn-primary:hover { background: #2b2b2b; }
.cta .btn-ghost { border-color: rgba(0,0,0,0.35); color: var(--ink); }
.cta .btn-ghost:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--text); opacity: 0.85; }
.site-footer ul a:hover { opacity: 1; color: var(--orange); }
.foot-blurb { color: var(--muted); max-width: 26em; margin: 18px 0 0; font-size: 15px; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.foot-base .bar { width: 64px; height: 4px; border-radius: 2px; background: var(--bar); align-self: center; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark .orbit { animation: none; }
  .btn, .card, .pillar { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: min(70%, 300px); }
  .pillars { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .lockup img { width: 34px; height: 34px; }
  .lockup-name { font-size: 18px; }
  .lockup-rt { font-size: 9.5px; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .page-hero::after { width: 260px; height: 260px; right: -90px; top: -70px; }
}
@media (max-width: 380px) {
  .lockup-text { display: none; }
}
