/* ==========================================================================
   CDA LLC — Site Styles
   A lightweight, dependency-free stylesheet. Edit the CSS variables in
   :root below to rebrand colors, fonts, and spacing across the whole site.
   ========================================================================== */

:root {
  /* Brand palette — matched to the Clark Digital Advisors logo (gold + charcoal) */
  --color-primary: #1f2733;      /* dark charcoal-slate */
  --color-primary-dark: #141a23;
  --color-accent: #c9a227;       /* logo gold */
  --color-accent-dark: #a8851b;
  --color-bg: #ffffff;
  --color-surface: #f6f5f1;       /* warm off-white */
  --color-text: #1f2733;
  --color-text-muted: #5a626e;
  --color-border: #e6e3da;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Georgia", "Times New Roman", serif;

  /* Layout */
  --max-width: 1140px;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(18, 42, 68, 0.08);
  --transition: 0.2s ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent); }

img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section--surface { background: var(--color-surface); }

.section__header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section__header p { color: var(--color-text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; }

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-surface); color: var(--color-primary); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.nav__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav__brand:hover { color: var(--color-primary); }
.nav__logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__links a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-primary);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Nav "Book a Call" button ---------- */
.nav__cta a {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: 2px solid transparent !important;
  transition: background var(--transition);
}
.nav__cta a:hover { background: var(--color-accent-dark); color: #fff; }

/* ---------- Calendly inline scheduler ---------- */
.calendly-inline-widget {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 5.5rem 0;
  text-align: center;
}
.hero h1 { color: #fff; max-width: 16ch; margin-inline: auto; }
.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin: 1rem auto 2rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__logo {
  width: clamp(170px, 26vw, 240px);
  margin: 0 auto 1.75rem;
  filter:
    drop-shadow(0 0 28px rgba(201, 162, 39, 0.35))
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 0.25rem; }
.page-banner p { color: rgba(255, 255, 255, 0.8); margin: 0; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(18, 42, 68, 0.14);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--color-text-muted); margin: 0; }

/* ---------- Feature / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
  background: linear-gradient(135deg, #1f2733, #141a23);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
}
.split__media img {
  filter: drop-shadow(0 0 26px rgba(201, 162, 39, 0.3)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-accent-dark);
  font-weight: 700;
}
.stat__label { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Values / list ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 52ch; margin: 0 auto 1.75rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 142, 4, 0.15);
}
.form-status {
  margin-top: 0.5rem;
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { color: #b91c1c; }
.form-status.is-success { color: #15803d; }

.contact-info { }
.contact-info__item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info__item .ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.contact-info__item strong { display: block; color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Brand logo image (nav + footer) ---------- */
.nav__logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(20, 26, 35, 0.25));
}
.nav__brand { font-size: 1.45rem; }
.nav__brand--footer {
  color: #fff;
  margin-bottom: 0.75rem;
}
.nav__brand--footer .nav__logo-img {
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}

/* ---------- Light eyebrow (on dark backgrounds) ---------- */
.eyebrow--light { color: var(--color-accent); }

/* ---------- Card price tag ---------- */
.card__price {
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

/* ---------- Dark button (on gold CTA band) ---------- */
.btn--dark { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: var(--color-primary-dark); color: #fff; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--color-text-muted); }

/* ---------- Founder (photo + bio) ---------- */
.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 3rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.founder__photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.founder__bio p { color: var(--color-text-muted); }
.founder__bio .checklist { margin: 1rem 0 1.25rem; }

.checklist--cols {
  columns: 2;
  column-gap: 2.5rem;
}
.checklist--cols li { break-inside: avoid; }

/* ---------- Pricing cards ---------- */
.pricing {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing h3 { margin-bottom: 0.25rem; }
.pricing .checklist { margin: 1rem 0 1.5rem; }
.pricing .btn { margin-top: auto; align-self: flex-start; }

.pricing__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.pricing__tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}
.pricing__price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.pricing__price span { font-size: 1rem; color: var(--color-text-muted); font-family: var(--font-sans); }
.pricing__price--sm { font-size: 1.4rem; }

.pricing--featured {
  border-color: var(--color-accent);
  border-width: 2px;
}
.pricing--highlight {
  border-color: var(--color-accent);
  border-width: 2px;
  box-shadow: 0 12px 30px rgba(31, 39, 51, 0.16);
}
.pricing__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Contact extras ---------- */
.optional { font-weight: 400; color: var(--color-text-muted); font-size: 0.85rem; }
.contact-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.contact-card p { margin: 0 0 0.4rem; color: var(--color-text-muted); }
.contact-card p:last-child { margin: 0; }

/* ---------- Inline callout (intake form / PDF) ---------- */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}
.callout h3 { margin: 0 0 0.25rem; }
.callout p { margin: 0; color: var(--color-text-muted); }
.callout__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Service area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.area__map {
  border: 0;
  width: 100%;
  min-height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  background: var(--color-bg);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--color-accent-dark);
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 720px) {
  .checklist--cols { columns: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { gap: 0.75rem; }
  .nav__toggle { display: flex; flex: 0 0 auto; }
  .nav__brand { font-size: clamp(1.1rem, 4.6vw, 1.35rem); gap: 0.5rem; min-width: 0; }
  .nav__brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav__logo-img { width: 48px; height: 48px; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav__links.is-open { max-height: 520px; overflow-y: auto; }
  .nav__links li { border-top: 1px solid var(--color-border); }
  .nav__links a { display: block; padding: 0.9rem 1.25rem; border-bottom: none; }

  .split { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 1.75rem; }
  .founder__photo { max-width: 320px; margin: 0 auto; }
  .area-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Very small phones: let the logo carry the brand so nothing crowds the menu */
@media (max-width: 360px) {
  .nav__brand span { display: none; }
  .nav__logo-img { width: 50px; height: 50px; }
}

/* ---------- Apps hub (apps.html) ---------- */
.app-card { display: flex; flex-direction: column; align-items: flex-start; }
.app-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: block;
  margin-bottom: 0.85rem;
}
.app-card .btn { margin-top: auto; align-self: flex-start; }
.app-card p { margin-bottom: 1rem; }
.badge-soon {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-bg, #f1f1f4);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border, #e2e2e8);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.app-card--soon { opacity: 0.92; }
.btn.is-disabled { pointer-events: none; opacity: 0.5; cursor: default; }
