/* ==========================================================================
   2BN Accounting site stylesheet
   Palette: near-black / warm gold / off-white
   ========================================================================== */

:root {
  --ink:        #111111;
  --ink-soft:   #1c1c1c;
  --charcoal:   #2a2a2a;
  --grey:       #6b6b6b;
  --grey-light: #e6e4e0;
  --paper:      #ffffff;
  --paper-warm: #faf8f5;
  --gold:       #f0a92b;
  --gold-deep:  #d18d13;
  --gold-pale:  #fdf3e2;

  --wrap: 1180px;
  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 10px 34px rgba(0,0,0,.10);
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }

a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-deep); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 68px 0; }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--ink); color: #d8d5d0; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* --- shared bits ----------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold); }

.lede { font-size: 1.16rem; color: var(--grey); max-width: 62ch; }
.section--dark .lede { color: #b3afa8; }

.rule {
  width: 56px; height: 3px; background: var(--gold);
  border: 0; margin: 0 0 26px;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.section--dark .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--ink);
  color: #cfccc6;
  font-size: .85rem;
  padding: 9px 0;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.topbar a { color: #cfccc6; }
.topbar a:hover { color: var(--gold); }
.topbar__contact { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 8px; }
.topbar__social { display: flex; gap: 16px; align-items: center; }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--grey-light);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; list-style: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > li > a {
  display: block;
  padding: 12px 15px;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  border-radius: var(--radius);
}
.nav > li > a:hover,
.nav > li > a[aria-current="page"] { color: var(--gold-deep); }
.nav > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

.nav__list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }

/* vertical bar between top-level nav items.
   The last item is the gold CTA button and the one before it is Contact, so
   both are excluded: no bar sits immediately before the button. */
.nav__list > li { display: flex; align-items: center; }
.nav__list > li:not(:last-child):not(:nth-last-child(2))::after {
  content: "|";
  color: #cfcbc4;
  font-weight: 400;
  line-height: 1;
  margin: 0 2px;
  pointer-events: none;
  user-select: none;
}
/* breathing room before the gold button */
.nav__list > li:last-child { margin-left: 14px; }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s var(--ease);
}
.nav > li:hover .submenu,
.nav > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 9px 14px; font-size: .89rem; border-radius: 3px;
  color: var(--charcoal);
}
.submenu a:hover { background: var(--gold-pale); color: var(--ink); }

.nav-cta { white-space: nowrap; padding: 12px 26px; font-size: .9rem; }

.burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 10px; margin-right: -10px;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .25s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 108px 0 116px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 460px at 88% 18%, rgba(240,169,43,.16), transparent 62%),
    radial-gradient(560px 420px at 4% 96%, rgba(240,169,43,.07), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 64px; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal; color: var(--gold);
  display: block;
}
.hero__text { font-size: 1.18rem; color: #b8b4ae; max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art { display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 430px; height: auto; }

/* thin gold strip under the hero */
.hero-strip {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: 16px 0;
}
.hero-strip .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; text-align: center; flex-wrap: wrap;
}
.hero-strip a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Page banner (inner pages)
   ========================================================================== */

.banner {
  background: var(--ink);
  color: #fff;
  padding: 78px 0 72px;
  position: relative; overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(640px 380px at 92% 10%, rgba(240,169,43,.15), transparent 62%);
}
.banner .wrap { position: relative; z-index: 2; }
.banner h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 12px; }
.banner p { color: #b8b4ae; max-width: 60ch; margin: 0; font-size: 1.1rem; }

.crumbs { font-size: .84rem; color: #8f8b85; margin-bottom: 16px; }
.crumbs a { color: #8f8b85; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 8px; }

/* ==========================================================================
   Grids & cards
   ========================================================================== */

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d6d2cb;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); font-size: .96rem; margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale); border-radius: var(--radius);
  color: var(--gold-deep); flex: 0 0 auto;
}
.card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.card__more {
  margin-top: 18px; font-size: .86rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep);
}
a.card:hover .card__more { color: var(--ink); }

