/* ==========================================================================
   Fincom Cape Town — 2026 rebuild
   Palette sampled from the brand logo & 2024 site:
   navy #1c3856 (logo ground truth) · sky #29a9ff · slate #5b6673
   ========================================================================== */

:root {
  --navy: #1c3856;
  --navy-deep: #142a42;
  --sky: #29a9ff;
  --sky-soft: #74c7ff;
  --ink: #22303f;
  --slate: #5b6673;
  --paper: #f6f7f9;
  --line: #e3e7ec;
  --white: #ffffff;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;

  --measure: 62ch;
  --radius: 10px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 9vw, 7rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { max-width: var(--measure); }

a { color: var(--navy); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8632f;
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--sky-soft); }

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn-ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-call {
  background: var(--sky);
  color: var(--navy-deep);
  border: 2px solid var(--sky);
  white-space: nowrap;
}
.btn-call:hover { background: var(--sky-soft); border-color: var(--sky-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-name em { font-style: normal; font-weight: 400; color: var(--slate); }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.site-nav a:hover { color: var(--sky); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-sub { margin-top: 1.25rem; color: var(--slate); font-size: 1.1rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-badges {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.hero-badges img {
  height: 56px;
  width: auto;
}
.hero-badges img.badge-card {
  height: 72px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
}
.hero-photo { position: relative; }
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(28, 56, 86, 0.45);
}
.hero-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.about-body { margin-top: 1.5rem; }
.about-body p + p { margin-top: 1em; }
.about-video { justify-self: center; }
.about-video video {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--navy-deep);
  box-shadow: 0 24px 48px -24px rgba(28, 56, 86, 0.45);
}
.about-video figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate);
  text-align: center;
}

/* ---------- Services ---------- */
.services { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.service h3 {
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 3px solid var(--sky);
  display: inline-block;
}
.service p { font-size: 0.97rem; color: var(--slate); }

/* ---------- Support band ---------- */
.support-band { background: var(--navy); color: var(--white); }
.support-band h2 { color: var(--white); }
.support-band p { color: #cfdcea; }
.support-band a { color: var(--sky-soft); }
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.error-chips {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.error-chips li {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #dbe7f3;
}
.support-photo img {
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

/* ---------- Products ---------- */
.product-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.product h3 { margin-bottom: 0.75rem; }
.product h3 span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  border: 1px solid var(--sky-soft);
  border-radius: 999px;
  padding: 0.2em 0.7em;
  margin-left: 0.5em;
  vertical-align: middle;
}
.product p { font-size: 0.96rem; color: var(--slate); }
.product-fit {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem !important;
  font-weight: 600;
  color: var(--navy) !important;
}
.product-cta { background: var(--paper); border-style: dashed; grid-column: 1 / -1; }
.product-cta .btn { margin-top: auto; align-self: flex-start; }
.product-cta p { margin-bottom: 1.25rem; }

.addons { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.addons summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  padding: 1.1rem 1.5rem;
  list-style-position: inside;
}
.addons summary:hover { color: var(--sky); }
.addons-grid {
  padding: 0.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem 2rem;
}
.addons-grid p { font-size: 0.94rem; color: var(--slate); }
.addons-grid strong { color: var(--ink); }

/* ---------- Team ---------- */
.team { background: var(--paper); border-top: 1px solid var(--line); }
.team-sub { color: var(--slate); margin-top: -0.25rem; }
.team-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.member img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.member figcaption { margin-top: 0.75rem; line-height: 1.35; }
.member strong { display: block; font-size: 0.98rem; color: var(--navy); }
.member span { font-size: 0.84rem; color: var(--slate); }

/* ---------- KZN band ---------- */
.kzn-band { background: var(--navy-deep); color: var(--white); }
.kzn-band h2 { color: var(--white); }
.kzn-band p { color: #cfdcea; }
.kzn-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ---------- Testimonials ---------- */
.quote-columns {
  margin-top: 2.5rem;
  columns: 3;
  column-gap: 1.25rem;
}
.quote-columns blockquote {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--paper);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.5rem;
}
.quote-columns p { font-size: 0.96rem; color: var(--ink); }
.quote-columns cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate);
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.contact-details {
  font-style: normal;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 2rem;
}
.contact-details p + p { margin-top: 0.85rem; }

/* ---------- Enquiry form ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-form h3 { margin-bottom: 1.25rem; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.contact-form label .optional { font-weight: 400; color: var(--slate); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65em 0.85em;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--sky);
}
.contact-form textarea { resize: vertical; min-height: 7em; }
.contact-form button { margin-top: 0.25rem; }
.form-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--slate);
}
.contact-kzn {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c8d8; }
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.75rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.45; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.footer-nav a { color: #dbe7f3; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--sky-soft); }
.footer-legal { width: 100%; font-size: 0.82rem; color: #8296ab; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 550ms ease, transform 550ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner,
  .support-grid,
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .about-video { justify-self: start; }
  .quote-columns { columns: 2; }
}

@media (max-width: 680px) {
  .contact-form .field-row { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.9rem var(--gutter);
    font-size: 1.05rem;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    transition: transform 200ms ease, opacity 200ms ease;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .btn-call { display: none; }
  .quote-columns { columns: 1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .kzn-inner { flex-direction: column; align-items: flex-start; }
}
