/* Fonts (self-hosted, no runtime requests to Google) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/archivo-800-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/archivo-800-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/archivo-black-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/archivo-black-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-ink: #0a1930;
  --paper: #ffffff;
  --paper-alt: #f5f7fb;
  --deep-blue: #1b2a82;
  --sky-cyan: #14c7d4;
  --sky-cyan-tint: #e3fafb;
  --ink-secondary: #5b6472;
  --border-gray: #e2e6ee;
  --error: #b3261e;
  --radius-pill: 999px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-logo: "Archivo", "Arial Black", sans-serif;

  --gutter: 24px;
  --max-content: 1280px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy-ink);
  background: var(--paper);
}

h1, h2, h3, p, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: none; }

:focus-visible { outline: 2px solid var(--deep-blue); outline-offset: 2px; }
.contact :focus-visible, .footer :focus-visible { outline-color: var(--sky-cyan); }
.form-card :focus-visible { outline-color: var(--deep-blue); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max-content));
  margin-inline: auto;
}

/* Breakpoint helpers: mobile copy below 900px, desktop copy from 900px */
.only-desktop { display: none; }

/* ---------- Header ---------- */
.header { background: var(--paper); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo-icon { position: relative; width: 36px; height: 32px; flex: none; }
.logo-icon img { position: absolute; top: 0; left: -2px; }
.logo-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--navy-ink);
}
.header-tel { font-weight: 600; font-size: 13px; color: var(--navy-ink); }
.header-tel span { white-space: pre; }

/* ---------- Intro ---------- */
.intro {
  position: relative;
  overflow: hidden;
  background: var(--paper-alt);
  padding-block: 48px;
}
.intro-ribbons { position: absolute; z-index: 0; left: 125px; top: -25px; width: 500px; height: auto; }
.intro-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; }
.pill {
  width: fit-content;
  padding: 10px;
  border-radius: 24px;
  background: var(--paper);
  font-weight: 600;
  font-size: 10px;
  color: var(--deep-blue);
  white-space: pre;
}
.intro h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 9.2vw, 36px);
  line-height: 1.1;
  color: var(--navy-ink);
}
.intro-lead { font-size: 17px; color: var(--ink-secondary); }

/* ---------- Direct contact ---------- */
.direct { padding-block: 36px; background: var(--paper); }
.direct .wrap { display: flex; flex-direction: column; gap: 24px; }
.direct h2 { font-weight: 700; font-size: 24px; color: var(--navy-ink); }
.cards { display: flex; flex-direction: column; gap: 24px; }
.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  border-radius: 12px;
  background: var(--paper-alt);
}
.card-thibo { background: var(--sky-cyan-tint); }
.eyebrow { font-weight: 600; font-size: 12px; color: var(--deep-blue); }
.card h3 { font-weight: 700; font-size: 23px; color: var(--navy-ink); }
.card-lead { font-size: 15px; color: var(--navy-ink); }
.card-tel { font-weight: 600; font-size: 25px; color: var(--navy-ink); }
.card-mail { font-size: 15px; color: var(--navy-ink); overflow-wrap: anywhere; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--navy-ink); color: var(--paper); padding-block: 48px; }
.contact-grid { display: flex; flex-direction: column; gap: 32px; }
.contact-intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact-intro > :not(.contact-ribbons) { position: relative; z-index: 1; }
.contact-ribbons { position: absolute; z-index: 0; left: -100px; top: 558px; width: 680px; height: auto; }
.contact-eyebrow { font-weight: 600; font-size: 12px; color: var(--sky-cyan); }
.contact h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 9.2vw, 36px); line-height: 1.1; color: var(--paper); }
.contact-lead { font-size: 17px; max-width: 420px; }
.divider { width: 100%; max-width: 420px; height: 1px; margin: 0; border: 0; background: var(--deep-blue); }
.office-label { font-weight: 500; font-size: 14px; }
.office-tel { font-weight: 600; font-size: 25px; }
.office-mail { font-size: 16px; }
.office-address { font-size: 15px; }

