/* Capital Chambers Group — stylesheet */

:root {
  /* Brand blue #4754a3 sampled from the CCG logo */
  --navy: #2f3878;
  --navy-deep: #1e2455;
  --navy-soft: #4754a3;
  --gold: #c9a227;
  --gold-light: #e5c55c;
  --teal: #1f7a72;
  --ink: #1b2038;
  --body: #4d5470;
  --muted: #8b90a6;
  --line: #e4e6f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(47,56,120, .04), 0 12px 32px rgba(47,56,120, .07);
  --shadow-sm: 0 1px 2px rgba(47,56,120, .05), 0 4px 12px rgba(47,56,120, .05);
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 42px; height: auto; flex-shrink: 0; display: block; }
.footer-logo { width: 176px; height: auto; margin-bottom: 18px; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; color: var(--navy); font-size: 1.02rem; letter-spacing: -.02em; }
.logo-sub { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: .93rem; font-weight: 500; color: var(--body);
  padding: 6px 0; position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold); border-radius: 2px;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: .94rem; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff; padding: 92px 0 100px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; top: -180px; right: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.18) 0%, transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { font-size: 1.13rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 30px; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold-light); margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 30px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.stat-row { display: flex; flex-direction: column; gap: 20px; }
.stat { border-left: 3px solid var(--gold); padding-left: 16px; }
.stat-num { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-label { font-size: .84rem; color: rgba(255,255,255,.68); }

/* subtle dot-grid texture over the hero */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.11) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
  pointer-events: none;
}

/* ---------- Illustrations ---------- */
.scene {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--bg-alt);
}
.scene-wrap { position: relative; }
.scene-wrap::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(47,56,120,.07);
  pointer-events: none;
}
.flow-figure { margin: 0; text-align: center; }
.flow-figure img { width: 100%; max-width: 940px; margin: 0 auto; }
.flow-figure figcaption {
  font-size: .88rem; color: var(--muted); margin-top: 18px;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: 66px 0 62px; text-align: center;
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { color: rgba(255,255,255,.78); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--gold); }
.section-head p { font-size: 1.05rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all .2s ease;
}
.card:hover { border-color: rgba(47,56,120,.16); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; font-size: .93rem; }
.card ul li { margin-bottom: 6px; }

.icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(47,56,120,.06); color: var(--navy);
}
.icon svg { width: 22px; height: 22px; }
.icon-gold { background: rgba(201,162,39,.13); color: #9a7c1c; }
.icon-teal { background: rgba(31,122,114,.11); color: var(--teal); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: 5px; }
.step p { margin-bottom: 0; font-size: .96rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split ul { list-style: none; margin-top: 20px; }
.split ul li {
  padding-left: 30px; position: relative; margin-bottom: 13px; font-size: .98rem;
}
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(201,162,39,.18);
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff; text-align: center; padding: 74px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .87rem; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: .96rem;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(47,56,120,.09);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

.info-block {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item:last-child { margin-bottom: 0; }
.info-item .icon { margin-bottom: 0; width: 40px; height: 40px; flex-shrink: 0; }
.info-item strong { display: block; color: var(--ink); font-size: .94rem; margin-bottom: 2px; }
.info-item span, .info-item a { font-size: .93rem; color: var(--body); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px; background: #fff;
}
.faq details[open] { border-color: rgba(47,56,120,.18); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  font-size: 1rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--gold);
  font-weight: 400; line-height: 1; flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.62);
  padding: 60px 0 28px; font-size: .93rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .13em; margin-bottom: 18px; font-weight: 700;
}
.site-footer .logo-name { color: #fff; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 62px 0; }
  .hero { padding: 66px 0 72px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-links a { display: block; padding: 13px 0; }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { display: block; width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; }
}
