/* ===================================================================
   D Ruelas Bookkeeping, LLC — shared stylesheet
   Palette: Ink Navy / Aged Gold / Parchment / Slate / Foothill Wine
   Display: Spectral (serif)  Body: Inter  Utility/numerals: IBM Plex Mono
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-dark: #10192E;
  --gold: #2E7D6B;       /* teal accent, matches logo */
  --gold-light: #4FA38C; /* lighter teal for hover/dark-bg contrast */
  --parchment: #F5F3EE;  /* matches logo background */
  --parchment-dark: #EAE6DC;
  --slate: #5A6B7A;      /* matches logo subtext color */
  --wine: #2E7D6B;        /* eyebrows use the same teal accent as the brand */
  --ink: #232B36;

  --serif: 'Manrope', -apple-system, sans-serif;  /* display face, geometric to match the mark */
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Ledger rule: the signature element ----------
   A horizontal rule with a debit/credit tick pair that reads
   as a balanced ledger line. Used as the section divider
   throughout the site instead of a generic <hr>. */
.ledger-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 auto;
}
.ledger-rule .tick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.ledger-rule .line {
  height: 1px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) 0%);
  background-color: rgba(176, 141, 62, 0.35);
  flex: 1;
  position: relative;
  overflow: hidden;
}
.ledger-rule .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.ledger-rule.in-view .line::after { transform: scaleX(1); }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(26, 46, 74, 0.12);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--navy);
  flex: none;
}
nav.primary { display: flex; gap: 34px; align-items: center; }
nav.primary a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
}
nav.primary a:hover, nav.primary a.active { color: var(--navy); }
nav.primary a.cta {
  color: var(--parchment);
  background: var(--navy);
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 500;
}
nav.primary a.cta:hover { background: var(--navy-dark); color: var(--parchment); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 104px 0 88px;
  position: relative;
}
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 22px;
  display: block;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero .lede {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--navy); color: var(--parchment); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { border: 1px solid rgba(26,46,74,0.3); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(26,46,74,0.04); }

/* running-balance strip under the hero */
.balance-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
}
.balance-strip .figure { }
.balance-strip .num {
  font-family: var(--mono);
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 500;
}
.balance-strip .label {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 4px;
}

/* ---------- Section basics ---------- */
section { padding: 76px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  display: block;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-head p { color: var(--slate); margin-top: 14px; font-size: 1.02rem; }

.bg-navy { background: var(--navy); color: var(--parchment-dark); }
.bg-navy .section-head h2 { color: var(--parchment); }
.bg-navy .section-head p { color: rgba(247,244,236,0.72); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(26,46,74,0.14);
  border: 1px solid rgba(26,46,74,0.14);
}
.service-card {
  background: var(--parchment);
  padding: 34px 30px;
}
.service-card .num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 600;
}
.service-card p { color: var(--slate); font-size: 0.95rem; }

/* ---------- Process list (real sequence -> numbered ok) ---------- */
.process { display: flex; flex-direction: column; }
.process-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid rgba(26,46,74,0.14);
}
.process-row:last-child { border-bottom: 1px solid rgba(26,46,74,0.14); }
.process-row .step-num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.95rem;
}
.process-row h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 600;
}
.process-row p { color: var(--slate); max-width: 60ch; }

/* ---------- Card / quote ---------- */
.pull {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.4;
  max-width: 34ch;
  font-weight: 500;
}
.pull .tick-mark { color: var(--gold); }

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.portrait-frame {
  aspect-ratio: 4/5;
  background: var(--navy);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.portrait-frame .initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 5rem;
  color: rgba(247,244,236,0.9);
  font-weight: 600;
}
.portrait-frame .frame-tick {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  height: 3px;
  background: var(--gold);
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-dark);
  color: rgba(247,244,236,0.7);
  padding: 56px 0 32px;
}
footer.site .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer.site h4 {
  font-family: var(--serif);
  color: var(--parchment);
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 600;
}
footer.site p, footer.site a { font-size: 0.92rem; color: rgba(247,244,236,0.65); }
footer.site nav { display: flex; flex-direction: column; gap: 10px; }
footer.site a:hover { color: var(--gold-light); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(247,244,236,0.12);
  font-size: 0.8rem;
  color: rgba(247,244,236,0.45);
  font-family: var(--mono);
}

/* ---------- Forms ---------- */
form.contact-form { display: grid; gap: 22px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid rgba(26,46,74,0.25);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-meta { display: grid; gap: 26px; }
.contact-meta .item { display: grid; gap: 4px; }
.contact-meta .item .k {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wine);
}
.contact-meta .item .v { font-size: 1.05rem; color: var(--navy); }

.contact-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(27,42,74,0.14);
}
.contact-meta-row .item { display: grid; gap: 4px; min-width: 0; }
.contact-meta-row .item .k {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wine);
}
.contact-meta-row .item .v { font-size: 1.02rem; color: var(--navy); overflow-wrap: break-word; word-break: break-word; }

/* ---------- Hero with photo ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-photo {
  aspect-ratio: 1654/2878;
  background: var(--navy);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.hero-photo .initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(245,243,238,0.9);
}
.hero-photo .frame-tick {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--gold);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: #fff;
  border: 1px solid rgba(27,42,74,0.14);
  border-radius: 6px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--gold);
  border-width: 2px;
  position: relative;
}
.price-card .badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--gold);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.price-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}
.price-card .tagline { color: var(--slate); font-size: 0.92rem; margin-bottom: 20px; }
.price-card .price {
  font-family: var(--mono);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 22px;
}
.price-card .price span { font-size: 0.85rem; color: var(--slate); }
.price-card .price .starting-at { font-size: 75%; }
.price-card ul { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; flex: 1; }
.price-card li {
  font-size: 0.92rem;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.price-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
.price-card .fit { font-size: 0.82rem; color: var(--slate); font-style: italic; }
.pricing-note {
  text-align: center;
  max-width: 56ch;
  margin: 40px auto 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--parchment-dark);
  border-radius: 6px;
  padding: 28px 26px;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-card p.quote { color: var(--ink); font-size: 0.96rem; margin-bottom: 18px; }
.testimonial-card .who { font-family: var(--mono); font-size: 0.8rem; color: var(--slate); }
.trust-line {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 32px;
}

/* ---------- Footer socials ---------- */
.foot-socials { display: flex; gap: 14px; margin-top: 16px; }
.foot-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(245,243,238,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.foot-socials a:hover { border-color: var(--gold-light); color: var(--gold-light); }

.foot-badges { display: flex; gap: 10px; margin-top: 18px; }
.foot-badges img { width: 102px; height: 102px; display: block; }

.foot-hours { margin-top: 18px; font-size: 0.92rem; color: rgba(245,243,238,0.65); line-height: 1.5; }
.foot-hours strong { display: block; color: rgba(245,243,238,0.85); font-weight: 600; margin-bottom: 2px; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid rgba(27,42,74,0.14);
}
.faq-item:last-child { border-bottom: 1px solid rgba(27,42,74,0.14); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--gold);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 0 26px;
  color: var(--slate);
  max-width: 68ch;
  font-size: 0.98rem;
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  nav.primary { display: none; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .split, .grid-2, .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { direction: ltr; }
  .balance-strip { grid-template-columns: 1fr; gap: 20px; }
  footer.site .foot-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 50px 1fr; }
  .pricing-grid, .testimonial-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
