/* ============================================
   CJT Accountancy & Bookkeeping Services Ltd
   Built by Brido Digital
   Palette: racing green / gold / off-white
   ============================================ */

:root {
  --green: #0B3D2E;
  --green-deep: #072A20;
  --green-mid: #14513C;
  --gold: #C9A24B;
  --gold-soft: #D9BB78;
  --cream: #FBFAF7;
  --paper: #FFFFFF;
  --ink: #1C2420;
  --muted: #5A6B63;
  --line: #E4E7E1;
  --max: 1180px;
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--green); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.16; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.1rem; }
.lead { font-size: 1.22rem; color: var(--muted); line-height: 1.7; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1rem;
}

/* diamond divider - the brand signature element */
.diamond {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold);
}
.diamond::before, .diamond::after {
  content: ""; height: 1px; background: var(--gold); opacity: .5; flex: 1;
}
.diamond span { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }
.diamond.center { max-width: 200px; margin: 0 auto; }

/* ---------- Logo (rendered in real brand font) ---------- */
.logo { display: flex; align-items: center; gap: 13px; }
.logo-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.15rem;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.09em;   /* pulls C J T together / entwined */
  white-space: nowrap;
}
.logo-mark .j { margin: 0 -0.04em; position: relative; top: 0.04em; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .l1 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--green); letter-spacing: .01em; }
/* l2 matches l1 so the name reads as one: "CJT Accountancy & Bookkeeping Services" */
.logo-text .l2 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--green); letter-spacing: .01em; margin-top: 0; }

