/* =========================================================
   Books by Tanya — Editorial boutique bookkeeping site
   Palette drawn from the brand logo:
   navy ink · warm gold · slate blue · cream paper
   ========================================================= */

:root {
  /* Brand */
  --navy:        #1b2a4a;   /* deep ink — primary */
  --navy-soft:   #2b3d63;
  --gold:        #b0895b;   /* warm tan/gold accent */
  --gold-deep:   #9a744a;
  --slate:       #6e86a8;   /* slate blue */
  --slate-soft:  #8fa3bf;
  --cream:       #f6f0e4;   /* warm paper background */
  --cream-deep:  #efe6d5;
  --paper:       #fbf7ee;   /* card surface */
  --ink:         #1b2a4a;
  --ink-70:      #43506b;
  --ink-50:      #6b7690;
  --line:        #ddd0ba;   /* hairline on cream */
  --line-soft:   #e6dcc9;

  /* Semantic */
  --bg:          var(--cream);
  --surface:     var(--paper);
  --text:        var(--ink);
  --text-muted:  var(--ink-70);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

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

:focus-visible { outline: 2.5px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  font-weight: 500; font-size: 15px; letter-spacing: 0.01em;
  border-radius: 40px;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { background: var(--navy); color: #fbf7ee; }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(27,42,74,.6); }

.btn-gold { background: var(--gold); color: #221607; }
.btn-gold:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(154,116,74,.7); }

.btn-ghost { color: var(--navy); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); background: rgba(27,42,74,.04); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 38px; font-size: 17px; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246,240,228,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: none;
  padding-inline: clamp(22px, 3.5vw, 64px);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 60px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand-logo { height: 50px; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link {
  position: relative; font-size: 15px; font-weight: 500; color: var(--ink-70);
  padding: 4px 0; transition: color .25s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { margin-left: 6px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-right: -10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px var(--gutter) 28px;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-link {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  color: var(--navy); padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-cta { margin-top: 18px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; min-height: min(78vh, 720px);
}
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg {
  width: 100%; max-width: 580px; height: auto;
  filter: drop-shadow(0 34px 44px rgba(27,42,74,.22));
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
}
.eyebrow-mark { color: var(--slate); font-size: 15px; }

.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--navy); margin-bottom: 28px;
  font-variation-settings: "opsz" 120, "SOFT" 40;
}
.hero-title em { font-style: italic; color: var(--gold-deep); font-weight: 400; }

.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-70);
  max-width: 46ch; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--navy); color: var(--cream);
  overflow: hidden; padding: 15px 0; margin: 24px 0 0;
  border-block: 1px solid var(--navy);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
  white-space: nowrap; padding-right: 2.4rem;
}
.marquee-star { color: var(--gold); font-style: normal; font-size: 0.9rem; vertical-align: middle; padding: 0 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =========================================================
   Sections shared
   ========================================================= */
.section { padding: clamp(52px, 6.5vw, 96px) 0; position: relative; }
.section-fill {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.kicker {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.3rem; color: var(--gold-deep); margin-bottom: 12px; letter-spacing: 0;
}
.kicker.light { color: var(--gold); }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--navy); margin-bottom: 20px;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.section-intro { font-size: 1.08rem; color: var(--ink-70); max-width: 58ch; }

.text-link {
  color: var(--gold-deep); font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.text-link:hover { background-size: 100% 1.5px; color: var(--gold); }

/* ---------- Split layout (heading aside + content) ---------- */
.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(30px, 5vw, 84px); align-items: start; }
.split-aside .section-title { margin-bottom: 16px; }
.split-aside .section-intro { margin-bottom: 22px; font-size: 1.04rem; }
.br-lg { display: inline; }

/* ---------- Services editorial list ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 22px; padding: 20px 6px; border-bottom: 1px solid var(--line);
  position: relative; transition: padding .35s var(--ease);
}
.service-item::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(176,137,91,.09), transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.service-item:hover::before { opacity: 1; }
.service-item:hover { padding-left: 16px; }
.service-icon {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(110,134,168,.16), rgba(176,137,91,.16));
  color: var(--navy); transition: color .35s var(--ease); position: relative;
}
.service-item:hover .service-icon { color: var(--gold-deep); }
.service-body { position: relative; }
.service-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; line-height: 1.18;
  color: var(--navy); margin-bottom: 3px;
}
.service-desc { color: var(--ink-70); font-size: 0.97rem; max-width: 56ch; }
.service-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); padding: 5px 12px; border: 1px solid var(--line-soft); border-radius: 30px;
  white-space: nowrap; position: relative;
}

/* ---------- Process (horizontal timeline, navy band) ---------- */
.process {
  background:
    radial-gradient(1000px 460px at 85% -10%, rgba(110,134,168,.20), transparent),
    radial-gradient(800px 460px at 5% 115%, rgba(176,137,91,.16), transparent),
    var(--navy);
}
.process .kicker { color: var(--gold); }
.process .section-title { color: #fff; }
.process .section-intro { color: rgba(246,240,228,.75); }
.process-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 48px;
  flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 58px);
}
.process-head .section-title { margin-bottom: 0; }
.process-head .section-intro { max-width: 40ch; padding-bottom: 6px; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 42px);
  border-top: 1px solid rgba(246,240,228,.22); padding-top: 40px;
}
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -44px; left: 0;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--navy);
}
.step-label {
  display: inline-block; font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--gold); margin-bottom: 10px;
}
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; margin-bottom: 8px; line-height: 1.2; }
.step-desc { color: rgba(246,240,228,.72); font-size: 0.97rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 6vw, 84px); align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(27,42,74,.55);
  aspect-ratio: 4 / 5;
}
.about-photo { width: 100%; height: 100%; object-fit: cover; }
.about-photo-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 8px rgba(251,247,238,.5);
  border-radius: var(--radius-lg);
}
.about-photo-tag {
  position: absolute; right: -14px; bottom: 26px;
  background: var(--navy); color: var(--cream);
  padding: 14px 20px; border-radius: 8px; font-size: 13px; letter-spacing: 0.14em; line-height: 1.5;
  box-shadow: 0 16px 34px -18px rgba(27,42,74,.7);
}
.about-photo-tag span { color: var(--slate-soft); font-size: 10px; }
.about-copy .section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.about-text { display: flex; flex-direction: column; gap: 16px; margin: 8px 0 28px; }
.about-text p { color: var(--ink-70); font-size: 1.04rem; }
.about-link { font-size: 1.05rem; }

