/* Cobalt Deal Group — Design System
   Palette: Cobalt Blue #1E4FD6 | Ink Navy #0B1220 | Brass #B08D57 | Ivory #F7F5F0 | Slate #64748B | Success #1B9C6E
   Type: Fraunces (display) + Inter (body/UI)
*/

:root {
  --cobalt: #1E4FD6;
  --cobalt-dark: #1640b0;
  --ink: #0B1220;
  --brass: #B08D57;
  --ivory: #F7F5F0;
  --slate: #64748B;
  --success: #1B9C6E;

  --bg: var(--ivory);
  --bg-elevated: #ffffff;
  --text: var(--ink);
  --text-muted: var(--slate);
  --border: #E2E1DA;
  --nav-bg: rgba(247, 245, 240, 0.85);
  --shadow: 0 4px 24px rgba(11, 18, 32, 0.06);
}

[data-theme="dark"] {
  --bg: var(--ink);
  --bg-elevated: #121B2E;
  --text: #F1F3F7;
  --text-muted: #98A2B3;
  --border: #1F2A3E;
  --nav-bg: rgba(11, 18, 32, 0.85);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand .mark {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-right: 24px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { color: var(--cobalt); }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.nav-cta {
  background: var(--cobalt);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--cobalt-dark); }

.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

@media (max-width: 1260px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-elevated);
    flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: none; gap: 16px; box-shadow: var(--shadow); margin-right: 0; }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-brass { background: var(--brass); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--brass);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { max-width: 820px; margin: 0 auto 20px; }
.hero .lead { max-width: 620px; margin: 0 auto 34px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 880px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(30, 79, 214, 0.1);
  color: var(--cobalt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.stat {
  text-align: center;
}
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--cobalt);
}
.stat .label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

.divider-brass {
  width: 60px; height: 3px;
  background: var(--brass);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-dark {
  background: var(--ink);
  color: #fff;
}
.band-dark h2, .band-dark p { color: #fff; }
.band-dark p { color: #B7C0CE; }

/* ---------- Forms ---------- */
form.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; display: block; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cobalt);
}

.form-status { font-size: 0.9rem; margin-top: 4px; }
.form-status.success { color: var(--success); }
.form-status.error { color: #C0392B; }

/* ---------- Pricing ---------- */
.price-card { text-align: center; position: relative; }
.price-card.featured { border-color: var(--cobalt); border-width: 2px; }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--cobalt); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.price-card .amount { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 600; margin: 12px 0; }
.price-card .amount span { font-size: 1rem; color: var(--text-muted); font-family: 'Inter', sans-serif; }
.price-card ul { text-align: left; margin: 20px 0; list-style: none; }
.price-card li { padding: 7px 0; color: var(--text-muted); font-size: 0.92rem; }
.price-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---------- FAQ ---------- */
details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--cobalt); }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p { margin-top: 12px; }

/* ---------- Testimonial / Case study placeholder ---------- */
.placeholder-card {
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #B7C0CE;
  padding: 56px 0 28px;
  margin-top: auto;
}
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
footer a { color: #B7C0CE; font-size: 0.9rem; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--brass); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid #1F2A3E;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #7C879A;
}

.newsletter-inline { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-inline input { flex: 1; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.chip {
  display: inline-block;
  background: rgba(176, 141, 87, 0.14);
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--cobalt); }

.page-hero {
  padding: 64px 0 40px;
}

/* live chat placeholder bubble (visual only until Tawk.to is wired) */
#chat-bubble-placeholder {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cobalt); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer; z-index: 200;
  font-size: 1.3rem;
}
