/* ============================================================
   SwiftBrick Ltd — swiftbrick.co.uk
   Brand system sampled from Main_logo.jpg: #4B5EAB
   Poppins / white / brand blue / lavender tint panels
   ============================================================ */

:root {
  --brand:      #4B5EAB;   /* SwiftBrick blue (sampled from logo) */
  --brand-dark: #39477F;   /* footer, hovers */
  --tint:       #EDEFF8;   /* light lavender panels (brochure style) */
  --ink:        #39415E;   /* body text, blue-grey */
  --ink-60:     #6A7190;
  --line:       #D7DBEC;
  --paper:      #FFFFFF;
  --font: "Poppins", "Segoe UI", sans-serif;
  --max: 1120px;
  --r: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  font-size: 1.0325rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

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

/* ---- type ---- */
h1, h2, h3 { font-weight: 700; line-height: 1.15; color: var(--brand); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p  { max-width: 66ch; }

.eyebrow {
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); display: block; margin-bottom: 0.7rem;
}
.eyebrow::before { content: "▲ "; font-size: 0.75em; }

/* ---- header ---- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { font-weight: 500; font-size: 0.94rem; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--brand); background: var(--tint); }
.nav a.nav-cta { background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 8px; margin-left: 6px; font-weight: 600; }
.nav a.nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: block; background: none; border: 2px solid var(--brand); border-radius: 8px; font-family: var(--font); font-weight: 600; font-size: 0.85rem; padding: 8px 14px; cursor: pointer; color: var(--brand); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: 8px; }
}

/* ---- hero ---- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--brand-dark); }
.hero .lede { font-size: 1.15rem; margin: 1.25rem 0 1.75rem; color: var(--ink-60); }

.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 14px 28px; border-radius: 8px; border: 2px solid var(--brand); font-size: 1rem; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); margin-left: 12px; }
.btn-ghost:hover { background: var(--tint); }
@media (max-width: 480px) { .btn-ghost { margin-left: 0; margin-top: 12px; } }
.hero-note { font-size: 0.9rem; color: var(--ink-60); margin-top: 1.25rem; }

/* signature: the sign-off panel */
.titleblock { border: 2px solid var(--brand); background: #fff; border-radius: var(--r); overflow: hidden; font-size: 0.92rem; }
.titleblock caption { text-align: left; font-weight: 700; font-size: 1rem; padding: 12px 16px; background: var(--brand); color: #fff; }
.titleblock table { width: 100%; border-collapse: collapse; }
.titleblock th, .titleblock td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.titleblock tr:nth-child(even) { background: var(--tint); }
.titleblock th { color: var(--ink-60); font-weight: 500; width: 36%; white-space: nowrap; }
.titleblock .signoff td { color: var(--brand); font-weight: 700; }

/* ---- brick-course divider ---- */
.course {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, transparent 0 28px, var(--line) 28px 29px, transparent 29px 56px);
  background-size: 56px 9px, 56px 18px;
  background-position: 0 0, 0 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- sections ---- */
section.band { padding: 64px 0; }
section.band-alt { background: var(--tint); }
.section-head { margin-bottom: 2.25rem; }

/* ---- accreditation strip ---- */
.accred { display: inline-flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 20px; background: #fff; font-size: 0.78rem; color: var(--ink-60); box-shadow: 0 2px 10px rgba(75,94,171,0.06); }
.accred strong { font-size: 1.02rem; color: var(--ink); letter-spacing: 0.02em; }
.accreds { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; padding: 20px 0; }
.accreds img { height: 52px; width: auto; filter: grayscale(1); opacity: 0.75; }
.accreds img:hover { filter: none; opacity: 1; }

/* ---- feature / protection panels ---- */
.protect { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.protect article { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.band-alt .protect article, .band .protect article { box-shadow: 0 2px 10px rgba(75,94,171,0.06); }
.protect h3 { margin-bottom: 0.5rem; }
.protect h3::before { content: "▲ "; color: var(--brand); font-size: 0.7em; vertical-align: 2px; }
.protect p { font-size: 0.96rem; color: var(--ink-60); }

/* ---- services grid ---- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(75,94,171,0.22); }
.card img { aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { font-size: 0.95rem; color: var(--ink-60); }
.card-more { font-weight: 600; font-size: 0.88rem; color: var(--brand); margin-top: 0.9rem; display: inline-block; }

/* ---- reviews ---- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; font-size: 0.96rem; box-shadow: 0 2px 10px rgba(75,94,171,0.06); }
.review .stars { color: var(--brand); letter-spacing: 3px; font-size: 0.95rem; }
.review p { margin: 0.7rem 0 0.9rem; }
.review cite { font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--ink-60); }
.review-summary { font-weight: 600; font-size: 0.95rem; margin-bottom: 1.5rem; }
.review-summary strong { color: var(--brand); }

/* ---- areas ---- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.areas li { font-weight: 500; font-size: 0.88rem; border: 1px solid var(--line); background: var(--tint); color: var(--brand-dark); padding: 8px 16px; border-radius: 999px; }

/* ---- FAQ ---- */
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; color: var(--brand-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--brand); font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq details p { padding: 0 20px 18px; color: var(--ink-60); }

/* ---- CTA band ---- */
.cta-band { background: var(--brand); color: #fff; padding: 64px 0; }
.cta-band h2, .cta-band .eyebrow { color: #fff; }
.cta-band p { color: #DDE2F5; margin: 0.9rem 0 1.6rem; }
.cta-band .btn-solid { background: #fff; color: var(--brand); border-color: #fff; }
.cta-band .btn-solid:hover { background: var(--tint); border-color: var(--tint); color: var(--brand-dark); }
.cta-band .mono { font-size: 0.95rem; color: #DDE2F5; margin-top: 1.25rem; }
.cta-band .mono a { color: #fff; }

/* ---- prose ---- */
.prose h1 { margin-bottom: 0.5rem; }
.prose h2 { margin: 2.4rem 0 0.9rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; color: var(--brand-dark); }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

/* ---- forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.92rem; color: var(--brand-dark); }
label .req { color: var(--brand); }
input, select, textarea { font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 140px; resize: vertical; }
button[type="submit"] { font-family: var(--font); font-weight: 600; font-size: 1.05rem; background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 8px; padding: 14px 32px; cursor: pointer; }
button[type="submit"]:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.form-assure { font-size: 0.85rem; color: var(--ink-60); margin-top: 1rem; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; font-size: 1.05rem; }
.contact-list li { margin-bottom: 0.9rem; }
.contact-list a { font-weight: 600; }

/* ---- team ---- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: 0 2px 10px rgba(75,94,171,0.06); }
.member h3 { color: var(--brand); }
.member .role { font-weight: 600; font-size: 0.9rem; color: var(--ink-60); margin-bottom: 0.8rem; }
.member ul { list-style: none; font-size: 0.9rem; color: var(--ink-60); }
.member li::before { content: "▲ "; color: var(--brand); font-size: 0.65em; vertical-align: 2px; }
.member li { margin-bottom: 0.3rem; }

/* ---- footer ---- */
.site-footer { background: var(--brand-dark); color: #D8DDF0; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-weight: 700; color: #fff; margin-bottom: 0.9rem; font-size: 1rem; }
.site-footer a { color: #D8DDF0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-nap { font-size: 0.92rem; line-height: 2; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; font-size: 0.85rem; color: #AAB3D6; }
.footer-legal a { color: #AAB3D6; }
.strap { font-weight: 700; color: #fff; font-size: 1.1rem; margin-top: 0.75rem; }
.strap em { color: #B9C4EE; font-style: normal; }

/* ---- utilities ---- */
.mt-2 { margin-top: 2rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; }

.member .headshot { width: 160px; height: auto; border-radius: var(--r); margin-bottom: 14px; display: block; }

/* ---- case-study photo gallery ---- */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 1.6rem; }
.photo-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(75,94,171,0.06); }
.photo-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-gallery figcaption { padding: 12px 16px; font-size: 0.88rem; color: var(--ink-60); }
