/* Westbridge Accounting Services — ledger paper, ink, red-pencil double underline */
:root {
  --paper: #e9f0e1;
  --paper-2: #dbe6d1;
  --sheet: #f8faf3;
  --ink: #13231b;
  --ink-2: #1d3a2c;
  --red: #b3302a;
  --blue: #2c6c98;
  --muted: #465a4e;
  --rule: rgba(19, 35, 27, .17);
  --f-head: 'Bitter', Georgia, 'Times New Roman', serif;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 118px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Signature: the accountant's double underline beneath a grand total */
.total {
  text-decoration: underline double var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}

/* Ledger ruling */
.ruled {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule) 35px, var(--rule) 36px);
}
.margin-rule { position: relative; }
.margin-rule::before, .margin-rule::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(179, 48, 42, .55);
  left: 14px; pointer-events: none;
}
.margin-rule::after { left: 18px; }
@media (min-width: 992px) {
  .margin-rule::before { left: 48px; }
  .margin-rule::after { left: 53px; }
}

/* ---------- Navbar: centered logo stacked above link row ---------- */
.site-nav {
  background: var(--sheet);
  border-bottom: 3px double var(--ink);
  padding: .55rem 0 0;
  z-index: 1030;
}
.site-nav .navbar-brand { margin: 0 0 .5rem; padding: 0; }
.site-nav .navbar-brand img { height: 28px; width: auto; display: block; }
.site-nav .navbar-toggler { border: 2px solid var(--ink); padding: .3rem .55rem; margin-bottom: .5rem; }
.navbar .nav-link {
  font-weight: 600; font-size: .95rem; color: var(--ink); padding: .65rem .8rem;
  border-bottom: 3px solid transparent;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--red); border-bottom-color: var(--red); }
.nav-portal { font-weight: 700; }
.nav-phone { font-family: var(--f-mono); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink); }

@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { border-top: 1px solid var(--rule); }
  .navbar .nav-link { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav .navbar-nav { padding: .25rem 0 .75rem; }
  .nav-extra { padding-bottom: 1rem; }
}
@media (min-width: 1200px) {
  .site-nav { padding-top: .7rem; }
  .site-nav .navbar-brand { width: 100%; text-align: center; margin-bottom: .55rem; }
  .site-nav .navbar-brand img { height: 52px; margin: 0 auto; }
  .navbar.navbar-expand-xl .navbar-collapse {
    flex-basis: 100%; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--rule);
  }
  .nav-extra { display: flex; align-items: center; gap: 1rem; }
  .navbar-nav { margin: 0 auto; }
}
@media (max-width: 575.98px) { :root { --nav-h: 76px; } }
@media (min-width: 576px) and (max-width: 1199.98px) { :root { --nav-h: 80px; } .site-nav .navbar-brand img { height: 36px; } }

