/* ============================================================
   VELEZ CPA SERVICES — design tokens
   ============================================================ */
:root {
  --ink: #0a100c;
  --paper: #ffffff;
  --forest: #043f27;
  --leaf: #91cb41;
  --sage-tint: #eef5ea;
  --mist: #f7f8f6;
  --ink-soft: rgba(10, 16, 12, 0.62);
  --ink-faint: rgba(10, 16, 12, 0.12);

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(10, 16, 12, 0.06), 0 8px 24px rgba(10, 16, 12, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ok: 1; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--forest);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 0.9em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--leaf);
  margin-right: 10px;
  vertical-align: middle;
}

.accent-underline {
  position: relative;
  white-space: nowrap;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.32em;
  background: var(--leaf);
  opacity: 0.45;
  z-index: -1;
  border-radius: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-accent {
  background: var(--leaf);
  color: var(--forest);
}
.btn-accent:hover { background: #a3d95c; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-on-dark {
  background: var(--leaf);
  color: var(--forest);
}
.btn-on-dark:hover { background: #fff; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-faint);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--forest);
  border-bottom-color: var(--leaf);
}
.site-nav a.nav-cta {
  border: none;
  padding: 10px 20px;
}
.site-nav a.nav-cta:hover { border: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 26px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--forest);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 4px; }
.nav-toggle span { top: 12px; }
.nav-toggle::after { top: 20px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Ledger divider — signature ruler motif
   ============================================================ */
.ledger-divider {
  position: relative;
  height: 30px;
  max-width: var(--container);
  margin: 0 auto;
}
.ledger-divider::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 50%;
  height: 1px;
  background: var(--ink-faint);
}
.ledger-divider::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 50%;
  height: 9px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    to right, var(--leaf) 0 2px, transparent 2px 34px
  );
  opacity: 0.55;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, var(--sage-tint) 0%, var(--paper) 100%);
}
.hero-inner { max-width: 780px; }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================
   Tick mark (signature checkmark, used on section headings & lists)
   ============================================================ */
.tick-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
}
.tick-mark path {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.6s ease;
}
.reveal.in-view .tick-mark path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .tick-mark path { stroke-dashoffset: 0; transition: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Services preview grid (home)
   ============================================================ */
.services-preview { padding: 72px 0 56px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.service-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid var(--ink-faint);
}
.service-card .tick-mark { margin-bottom: 14px; }
.service-card h3 { margin-bottom: 0.4em; font-size: 1.08rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.link-more {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 2px solid var(--leaf);
  padding-bottom: 2px;
}

/* ============================================================
   About preview (home)
   ============================================================ */
.about-preview {
  padding: 64px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.monogram {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--leaf);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.about-preview p { color: var(--ink-soft); max-width: 60ch; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--forest);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-inner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin: 0 auto 28px;
}

/* ============================================================
   Page header (About / Services / Contact)
   ============================================================ */
.page-header {
  padding: 64px 0 48px;
  background: var(--sage-tint);
}
.page-header .lede { margin-top: 10px; }

/* ============================================================
   About page
   ============================================================ */
.about-body { padding: 60px 0 80px; }
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--leaf);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Image placeholder (swap for real photos) ---------- */
.photo-placeholder {
  border: 2px dashed var(--leaf);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}
.photo-placeholder svg {
  width: 34px;
  height: 34px;
  stroke: var(--leaf);
  fill: none;
  stroke-width: 1.6;
}
.photo-placeholder span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
}
.photo-placeholder small {
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.photo-placeholder.headshot {
  width: 100%;
  aspect-ratio: 1;
}
.photo-placeholder.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 18px;
}
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.credentials-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.placeholder-note {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--forest);
  background: var(--sage-tint);
  border: 1px dashed var(--leaf);
  padding: 8px 12px;
  border-radius: 4px;
}

/* ============================================================
   Services page
   ============================================================ */
.services-photo {
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 24px 8px;
}
.services-photo .photo-placeholder {
  width: 100%;
  aspect-ratio: 21 / 6;
}

.services-list { padding: 8px 0 20px; }
.services-group { margin-bottom: 8px; }
.services-group + .ledger-divider { margin: 40px auto; }
.services-group .service-grid { margin-top: 24px; }
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink);
}
.tick-list .tick-mark { width: 18px; height: 18px; margin-top: 2px; }
.tick-list .tick-mark path { stroke-dashoffset: 0; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-body { padding: 64px 0 90px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}
.contact-card {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
}
.contact-card h3 { color: #fff; margin-bottom: 0.3em; }
.contact-card p { color: rgba(255, 255, 255, 0.75); }
.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: #fff;
}
.contact-method:first-of-type { border-top: none; margin-top: 8px; }
.contact-method .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf);
}
.contact-method .value { font-weight: 600; font-size: 1.02rem; }

.contact-form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--leaf);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-status.success {
  display: block;
  background: var(--sage-tint);
  color: var(--forest);
  border: 1px solid var(--leaf);
}
.form-status.error {
  display: block;
  background: #fdecea;
  color: #7a2020;
  border: 1px solid #e0a3a3;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--sage-tint);
  color: var(--ink-soft);
  padding: 48px 0 28px;
  margin-top: 0;
  border-top: 1px solid var(--ink-faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.footer-grid h4 {
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--forest); }
.footer-bottom {
  border-top: 1px solid var(--ink-faint);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-soft);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .services-photo .photo-placeholder { aspect-ratio: 16 / 9; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: 180px; }
  .services-group .service-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 24px;
    gap: 4px;
    display: none;
    border-bottom: 1px solid var(--ink-faint);
    box-shadow: var(--shadow-card);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--ink-faint); }
  .site-nav a.nav-cta { margin-top: 6px; text-align: center; }
  .about-preview { grid-template-columns: 1fr; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
