/* ============================================================
   DAVE KOZIN — FRACTIONAL CFO
   style.css
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --bg:           #ececec;
  --bg-alt:       #f5f5f5;
  --bg-dark:      #ffffff;
  --text:         #1a1a2e;
  --text-muted:   #888888;
  --text-light:   #ffffff;
  --accent:       #076879;
  --accent-dark:  #055a69;
  --accent-light: rgba(7, 104, 121, 0.1);
  --border:       #d8d8d8;
  --white:        #ffffff;

  --font-display: 'Jura', sans-serif;
  --font-body:    'Jura', sans-serif;

  --section-gap:  6.25rem;   /* 100px */
  --container:    68.75rem;  /* 1100px */
  --gutter:       1.5rem;

  --radius:       0;
  --radius-lg:    0;
  --shadow:       none;
  --shadow-md:    none;
  --transition:   0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: #2d2d2d;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── Typography ────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
}
h3 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}
h1 { font-weight: 700; font-size: clamp(1.5rem, 3.35vw, 2.1875rem); }
h2 { font-weight: 600; font-size: clamp(1.1875rem, 2vw, 1.5rem); }

p + p { margin-top: 1em; }

.label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section {
  padding-block: var(--section-gap);
  border-top: 2px solid var(--border);
}
.section--alt { background: var(--bg-alt); }

.section-header {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: #1a1a2e;
  color: #ffffff;
  border: 2px solid #1a1a2e;
}
.btn--primary:hover {
  background: #2d2d2d;
  border-color: #2d2d2d;
}

.btn--ghost {
  background: transparent;
  color: #1a1a2e;
  border: 2px solid #1a1a2e;
}
.btn--ghost:hover {
  background: #1a1a2e;
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: #1a1a2e;
  border: 2px solid #1a1a2e;
}
.btn--outline:hover {
  background: #1a1a2e;
  color: #ffffff;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--border);
  transition: none;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: #2d2d2d;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav a:hover { color: var(--accent); }

.nav-cta {
  background: #1a1a2e !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover {
  background: #2d2d2d !important;
  color: #ffffff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0.125rem;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: #2d2d2d;
  border-radius: 0;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--bg-alt);
  color: var(--text);
  padding-block: 7.5rem 6rem;
  overflow: hidden;
  border-top: 2px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 38rem; }

.hero .label { color: var(--accent); }

