/* ==========================================================================
   Fraher Digital — design system
   Built on the real brand assets in Work/PF/FD Logo files: the italic serif
   wordmark, navy #001230 and cyan #0FE4EA, sampled straight from the artwork.

   The cyan is a display colour. It measures 11.78:1 on navy and 1.58:1 on
   white, so it is only ever used on the dark ground; --accent-dk is its
   light-background counterpart at 5.90:1. Every pair below clears WCAG AA.
   ========================================================================== */

:root {
  /* Colour, sampled from FD-Logo.png and Icon/apple-icon-180x180.png */
  --ink:        #001230;   /* brand navy */
  --ink-2:      #0a1c3d;   /* cards on navy */
  --ink-3:      #1b3054;   /* hairlines on navy */
  --paper:      #ffffff;
  --paper-2:    #f4f6f8;   /* tinted sections */
  --paper-3:    #e3e7ec;   /* borders on paper */
  --accent:     #0fe4ea;   /* brand cyan. Dark grounds only */
  --accent-dk:  #0a6f78;   /* the cyan, darkened for paper. 5.90:1 on white */
  --accent-sf:  rgba(15, 228, 234, .12);
  --grey:       #cfd1d2;   /* brand grey */
  --text:       #001230;
  --text-soft:  #4d5a6e;   /* 6.99:1 on white */
  --text-inv:   #ffffff;   /* 18.60:1 on navy */
  --text-inv-s: #9fb0c7;   /* 8.42:1 on navy */
  --line:       #e3e7ec;
  --line-dk:    rgba(255, 255, 255, .11);
  --ok:         #0f7b4a;
  --bad:        #b3261e;

  /* Type. Instrument Serif echoes the high-contrast italic of the wordmark;
     Inter does all the work that has to stay legible at 15px. */
  --display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Space */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sec: clamp(3.25rem, 8vw, 6rem);
  --max: 1120px;
  --narrow: 720px;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 18, 48, .05), 0 10px 30px rgba(0, 18, 48, .08);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.15; }

/* The display face is a light-weight serif, so it takes a tighter fit and a
   little negative tracking to hold together at hero size. */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.03; }
h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.08; }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }
small { font-size: .85rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
img, svg { max-width: 100%; height: auto; }
code { font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }

::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-dk); outline-offset: 3px; border-radius: 3px; }
.dark :focus-visible, .site-head :focus-visible, .site-foot :focus-visible,
.consent :focus-visible { outline-color: var(--accent); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--ink); font-weight: 600;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.pad-t { margin-top: 2rem; }
/* A heading that is structurally an h2 but sits below body copy as a label. */
.h-sm { font-family: var(--body); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }

section { padding: var(--sec) 0; }
section.tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }

.dark { background: var(--ink); color: var(--text-inv); }
.dark h1, .dark h2, .dark h3, .dark h4, .dark strong { color: var(--text-inv); }
.dark p { color: var(--text-inv-s); }
.dark a { color: var(--accent); }
.tint { background: var(--paper-2); }

.kicker {
  font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dk); margin: 0 0 1.1rem;
}
.dark .kicker { color: var(--accent); }

.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.55; color: var(--text-soft); }
.dark .lede { color: var(--text-inv-s); }

/* ---------- Header ---------- */

.site-head { background: var(--ink); border-bottom: 1px solid var(--line-dk); }
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px; padding-top: .7rem; padding-bottom: .7rem;
}

/* The wordmark is the supplied artwork, never re-set as live text. Its ink
   box is 3.13:1, so the width follows from the height. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 122px; height: 39px; }
@media (max-width: 520px) { .brand img { width: 104px; height: 33px; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* Cyan is the brand's loudest asset, so it carries the primary action.
   Navy text on cyan is 11.78:1.

   The .dark and .site-head selectors are repeated deliberately. `.dark a` sets
   link text to cyan, which at equal specificity would win over `.btn--primary`
   and paint cyan text onto a cyan fill: an invisible button on the one control
   the whole page exists to get clicked. */
.btn--primary,
.dark .btn--primary,
.site-head .btn--primary,
.site-foot .btn--primary {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
}
.btn--primary:hover,
.dark .btn--primary:hover,
.site-head .btn--primary:hover {
  background: #5ff0f4; border-color: #5ff0f4; color: var(--ink);
}

.btn--ghost { background: transparent; color: var(--text); border-color: var(--paper-3); }
.btn--ghost:hover { border-color: var(--text-soft); }
.dark .btn--ghost, .site-head .btn--ghost { color: var(--text-inv); border-color: var(--ink-3); }
.dark .btn--ghost:hover, .site-head .btn--ghost:hover { border-color: var(--accent); }

.btn--sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 20ch; }

/* Two columns only once there is genuinely room for both. Below that the spec
   panel falls under the call to action, where it still does its job. */
.hero__grid { display: grid; gap: clamp(2.25rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}

.spec {
  border: 1px solid var(--ink-3); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, .025);
}
.spec__title {
  font-family: var(--body); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .35rem;
}
.spec__list { margin: 0; }
.spec__row {
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
  justify-content: space-between; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--line-dk);
}
.spec__row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { font-size: .92rem; color: var(--text-inv-s); }
.spec dd { margin: 0; font-weight: 600; color: var(--text-inv); text-align: right; }
.hero__sub { max-width: 46ch; margin-top: 1.4rem; }
.hero__support {
  max-width: 50ch; margin-top: 1.6rem; padding-left: 1.15rem;
  border-left: 2px solid var(--accent); font-size: .98rem;
}
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__cta--center { justify-content: center; }
.hero__note { font-size: .88rem; color: var(--text-inv-s); }

