/* Alford Accounting — Brand-aligned styles
   Colors:  Deep Teal #124e5a / Olive Gold #6a765d / Parchment #fafaf7 / White #ffffff
   Fonts:   Playfair Display (headings) / Inter (body)
   Logos:   AA monogram in nav; full seal in footer / hero as appropriate */

:root {
  --teal:        #124e5a;
  --teal-dark:   #0d3a44;
  --teal-mid:    #1a6575;
  --olive:       #6a765d;
  --olive-light: #8a9880;
  --olive-pale:  #e8ede4;
  --cream:       #fafaf7;
  --cream-2:     #f0f0ea;
  --white:       #ffffff;
  --ink:         #1a1a1a;
  --ink-soft:    #4a5568;
  --line:        rgba(18, 78, 90, 0.13);
  --shadow-sm:   0 4px 14px rgba(18, 78, 90, 0.08);
  --shadow:      0 16px 40px rgba(18, 78, 90, 0.13);
  --radius:      16px;
  --radius-lg:   24px;
  --maxw:        1140px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: "Playfair Display", "Merriweather", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--teal);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1em;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--olive);
  display: inline-block;
}

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); }
.accent { color: var(--olive); font-style: italic; font-family: "Playfair Display", serif; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 0.85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--teal); border-color: rgba(18,78,90,0.35); }
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }
.btn-olive { background: var(--olive); color: var(--white); }
.btn-olive:hover { background: #556148; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 1.18rem; color: var(--teal); letter-spacing: -0.01em;
}
.brand-tag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 0.5em 0.9em; border-radius: 999px; transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--cream-2); color: var(--teal); }
.nav-links a[aria-current="page"] { color: var(--teal); background: var(--olive-pale); }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a.btn-primary { color: var(--white); background: var(--teal); }
.nav-links .nav-cta a.btn-primary:hover { color: var(--white); background: var(--teal-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 44px; height: 40px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--teal); margin: 4px auto; transition: 0.2s; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.teal-bg { background: var(--teal); color: var(--white); }
.teal-bg h1, .teal-bg h2, .teal-bg h3 { color: var(--white); }
.teal-bg .lead, .teal-bg p { color: rgba(255,255,255,0.82); }
.teal-bg .eyebrow { color: var(--olive-light); }
.teal-bg .eyebrow::before { background: var(--olive-light); }
.cream2-bg { background: var(--cream-2); }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero .lead { max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Balance-sheet card */
.balance-card {
  background: var(--teal); border-radius: var(--radius-lg); padding: 34px 34px 30px;
  color: var(--white); box-shadow: var(--shadow); position: relative;
}
.balance-card::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}
.balance-card .bc-title {
  font-family: "Inter", sans-serif; font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--olive-light); margin-bottom: 18px;
}
.bc-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.18); }
.bc-row:last-of-type { border-bottom: none; }
.bc-label { font-family: "Playfair Display", serif; font-size: 1.28rem; color: var(--white); }
.bc-check { width: 26px; height: 26px; border-radius: 50%; background: rgba(106,118,93,0.3); display: grid; place-items: center; color: var(--olive-light); }
.bc-total { margin-top: 18px; padding-top: 18px; border-top: 2px solid rgba(255,255,255,0.3); display: flex; align-items: baseline; justify-content: space-between; }
.bc-total .bc-label { color: var(--olive-light); }
.bc-total .bc-amt { font-family: "Playfair Display", serif; font-size: 2.4rem; color: var(--white); font-weight: 700; }

/* ---------- Divider ---------- */
.beam { display: flex; justify-content: center; padding: 8px 0 0; }
.beam svg { width: 120px; height: auto; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--olive-pale); color: var(--teal); margin-bottom: 18px;
}
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* Service list */
.service-list { list-style: none; margin: 18px 0 0; padding: 0; }
.service-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.service-list li:last-child { border-bottom: none; }
.service-list .tick { flex: none; margin-top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; color: var(--white); font-size: 0.7rem; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value .num { font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.75rem; color: var(--olive); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.teal-bg .value .num { color: var(--olive-light); }
.value h3 { margin-bottom: 0.3em; }
.value p { color: var(--ink-soft); margin: 0; }
.teal-bg .value p { color: rgba(255,255,255,0.75); }

/* Verse */
.verse {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.5; color: var(--teal);
  max-width: 760px; margin: 0 auto; text-align: center;
}
.verse cite { display: block; font-style: normal; font-family: "Inter", sans-serif; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 16px; }

/* Story split */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.story-frame { background: var(--cream-2); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; flex: 1 1 130px; box-shadow: var(--shadow-sm); }
.stat .n { font-family: "Playfair Display", serif; font-size: 1.9rem; color: var(--teal); line-height: 1; font-weight: 700; }
.stat .l { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }

/* CTA band */
.cta-band { background: var(--teal); color: var(--white); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* Testimonials */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote-card .mark { font-family: "Playfair Display", serif; font-size: 3rem; color: var(--olive); line-height: 0.6; height: 28px; }
.quote-card blockquote { margin: 0 0 20px; font-size: 1.05rem; color: var(--ink); }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--olive-pale); color: var(--teal); display: grid; place-items: center; font-family: "Playfair Display", serif; font-weight: 700; font-size: 0.9rem; }
.quote-card .name { font-weight: 700; font-size: 0.96rem; }
.quote-card .role { font-size: 0.84rem; color: var(--ink-soft); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 7px; color: var(--teal); }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px; transition: border-color 0.18s, box-shadow 0.18s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,78,90,0.12); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-aside { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact-aside h3 { margin-top: 0; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon { flex: none; color: var(--teal); margin-top: 2px; }
.contact-item .ci-label { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-item .ci-value { font-weight: 600; color: var(--teal); }

/* Page hero */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(30px, 4vw, 50px); }
.page-hero .lead { max-width: 60ch; }

/* Portrait */
.portrait { margin: 0; max-width: 70%; }
.portrait .ph { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; display: block; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--teal); }
.portrait .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.portrait figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.portrait figcaption strong { color: var(--teal); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: rgba(255,255,255,0.78); padding: 64px 0 32px; }
.footer-seal { width: 110px; height: auto; display: block; opacity: 0.92; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: "Inter", sans-serif; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--olive-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-verse { font-family: "Playfair Display", serif; font-style: italic; color: rgba(255,255,255,0.7); font-size: 0.96rem; max-width: 34ch; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .values, .footer-grid { grid-template-columns: 1fr 1fr; }
  .balance-card { max-width: 460px; }
  .hero .lead { max-width: none; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 14px 28px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.22s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.7em 0.6em; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .values, .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .portrait { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
