/* =====================================================================
   BLACKGRAPE ACCOUNTING — SITE STYLES
   Brand palette matches the internal Blackgrape documents.
   ===================================================================== */

:root {
  --grape: #5C2D91;
  --grape-dark: #47206F;
  --grape-light: #7B4DB5;
  --grape-pale: #EDE5F8;
  --gold: #C9A84C;
  --gold-light: #F0D98A;
  --gold-pale: #FDF6E3;
  --black: #0f0f0f;
  --ink: #1a1a1a;
  --ink-mid: #4a4a4a;
  --ink-light: #767676;
  --border: #e3e0e8;
  --bg: #fafaf8;
  --card: #ffffff;
  --green: #2E7D32;
  --green-pale: #E8F5E9;

  /* Poppins matches the approved blackgrape. logo wordmark */
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 2px 12px rgba(20, 10, 40, 0.06);
  --shadow-lg: 0 10px 30px rgba(20, 10, 40, 0.10);
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grape); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--grape-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--grape); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout */
.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--grape { background: var(--grape); color: #fff; }
.section--grape h2, .section--grape h3 { color: #fff; }
.section--grape a { color: var(--gold-light); }
.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grape); font-weight: 600; margin-bottom: .75rem;
}
.section--grape .eyebrow { color: var(--gold-light); }
.lead { font-size: 1.2rem; color: var(--ink-mid); max-width: 62ch; }
.section-head { max-width: 70ch; margin-bottom: 2.25rem; }
.section-head h2 { margin-bottom: .6rem; }
.center { text-align: center; }
.center .section-head, .center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: var(--font-body); line-height: 1.2; min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grape); color: #fff; }
.btn--primary:hover { background: var(--grape-dark); color: #fff; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); color: var(--black); }
.btn--outline { background: transparent; color: var(--grape); border-color: var(--grape); }
.btn--outline:hover { background: var(--grape-pale); color: var(--grape-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--disabled, .btn[aria-disabled="true"] {
  background: #ece9f1; color: var(--ink-light); border-color: transparent; cursor: not-allowed; pointer-events: none;
}
.btn--lg { padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; background: var(--gold-pale); color: #7a5800; margin-left: .4rem; vertical-align: middle;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: var(--font-body); font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; }
.brand-text span { color: var(--grape); font-weight: 700; }
.brand-text i { font-style: normal; color: var(--gold); font-weight: 700; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  text-decoration: none; color: var(--ink-mid); font-weight: 500; padding: .55rem .8rem; border-radius: 6px;
}
.nav a:hover { color: var(--grape); background: var(--grape-pale); }
.nav a[aria-current="page"] { color: var(--grape); font-weight: 600; }
.nav .btn { margin-left: .5rem; }
.nav a.btn--primary { color: #fff; background: var(--grape); }
.nav a.btn--primary:hover { background: var(--grape-dark); color: #fff; }
.nav a.btn--outline { color: var(--grape); }
.nav a.btn--outline:hover { background: var(--grape-pale); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--border); border-radius: 8px;
  width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav .btn { margin: .5rem 0 0; }
}

/* Hero */
.hero {
  background: var(--black); color: #fff; position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero::before {
  content: ''; position: absolute; top: -140px; right: -140px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(92,45,145,.55) 0%, transparent 65%);
}
.hero::after {
  content: ''; position: absolute; bottom: -120px; left: 5%; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 65%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #C4A8E8; }
.hero p { color: rgba(255,255,255,.78); font-size: 1.2rem; max-width: 56ch; margin-bottom: 2rem; }
.hero .eyebrow { color: #C4A8E8; }
.hero--small { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.hero--small h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hero--small p { margin-bottom: 0; }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border-top: 4px solid var(--grape); }
.card--gold { border-top: 4px solid var(--gold); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--grape-pale); color: var(--grape);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }

/* Service list */
.service-list { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service-list li {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: .9rem 1rem .9rem 2.6rem;
  position: relative; margin: 0; font-weight: 500;
}
.service-list li::before {
  content: ''; position: absolute; left: 1rem; top: 1.15rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--grape); line-height: 1;
}
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { color: var(--ink-mid); margin: 0; }

/* Notices */
.notice {
  border-radius: var(--radius); padding: 1rem 1.25rem; border: 1px solid; margin-bottom: 1.25rem;
}
.notice p:last-child { margin: 0; }
.notice--info { background: var(--grape-pale); border-color: #d6c6ee; color: #3d1d63; }
.notice--warn { background: var(--gold-pale); border-color: #ecd9a2; color: #5d4200; }
.notice--ok { background: var(--green-pale); border-color: #bfe0c1; color: #1f4f22; }

/* Booking embed component */
.booking-embed { scroll-margin-top: 84px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.booking-embed iframe { display: block; width: 100%; border: 0; min-height: 820px; }
.booking-fallback { padding: 2rem; text-align: center; }
.booking-fallback--quiet { padding: .75rem 1rem; font-size: .85rem; color: var(--ink-light); border-top: 1px solid var(--border); margin: 0; }
.booking-fallback p { max-width: 60ch; margin-inline: auto; }
.booking-services { scroll-margin-top: 84px; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.5rem 0; }
.booking-type { display: flex; flex-direction: column; }
.booking-type > p { flex: 1; }
.booking-mode-label { flex: 0 !important; font-size: .85rem; font-weight: 600; color: var(--ink-mid); margin: 0 0 .5rem; }
.booking-modes { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn--mode {
  flex: 1 1 0; min-width: 4.75rem; min-height: 44px; padding: .55rem .5rem; font-size: .95rem;
  background: transparent; color: var(--grape); border-color: var(--grape);
}
.btn--mode:hover { background: var(--grape-pale); color: var(--grape-dark); }
.btn--mode.is-selected, .btn--mode[aria-pressed="true"] { background: var(--grape); color: #fff; border-color: var(--grape); }
.btn--mode.is-selected:hover { background: var(--grape-dark); }
.btn--mode:disabled { color: var(--ink-light); border-color: var(--border); background: #f3f1f6; cursor: not-allowed; transform: none; }
.btn--mode:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.booking-placeholder { color: var(--ink-mid); padding: 2.5rem 1.5rem; }
.booking-placeholder p { margin: 0; }

/* Team */
.team-grid { display: grid; gap: 1.5rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.team-card { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; align-items: start; text-align: left; }
.team-body { min-width: 0; }
.team-card h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.team-role { color: var(--grape); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.team-body p:last-child { color: var(--ink-mid); font-size: .95rem; margin: 0; line-height: 1.65; }
.team-photo {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0;
  display: block; background: var(--grape-pale); border: 4px solid var(--grape-pale);
}
.team-photo--initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 2rem; color: var(--grape); letter-spacing: .02em;
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-body p:last-child { text-align: left; }
  .team-photo { margin: 0 auto; }
}

/* Contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-item .icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--grape-pale); color: var(--grape);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; margin-bottom: .15rem; }
.contact-item p { margin: 0; color: var(--ink-mid); }

/* Forms (contact only — general enquiries, no sensitive data) */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; display: block; margin-bottom: .3rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #cfc9da; border-radius: 8px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--grape); outline: 3px solid rgba(92,45,145,.2); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: .9rem; color: var(--ink-light); margin-top: .3rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Legal pages */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.55rem; margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose .meta { color: var(--ink-light); font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--grape); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.78); padding: 3.5rem 0 2rem; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2.5rem; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text span { color: var(--gold-light); }
.footer-brand img { height: 44px; width: auto; margin-bottom: .75rem; }
.footer-brand p { margin-top: .75rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .card { padding: 1.3rem; }
  .btn-row .btn { width: 100%; }
  .cta-band .btn-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
}