.hero h1 {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 34rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.hero .label {
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.03em;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  margin-top: 0 !important;
}

/* Hero visual — CSS shapes */
.hero-visual {
  position: relative;
  width: 240px;
  height: 280px;
  flex-shrink: 0;
}
.shape { position: absolute; }

.shape--ring {
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  top: 0; right: 0;
  opacity: 0.35;
}
.shape--block {
  width: 90px;
  height: 90px;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 0;
  bottom: 24px; left: 12px;
}
.shape--dot-grid {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 0;
  top: 60px; left: 0;
  opacity: 0.3;
}

/* ── Services ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.service-card:hover { border-color: var(--accent); }
.service-card--featured { border-color: var(--accent); }

.service-marker { margin-bottom: 0; }
.smark {
  width: 2px;
  height: 2rem;
  border-radius: 0;
}
.smark--1 { background: var(--border); }
.smark--2 { background: var(--accent); }
.smark--3 { background: var(--border); }

.service-card h3 { margin-top: 0; margin-bottom: 0.875rem; border-left: 2px solid var(--border); padding-left: 0.75rem; }
.service-card p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 500;
  margin-bottom: 4px;
}
.service-card ul {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-card li {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  letter-spacing: 0.03em;
}
.service-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* ── Timeline ──────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
  border-top: 2px solid var(--border);
  align-items: start;
}
.timeline-item:last-child { border-bottom: 2px solid var(--border); }

.timeline-marker { padding-top: 0.25rem; }
.timeline-month {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

.timeline-content h3 { margin-bottom: 0.75rem; }
.timeline-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 500;
  max-width: 40rem;
}

/* ── Examples ──────────────────────────────────────────── */
.examples-caveat {
  font-size: 0.875rem !important;
  font-style: italic;
  font-weight: 600;
  color: var(--text-muted) !important;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.example-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.example-card:hover { border-color: var(--accent); }

.example-tag {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 2px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  margin-bottom: 1rem;
}

.example-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.example-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.example-card p:last-of-type { margin-bottom: 0; }
.example-card strong { color: var(--text); }

.example-result {
  font-size: 0.875rem !important;
  color: var(--text) !important;
  font-weight: 500;
  padding-top: 0.875rem;
  border-top: 2px solid var(--border);
  margin-top: 0.5rem !important;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

/* ── Pricing ───────────────────────────────────────────── */
.pricing-inner { max-width: 42rem; }
.pricing-inner h2 { margin-bottom: 0.75rem; }

.pricing-lede {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.pricing-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
  border: 2px solid var(--border);
}

.pricing-point {
  display: flex;
  gap: 1.25rem;
  align-items: start;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border);
}
.pricing-point:last-child { border-bottom: none; }

.pp-arrow {
  font-size: 0.875rem;
  color: var(--accent);
  line-height: 1.9;
  flex-shrink: 0;
  width: 1rem;
}

.pricing-point strong { color: var(--text); font-weight: 500; }
.pricing-point div { color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em; }

.pricing-footer {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.03em;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

/* ── About ─────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}

.about-visual {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}
.about-shape {
  width: 220px;
  height: 260px;
  background: #ffffff;
  border-radius: 0;
  border: 2px solid var(--border);
}
.about-initials {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.about-content .label { margin-bottom: 0.5rem; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em; }

.about-details {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid var(--border);
}
.about-detail {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 2px solid var(--border);
}
.about-detail:last-child { border-bottom: none; }
.about-detail strong {
  min-width: 7rem;
  color: var(--text);
  font-weight: 500;
  flex-shrink: 0;
}
.about-detail span { color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em; }

/* ── Article ───────────────────────────────────────────── */
.article-inner { max-width: 44rem; }
.article-inner .label { margin-bottom: 0.5rem; }

.article-headline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4375rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.25;
}

.article-body p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.article-cta {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.article-cta:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ── Contact ───────────────────────────────────────────── */
.contact {
  background: var(--bg-alt);
  color: var(--text);
  border-top: 2px solid var(--border);
}
.contact h2 { color: var(--text); margin-bottom: 1rem; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.contact-content p { color: var(--text-muted); max-width: 36rem; font-weight: 600; letter-spacing: 0.03em; }

.contact-note {
  font-size: 0.9375rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.contact-email {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 2px solid var(--border);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-biz { font-weight: 500; color: var(--text); }
.footer-sep { margin-inline: 0.375rem; opacity: 0.4; }

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.footer-left a, .footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-left a:hover, .footer-right a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Services grid breakpoints ──────────────────────────── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tablet (≤ 900px) ───────────────────────────────────── */
@media (max-width: 900px) {

  :root { --section-gap: 4rem; }

  .hero-visual { display: none; }
  .hero-inner { grid-template-columns: 1fr; }

  .examples-grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-visual {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: auto;
  }
  .about-shape {
    width: 80px;
    height: 80px;
    border-radius: 0;
    flex-shrink: 0;
  }
  .about-initials {
    position: static;
    transform: none;
    font-size: 1.5rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-actions { align-items: flex-start; }

  .timeline-item {
    grid-template-columns: 6rem 1fr;
    gap: 1.25rem;
  }
}

/* ── Mobile (≤ 620px) ───────────────────────────────────── */
@media (max-width: 620px) {

  :root {
    --section-gap: 1.5rem;  /* 24px */
    --gutter: 1rem;         /* 16px side margins */
  }

  body { font-size: 1rem; }

  h1 { font-size: 1.375rem; }     /* 32px → reduced 33% */
  h2 { font-size: 1.0625rem; }   /* 26px → reduced 33% */

  /* Images & logo safe */
  img, svg { max-width: 100%; }
  .logo img { max-height: 60px !important; height: auto !important; }
  .header-inner { height: 4.5rem; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 4.5rem;    /* match header height */
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--border);
    padding: 1rem var(--gutter) 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav.nav--open { display: flex; }
  .nav a {
    width: 100%;
    padding-block: 0.875rem;
    border-bottom: 2px solid var(--border);
    font-size: 0.875rem;
  }
  .nav a:last-child { border-bottom: none; }
  .nav-cta {
    background: none !important;
    color: #076879 !important;
    padding-inline: 0 !important;
    border-radius: 0 !important;
  }

  /* Hero */
  .hero { padding-block: 2.5rem 2rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero-sub { font-size: 1.0625rem; }

  /* Examples — full width, no max-width cap */
  .examples-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .service-card,
  .example-card { padding: 1.25rem; }

  /* Timeline */
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-block: 1.5rem;
  }

  /* Pricing */
  .pricing-point { flex-direction: row; }
  .pricing-points { border-width: 2px; }

  /* About */
  .about-detail { flex-direction: column; gap: 0.125rem; }
  .about-detail strong { min-width: auto; }

  /* Contact */
  .contact-actions { align-items: stretch; }
  .contact-actions .btn { width: 100%; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Prevent any horizontal overflow */
  .hero-content,
  .pricing-inner,
  .article-inner { max-width: 100%; }
  .timeline { max-width: 100%; }
}