/* dark tile grid, used for sectors */
.tile {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid #2f2f2f;
  border-radius: var(--radius);
  padding: 34px 26px;
  color: #fff;
  min-height: 168px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: all .25s var(--ease);
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.tile:hover { background: #232323; border-color: #3d3d3d; transform: translateY(-4px); color: #fff; }
.tile:hover::after { transform: scaleX(1); }
.tile h3 { color: #fff; margin-bottom: 6px; font-size: 1.15rem; }
.tile p { color: #9d9992; font-size: .9rem; margin: 0; }
.tile__num {
  position: absolute; top: 18px; right: 22px;
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 2.4rem; color: rgba(240,169,43,.16); line-height: 1;
}

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat__num {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem); color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.stat__label { font-size: .95rem; color: #b3afa8; }

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 66px; align-items: center; }
.split__art svg { width: 100%; height: auto; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

/* auto-fit so the row still looks right with two testimonials or four */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.quote {
  position: relative;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* decorative opening quote mark */
.quote::before {
  content: "\201C";
  position: absolute; top: 6px; right: 22px;
  font-family: "Poppins", Georgia, serif;
  font-size: 5rem; line-height: 1;
  color: var(--gold); opacity: .18;
  pointer-events: none;
}

.quote__stars {
  display: flex; gap: 3px; margin-bottom: 16px;
  color: var(--gold);
}
.quote__stars svg { width: 17px; height: 17px; fill: currentColor; display: block; }

.quote__text {
  font-size: 1.02rem; line-height: 1.68; color: var(--charcoal);
  margin: 0 0 22px; flex: 1 1 auto;
}
.quote__text p { margin: 0 0 .85em; }
.quote__text p:last-child { margin-bottom: 0; }

/* English rendering of a testimonial left in the client's own language */
.quote__translation {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--grey-light);
  font-size: .89rem;
  color: var(--grey);
}
.quote__translation span {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 4px;
}

.quote__who {
  display: flex; align-items: center; gap: 13px;
  border-top: 1px solid var(--grey-light); padding-top: 18px;
}
.quote__avatar {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: .92rem;
  letter-spacing: .02em;
}
.quote__name { font-weight: 600; color: var(--ink); font-size: .97rem; line-height: 1.3; }
.quote__role { font-size: .86rem; color: var(--grey); line-height: 1.4; }

/* honeypot spam trap: off-screen rather than display:none, because some bots
   deliberately skip fields that are display:none or hidden */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* screen-reader-only text (used for the star rating) */
.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;
}

/* checklist */
.ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.ticks li {
  position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 1rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* two-column prose */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }

/* detail list on service/sector pages */
.detail {
  border-top: 1px solid var(--grey-light);
  padding: 34px 0;
  display: grid; grid-template-columns: 210px 1fr; gap: 40px;
}
.detail:last-child { border-bottom: 1px solid var(--grey-light); }
.detail h3 { margin: 0; font-size: 1.28rem; }
.detail p:last-child { margin-bottom: 0; }
.detail__list { margin: 12px 0 0; padding-left: 20px; color: var(--grey); }
.detail__list li { margin-bottom: 6px; }

/* ==========================================================================
   Enquiry form
   ========================================================================== */

.enquiry { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: start; }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .84rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 7px;
}
.field .req { color: var(--gold-deep); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  font: inherit; font-size: .97rem;
  color: var(--ink);
  border: 1px solid #d6d2cb;
  border-radius: var(--radius);
  background: var(--paper-warm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,169,43,.18);
}
.field textarea { min-height: 128px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--grey); margin: 16px 0 0; line-height: 1.6; }
.form-card .btn { width: 100%; margin-top: 6px; }

.contact-list { list-style: none; margin: 26px 0 0; padding: 0; }
.contact-list li {
  display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px;
}
.contact-list svg { width: 19px; height: 19px; stroke: var(--gold); fill: none; stroke-width: 1.8; flex: 0 0 auto; margin-top: 5px; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); font-weight: 700; }
.contact-list a, .contact-list span { font-size: 1.06rem; }

/* callout band */
.callout {
  background: var(--gold);
  color: var(--ink);
  padding: 62px 0;
  text-align: center;
}
.callout h2 { margin-bottom: 12px; }
.callout p { max-width: 58ch; margin: 0 auto 26px; font-size: 1.08rem; }
.callout .btn--ghost { border-color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--ink); color: #97938d; padding: 70px 0 0; font-size: .93rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px;
  padding-bottom: 52px;
}
.footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #97938d; }
.footer a:hover { color: var(--gold); }
.footer__logo { height: 42px; width: auto; margin-bottom: 20px; }
.footer__blurb { max-width: 32ch; line-height: 1.75; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px; border: 1px solid #333;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); }
.footer__social svg { width: 15px; height: 15px; fill: #97938d; }
.footer__social a:hover svg { fill: var(--ink); }

.footer__bar {
  border-top: 1px solid #282828;
  padding: 24px 0 18px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .84rem; color: #6f6b66;
}
.footer__bar a { color: #6f6b66; }

/* statutory company disclosures */
.footer__legal {
  margin: 0; padding-bottom: 30px;
  font-size: .78rem; line-height: 1.65; color: #5c5954;
  max-width: 90ch;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .split, .enquiry { grid-template-columns: 1fr; gap: 44px; }
  .hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .hero__art { order: -1; max-width: 340px; margin: 0 auto; }
}

@media (max-width: 880px) {
  .topbar__contact { gap: 16px; }
  .topbar .wrap { justify-content: center; }
  .topbar__social { display: none; }

  .burger { display: block; }
  .masthead .wrap { min-height: 72px; }
  .brand img { height: 38px; }

  .nav {
    position: fixed; top: 0; right: 0;
    width: min(340px, 86vw); height: 100vh;
    background: #fff;
    flex-direction: column; align-items: stretch;
    padding: 88px 22px 40px;
    gap: 0;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  /* the separator bars only make sense on the horizontal desktop menu */
  .nav__list > li { display: block; }
  .nav__list > li::after { display: none; }
  .nav__list > li:last-child { margin-left: 0; }
  .nav > li { width: 100%; }
  .nav > li > a { padding: 14px 6px; border-bottom: 1px solid var(--grey-light); border-radius: 0; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-bottom: 1px solid var(--grey-light);
    padding: 4px 0 10px 14px; min-width: 0;
  }
  .submenu a { padding: 7px 6px; font-size: .87rem; color: var(--grey); }
  .nav-cta { margin-top: 18px; text-align: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .section--tight { padding: 50px 0; }
  .hero { padding: 66px 0 74px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .detail { grid-template-columns: 1fr; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
