/* Firbanks IT website styles. Colours and sizes live in the :root block. */

@font-face { font-family: "Overpass"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/overpass-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/overpass-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/overpass-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #1F3A2E;        /* main text, dark green */
  --muted: #3E5A4D;      /* secondary text */
  --blue: #2A6BB3;       /* logo blue, service headings, links */
  --pin: #B0186A;        /* magenta map pins and highlights */
  --pin-soft: #F2B8D6;   /* magenta text on dark green */
  --ground: #F1F4EF;     /* page background */
  --white: #FFFFFF;
  --contour: #C9D6C8;    /* contour lines */
  --sea: #DCE8F5;        /* sea on the mini map */
  --field: #8FA79A;      /* form field borders */
  --radius: 12px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pin); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 16px; top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.site-logo { display: inline-flex; }
.site-logo img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--contour); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--pin); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-top: 40px; padding-bottom: 64px; }
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.08; max-width: 18ch; margin-bottom: 24px; }
.hero .lead { font-size: 1.2rem; max-width: 58ch; margin-bottom: 32px; }
.hero-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hero-split > .hero-text { flex: 999 1 540px; min-width: 0; }
.hero-split > .hero-side { flex: 1 1 280px; min-width: 0; }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.1rem; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: #142a20; color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--ground); color: var(--ink); }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-tail { padding-bottom: 56px; }
.band-white { background: var(--white); }
.section-title { font-weight: 800; font-size: 2rem; letter-spacing: -0.01em; margin-bottom: 32px; }

/* Services with icons */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px 48px; }
.service { display: flex; gap: 18px; align-items: flex-start; }
.icon { flex: none; width: 52px; height: 52px; padding: 6px; border-radius: 10px; background: var(--ground); }
.service h3 { font-size: 1.15rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.service p { max-width: 52ch; }

/* Panels and callouts */
.panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px 32px; }
.panel h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.panel-pin { border-color: var(--pin); }
.panel-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.panel-dark h2 { color: var(--white); }
.kicker { font-weight: 800; color: var(--pin); margin-bottom: 8px; }
.panel-dark .kicker { color: var(--pin-soft); }
.panel-title-row { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.panel-title-row h2 { margin: 0; }
.callout { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.callout .callout-date { flex: 1 1 180px; font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--pin); }
.callout .callout-body { flex: 999 1 480px; min-width: 0; }
.callout h2 { font-size: 1.25rem; margin-bottom: 8px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }

/* Heading on the left, content on the right */
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split > h2 { flex: 1 1 220px; font-weight: 800; font-size: 2rem; letter-spacing: -0.01em; }
.split > .split-body { flex: 999 1 540px; min-width: 0; }
.split-body > p { font-size: 1.1rem; max-width: 64ch; }

/* Points with magenta pins */
.points { display: grid; gap: 24px; }
.point { display: flex; gap: 16px; align-items: flex-start; }
.pin { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--pin); }
.point h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.point p { max-width: 60ch; }
.note { color: var(--muted); font-size: 1.05rem; }
.pin-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 32px; font-size: 1.1rem; }
.pin-list li { display: flex; gap: 12px; align-items: center; }
.pin-list .pin { margin-top: 0; }

/* Where we work panel on the home page */
.where { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; max-width: 420px; }
.where h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.where .mini-map { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--ground); margin-bottom: 16px; }
.where ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.where li { display: flex; gap: 10px; align-items: center; }
.where li .pin { width: 12px; height: 12px; margin-top: 0; }
.where .small { font-size: 0.95rem; color: var(--muted); }

/* Who it's for */
.fit { max-width: 820px; }
.fit p { font-size: 1.1rem; }

/* Stats strip */
.stats { border-top: 2px solid var(--ink); }
.stats.stats-boxed { border-bottom: 2px solid var(--ink); }
.stats .wrap { display: flex; flex-wrap: wrap; gap: 12px 56px; padding-top: 32px; padding-bottom: 32px; font-size: 1.1rem; }

/* Closing call to action */
.cta { background: var(--ink); color: var(--white); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.cta p { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.25; max-width: 32ch; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 56px; }
.person { display: grid; gap: 20px; align-content: start; }
.avatar { width: 160px; height: 160px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid var(--ground); color: var(--white); font-size: 3.4rem; font-weight: 800; letter-spacing: 0.02em; }
.avatar-blue { background: var(--blue); }
.avatar-green { background: var(--ink); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.person h2 { font-size: 1.6rem; font-weight: 800; }
.person .role { font-weight: 600; color: var(--blue); margin: 4px 0 14px; }
.person p { max-width: 56ch; }

/* Contact page */
.contact-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-form { flex: 999 1 540px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; }
.contact-aside { flex: 1 1 300px; min-width: 0; display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { font: inherit; color: var(--ink); background: var(--white); padding: 12px 14px; border: 2px solid var(--field); border-radius: 8px; width: 100%; }
select { max-width: 320px; }
textarea { resize: vertical; min-height: 140px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 20px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.check input, .consent input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--ground); border-radius: 8px; padding: 14px 16px; }
.consent input { margin-top: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.form-message[hidden] { display: none; }
.form-error { background: #FBEBEB; color: #8A1C1C; border: 2px solid #C94A4A; }
.contact-details { display: grid; gap: 16px; padding: 0 4px; }
.contact-details h2 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }

/* Plain text pages (privacy) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 12px; }
.prose p, .prose ul, .prose table { margin-bottom: 16px; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; margin-bottom: 16px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--white); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--contour); }
.prose th { background: var(--ground); }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 32px; padding-bottom: 48px; font-size: 0.9rem; color: var(--muted); }
.site-footer .legal { flex: 999 1 560px; }
.site-footer .links { flex: 1 1 200px; }

/* Phones */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero .wrap { padding-top: 24px; padding-bottom: 48px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section-title, .split > h2 { font-size: 1.7rem; }
  .contact-form, .panel { padding: 24px 20px; }
  .site-nav { gap: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
