/* A-1 Bonding Corporation. Form-header chassis, checklist containers, stamped sequence signature. */

*, *::before, *::after { box-sizing: border-box; }
/* no smooth scrolling: this site's motion identity is crisp and instant */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg[hidden] { display: none; }
[id] { scroll-margin-top: 130px; }
::selection { background: var(--clay); color: var(--bone-2); }
html { scrollbar-color: var(--leather) var(--bone); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 var(--s2); }
h1 { font-weight: 900; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
a { color: var(--turq); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* focus */
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: var(--radius); }
.dark :focus-visible, .formhead :focus-visible { outline-color: var(--turq-bright); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: var(--ink-dark); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ============ header: the head of a bond form ============ */
.formhead {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
  border-top: 3px solid var(--leather);
  border-bottom: 1px solid var(--rule-strong);
}
.formhead-in { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.ff-row { display: flex; align-items: stretch; }
.ff {
  padding: 10px 18px 8px 0;
  margin-right: 18px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
}
.ff-label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.ff-value { font-size: .95rem; color: var(--ink); text-decoration: none; }
.ff-brand { font-family: var(--display); font-weight: 900; font-size: 1.06rem; letter-spacing: .01em; }
.ff-brand:hover { color: var(--clay); }
.ff-since { border-right: 0; }

.nav-toggle {
  display: none;
  margin-left: auto; align-self: center;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--bone-2); color: var(--ink);
  font: inherit; font-size: .9rem;
  padding: 10px 14px; min-height: 44px;
  cursor: pointer; align-items: center; gap: 8px;
  transition: background var(--t-fast) var(--t-cut);
}
.nav-toggle:active { transform: translateY(1px); }
.nav-toggle .ico-shut { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-shut { display: block; }

.tabs { display: flex; gap: 4px; }
.tabs a {
  position: relative;
  padding: 9px 14px 7px; min-height: 40px;
  font-size: .9rem; text-decoration: none; color: var(--muted);
  border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color var(--t-fast) var(--t-cut), background var(--t-fast) var(--t-cut);
}
.tabs a:hover { color: var(--ink); background: var(--bone-2); }
.tabs a:active { transform: translateY(1px); }
.tabs a[aria-current="page"] {
  color: var(--ink); background: var(--bone-2);
  border-color: var(--rule-strong);
  box-shadow: 0 1px 0 var(--bone-2);
}
.tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 0;
  height: 2px; background: var(--turq);
}

/* ============ buttons: switches, not cushions ============ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 15px 20px; min-height: 52px;
  font: inherit; font-size: 1.05rem;
  text-decoration: none; text-align: center;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast) var(--t-step);
}
.btn:active { transform: translateY(1px); }
.btn-clay { background: var(--clay); color: var(--bone-2); }
.btn-clay:hover { background: var(--clay-press); }
.btn-leather { background: var(--leather); color: var(--ink-dark); }
.btn-leather:hover { background: var(--leather-press); }
.dark .btn-leather { box-shadow: inset 0 0 0 1px var(--rule-dark); }
.cta-stack { display: grid; gap: 10px; max-width: 420px; }

.arrowlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--turq); text-decoration: none; font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: gap var(--t-fast) var(--t-cut);
}
.arrowlink:hover { gap: 12px; border-bottom-color: var(--turq); }
.dark .arrowlink { color: var(--turq-bright); }

/* ============ dark sections + line pulse ============ */
.dark { background: var(--dark); color: var(--ink-dark); }
.dark p { color: var(--ink-dark); }
.dark .muted, .dark .ph-label { color: var(--muted-dark); }
.muted { color: var(--muted); }

.pulse-rule { position: relative; overflow: hidden; height: 1px; background: var(--rule-dark); }
.pulse-rule::after {
  content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 140px;
  background: linear-gradient(90deg, transparent, var(--turq-bright), transparent);
  transform: translateX(-160px);
}
html[data-anim] .pulse-rule::after { animation: pulse-run 7s linear infinite; }
html[data-anim] .pulse-rule.pulse-late::after { animation-delay: 3.5s; }
@keyframes pulse-run {
  0%   { transform: translateX(-160px); }
  16%  { transform: translateX(calc(100vw + 160px)); }
  100% { transform: translateX(calc(100vw + 160px)); }
}

/* ============ hero ============ */
.hero { position: relative; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(38,25,15,.96) 0 34%, rgba(38,25,15,.72) 58%, rgba(38,25,15,.30));
}
.hero-in { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s2);
  max-width: 11ch;
}
.hero-line { font-size: 1.1rem; max-width: 44ch; color: var(--muted-dark); margin-bottom: var(--s5); }
.hero-line strong { color: var(--ink-dark); font-weight: 400; }