/* ---------- Buttons ---------- */
.btn-ink, .btn-red, .btn-line {
  font-family: var(--f-body); font-weight: 700; border-radius: 3px; padding: .8rem 1.35rem;
  border: 2px solid var(--ink); font-size: 1rem; transition: background-color .15s, color .15s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-line { color: var(--paper); border-color: var(--paper); }
.on-dark .btn-line:hover { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 4.5rem; }
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.9rem); font-weight: 800; line-height: 1.02; margin: 0 0 1.25rem;
}
.hero .lede { font-size: 1.25rem; max-width: 34rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }
.hero-index { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.hero-index a {
  display: inline-block; padding: .4rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; background: var(--sheet);
}
.hero-index a:hover { background: var(--ink); color: var(--paper); }
.hero-photo { position: relative; max-width: 560px; margin: 0 auto; transform: rotate(1.8deg); }
.hero-photo img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 8px solid var(--sheet); box-shadow: 14px 14px 0 var(--ink-2);
}
.seal {
  position: absolute; left: -22px; bottom: -26px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-9deg); border: 3px double rgba(255, 255, 255, .85);
  font-family: var(--f-head); line-height: 1.1;
}
.seal small { font-family: var(--f-body); font-size: .72rem; font-weight: 600; padding: 0 .6rem; }
.seal strong { font-size: 1.9rem; font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sheet { background: var(--sheet); }
.section-ink { background: var(--ink-2); color: var(--paper); }
.section-ink a { color: #bfe0f5; }
.section-ink a:hover { color: #fff; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1.1rem; }
.kicker { font-family: var(--f-mono); font-size: .95rem; color: var(--muted); margin-bottom: .5rem; }
.section-ink .kicker { color: #b8cdbf; }
.lead-copy { max-width: 40rem; color: var(--ink-2); }
.section-ink .lead-copy { color: #e1ebdf; }

/* About */
.cred {
  border-left: 5px solid var(--red); background: var(--sheet); padding: 1.1rem 1.3rem; margin-top: 1.5rem;
  font-family: var(--f-head); font-size: 1.1rem; line-height: 1.5;
}
.values { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--ink); }
.values li { padding: 1.35rem 0; border-bottom: 1px solid var(--ink); }
.values h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.values p { margin: 0; color: var(--ink-2); }

/* Consultation band */
.band {
  background: linear-gradient(rgba(19, 35, 27, .28), rgba(19, 35, 27, .28)), url('img/consult.webp') center/cover no-repeat;
  padding: 6rem 0;
}
.band-card { background: var(--sheet); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 2.2rem; max-width: 640px; }
.band-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

/* Services ledger index */
.ledger { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 3px double var(--ink); }
.ledger > li { display: grid; grid-template-columns: 1fr; gap: .35rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--ink); }
.ledger h3 { font-size: 1.55rem; margin: 0; }
.ledger p { margin: 0; color: var(--ink-2); }
.ledger .more { font-weight: 700; display: inline-block; margin-top: .4rem; }
@media (min-width: 768px) { .ledger > li { grid-template-columns: 17rem 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: .8rem 0 .8rem 2.4rem; border-bottom: 1px solid var(--rule); }
.checks li::before {
  content: ""; position: absolute; left: .35rem; top: 1.05rem; width: .55rem; height: 1rem;
  border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(40deg);
}

/* Tax relief accordion */
.relief-photo { border: 6px solid var(--paper); box-shadow: 10px 10px 0 rgba(0, 0, 0, .35); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: rgba(233, 240, 225, .35); --bs-accordion-color: var(--paper);
  --bs-accordion-btn-color: var(--paper); --bs-accordion-active-bg: rgba(0, 0, 0, .18); --bs-accordion-active-color: #fff;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--red); --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
.accordion-button { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; background: transparent; }
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-button::after { filter: invert(1) brightness(2); }
.accordion-item { border-left: 0; border-right: 0; }
.accordion-body { color: #e8f0e4; }

/* Business FAQ */
.faq { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 3px double var(--ink); }
.faq > li { padding: 1.4rem 0; border-bottom: 1px solid var(--ink); display: grid; gap: .4rem 2rem; }
.faq q { quotes: "\201C" "\201D"; font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.faq p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) { .faq > li { grid-template-columns: 1fr 1fr; } }
.biz-photo { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border: 6px solid var(--sheet); box-shadow: 10px 10px 0 var(--ink-2); }
.startup { background: var(--ink-2); color: var(--paper); padding: 1.6rem 1.8rem; margin-top: 2.5rem; }
.startup h3 { font-size: 1.5rem; }
.startup p { margin: 0 0 .8rem; color: #e1ebdf; }

/* Reviews */
.review { margin: 0; padding: 1.8rem; background: var(--paper); border: 2px solid var(--ink); height: 100%; position: relative; }
.review p { font-family: var(--f-head); font-weight: 600; font-size: 1.35rem; line-height: 1.35; margin: 0; }
.review::before { content: "\201C"; position: absolute; top: -.1rem; left: .9rem; font-family: var(--f-head); font-size: 4rem; color: var(--red); line-height: 1; }
.review p { padding-top: 1.6rem; }

/* Tax center */
.tc { display: block; height: 100%; padding: 1.5rem; background: var(--sheet); border: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.tc:hover { background: var(--ink); color: var(--paper); }
.tc:hover h3, .tc:hover p { color: var(--paper); }
.tc h3 { font-size: 1.35rem; margin-bottom: .35rem; color: var(--ink); }
.tc p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Contact: adding-machine tape */
.tape {
  background: #fffef8; border: 1px solid var(--rule); box-shadow: 0 10px 0 -4px var(--paper-2), 0 3px 18px rgba(19, 35, 27, .18);
  padding: 1.8rem 1.6rem 2rem; font-family: var(--f-mono); font-size: 1rem; max-width: 460px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px));
  padding-bottom: 2.6rem;
}
.tape .name { font-weight: 600; text-align: center; border-bottom: 1px dashed var(--ink); padding-bottom: .8rem; margin-bottom: .8rem; line-height: 1.4; }
.tape dl { margin: 0; }
.tape .line { display: flex; gap: .6rem; padding: .3rem 0; align-items: baseline; }
.tape dt { font-weight: 400; color: var(--muted); flex: 0 0 5.2rem; }
.tape dd { margin: 0; font-weight: 600; word-break: break-word; }
.tape a { color: var(--ink); }
.tape .sum { margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed var(--ink); display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.map-wrap { border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink-2); }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 2rem; }
.site-footer a { color: #cfe6f4; }
.site-footer a:hover { color: #fff; }
.logo-chip { display: inline-block; background: var(--sheet); border-radius: 6px; padding: .6rem .9rem; }
.logo-chip img { display: block; height: 30px; width: auto; }
.site-footer h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 700; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer address { font-style: normal; margin: 0; }
.foot-bottom { border-top: 1px solid rgba(233, 240, 225, .25); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .92rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; }
.powered {
  display: inline-block; padding: .45rem .9rem; border: 1.5px solid rgba(233, 240, 225, .6); border-radius: 999px;
  text-decoration: none; color: var(--paper); font-weight: 500;
}
.powered strong { font-weight: 800; border-bottom: 2px double var(--red); }
.powered:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 575.98px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 2rem 0 3.5rem; }
  .seal { width: 104px; height: 104px; left: -8px; }
  .seal strong { font-size: 1.5rem; }
  .band { padding: 3.5rem 0; }
  .band-card { padding: 1.4rem; box-shadow: 6px 6px 0 var(--ink); }
  .hero-photo img { box-shadow: 8px 8px 0 var(--ink-2); }
}

@media (max-width: 991.98px) {
  .margin-rule > .container { padding-left: 2rem; }
}