.form-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--navy-ink);
}
.form-card h2 { font-family: var(--font-body); font-weight: 700; font-size: 25px; line-height: 1.5; color: var(--navy-ink); }
.required-note { margin-top: -12px; font-size: 13px; color: var(--ink-secondary); }

#contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { padding: 0; font-weight: 500; font-size: 14px; color: var(--navy-ink); }
.field legend { margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  background: var(--paper);
  font: 400 16px/1.5 var(--font-body);
  color: var(--navy-ink);
}
.field textarea { height: 128px; padding-top: 16px; padding-bottom: 16px; resize: vertical; }
.field ::placeholder { color: var(--ink-secondary); opacity: 1; }
.field input[type="text"]:focus-visible, .field input[type="email"]:focus-visible,
.field input[type="tel"]:focus-visible, .field textarea:focus-visible { border-color: var(--deep-blue); }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.1s ease-out;
}
.option:active { transform: scale(0.985); }
.option input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.option:has(input:checked) { background: var(--sky-cyan-tint); border-color: var(--sky-cyan); }
.option:has(input:focus-visible) { outline: 2px solid var(--deep-blue); outline-offset: 2px; }
.option-title { font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--navy-ink); white-space: pre; }
.option-title::before { content: "○  "; }
.option input:checked + .option-title::before { content: "●  "; }
.option-sub { font-size: 13px; color: var(--ink-secondary); }

/* Honeypot: off-screen, not display:none, so naive bots still fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-note { font-size: 13px; color: var(--ink-secondary); }
.privacy-note a { color: var(--deep-blue); text-decoration: underline; }

.submit-row { display: flex; flex-direction: column; }
#contact-form button {
  width: 100%;
  height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--deep-blue);
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.2px;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s ease-out;
}
#contact-form button:hover { background: #151f66; }
#contact-form button:active:not(:disabled) { transform: scale(0.98); }
#contact-form button span { white-space: pre; }
#form-status { font-size: 14px; }
#form-status:not(:empty) { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-ink); color: var(--paper); padding-block: 28px; }
.footer-row { display: flex; flex-direction: column; align-items: flex-start; }
.footer-copy { font-size: 13px; }
.footer-privacy { font-weight: 500; font-size: 13px; white-space: pre; }
.footer-credit { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .option:active, #contact-form button:active:not(:disabled) { transform: none !important; }
}

/* ---------- Desktop (>= 900px) ---------- */
@media (min-width: 900px) {
  :root { --gutter: clamp(40px, 5.56vw, 80px); }
  .only-mobile { display: none; }
  .only-desktop { display: inline; }
  img.only-desktop { display: block; }

  .header-row { padding-block: 24px; }
  .header-tel { font-size: 15px; }

  .intro { min-height: 587px; padding: 236px 0 64px; }
  .intro-ribbons { left: calc(50% + 60px); top: -40px; width: 820px; }
  .intro h1 { font-size: 64px; }

  .direct { padding-block: 48px; }
  .direct h2 { font-size: 28px; }
  .cards { flex-direction: row; }
  .card h3 { font-size: 26px; }
  .card-tel { font-size: 28px; }

  .contact { padding-block: 72px; }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 480fr) minmax(0, 720fr); column-gap: clamp(32px, 5.56vw, 80px); align-items: start; }
  .contact h2 { font-size: 48px; }
  .office-tel { font-size: 25px; }

  .form-card { padding: 32px; }
  .form-card h2 { font-size: 28px; }
  .options { flex-direction: row; }
  .option { flex: 1; }

  .footer-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Form feedback ---------- */
/* second selector beats the focus-visible border rules, so the first (focused) invalid field stays red */
.field :is(input, textarea)[aria-invalid="true"], .field :is(input, textarea)[aria-invalid="true"]:focus-visible { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); } /* 6.5:1 on white */
#form-status.is-error { color: var(--error); }
#form-status.is-success { font-weight: 600; font-size: 16px; color: var(--navy-ink); }
#form-status:focus { outline: none; }
#contact-form.is-sent > :not(.submit-row), #contact-form.is-sent button { display: none; }