/* ---------- Column grids ---------- */

.cols { display: grid; gap: clamp(1.5rem, 3.5vw, 2.5rem); }
@media (min-width: 760px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .cols--2 { grid-template-columns: repeat(2, 1fr); } }

.col__num {
  display: block; margin-bottom: .8rem;
  font-family: var(--display); font-size: 1.6rem; line-height: 1;
  color: var(--accent-dk);
}
.dark .col__num { color: var(--accent); }
.col h3 { margin-bottom: .5rem; }
.col p { color: var(--text-soft); font-size: .98rem; }

.note-line {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.4rem;
  border-top: 1px solid var(--line); font-size: .98rem; color: var(--text-soft);
}

/* ---------- About ---------- */

.about { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 760px) { .about { grid-template-columns: 200px 1fr; } }

.portrait {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  background: var(--paper-3); display: block;
}
/* Placeholder until the real photograph lands: the brand F, not a broken image.
   The icon artwork already carries its own navy ground, so it fills the circle
   rather than sitting on one, which would show its square edge. */
.portrait--mark { overflow: hidden; background: var(--ink); }
.portrait--mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Form ---------- */

.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.dark .form-card {
  background: var(--ink-2); border-color: var(--ink-3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.dark .form-card h2, .dark .form-card legend, .dark .form-card label { color: var(--text-inv); }

.field { margin-bottom: 1.35rem; }
.field > label, .fieldset > legend {
  display: block; font-weight: 600; font-size: .95rem; margin-bottom: .45rem;
}
.field .hint { display: block; font-weight: 400; font-size: .86rem; color: var(--text-soft); margin-top: .15rem; }
.dark .field .hint { color: var(--text-inv-s); }

.input, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--paper-3);
  border-radius: var(--radius); padding: .8rem .9rem;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--accent-dk); }
.dark .input, .dark .textarea { background: var(--ink); color: var(--text-inv); border-color: var(--ink-3); }
.dark .input:focus, .dark .textarea:focus { border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: #8b94a3; }
.dark .input::placeholder, .dark .textarea::placeholder { color: #6a7d99; }

.fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Radio pills. The input stays in the DOM and keeps its own focus ring, so to
   a screen reader and to the keyboard this is still a plain radio group. */
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: block; padding: .6rem 1rem; font-size: .95rem;
  border: 1px solid var(--paper-3); border-radius: 100px; background: var(--paper);
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.dark .choice span { background: var(--ink); border-color: var(--ink-3); color: var(--text-inv); }
.choice input:hover + span { border-color: var(--text-soft); }
.choice input:checked + span {
  border-color: var(--accent-dk); background: var(--accent-sf);
  font-weight: 600; color: var(--accent-dk);
}
.dark .choice input:checked + span { border-color: var(--accent); color: var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent-dk); outline-offset: 2px; }
.dark .choice input:focus-visible + span { outline-color: var(--accent); }

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { margin-top: 1.4rem; }
.form__small { font-size: .87rem; color: var(--text-soft); margin-top: .8rem; }
.dark .form__small { color: var(--text-inv-s); }

.form__status { margin-top: 1rem; font-size: .95rem; min-height: 1.4em; }
.form__status.is-ok  { color: var(--ok); font-weight: 600; }
.form__status.is-bad { color: var(--bad); font-weight: 600; }
.dark .form__status.is-ok  { color: #6ee7b0; }
.dark .form__status.is-bad { color: #ff9c94; }
.is-sending .btn--primary { opacity: .6; pointer-events: none; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: 0 0 auto; font-weight: 400; font-size: 1.5rem; line-height: 1;
  color: var(--accent-dk);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--accent-dk); }
.faq__answer { padding: 0 0 1.4rem; max-width: 62ch; color: var(--text-soft); }

/* ---------- Home page service list ---------- */

.stack { display: grid; gap: 1.25rem; }
.card {
  border: 1px solid var(--line); border-left: 3px solid var(--accent-dk);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.9rem); background: var(--paper);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-soft); font-size: .98rem; }
.card__link { display: inline-block; margin-top: .5rem; font-weight: 600; }

/* ---------- Thank you ---------- */

.tick {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-sf); color: var(--accent-dk);
  display: grid; place-items: center; margin-bottom: 1.5rem;
}
.steps { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative; padding-left: 2.8rem; margin-bottom: 1.1rem;
  counter-increment: step; color: var(--text-soft);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .05rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1rem; line-height: 1;
}

/* ---------- Footer ---------- */

.site-foot {
  background: var(--ink); color: var(--text-inv-s);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0; font-size: .92rem;
}
.site-foot a { color: var(--text-inv); }
.site-foot__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-foot p { margin: 0; }

/* ---------- Consent ---------- */

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: var(--ink-2); color: var(--text-inv);
  border-top: 2px solid var(--accent); box-shadow: 0 -8px 30px rgba(0, 0, 0, .3);
}
.consent__inner {
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--gut);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
}
.consent__text { margin: 0; font-size: .9rem; max-width: 62ch; color: var(--text-inv-s); }
.consent__text a { color: var(--accent); }
.consent__text strong { color: var(--text-inv); }
.consent__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
/* Refusing has to be exactly as easy as accepting: same size, same weight. */
.consent__btn {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: .6rem 1.2rem; border-radius: var(--radius);
  background: transparent; color: var(--text-inv); border: 2px solid var(--ink-3);
}
.consent__btn:hover { border-color: var(--accent); }

/* ---------- Tables (privacy notice) ---------- */

.table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .96rem; }
.table th, .table td { text-align: left; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; }

/* ---------- Print ---------- */

@media print {
  .site-head, .consent, .btn, .form-card { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
