/* Rostron Accounting — shared styles */

:root {
  --navy: #1F3A5C;
  --navy-hover: #2D4E76;
  --navy-card: #28466B;
  --navy-rule: #3F5B7E;
  --link-hover: #3B5E86;
  --cream: #FBF8F4;
  --ink: #1C2A3D;
  --body: #3A4757;
  --muted: #6B7F96;
  --muted-2: #5A6878;
  --sand: #F1E4D2;
  --sand-bg: #F4ECE1;
  --line: #E3D7C6;
  --line-soft: #EADFD0;
  --line-faint: #EFE6DA;
  --blue: #DCE6F0;
  --blue-card: #EEF3F8;
  --blue-rule: #B7C8DB;
  --pale: #B9C8D9;
  --gold: #D9A43A;
  --gold-light: #F3C766;
  --white: #FFFFFF;
  --serif: Lora, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.strong { color: var(--navy); font-weight: 700; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 244, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-header .logo { display: flex; }
.site-header .logo img { height: 52px; width: auto; display: block; }
.site-nav {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.site-nav a[aria-current="page"] { font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-align: center;
  background: var(--navy); color: var(--cream);
  border: 1.5px solid var(--navy);
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: var(--cream); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--sand); border-color: var(--navy); color: var(--navy); }
.btn-nav { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.display {
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; font-weight: 600;
  letter-spacing: -.02em; color: var(--navy); text-wrap: balance;
}
.section-title {
  font-size: clamp(34px, 4vw, 52px); font-weight: 600;
  color: var(--navy); letter-spacing: -.02em;
}
.subhead {
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 600;
  color: var(--navy); letter-spacing: -.01em; text-wrap: balance;
}
.tagline {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45;
  color: var(--link-hover); text-wrap: pretty;
}
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.75; color: var(--body); }
.prose p { text-wrap: pretty; }
.prose em { font-family: var(--serif); font-size: 19px; color: var(--navy); font-weight: 500; }
.prose strong { color: var(--navy); }

.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 500; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Layout grids ---------- */
.grid { display: grid; }
.cols-420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cols-360 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.cols-340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cols-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cols-300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cols-270 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

.band-navy { background: var(--navy); color: var(--cream); }
.band-sand { background: var(--sand-bg); }
.section { padding-top: 96px; padding-bottom: 96px; }

.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}

/* ---------- Hero ---------- */
.hero { padding-top: 72px; padding-bottom: 80px; gap: 56px; align-items: center; }
.hero-copy { gap: 24px; }
.hero-lede { font-size: 18px; line-height: 1.6; max-width: 30em; color: var(--body); }
.hero-lede strong { color: var(--navy); }
.hero-photo { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-photo::before {
  content: ""; position: absolute; inset: 6% -4% -4% 6%;
  background: var(--sand); border-radius: 50%;
}
.hero-photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 788 / 940; object-fit: contain; }

.page-intro { padding-top: 56px; display: flex; flex-direction: column; gap: 40px; }

/* ---------- Quote ---------- */
.quote { padding-top: 88px; padding-bottom: 88px; text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.quote-mark { font-family: var(--serif); font-size: 80px; line-height: .5; color: var(--sand); }
.quote-text {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3;
  font-weight: 500; text-wrap: balance;
}
.quote-text em { color: var(--sand); }
.quote-by { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pale); }
.stars { color: var(--gold); letter-spacing: .1em; }

/* ---------- Package cards (homepage) ---------- */
.pkg-light { --bg: var(--white); --fg: var(--navy); --rule: var(--line); --card: var(--white); --border: var(--line); }
.pkg-blue  { --bg: var(--blue); --fg: var(--navy); --rule: var(--blue-rule); --card: var(--blue-card); --border: #C7D5E4; }
.pkg-navy  { --bg: var(--navy); --fg: var(--cream); --rule: var(--navy-rule); --card: var(--navy-card); --border: var(--navy); }

.pkg-card {
  background: var(--bg); color: var(--fg); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.pkg-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.pkg-icon img { width: 40px; height: 40px; object-fit: contain; }
.pkg-icon-lg { width: 72px; height: 72px; border-radius: 18px; }
.pkg-icon-lg img { width: 44px; height: 44px; }
.pkg-card h3 { font-size: 26px; font-weight: 600; }
.price { font-size: 15px; font-weight: 500; }
.price .soft { opacity: .75; }
.price .amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.pkg-for { font-size: 16px; font-weight: 600; line-height: 1.45; }
.ticks {
  padding: 22px 0 0; border-top: 1px solid var(--rule); list-style: none;
  display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.4;
}
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "✓"; font-weight: 700; }
.ticks li.lead { font-weight: 600; }
.pkg-ideal { margin-top: auto; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; opacity: .85; }
.pkg-actions { display: flex; flex-direction: column; gap: 10px; }
.pkg-btn {
  text-align: center; padding: 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--fg);
}
.pkg-btn-solid, .pkg-btn-solid:hover { background: var(--fg); color: var(--bg); }
.pkg-btn-ghost, .pkg-btn-ghost:hover { color: var(--fg); }
.pkg-btn:hover { opacity: .88; }

/* ---------- Service links ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.service-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--white); color: var(--navy);
}
.service-link:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.service-link .name-wrap { display: flex; align-items: baseline; gap: 16px; }
.service-link .num { font-size: 13px; font-weight: 600; opacity: .55; font-variant-numeric: tabular-nums; }
.service-link .name { font-size: 20px; font-weight: 600; }
.service-link .arrow { font-size: 22px; }
.service-link.compact { padding: 24px 28px; }
.service-link.compact .name { font-size: 19px; }

/* ---------- Testimonials ---------- */
.review {
  background: var(--cream); color: var(--ink); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.review .stars { font-size: 18px; letter-spacing: .12em; }
.review blockquote { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.6; }
.review figcaption { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact panel ---------- */
.contact-panel {
  background: var(--sand); border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  gap: 40px; align-items: center;
}
.contact-panel .contact-copy { gap: 14px; }
.contact-panel .contact-copy p { font-size: 17px; line-height: 1.65; color: var(--body); }
.contact-panel .contact-detail { font-size: 18px; font-weight: 500; word-break: break-word; }
.contact-panel .contact-detail.lg { font-size: 20px; }
.cta-title {
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; font-weight: 600;
  color: var(--navy); letter-spacing: -.02em; text-wrap: balance;
}
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-quick a {
  border: 1.5px solid var(--navy); padding: 14px 8px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-align: center;
}
.contact-quick a:hover { background: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .wrap {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.7; color: var(--muted-2);
}
.site-footer strong { color: var(--navy); font-size: 14px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: start; font-weight: 500; }

/* ---------- About ---------- */
.about-photo { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.about-photo::before {
  content: ""; position: absolute; inset: 5% -5% -5% 5%;
  background: var(--sand); border-radius: 28px;
}
.about-photo img {
  position: relative; display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 28px;
}
.credential { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--navy-rule); }
.credential .eyebrow { color: var(--pale); }
.credential p { font-size: 22px; font-weight: 600; line-height: 1.35; }
.credential em { color: var(--sand); }
.story-row { gap: 24px 64px; align-items: start; }

/* ---------- Packages page ---------- */
.pkg-jump { display: flex; gap: 12px; flex-wrap: wrap; }
.pkg-jump a {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 20px;
  border: 1.5px solid var(--navy); border-radius: 999px; font-weight: 600; font-size: 15px;
}
.pkg-jump a:hover { background: var(--sand); }
.pkg-jump .from { font-weight: 500; opacity: .7; font-size: 14px; }

.pkg-section { background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); }
.pkg-section.pkg-light { background: var(--cream); }
.pkg-section > .wrap { padding-top: 88px; padding-bottom: 88px; gap: 48px 64px; align-items: start; }
.pkg-summary { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.pkg-summary .eyebrow { color: inherit; opacity: .7; }
.pkg-summary h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
.pkg-summary .price .amount { font-size: 44px; }
.pkg-summary .for { font-size: 18px; font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.pkg-summary .ideal { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.55; opacity: .85; }
.pkg-summary .pkg-btn { align-self: flex-start; margin-top: 6px; padding: 15px 26px; }
.pkg-items { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pkg-inherits {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 24px; border-radius: 16px; border: 1.5px dashed var(--rule);
  color: var(--fg); font-weight: 600; font-size: 16px;
}
.pkg-inherits:hover { color: var(--fg); opacity: .85; }
.pkg-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 6px 14px;
  padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule);
}
.pkg-item::before { content: "✓"; font-weight: 700; font-size: 16px; line-height: 1.4; }
.pkg-item > div { display: flex; flex-direction: column; gap: 6px; }
.pkg-item .t { font-size: 17px; font-weight: 600; line-height: 1.35; }
.pkg-item a.t { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pkg-item .d { font-size: 15px; line-height: 1.6; opacity: .85; text-wrap: pretty; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare thead tr { background: var(--sand-bg); color: var(--navy); }
.compare th { padding: 18px 16px; font-weight: 600; text-align: center; }
.compare th:first-child { text-align: left; padding: 18px 24px; }
.compare th .from { font-weight: 500; font-size: 13px; opacity: .75; }
.compare th.hl { background: var(--navy); color: var(--cream); }
.compare th.hl .from { opacity: .8; }
.compare tbody tr { border-top: 1px solid var(--line-faint); }
.compare td { padding: 15px 16px; text-align: center; color: var(--body); }
.compare td:first-child { padding: 15px 24px; text-align: left; color: var(--navy); font-weight: 500; }
.compare td.hl { color: var(--navy); font-weight: 600; background: #F2F5F9; }

/* ---------- Service pages ---------- */
.detail-group { gap: 24px 56px; align-items: start; }
.detail-items {
  grid-column: span 2; min-width: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px;
}
.detail-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px;
}
.detail-card h3 { font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.detail-card p { font-size: 15px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.callout { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 22px; }
.callout .eyebrow { color: var(--pale); }
.callout h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25;
  font-weight: 500; color: var(--sand); text-wrap: balance;
}
.callout p { font-size: 17px; line-height: 1.75; color: var(--blue); text-wrap: pretty; }
.included {
  border: 1px solid var(--line); background: var(--white); border-radius: 24px;
  padding: clamp(28px, 4vw, 44px); gap: 28px; align-items: center;
}
.included h2 { font-size: 26px; font-weight: 600; color: var(--navy); }
.included p { font-size: 16px; line-height: 1.6; color: var(--body); }
.included-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.included-links a {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 22px; border-radius: 16px;
  background: var(--blue); color: var(--navy); min-width: 180px;
}
.included-links a:hover { background: var(--navy); color: var(--cream); }
.included-links .n { font-size: 16px; font-weight: 600; }
.included-links .p { font-size: 13px; font-weight: 500; opacity: .8; }

/* ---------- Contact page ---------- */
.contact-list { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line-soft); }
.contact-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft); transition: padding-left .15s;
}
.contact-list a:hover { padding-left: 8px; }
.contact-list .value { font-size: 18px; font-weight: 600; word-break: break-word; }
.contact-list .arrow { font-size: 20px; }

.form-panel { background: var(--sand); border-radius: 32px; padding: clamp(28px, 4vw, 48px); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form[hidden], .form-sent[hidden] { display: none; }
.contact-form h2 {
  font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; font-weight: 600;
  color: var(--navy); letter-spacing: -.01em;
}
.contact-form .hint { font-size: 15px; color: var(--muted-2); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--cream); border: 1.5px solid #E2D2BC; border-radius: 14px;
  padding: 14px 16px; outline: none;
}
.field textarea { line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.contact-form button[type="submit"] { font-family: inherit; cursor: pointer; }

.topics { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.topics legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; border: 1.5px solid var(--navy); border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.chip:hover span { background: var(--cream); }
.chip input:checked + span { background: var(--navy); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.form-sent { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.form-sent h2 {
  font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 600;
  color: var(--navy); letter-spacing: -.01em;
}
.form-sent p { font-size: 17px; line-height: 1.7; color: var(--body); }
.form-sent:focus { outline: none; }
.sent-tick {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
}
.form-error {
  background: #FBEAEA; border: 1.5px solid #C9897F; color: #7A2E24;
  border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.55;
}
.form-error[hidden] { display: none; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }
.contact-form button[type="submit"]:disabled { opacity: .7; cursor: progress; }
.btn-reset { align-self: flex-start; padding: 14px 24px; font-size: 14px; font-family: inherit; cursor: pointer; }
.btn-reset:hover { background: var(--cream); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 48px; }
.legal .prose h2 {
  margin-top: 16px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25;
  font-weight: 600; color: var(--navy); letter-spacing: -.01em;
}
.legal .prose h2:first-child { margin-top: 0; }

@media (max-width: 760px) {
  .pkg-summary { position: static; }
  .detail-items { grid-column: auto; }
}