/* ---------- Schedule ---------- */
.schedule {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(110,134,168,.22), transparent),
    radial-gradient(900px 500px at -10% 120%, rgba(176,137,91,.18), transparent),
    var(--navy);
  color: var(--cream);
}
.schedule-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
.schedule-title {
  font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 90, "SOFT" 40;
  font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -0.015em;
  color: #fff; margin-bottom: 18px;
}
.schedule-lead { font-size: 1.06rem; color: rgba(246,240,228,.8); max-width: 44ch; margin: 0 0 24px; }
.schedule-points { display: flex; flex-direction: column; gap: 12px; }
.schedule-points li { position: relative; padding-left: 28px; color: rgba(246,240,228,.9); font-size: 1rem; }
.schedule-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.schedule-widget .calendly-inline-widget {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.5);
}

/* ---------- Contact ---------- */
.contact { background: var(--cream-deep); }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-alt { margin-top: 26px; font-size: 1.05rem; color: var(--ink-70); }

.contact-form {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 30px 60px -42px rgba(27,42,74,.4);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--navy); text-transform: uppercase; }
.field label .req { color: var(--gold-deep); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-50); opacity: .7; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,91,.16);
}
.field.invalid input, .field.invalid textarea { border-color: #b5493a; box-shadow: 0 0 0 3px rgba(181,73,58,.12); }
.field-error { font-size: 12.5px; color: #b5493a; min-height: 0; display: none; }
.field.invalid .field-error { display: block; }
.form-status { margin-top: 16px; font-size: 14.5px; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #3f7a52; }
.form-status.err { color: #b5493a; }
#submitBtn[disabled] { opacity: .7; cursor: progress; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy); color: var(--cream); padding-top: 60px; }
.footer-inner {
  display: grid; grid-template-columns: 1.35fr 0.65fr 1fr; gap: 40px 56px; align-items: start;
  padding-bottom: 44px; border-bottom: 1px solid rgba(246,240,228,.14);
}
.footer-logo {
  height: 148px; width: auto; margin-bottom: 16px;
  opacity: .95;
}
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: rgba(246,240,228,.65); }
.footer-head {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { color: rgba(246,240,228,.78); font-size: 15px; transition: color .25s var(--ease); width: fit-content; }
.footer-nav a:hover { color: var(--gold); }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; }
.footer-cta-text { color: rgba(246,240,228,.68); font-size: 14.5px; max-width: 30ch; margin-bottom: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 28px;
}
.footer-bottom .mono { font-size: 11.5px; letter-spacing: 0.06em; color: rgba(246,240,228,.5); }
.footer-credit { color: rgba(246,240,228,.75); transition: color .25s var(--ease); }
.footer-credit:hover { color: var(--gold); }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; min-height: 0; padding-top: 10px; }
  .hero-visual svg { max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .br-lg { display: none; }
  .schedule-layout { grid-template-columns: 1fr; gap: 34px; }
  .process-head { align-items: flex-start; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 30px; border-top: none; padding-top: 0; }
  .step::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo-wrap { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 82px; }
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .brand-logo { height: 44px; }
  .site-header.scrolled .brand-logo { height: 40px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .service-item { grid-template-columns: auto 1fr; gap: 16px; }
  .service-tag { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .schedule-widget .calendly-inline-widget { height: 1000px !important; }
  .section-fill { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .btn { padding: 13px 22px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
