/* Pathway Tax & Financial — site styles */

:root {
  --ink: #14304A;
  --ink-deep: #0E2436;
  --teal: #1E5F74;
  --teal-light: #9FC3D2;
  --accent: #A63A2A;
  --accent-dark: #8A2F21;
  --ground: #F6F2EA;
  --sand: #DCD3C2;
  --line: #DDD5C6;
  --body: #3E4A56;
  --muted: #5A6571;
  --white: #FFFFFF;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --logo: 'Outfit', 'Public Sans', Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.2vw, 26px); }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 160px); margin: 0 auto; padding: 0 80px; }
.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--ink); color: var(--ground); }
.kicker { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; color: var(--teal); }
.section--navy .kicker { color: var(--teal-light); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.lede { font-size: 20px; color: var(--body); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 6px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light { border-color: var(--ground); color: var(--white); }
.btn--light:hover { background: var(--ground); color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Top bar */
.topbar { background: var(--ink); color: #E8E2D6; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #E8E2D6; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar-links { display: flex; gap: 28px; align-items: center; }
.topbar .phone { color: var(--white); font-weight: 600; }

/* Header */
.header { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; }
.header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-family: var(--logo); font-size: 30px; font-weight: 700; letter-spacing: -0.6px; line-height: 1; }
.logo-sub { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.nav { display: flex; gap: 34px; align-items: center; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.nav .btn { color: var(--white); text-decoration: none; min-height: 46px; }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: 96px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-call { font-size: 16px; color: var(--body); }
.hero-call a { color: var(--ink); font-weight: 600; }
.hero-visual { position: relative; min-height: 480px; }
.photo {
  position: relative; overflow: hidden; border-radius: 10px; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.photo > svg { width: 38%; max-width: 160px; opacity: 0.35; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .photo { position: absolute; top: 0; right: 0; width: 88%; height: 440px; }
.client-box {
  position: absolute; bottom: 0; left: 0; width: 300px; padding: 24px 26px; border-radius: 10px;
  background: var(--ink); color: var(--ground); display: flex; flex-direction: column; gap: 8px;
}
.client-box strong { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.client-box span { font-size: 15px; color: #D5DEE6; }
.client-box .links { display: flex; gap: 18px; margin-top: 6px; font-weight: 600; font-size: 15px; }
.client-box a { color: var(--white); }

/* Services */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-head a { font-weight: 600; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.service-card { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; background: var(--ground); border-radius: 10px; }
.service-card p { color: var(--body); }
.service-card > a { font-weight: 600; margin-top: auto; }
.icon-dot { width: 52px; height: 52px; border-radius: 26px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; }
.icon-dot svg { width: 24px; height: 24px; }
.icon-dot--accent { background: var(--accent); }
.icon-dot--teal { background: var(--teal); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { font-size: 13px; letter-spacing: 2px; font-weight: 700; color: var(--teal); padding: 6px 12px; border: 1px solid var(--teal); border-radius: 999px; white-space: nowrap; }

/* Steps */
.steps-head { text-align: center; margin-bottom: 48px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--serif); font-size: 56px; color: var(--accent); line-height: 1; }
.step h3 { font-family: var(--sans); font-size: 21px; font-weight: 700; }
.step p { color: var(--body); }

/* About */
.about .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.about .photo { width: 100%; max-width: 400px; aspect-ratio: 3 / 4; justify-self: center; background: #25445F; }
.about .photo img { object-position: center 30%; }
.about .photo > svg { opacity: 0.5; }
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-copy h2 { color: var(--white); }
.creds { margin-top: -8px; font-size: 16px; letter-spacing: 3px; font-weight: 600; color: var(--teal-light); }
.about-copy p { font-size: 18px; line-height: 1.7; color: #D5DEE6; }
.about-copy .btn { align-self: flex-start; }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.resource {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink);
}
.resource:hover { border-color: var(--teal); color: var(--ink); }
.resource svg { width: 26px; height: 26px; }
.resource strong { font-size: 19px; }
.resource span { font-size: 15px; line-height: 1.5; color: var(--body); }

/* Contact band */
.contact-band { padding: 0 0 96px; }
.contact-card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 64px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.contact-card .lead { display: flex; flex-direction: column; gap: 20px; }
.contact-card .lead p { font-size: 18px; color: var(--body); }
.contact-facts { display: grid; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.fact a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fact a:hover { text-decoration: underline; }
.fact small { color: var(--muted); font-size: 15px; }

/* Inner pages */
.page-head { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 18px; }
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.detail:last-child { border-bottom: 0; }
.detail-intro { display: flex; flex-direction: column; gap: 16px; }
.detail-intro p { color: var(--body); }
.detail-body { display: flex; flex-direction: column; gap: 20px; color: var(--body); }
.detail-body h3 { color: var(--ink); font-family: var(--sans); font-size: 19px; font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; background: var(--ground); }
.note { font-size: 15px; color: var(--muted); }
.cta-strip { background: var(--ink); color: var(--ground); padding: 64px 0; }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-strip h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); }

/* Footer */
.footer { background: var(--ink-deep); color: #B9C6D1; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.footer a { color: #B9C6D1; }
.footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 1000px) {
  .wrap { padding: 0 32px; }
  .nav { gap: 22px; }
  .hero .wrap, .about .wrap, .contact-card, .detail { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; display: flex; flex-direction: column; gap: 20px; }
  .hero .photo, .client-box { position: static; width: 100%; }
  .hero .photo { height: 320px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { padding: 40px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .topbar { display: none; }
  .header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .logo svg { width: 32px; height: 32px; }
  .logo-name { font-size: 23px; letter-spacing: -0.4px; }
  .logo-sub { font-size: 10px; letter-spacing: 2px; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: transparent; border: 0; color: var(--ink); padding: 0; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--ground); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .hero { padding: 40px 0 48px; }
  .hero-copy { gap: 20px; }
  .lede { font-size: 17px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .hero .photo { height: 240px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .service-grid, .steps, .resource-grid, .contact-facts { grid-template-columns: 1fr; }
  .service-grid { gap: 16px; }
  .service-card { padding: 26px 22px; }
  .steps { gap: 28px; }
  .step-num { font-size: 40px; }
  .about .photo { max-width: 300px; }
  .contact-band { padding-bottom: 56px; }
  .contact-card { padding: 28px 22px; }
  .page-head { padding: 48px 0 40px; }
  .detail { padding: 48px 0; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}

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

/* Booking schedule note */
.schedule { font-size: 17px; color: var(--ink); line-height: 1.7; padding: 14px 18px; background: var(--ground); border-left: 3px solid var(--accent); border-radius: 4px; }

/* Quote call-to-action card */
.service-card--cta { background: var(--ink); color: var(--ground); text-decoration: none; }
.service-card--cta h3 { color: var(--white); }
.service-card--cta p { color: #D5DEE6; }
.service-card--cta .cta-link { margin-top: auto; font-weight: 600; color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.service-card--cta:hover { background: #1B3D5C; color: var(--ground); }
.page-head .btn-row { margin-top: 8px; }

/* Quote tool */
.quote-section { padding-top: 56px; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.quote-form { display: flex; flex-direction: column; gap: 24px; }
.q-card { margin: 0; padding: 28px 28px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.q-card legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.q-card legend + * { clear: both; }
.q-field { display: flex; flex-direction: column; gap: 8px; }
.q-field > span, .q-legend { font-weight: 600; color: var(--ink); font-size: 16px; }
.q-field small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.q-num { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.q-num input { width: 84px; flex-shrink: 0; }
.q-card select, .q-card input[type="number"] {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  min-height: 46px; padding: 0 12px; border: 1px solid #BDB3A2; border-radius: 6px;
}
.q-card select { width: 100%; }
.q-card select:focus, .q-card input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.q-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.q-pill { position: relative; }
.q-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #BDB3A2; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; }
.q-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.q-pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.q-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 16px; line-height: 1.45; }
.q-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.q-sub { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--ground); border-radius: 8px; }
.q-sub[hidden], .q-card [hidden] { display: none; }
.q-more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.q-more summary { cursor: pointer; font-weight: 600; color: var(--teal); padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.q-more[open] { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; }

.quote-summary { position: sticky; top: 24px; }
.q-summary-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.q-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 52vh; overflow-y: auto; }
.q-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--body); }
.q-lines li.q-group { border-bottom: 0; padding: 14px 0 2px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.q-lines li.q-group:first-child { padding-top: 0; }
.q-amt { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 6px; }
.q-total-row span { font-weight: 700; }
.q-total-row strong { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.q-actions { display: flex; flex-direction: column; gap: 10px; }
.q-mini { display: flex; justify-content: center; gap: 24px; }
.link-btn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--teal); text-decoration: underline; cursor: pointer; }
.q-bar { display: none; }

@media (max-width: 1000px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .q-lines { max-height: none; }
  .q-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 14px 20px;
    background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600;
    box-shadow: 0 -4px 16px rgba(14, 36, 54, 0.2);
  }
  .q-bar:hover { color: var(--white); }
  .q-bar strong { font-family: var(--serif); font-size: 24px; }
  .quote-section { padding-bottom: 96px; }
}
@media (max-width: 760px) {
  .q-card { padding: 22px 18px 18px; }
  .q-summary-card { padding: 22px 18px; }
  .q-total-row strong { font-size: 32px; }
}

@media print {
  .topbar, .header, .footer, .page-head, .quote-form, .q-actions, .q-bar { display: none !important; }
  body { background: #fff; }
  .quote-layout { display: block; }
  .q-summary-card { border: 0; padding: 0; }
  .q-lines { max-height: none; overflow: visible; }
}

/* Collapse the menu earlier now that it has five links */
@media (max-width: 1000px) {
  .topbar .wrap > span { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: transparent; border: 0; color: var(--ink); padding: 0; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 20px;
    background: var(--ground); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}
@media (max-width: 760px) { .nav { padding: 8px 20px 20px; } }
