/* =================================================================
   Maestro Accounting Services — Homepage Stylesheet
   Design system: ledger / statement-inspired, warm paper palette
   ================================================================= */

:root {
  /* ---- Color tokens ---- */
  --ink:        #16324f;   /* deep navy — primary, matches CAMS brand */
  --ink-soft:   #2c4763;
  --paper:      #F7F3EC;   /* warm cream background */
  --paper-deep: #EFE9DD;   /* slightly deeper cream for alt sections */
  --charcoal:   #2B2B28;   /* body text */
  --charcoal-soft: #5b574e;
  --forest:     #3D6B4F;   /* accent — growth / trust, muted not bright */
  --forest-deep:#2c4f39;
  --gold:       #C0934A;   /* sparing highlight — ledger stamp */
  --hairline:   rgba(43, 43, 40, 0.14);
  --hairline-strong: rgba(43, 43, 40, 0.28);
  --paper-card: #FFFFFF;

  /* ---- Type ---- */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body:    'Public Sans', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Layout ---- */
  --wrap: 1180px;
  --radius: 3px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; z-index: 200; font-family: var(--font-body);
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; color: var(--ink); letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal-soft);
}

.main-nav ul {
  display: flex; align-items: center; gap: 34px;
}
.main-nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--forest);
  transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 9px 18px !important; border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--ink-soft); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; background: none; border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
}

/* =================================================================
   HERO — Statement-of-Account styled card
   ================================================================= */
.hero {
  padding: 64px 0 88px;
  background:
    radial-gradient(circle at 85% 0%, rgba(61,107,79,0.07), transparent 55%),
    var(--paper);
}
.hero-inner { display: flex; justify-content: center; }

.statement-card {
  width: 100%; max-width: 760px;
  background: var(--paper-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  padding: 40px 44px 44px;
  box-shadow: 0 24px 60px -28px rgba(22, 50, 79, 0.22);
}

.statement-row {
  display: flex; align-items: center; justify-content: space-between;
}
.statement-meta { margin-bottom: 18px; }
.statement-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest-deep); font-weight: 500;
}
.statement-no {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--charcoal-soft);
}
.statement-rule {
  height: 1px; background: var(--hairline-strong);
  margin: 22px 0;
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.18; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-title em {
  font-style: italic; color: var(--forest-deep);
}
.hero-lede {
  font-size: 16.5px; color: var(--charcoal-soft);
  max-width: 56ch; margin-bottom: 0;
}

.statement-footer { gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--ink);
}
.stat-label {
  font-size: 12px; color: var(--charcoal-soft);
  text-transform: uppercase; letter-spacing: 0.05em;
}

.hero-actions {
  display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(22,50,79,0.04); }
.btn-block { width: 100%; }

/* =================================================================
   SECTION shared
   ================================================================= */
.section { padding: 92px 0; }
.section-alt { background: var(--paper-deep); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest-deep); font-weight: 500; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px); font-weight: 600;
  line-height: 1.25; letter-spacing: -0.01em;
}
.section-intro {
  margin-top: 14px; color: var(--charcoal-soft); font-size: 15.5px;
}

/* =================================================================
   ABOUT
   ================================================================= */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: start;
}
.about-copy p { color: var(--charcoal-soft); font-size: 15.5px; }
.about-cards { display: flex; flex-direction: column; gap: 18px; }
.value-card {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--forest);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.value-tag {
  display: block; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--forest-deep); margin-bottom: 8px; font-weight: 500;
}
.value-card p { font-size: 14.5px; color: var(--charcoal-soft); margin: 0; }

/* =================================================================
   SERVICES
   ================================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px; overflow: hidden;
}
.service-card {
  background: var(--paper-card);
  padding: 32px 28px;
  transition: background 0.2s ease;
}
.service-card:hover { background: #fbfaf7; }
.service-icon {
  width: 42px; height: 42px;
  color: var(--forest-deep);
  margin-bottom: 18px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 8px;
}
.service-card p {
  font-size: 14px; color: var(--charcoal-soft); margin: 0;
}

/* =================================================================
   APPROACH — ledger rows
   ================================================================= */
.approach-ledger {
  border-top: 1px solid var(--hairline-strong);
}
.ledger-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 36px; padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.ledger-period {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; padding-top: 4px;
}
.ledger-desc h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.ledger-desc p { color: var(--charcoal-soft); font-size: 14.5px; margin: 0; max-width: 62ch; }

/* =================================================================
   TEAM
   ================================================================= */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.team-card { text-align: left; }
.team-photo {
  width: 100%; aspect-ratio: 4/4.6;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-radius: 4px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.team-photo::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 18px);
}
.team-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.team-role {
  display: block; font-size: 12.5px; color: var(--forest-deep);
  font-weight: 600; margin-bottom: 10px;
}
.team-card p { font-size: 14px; color: var(--charcoal-soft); margin: 0; }

/* =================================================================
   TESTIMONIAL
   ================================================================= */
.testimonial {
  background: var(--ink); color: var(--paper);
  padding: 76px 0;
}
.testimonial-inner { max-width: 760px; text-align: center; }
.testimonial blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5;
  margin: 0 0 22px; font-weight: 400;
}
.testimonial cite {
  font-style: normal; font-size: 13.5px;
  color: rgba(247,243,236,0.7); letter-spacing: 0.02em;
}

/* =================================================================
   CONTACT
   ================================================================= */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px;
}
.contact-row {
  display: grid; grid-template-columns: 130px 1fr;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
.contact-row dt {
  font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--charcoal-soft);
}
.contact-row dd {
  margin: 0; font-size: 15px; color: var(--ink-soft);
}
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: var(--forest-deep); }

.contact-social { display: flex; gap: 10px; margin-top: 26px; }
.contact-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  text-decoration: none; font-size: 11px; font-weight: 700;
  color: var(--ink-soft);
}
.contact-social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.contact-form {
  background: var(--paper-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px; padding: 32px;
}
.form-note {
  font-size: 12.5px; color: var(--gold);
  background: rgba(192,147,74,0.1);
  border: 1px dashed rgba(192,147,74,0.4);
  padding: 10px 14px; border-radius: var(--radius);
  margin-bottom: 22px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 7px;
}
.form-row input, .form-row textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px;
  background: var(--paper);
  color: var(--charcoal);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(61,107,79,0.12);
}
.form-status {
  margin: 14px 0 0; font-size: 13.5px; min-height: 1.2em;
  color: var(--forest-deep);
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--ink); color: rgba(247,243,236,0.82);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--paper);
}
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 15px; background: rgba(247,243,236,0.12); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { text-decoration: none; font-size: 13.5px; color: rgba(247,243,236,0.75); }
.footer-nav a:hover { color: var(--paper); }
.footer-fine {
  width: 100%; margin: 0; padding-top: 22px;
  border-top: 1px solid rgba(247,243,236,0.14);
  font-size: 12px; color: rgba(247,243,236,0.55);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-inner { height: 66px; }
  .brand-sub { display: none; }

  .nav-toggle { display: flex; }
  .main-nav ul {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 8px 28px 18px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav ul.is-open {
    transform: translateY(0); opacity: 1; visibility: visible;
  }
  .main-nav li { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
  .main-nav li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-cta { display: inline-flex !important; }

  .statement-card { padding: 28px 22px 32px; }
  .statement-footer { flex-wrap: wrap; gap: 18px 28px; }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; }

  .section { padding: 64px 0; }
}
