/* ============================================================
   Seneca Implement Company — core styles
   Loaded on every page.
   Palette sampled from the shop sign on North Street:
   charcoal #23282C, gold #F0B94F, white. Oswald + Barlow.
   ============================================================ */

:root {
  --ink: #23282C;          /* sign charcoal */
  --ink-2: #171b1e;        /* deeper, for footer / overlays */
  --ink-soft: #5b6469;
  --gold: #F0B94F;         /* sign gold */
  --gold-dk: #B8862A;      /* darkened for text on light — passes contrast */
  --gold-soft: #FBF0D8;
  --paper: #FFFFFF;
  --sand: #F5F3EF;
  --sand-2: #EBE7E0;
  --line: #DCD8D1;
  --ok: #2E7D51;
  --err: #C0392B;
  --alert: #B3401A;
  --alert-bg: #FDF1EA;
  --shadow: 0 18px 45px -20px rgba(20, 24, 28, .38);
  --shadow-sm: 0 6px 18px -10px rgba(20, 24, 28, .45);
  --wrap: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dk); }
/* Long unbroken URLs (facebook.com/senecaimplementco, the email address) must be
   allowed to break, or they widen the page on a narrow phone. Nav links are
   white-space:nowrap and unaffected. */
.section a, .pagehead a, .notice a, .card a, .factbar a, .site-footer a, .hero a:not(.btn) {
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, .display {
  font-family: "Oswald", "Barlow", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .005em;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5.4vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: .45em; }
h3 { font-size: clamp(19px, 2.4vw, 23px); margin-bottom: .35em; }
p, li, dd, td, th { overflow-wrap: break-word; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.section { padding: clamp(48px, 7vw, 86px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #E7E4DF; }
.section--ink h2, .section--ink h3 { color: #fff; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.section--ink .lede { color: #B9B4AC; }

.eyebrow {
  display: inline-block; font-family: "Oswald", sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dk); margin-bottom: 12px;
}
.section--ink .eyebrow { color: var(--gold); }
.rule { width: 54px; height: 4px; background: var(--gold); border-radius: 2px; margin: 0 0 20px; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 16px;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  padding: 13px 26px; border-radius: 6px; border: 2px solid transparent;
  background: var(--ink); color: #fff;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #E5AC3B; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
/* Any ghost button sitting on a dark ground needs the inverted treatment —
   without this it renders ink-on-ink and is invisible until hover. */
.section--ink .btn--ghost,
.hero .btn--ghost,
.pagehead .btn--ghost,
.factbar .btn--ghost {
  color: #fff; border-color: rgba(255,255,255,.55);
}
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.pagehead .btn--ghost:hover,
.factbar .btn--ghost:hover {
  background: #fff; color: var(--ink); border-color: #fff;
}
.btn--lg { font-size: 17.5px; padding: 15px 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Topbar ── */
.topbar { background: var(--ink-2); color: #C9C4BC; font-size: 13.5px; }
.topbar .wrap { max-width: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px clamp(14px, 3vw, 40px); }
.topbar__hours { font-weight: 500; }
.topbar__call { color: var(--gold); text-decoration: none; font-weight: 700; white-space: nowrap; }
.topbar__call:hover { text-decoration: underline; }

/* ── Header / nav ── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 3px solid var(--gold); }
/* Full bleed: the header spans the whole viewport, not the 1180px column. */
.site-header .wrap {
  max-width: none; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(14px, 3vw, 40px);
}
.brand { display: block; text-decoration: none; flex: 0 0 auto; }
.brand img { height: clamp(46px, 6vw, 74px); width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a {
  text-decoration: none; color: var(--ink); font-family: "Oswald", sans-serif;
  font-weight: 400; font-size: 15.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 13px; border-radius: 6px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav > a:hover { background: var(--sand); }
.nav .is-active { color: var(--gold-dk); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
.nav__cta { background: var(--ink); color: #fff !important; margin-left: 10px; }
.nav__cta:hover { background: #000 !important; }
.nav__cta.is-active { box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 3px solid var(--gold); box-shadow: var(--shadow);
    padding: 10px; gap: 2px; display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 14px; font-size: 17px; }
  .nav__cta { text-align: center; justify-content: center; margin: 8px 0 0; }
  .topbar__hours { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ── Site-wide fraud strip (sits under the header) ── */
.fraudstrip { background: var(--alert); color: #fff; font-size: 14.5px; }
.fraudstrip .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; padding-top: 9px; padding-bottom: 9px; }
.fraudstrip a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── Cards ── */
.grid { display: grid; gap: 22px; }
/* Grid tracks default to min-content:auto, which lets a long unbroken string
   (an email address, a big phone number) push the page wider than the screen. */
.grid > *, .split > *, .contact-grid > *, .factbar .wrap > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card__num {
  display: inline-block; font-family: "Oswald", sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  background: var(--gold); border-radius: 5px; padding: 3px 11px; margin-bottom: 16px;
}
.card p { color: var(--ink-soft); font-size: 16px; }
.section--sand .card { background: #fff; }

/* ── Footer ── */
.site-footer { background: var(--ink-2); color: #B9B4AC; }
.site-footer .wrap { max-width: none; padding: 56px clamp(14px, 3vw, 40px) 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); }
.footer-brand img { height: 66px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; max-width: 40ch; }
.site-footer h4 {
  font-family: "Oswald", sans-serif; color: #fff; font-weight: 500; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 15px;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 9px; }
.footer-list a, .footer-contact a { color: #DCD7CF; text-decoration: none; font-size: 15.5px; }
.footer-list a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact div { margin-bottom: 6px; font-size: 15.5px; }
.footer-contact .muted { color: #8B8781; font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); margin-top: 34px; padding-top: 20px;
  font-size: 13px; color: #8B8781; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.footer-bottom a { color: #B9B4AC; }
.footer-built {
  font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); font-size: 12.5px;
}
.footer-legit { color: #8B8781; font-size: 13px; max-width: 90ch; margin-top: 10px; line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-bottom { justify-content: center; text-align: center; } }

/* ── Forms ── */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: 14px; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold-dk); box-shadow: 0 0 0 3px rgba(240,185,79,.28);
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--ink-soft); }
.form-status { font-weight: 700; padding: 8px 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
