/* ==========================================================================
   Peridot Accounting — shared stylesheet
   Brand colours (per Peridot Accounting Brand Guidelines):
     Navy (primary)   #181931
     Green (primary)  #4f7450
     Green (secondary)#5d875d
     Cream (secondary)#f6f3f0
     Sage (secondary) #d9e0a0
     Lime (accent)    #b4c424
   Fonts: the real brand font files have been supplied and are self-hosted
   below — Quiche Sans (headings, now with Light/Regular/Bold/ExtraBold
   weights all registered under one family so font-weight picks the true
   static face rather than a synthetic bold) and Segoe UI Variable
   (body/sub-headings, a true variable font with a 300–700 weight axis;
   the brand spec calls for "Semilight", so body copy is set at weight 350).
   ========================================================================== */

@font-face {
  font-family: 'Quiche Sans';
  src: url('fonts/QuicheSans-Light.woff2') format('woff2'),
       url('fonts/QuicheSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quiche Sans';
  src: url('fonts/QuicheSans-Regular.woff2') format('woff2'),
       url('fonts/QuicheSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quiche Sans';
  src: url('fonts/QuicheSans-Bold.woff2') format('woff2'),
       url('fonts/QuicheSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quiche Sans';
  src: url('fonts/QuicheSans-ExtraBold.woff2') format('woff2'),
       url('fonts/QuicheSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Segoe UI Variable';
  src: url('fonts/SegoeUIVariable.woff2') format('woff2-variations'),
       url('fonts/SegoeUIVariable.woff2') format('woff2'),
       url('fonts/SegoeUIVariable.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #181931;
  --green: #4f7450;
  --green-deep: #3d5a3e;
  --green-secondary: #5d875d;
  --cream: #f6f3f0;
  --sage: #d9e0a0;
  --lime: #b4c424;
  --white: #ffffff;
  --ink: #23241f;

  --font-heading: 'Quiche Sans', Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 350;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 0.75em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 11px;
  background: url('img/diamond.png') center / contain no-repeat;
  margin-right: 8px;
  vertical-align: middle;
}

.hero .eyebrow::before,
.section-navy .eyebrow::before {
  background-image: url('img/diamond-cream.png');
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--navy);
}
.btn-primary:hover { background: #c3d43a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(24,25,49,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo .logo-lockup {
  height: 44px;
  width: auto;
  display: block;
}

.logo .mark {
  width: auto;
  height: 56px;
  flex-shrink: 0;
}

.site-footer .logo .mark,
.hero .logo .mark { height: 42px; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-color: var(--lime);
  color: var(--green);
}

.header-actions { display: flex; align-items: center; gap: 20px; }

.header-cta {
  padding: 11px 22px;
  font-size: 0.9rem;
}

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

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #232455 55%, var(--green-deep) 100%);
  color: var(--white);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 420px;
  height: 262px;
  background: url('img/diamond-green-faded.png') center / contain no-repeat;
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--sage); }
.hero .eyebrow::before { background: var(--lime); }

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(246,243,240,0.88);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(246,243,240,0.08);
  border: 1px solid rgba(246,243,240,0.18);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px);
}

.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246,243,240,0.12);
  font-size: 0.98rem;
  color: rgba(246,243,240,0.92);
}
.hero-card li:last-child { border-bottom: none; }
.hero-card li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--cream);
  padding: 28px 0;
  border-bottom: 1px solid rgba(24,25,49,0.06);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-deep);
}
.trust-item .dot {
  width: 7px; height: 11px;
  background: url('img/diamond.png') center / contain no-repeat;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { color: #55584f; font-size: 1.05rem; }
.section-navy .section-head p { color: rgba(246,243,240,0.8); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid rgba(24,25,49,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(24,25,49,0.09);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-deep);
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 10px; }
.card p { color: #55584f; font-size: 0.96rem; margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--green);
  color: var(--white);
  padding: 56px 0;
}
.stats-bar .grid-4 { text-align: center; }
.stats-bar .stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--sage);
}
.stats-bar .stat-label {
  font-size: 0.9rem;
  color: rgba(246,243,240,0.85);
  margin-top: 6px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(246,243,240,0.8); margin: 0; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(24,25,49,0.06);
}
.testimonial p.quote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 16px;
}
.testimonial .author { font-size: 0.9rem; color: var(--green-deep); font-weight: 600; }
.testimonial .role { font-size: 0.85rem; color: #777; }

/* ---------- Testimonial marquee (moving belt) ---------- */
.testimonial-marquee {
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.testimonial-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 8px 0 24px;
  animation: testimonial-scroll 55s linear infinite;
}
.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}
.testimonial-track .testimonial {
  flex: 0 0 380px;
  width: 380px;
}
@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
  .testimonial-marquee { overflow-x: auto; }
}
@media (max-width: 680px) {
  .testimonial-track .testimonial { flex-basis: 300px; width: 300px; }
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sage), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--green); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.team-card p.bio { font-size: 0.9rem; color: #55584f; }

/* ---------- Values ---------- */
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sage);
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(24,25,49,0.08);
}
.contact-detail:first-child { padding-top: 0; }
.contact-detail .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--sage);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail h4 { margin-bottom: 2px; font-size: 1rem; color: var(--navy); font-family: var(--font-body); font-weight: 700; }
.contact-detail p { margin: 0; color: #55584f; font-size: 0.94rem; }

form.enquiry-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(24,25,49,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(24,25,49,0.18);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(79,116,80,0.15);
}
.form-note {
  font-size: 0.82rem;
  color: #777;
  margin-top: 4px;
}

.map-placeholder {
  height: 260px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--sage), var(--sage) 12px, #e4e9c6 12px, #e4e9c6 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  font-weight: 600;
  margin-top: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(246,243,240,0.75);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,243,240,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-logo { color: var(--white); margin-bottom: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(246,243,240,0.82); max-width: 60ch; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid rgba(24,25,49,0.08);
}
.service-block:last-child { border-bottom: none; }
.service-block .visual {
  border-radius: 20px;
  background: linear-gradient(160deg, var(--sage) 0%, var(--green) 100%);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.service-block .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/diamond-cream.png') no-repeat;
  background-position: -30px -40px;
  background-size: 140px auto;
  opacity: 0.12;
}

.service-icon {
  width: 92px;
  height: 92px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.service-block .visual span.visual-label {
  position: relative;
  z-index: 1;
}
.service-block ul.included { list-style: none; margin: 20px 0 0; padding: 0; }
.service-block ul.included li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.95rem;
}
.service-block ul.included li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700;
  margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-block .visual { order: -1; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; }
  nav.main-nav.nav-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(24,25,49,0.08);
    box-shadow: 0 12px 24px rgba(24,25,49,0.08);
  }
  nav.main-nav.nav-open ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  nav.main-nav.nav-open li { width: 100%; }
  nav.main-nav.nav-open a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .logo .logo-lockup { height: 34px; }
  .logo .mark { height: 42px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; text-align: center; justify-content: center; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 80px; }
  .form-row { grid-template-columns: 1fr; }
  form.enquiry-form { padding: 24px; }
}