/* footer logo variant on dark */
.logo--light .logo-mark, .logo--light .logo-text .l1 { color: #fff; }
.logo--light .logo-text .l2 { color: #fff; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--ink);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--green); }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { width: 100%; }
/* nav CTA button must stay white text on green - never inherit dark link colour */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-primary.active { color: #fff; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 13px 26px; border-radius: 2px; cursor: pointer; border: 1.5px solid var(--green);
  transition: all .22s ease; letter-spacing: .01em;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--green-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-inner { padding: clamp(40px, 6vw, 68px) 0 clamp(56px, 8vw, 90px); max-width: 780px; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { max-width: 600px; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
/* ambient brand pattern in hero corner */
.hero-pattern {
  /* CJT watermark across the whole hero: a touch stronger, strongest at the
     left/right edges and fading soft through the middle so the headline stays clear. */
  position: absolute; inset: 0;
  opacity: 0.045; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,0.12) 50%, #000 100%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,0.12) 50%, #000 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext x='10' y='70' font-family='Georgia,serif' font-size='46' font-weight='600' fill='%230B3D2E' letter-spacing='-4'%3ECJT%3C/text%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

.bg-paper { background: var(--paper); }
.bg-green { background: var(--green); color: #fff; }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .eyebrow { color: var(--gold-soft); }
.bg-green .lead { color: rgba(255,255,255,0.8); }

/* ---------- Value props (no clip-art; typographic) ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 34px 34px 34px 32px; border-right: 1px solid var(--line); }
.value:first-child { padding-left: 0; }
.value:last-child { border-right: 0; padding-right: 0; }
.value .num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.value h3 { font-size: 1.15rem; margin: 14px 0 10px; letter-spacing: .04em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; }
.value p { font-size: 0.96rem; color: var(--muted); margin: 0; line-height: 1.72; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: 34px 30px; transition: all .25s ease; position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(11,61,46,0.10); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .svc-no { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); font-weight: 600; }
.svc-card h3 { margin: 8px 0 12px; font-size: 1.4rem; }
.svc-card p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.split-media {
  background: var(--green); border-radius: 4px; aspect-ratio: 4/5; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.split-media .mono-big {
  font-family: var(--serif); font-size: 8rem; font-weight: 600; color: #fff;
  letter-spacing: -0.1em; opacity: 0.96;
}
.split-media .mono-big .g { color: var(--gold-soft); }
.split-media .pat {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Ctext x='6' y='54' font-family='Georgia,serif' font-size='34' font-weight='600' fill='%23ffffff' letter-spacing='-3'%3ECJT%3C/text%3E%3C/svg%3E");
  background-size: 90px 90px;
}
.tick-list { list-style: none; margin-top: 1.4rem; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- Accreditation strip (placeholder for AAT/Xero/QB) ---------- */
.accred {
  border: 1px dashed var(--gold); border-radius: 4px; padding: 30px;
  background: rgba(201,162,75,0.05); text-align: center;
}
.accred .badges { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; opacity: 0.55; }
.accred .badge-slot {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 22px 30px; background: #fff;
}

/* Accreditation badges - clean centred row (client-approved design 20 Aug 2026).
   Use this WHEN Caroline's AAT/Xero/QuickBooks are confirmed: drop the real
   logo images into <div class="accred-logos"> below the accreditation heading.
   No dashed box, no tint - just the logos. */
.accred-logos { display: flex; gap: 46px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.accred-logos img { height: 54px; width: auto; opacity: 0.92; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info .info-row { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info .info-row .ic {
  width: 42px; height: 42px; flex: none; border-radius: 3px; background: rgba(11,61,46,0.06);
  display: flex; align-items: center; justify-content: center; color: var(--green);
}
.contact-info .info-row .ic svg { width: 20px; height: 20px; }
.contact-info .info-row h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.contact-info .info-row a, .contact-info .info-row p { font-size: 1.05rem; color: var(--ink); margin: 0; font-weight: 500; }

form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: .04em; color: var(--green); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: -4px; }

/* ---------- Footer ---------- */
footer { background: var(--green-deep); color: rgba(255,255,255,0.72); padding: 66px 0 30px; font-size: 0.94rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
footer h4 { color: #fff; font-family: var(--sans); font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.72); }
footer a:hover { color: var(--gold-soft); }
.foot-about p { color: rgba(255,255,255,0.62); margin-top: 16px; max-width: 340px; font-size: 0.92rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.84rem; color: rgba(255,255,255,0.5); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.84rem; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs span { color: var(--gold); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--green); color: #fff; padding: clamp(56px,8vw,88px) 0 clamp(48px,7vw,72px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; position: relative; z-index: 2; }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 620px; position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .pat { position: absolute; inset: 0; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ctext x='6' y='60' font-family='Georgia,serif' font-size='38' font-weight='600' fill='%23ffffff' letter-spacing='-3'%3ECJT%3C/text%3E%3C/svg%3E"); background-size: 100px 100px; }

/* ---------- FAQ / accordions ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 24px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--green); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-q .pm { font-family: var(--sans); font-size: 1.6rem; color: var(--gold); flex: none; transition: transform .25s; }
.faq-q.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 24px; color: var(--muted); margin: 0; max-width: 760px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 560px; margin: 0 auto; background: var(--green-deep); color: rgba(255,255,255,0.88);
  border-radius: 5px; padding: 22px 24px; box-shadow: 0 16px 44px rgba(7,42,32,0.34);
  display: none;
}
.cookie-banner.show { display: block; animation: cookieUp .4s ease; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-banner p { font-size: 0.9rem; line-height: 1.6; margin: 0 0 16px; }
.cookie-banner p a { color: var(--gold-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 20px; font-size: 0.85rem; }
.cookie-actions .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.cookie-actions .btn-line { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.cookie-actions .btn-line:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
@media (prefers-reduced-motion: reduce) { .cookie-banner.show { animation: none; } }

/* ---------- Legal / long-form text pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; font-family: var(--sans); font-weight: 700; color: var(--green); }
.prose p, .prose li { color: var(--ink); font-size: 1rem; line-height: 1.75; }
.prose ul { margin: 0 0 1.1rem 1.2rem; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.6rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; padding-right: 0; }
  .value { border-bottom: 1px solid var(--line); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { aspect-ratio: 16/10; order: -1; }
  .contact-grid, .foot-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 82px 0 auto 0; background: var(--cream); flex-direction: column; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .3s ease; }
  .nav-links.show { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px; }
  .nav-links .btn { margin: 8px 20px; }
  .nav-toggle { display: block; }
  .svc-grid, .values { grid-template-columns: 1fr; }
  .value { border-right: 0; padding-right: 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .foot-bottom { flex-direction: column; }
}
