/* Cosmic Capital Group Inc. — burgundy + gold executive palette */
:root {
  --brand: #7F1D1D;          /* deep burgundy */
  --brand-dark: #5A0F0F;     /* darker burgundy */
  --brand-light: #991B1B;    /* lighter burgundy */
  --accent: #B8860B;         /* deep gold */
  --accent-light: #D4AF37;   /* warm gold */
  --gold-soft: #FAF3D9;      /* champagne */
  --ink: #18181B;            /* near-black */
  --muted: #52525B;
  --paper: #FFFFFF;
  --soft: #FAFAF9;           /* warm off-white */
  --line: #E7E5E4;
  --radius: 4px;
  --shadow: 0 12px 32px rgba(24,24,27,0.10);
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p { color: var(--muted); margin-bottom: 1rem; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: .85rem;
  padding: .55rem 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: var(--accent); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand img { height: 52px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav .btn { background: var(--brand); color: #fff; padding: .65rem 1.4rem; border-radius: var(--radius); }
.nav .btn:hover { background: var(--brand-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: all .2s;
  font-size: 1rem;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--accent-light); color: var(--ink); border-color: var(--accent-light); }
.btn-gold { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-gold:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Hero — image background with brand overlay */
.hero {
  position: relative;
  color: #fff;
  padding: 7rem 0 6rem;
  overflow: hidden;
  background-color: var(--brand-dark);
  background-image:
    linear-gradient(135deg, rgba(90,15,15,0.86) 0%, rgba(127,29,29,0.70) 60%, rgba(24,24,27,0.78) 100%),
    url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1800&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 25%, rgba(184,134,11,0.22), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 820px; margin-bottom: 1.25rem; }
.hero .lede { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 720px; margin-bottom: 2rem; }
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: .8rem;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

/* Service Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.card .icon {
  width: 56px; height: 56px;
  background: rgba(155,28,28,0.08);
  color: var(--brand);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: .75rem; }
.card .more { color: var(--brand); font-weight: 600; display: inline-block; margin-top: .75rem; }

/* Features (alternating) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--brand);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(90,15,15,0.45) 100%);
}
.feature-media.media-1 { background-image: url('https://images.unsplash.com/photo-1573164713988-8665fc963095?w=1000&q=80&auto=format&fit=crop'); }
.feature-media.media-2 { background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1000&q=80&auto=format&fit=crop'); }
.feature-media.media-3 { background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1000&q=80&auto=format&fit=crop'); }
.feature-media.media-4 { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1000&q=80&auto=format&fit=crop'); }
.feature-media.media-5 { background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1000&q=80&auto=format&fit=crop'); }

/* Service image cards */
.svc-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.svc-img.s1 { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&q=80&auto=format&fit=crop'); }
.svc-img.s2 { background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1200&q=80&auto=format&fit=crop'); }
.svc-img.s3 { background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1200&q=80&auto=format&fit=crop'); }
.feature ul { list-style: none; }
.feature li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: .6rem;
  color: var(--muted);
}
.feature li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Stats strip */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 3rem 0;
}
.stats .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats .num {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 700;
}
.stats .lbl { color: #cbd5e1; font-size: .9rem; letter-spacing: 2px; text-transform: uppercase; }

/* Testimonials */
.tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.t-card {
  background: var(--paper);
  border-left: 4px solid var(--brand);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.t-card .quote { font-style: italic; color: var(--ink); margin-bottom: 1rem; }
.t-card .who { font-weight: 700; color: var(--brand); }
.t-card .role { font-size: .85rem; color: var(--muted); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.92); margin-bottom: 2rem; }

/* Forms */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(155,28,28,0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: none; }
.alert.success { background: #d1fae5; color: #065f46; display: block; }
.alert.error { background: #fee2e2; color: #991b1b; display: block; }

/* Contact details */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info ul { list-style: none; margin-top: 1.5rem; }
.contact-info li {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .ci-icon {
  width: 44px; height: 44px;
  background: rgba(155,28,28,0.08);
  color: var(--brand);
  border-radius: var(--radius);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-info strong { display: block; color: var(--ink); }

/* Page hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.9); }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: .75rem; }
.crumbs a { color: var(--accent); }

/* Legal pages */
.legal { padding: 4rem 0; max-width: 860px; margin: 0 auto; }
.legal h2 { margin-top: 2.5rem; }
.legal h3 { margin-top: 1.75rem; color: var(--brand); }
.legal p, .legal li { margin-bottom: 1rem; }
.legal ul, .legal ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { color: var(--muted); }
.toc { background: var(--soft); border-left: 4px solid var(--brand); padding: 1.5rem; margin-bottom: 2rem; border-radius: var(--radius); }
.toc h3 { margin-top: 0; color: var(--ink); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: .35rem; }

/* Mission / Vision / Values blocks */
.mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}
.mvv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .2s, box-shadow .2s;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mvv-card .eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: .75rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: .75rem;
}
.mvv-card h3 {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.mvv-card p { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.mvv-card.values ul { list-style: none; padding: 0; }
.mvv-card.values li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: .95rem;
}
.mvv-card.values li::before {
  content: '\25C6';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 4rem 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem 2.5rem;
  padding-bottom: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1.25rem;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #cbd5e1; font-size: .92rem; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-foot img { height: 60px; filter: brightness(0) invert(1); }
.site-footer .brand-foot p { color: #94a3b8; margin-top: 1rem; }
.copyright {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
  color: #94a3b8;
}
.copyright a { color: #cbd5e1; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .tg, .stats .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature, .contact-grid, .foot-grid, .mvv { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .foot-grid { gap: 2.5rem; }
  .site-footer .brand-foot img { margin: 0 auto; display: block; }
  .site-footer h4 { margin-top: .5rem; }
}
@media (max-width: 640px) {
  .grid-3, .tg, .stats .grid-4 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav ul {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
    gap: .5rem;
  }
  .nav ul.open { display: flex; }
  .nav li { width: 100%; }
  .nav .btn { display: block; text-align: center; }
  .topbar { font-size: .75rem; }
  .hero { padding: 4rem 0 3rem; }
}