/* the phone board: two ruled form rows, each tappable */
.phoneboard { max-width: 520px; margin-bottom: var(--s4); }
.ph-row {
  display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 14px;
  padding: 13px 8px; min-height: 60px;
  border-bottom: 1px solid var(--rule-dark);
  text-decoration: none;
  transition: background var(--t-fast) var(--t-step);
}
.ph-row:hover { background: var(--dark-2); }
.ph-row:active { transform: translateY(1px); }
.ph-label { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.ph-num {
  justify-self: end;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--ink-dark);
  white-space: nowrap;
}

/* tick boxes: checklist furniture everywhere */
.tickbox {
  width: 18px; height: 18px; flex: none;
  border: 1.5px solid var(--tickbox); border-radius: var(--radius);
  color: var(--turq-bright);
  display: inline-grid; place-items: center;
}
.tickbox svg { width: 13px; height: 13px; }
.tickbox .tick-path { stroke-dasharray: 16; stroke-dashoffset: 16; }
.light-tick .tickbox, .steps .tickbox { color: var(--turq); }
html[data-anim] .ticked .tick-path,
html:not([data-anim]) .tick-path { stroke-dashoffset: 0; }
html[data-anim] .ticked .tick-path { transition: stroke-dashoffset 140ms var(--t-cut); }
.ph-row:hover .tick-path { stroke-dashoffset: 0; transition: stroke-dashoffset 140ms var(--t-cut); }

/* ============ sections: checklist rules ============ */
.sec { padding: clamp(48px, 8vw, 88px) 0; }
.sec-head {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 10px; margin-bottom: clamp(24px, 4vw, 40px);
}
.sec-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.dark .sec-head { border-bottom-color: var(--rule-dark); }
.sec-intro { max-width: 56ch; margin-bottom: var(--s4); }

/* ============ signature: four form fields that stamp in ============ */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: step; }
.step {
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--bone-2);
  padding: 18px 20px 16px;
  position: relative;
}
.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.step-no { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--clay); }
.step-title { font-family: var(--display); font-size: 1.18rem; margin: 0; }
.step .tickbox { position: absolute; top: 18px; right: 18px; }
.step p { font-size: .98rem; margin: 0; }
.step-note {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: .88rem; color: var(--muted);
}
html[data-anim] .step { opacity: 0; transform: scale(.985); }
html[data-anim] .step.stamped {
  opacity: 1; transform: none;
  transition: opacity var(--t-fast) var(--t-step), transform var(--t-fast) var(--t-cut);
}

/* process page: full-width fields */
.steps-full { grid-template-columns: 1fr; max-width: 780px; }
.steps-full .step { padding: 22px 26px 20px; }
.steps-full .step p { max-width: 58ch; font-size: 1.02rem; }

/* ready checklist */
.ready { max-width: 640px; }
.ready li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; min-height: 44px;
  border-bottom: 1px solid var(--rule);
}
.ready ul { list-style: none; margin: 0; padding: 0; }

/* ============ photo layouts ============ */
.photo-band { display: grid; grid-template-columns: 2.1fr 1fr; gap: 14px; }
.photo-band .stack { display: grid; gap: 14px; }
.photo-band figure, .photo-duo figure, .photo-solo figure { margin: 0; position: relative; }
.photo-band img, .photo-duo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-band figcaption, .photo-duo figcaption, .photo-solo figcaption {
  font-size: .8rem; color: var(--muted); padding-top: 6px;
}
.photo-band .lead img { min-height: 320px; }
.photo-band .stack img { aspect-ratio: 3 / 2; }
.photo-duo { display: grid; grid-template-columns: 1fr 1.35fr; gap: 14px; align-items: start; }
.photo-solo img { width: 100%; border-radius: var(--radius); }

