/* ============================================
   KOCH BOOKKEEPING SERVICES — STYLESHEET
   Color palette: deep navy → royal blue, white
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0b0b2e;
  --royal:      #2233cc;
  --mid-blue:   #3a4fd4;
  --light-blue: #6677ee;
  --white:      #ffffff;
  --off-white:  #f4f6ff;
  --text-dark:  #1a1a3e;
  --text-mid:   #4a4a70;
  --border:     #dde0f5;
  --grad:       linear-gradient(135deg, #0b0b2e 0%, #2233cc 100%);
  --grad-soft:  linear-gradient(135deg, #1a1a4e 0%, #3344dd 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
  text-decoration: none;
}
.btn-secondary {
  background: var(--royal);
  color: var(--white);
  border: 2px solid var(--royal);
}
.btn-secondary:hover {
  background: var(--navy);
  border-color: var(--navy);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--royal);
  border: 2px solid var(--royal);
}
.btn-outline:hover {
  background: var(--royal);
  color: var(--white);
  text-decoration: none;
}

/* ---- NAVIGATION ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.brand-name span { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.7; letter-spacing: 0.18em; }
.primary-nav { display: flex; align-items: center; gap: 2rem; list-style: none; }
.primary-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--white); }
.nav-cta {
  background: var(--royal);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--mid-blue) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: var(--grad);
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 0.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 0.75rem;
  display: block;
}
.section-dark .section-label { color: rgba(255,255,255,0.5); }
.section-title { margin-bottom: 1rem; }
.section-dark .section-title { color: var(--white); }
.section-sub { font-size: 1.05rem; max-width: 600px; margin-bottom: 3rem; }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(34, 51, 204, 0.12);
  transform: translateY(-3px);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--grad);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.service-card p { font-size: 0.93rem; color: var(--text-mid); }

/* ---- ABOUT SPLIT ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.about-photo::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--royal);
  border-radius: 4px;
  z-index: -1;
}
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.cert-badge {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--royal);
}

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.why-item { text-align: center; }
.why-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--royal);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why-item h4 { color: var(--text-dark); margin-bottom: 0.5rem; }
.why-item p { font-size: 0.9rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--grad);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2rem; }

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 8px 30px rgba(34,51,204,0.1); }
.blog-card-body { padding: 1.75rem; }
.blog-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 0.5rem;
  display: block;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.blog-card p { font-size: 0.9rem; }
.blog-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mid);
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.contact-detail p { margin: 0; font-size: 0.93rem; }
.calendly-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  text-align: center;
}
.calendly-box h3 { margin-bottom: 0.75rem; }
.calendly-box p { margin-bottom: 1.75rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--grad-soft);
  padding: 4rem 2rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .primary-nav.open { display: flex; }
  .site-header { position: relative; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .about-photo::after { display: none; }
  .hero { padding: 4rem 1.5rem; }
  .section { padding: 3.5rem 1.5rem; }
}
