/* Gilbert & Sons Services — brand tokens match the Field Book app (src/styles.css) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }

:root {
  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --bg: #12110e;
  --surface: #1c1a16;
  --raised: #26231d;
  --line: #3a342b;
  --fg: #f4efe6;
  --muted: #c4baab;
  --faint: #9c9284;
  --brand: #50c8d8;
  --brand-hover: #6fd3e0;
  --ink: #062428;
  --paper: #f3eadc;
  --paper-ink: #1c1812;
  --paper-muted: #5e564c;
  --paper-sink: #e6dccb;
  --paper-accent: #0b5f6a;

  --radius: 12px;
  --tap: 56px;
  --actionbar-h: 76px;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.break { overflow-wrap: break-word; }

.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--brand); color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--ink); }

/* Icons */
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--xl { width: 40px; height: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 600 1.0625rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 1rem; border-radius: 10px; }
.btn--lg { min-height: 60px; font-size: 1.15rem; padding: 0 26px; }
.btn--block { width: 100%; }
.btn--brand { background: var(--brand); color: var(--ink); }
.btn--brand:hover { background: var(--brand-hover); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--brand); }
.btn--ghost:hover { background: rgb(80 200 216 / .12); color: var(--fg); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #0b3a40; color: #fff; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgb(18 17 14 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; min-height: 48px; margin-right: auto; }
.brand:hover { color: var(--fg); }
.brand__mark { width: 40px; height: 40px; border-radius: 9px; }
.brand__name { font: 600 1.2rem/1.1 var(--font-display); }
.brand__sub { display: none; }
.topnav { display: none; }
.show-xs { display: inline; }
.hide-xs { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 24px 0 44px; background:
  radial-gradient(ellipse 80% 55% at 50% 0%, rgb(232 140 50 / .16), transparent 70%),
  radial-gradient(ellipse 60% 50% at 50% 35%, rgb(80 200 216 / .10), transparent 70%), var(--bg); }
.hero__inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero__logo { width: min(44vw, 190px); }
.hero__logo img { border-radius: 16px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 60px -20px rgb(80 200 216 / .35), 0 30px 80px -30px rgb(232 140 50 / .45); }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow__dot { display: none; }
.eyebrow__roc { display: block; }
.eyebrow--paper { color: var(--paper-accent); }
h1 { font: 600 clamp(2.1rem, 8.5vw, 3.6rem)/1.05 var(--font-display); letter-spacing: -.01em; margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 auto 24px; }
.cta { display: grid; gap: 12px; width: 100%; max-width: 420px; margin: 0 auto; }
.cta .btn { width: 100%; }
.hero__note { margin: 18px 0 0; color: var(--faint); font-size: .98rem; }
.hero__note a { overflow-wrap: break-word; }

/* Sections */
.section { padding: 56px 0; }
.section--raised { background: var(--surface); border-block: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.section--paper a:not(.btn) { color: var(--paper-accent); }
h2 { font: 600 clamp(1.8rem, 6.5vw, 2.6rem)/1.1 var(--font-display); margin-bottom: 14px; }
h3 { font: 600 1.2rem/1.3 var(--font-sans); margin-bottom: 6px; }
.section__intro { color: var(--muted); max-width: 40em; font-size: 1.1rem; }
.section--paper .section__intro { color: var(--paper-muted); }

/* Services grid */
.grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.card { background: #fffaf1; border: 1px solid var(--paper-sink); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgb(28 24 18 / .06); }
.card p { margin: 0; color: var(--paper-muted); }
.card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: var(--brand); margin-bottom: 14px; }

/* About / split layouts */
.split { display: grid; gap: 28px; align-items: center; }
.split > div > p { color: var(--muted); max-width: 36em; }
.section--paper .split > div > p { color: var(--paper-muted); }
.badge { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; color: var(--brand); }
.badge__title { color: var(--fg); font-weight: 600; margin: 12px 0 4px; }
.badge__num { font: 600 2rem/1.1 var(--font-display); color: var(--fg); margin: 0 0 12px; letter-spacing: .01em; }
.badge__link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

/* Service area */
.area { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.area li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 1.15rem; font-weight: 600; }
.area .icon { color: var(--brand); }
.area__tag { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: var(--ink); padding: 3px 9px; border-radius: 999px; }

/* Payment steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step p { margin: 0; color: var(--muted); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: var(--ink); font-weight: 600; font-size: 1.1rem; margin-bottom: 12px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border-radius: var(--radius); background: #fffaf1; border: 1px solid var(--paper-sink); color: var(--paper-ink) !important; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-link:hover { border-color: var(--paper-accent); }
.contact-link .icon { color: var(--paper-accent); }
.contact-link__label { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); font-weight: 600; }

.form { background: #fffaf1; border: 1px solid var(--paper-sink); border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px -18px rgb(28 24 18 / .35); }
.form__title { font: 600 1.4rem/1.2 var(--font-display); margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: var(--tap); padding: 14px; border-radius: 10px;
  border: 1.5px solid #b9ad9a; background: #fff; color: var(--paper-ink);
  font: 400 1.0625rem/1.4 var(--font-sans);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--paper-accent); outline-offset: 1px; border-color: var(--paper-accent); }
.form__hint { font-size: .95rem; color: var(--paper-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: #0c0b09; border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); font-size: .98rem; }
.footer__inner { display: grid; gap: 20px; }
.footer p { margin: 0; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { border-radius: 10px; }
.footer__name { color: var(--fg); font: 600 1.15rem/1.2 var(--font-display); }
.footer__roc { color: var(--fg); font-weight: 600; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer__copy { color: var(--faint); font-size: .9rem; }

/* Mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgb(18 17 14 / .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.actionbar .btn { min-height: 56px; }
/* With JS on, the bar slides in once the hero call/text buttons scroll out of view */
.js .actionbar { transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
.js .actionbar.is-visible { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .js .actionbar { transition: none; } }

/* ---------- Larger screens ---------- */
@media (min-width: 420px) {
  .show-xs { display: none; }
  .hide-xs { display: inline; }
}

@media (min-width: 600px) {
  .wrap { padding: 0 28px; }
  .eyebrow { font-size: .9rem; }
  .eyebrow__dot { display: inline; }
  .eyebrow__roc { display: inline; }
  .hero__logo { width: 240px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1.4fr 1fr; max-width: 520px; }
  .brand__sub { display: inline; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .actionbar { display: none; }
  .topnav { display: flex; gap: 4px; }
  .topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 600; border-radius: 8px; }
  .topnav a:hover { color: var(--fg); background: var(--raised); }
  .topbar__inner { min-height: 72px; }

  .hero { padding: 64px 0 80px; }
  .hero__inner { grid-template-columns: 1.25fr 1fr; text-align: left; justify-items: start; align-items: center; gap: 56px; }
  .hero__copy { order: 1; }
  .hero__logo { order: 2; width: 380px; justify-self: center; }
  .lede { margin-left: 0; }
  .cta { margin: 0; }

  .section { padding: 88px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .split { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .split--contact { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .form { padding: 30px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .footer__copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .topnav a { padding: 0 8px; }
}

/* Thank-you and 404 pages */
.simple { padding-bottom: 0; }
.simple main { min-height: 60vh; }
.simple__body { max-width: 640px; }
.simple .lede { margin-left: 0; }
.simple .cta { margin: 0; }