/* ============ office band (index) ============ */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split .photo-solo img { max-height: 520px; object-fit: cover; }
.factline { border-bottom: 1px solid var(--rule); padding: 12px 2px; margin: 0; max-width: none; }
.factline:first-of-type { border-top: 1px solid var(--rule-strong); }
.factline b { font-weight: 400; font-family: var(--display); }

/* ============ contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.field { margin-bottom: var(--s2); }
.field label { display: block; font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bone-2);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 12px 12px; min-height: 48px;
  transition: border-color var(--t-fast) var(--t-cut), background var(--t-fast) var(--t-cut);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--turq); outline-offset: 1px; background: #FFFDF6;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg {
  display: none;
  border: 1px solid var(--rule-strong); border-left: 3px solid var(--clay);
  border-radius: var(--radius);
  background: var(--bone-2);
  padding: 14px 16px; margin-top: var(--s2);
  font-size: .98rem;
}
.form-msg.show { display: block; }
.form-msg a { color: var(--turq); white-space: nowrap; }

/* big phone rows on light ground */
.ph-light .ph-row { border-bottom-color: var(--rule-strong); }
.ph-light .ph-row:hover { background: var(--bone-2); }
.ph-light .ph-num { color: var(--ink); }
.ph-light .ph-label { color: var(--muted); }
.ph-light .tickbox { color: var(--turq); }

/* ============ footer ============ */
.footer { background: var(--bone); border-top: 3px solid var(--leather); padding: var(--s6) 0 calc(var(--s6) + 68px); }
.foot-row { border-bottom: 1px solid var(--rule); padding: var(--s2) 0; }
.foot-row p { margin: 0 0 4px; }
.foot-name { font-family: var(--display); font-weight: 900; }
.foot-tels { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-tels a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.foot-tels a:hover { color: var(--clay); }
.foot-nav { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--turq); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-fine { border-bottom: 0; }
.foot-fine p { font-size: .84rem; color: var(--muted); max-width: none; }

/* ============ mobile call bar ============ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--dark); border-top: 1px solid var(--rule-dark);
}
.callbar .btn { font-size: .95rem; min-height: 48px; padding: 10px 8px; }
.callbar.gone { display: none !important; }

/* ============ reveals: hard cuts, gated on html[data-anim] ============ */
html[data-anim] .rv { opacity: 0; }
html[data-anim] .rv.on { opacity: 1; transition: opacity var(--t-fast) var(--t-step); }

/* page banners (inner pages lead with imagery) */
.banner { position: relative; isolation: isolate; }
.banner .hero-in { padding: clamp(44px, 7vw, 88px) 0; }
.banner h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 16ch; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .photo-band { grid-template-columns: 1fr; }
  .photo-band .stack { grid-template-columns: 1fr 1fr; }
  .photo-duo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ff-city, .ff-since { display: none; }
  .ff-name { border-right: 0; }
  .nav-toggle { display: inline-flex; }
  .tabs {
    display: none;
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--rule);
    padding: 6px 0 10px;
  }
  .tabs.open { display: flex; }
  .tabs a {
    border: 0; border-bottom: 1px solid var(--rule);
    border-radius: 0;
    padding: 12px 4px; min-height: 48px; font-size: 1rem;
  }
  .tabs a[aria-current="page"] { background: transparent; box-shadow: none; }
  .tabs a[aria-current="page"]::after { top: auto; bottom: -1px; left: 4px; right: auto; width: 42px; }
  .callbar { display: flex; }
  .photo-band .stack { grid-template-columns: 1fr; }
  .hero-scrim { background: linear-gradient(180deg, rgba(38,25,15,.94) 0 45%, rgba(38,25,15,.68)); }
  .step .tickbox { top: 16px; right: 14px; }
  [id] { scroll-margin-top: 84px; }
}

/* ============ reduced motion: the static page is complete ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html[data-anim] .rv, html[data-anim] .step { opacity: 1; transform: none; }
  html[data-anim] .tick-path { stroke-dashoffset: 0; }
}
