/* ============================================================
   Bet-Mar Bookkeeping — Main Stylesheet
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --paper:    #f0e9dc;
  --paper-2:  #ebe2d0;
  --paper-3:  #e2d6bb;
  --ink:      #1f1d18;
  --ink-soft: #3a352c;
  --ink-mute: #7a6f5d;
  --lime:     #7cc028;
  --lime-deep:#5a8e1d;
  --stamp:    #b8451f;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
#services, #story, #about, #contact { scroll-margin-top: 96px; }
body { overflow-x: hidden; position: relative; }

/* Subtle paper texture overlays */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .4;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(120,90,40,.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(120,90,40,.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(60,40,10,.03) 0%, transparent 50%);
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--lime); color: var(--ink); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 26px;
  position: relative;
  z-index: 1;
}

/* ── Announce bar ─────────────────────────────────────────── */
.announce {
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Mono";
  font-size: 12px;
  letter-spacing: .06em;
  position: relative;
  z-index: 200;
}
.announce-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 20px;
}
.announce .pip { color: var(--lime); }
.announce a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--lime);
}

/* ── Sticky header ────────────────────────────────────────── */
header.head {
  padding: 22px 0 18px;
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 0; z-index: 150;
  background: var(--paper);
  transition: box-shadow .2s;
}
header.head.scrolled { box-shadow: 0 4px 24px rgba(31,29,24,.10); }

.head-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.logo .mark {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.025em;
  display: flex;
  align-items: baseline;
}
.logo .mark .a-wrap { position: relative; display: inline-block; }
.logo .mark .arr {
  position: absolute;
  right: -3px; top: -13px;
  width: 14px; height: 18px;
  color: var(--lime);
}
.logo-img { height: 40px; width: auto; display: block; }
.logo .tag {
  font-family: "IBM Plex Mono";
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-mute);
  text-transform: uppercase;
  border-left: 1px solid var(--ink);
  padding-left: 12px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}
.logo .tag .tag-line1::after { content: " ·"; }

/* Nav */
nav.main { display: flex; gap: 6px; align-items: center; }
nav.main a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: all .15s;
}
nav.main a:hover,
nav.main a.active { background: var(--ink); color: var(--paper); }
nav.main .cta { background: var(--lime); font-weight: 600; color: var(--ink); }
nav.main .cta:hover { background: var(--ink); color: var(--lime); }
.header-phone {
  font-family: "IBM Plex Mono";
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  white-space: nowrap;
  padding-left: 6px;
}
.header-phone:hover { color: var(--lime-deep); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 70px 0 60px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono";
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero .eyebrow .star { color: var(--lime); }

.hero h1 {
  /*font-family: "Bricolage Grotesque";*/
  /*font-weight: 500;*/
  font-size: clamp(48px, 5.5vw, 94px);
  line-height: .95;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 96;
}
.hero h1 .line-plain {
  display: block;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero h1 .line-green {
  display: inline-block;
  font-family: "Caveat";
  font-weight: 600;
  color: var(--lime-deep);
  font-size: .82em;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transform: rotate(-1deg);
  margin-top: 4px;
}

.hero p.lede {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Buttons */
.btn {
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: all .15s;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

.note {
  font-family: "Caveat";
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-mute);
  transform: rotate(-2deg);
  position: relative;
  padding-left: 38px;
}
.note::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 30px; height: 2px;
  background: var(--ink-mute);
  transform: rotate(-15deg);
}

/* Hero card */
.hero-card {
  position: relative;
  padding: 36px 30px 32px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  transform: rotate(1.2deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.hero-card::before {
  content: "EST. 2006";
  position: absolute;
  top: -12px; left: 24px;
  background: var(--paper-2);
  padding: 0 10px;
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink);
}
.stamp {
  position: absolute;
  top: 18px; right: 18px;
  width: 90px; height: 90px;
  border: 2px solid var(--stamp);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--stamp);
  font-family: "IBM Plex Mono";
  font-size: 9px;
  letter-spacing: .2em;
  text-align: center;
  line-height: 1.3;
  padding: 8px;
  transform: rotate(-10deg);
  opacity: .85;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--stamp);
  border-radius: 999px;
}
.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.card-stat .v {
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.02em;
}
.card-stat .v .lime { color: var(--lime-deep); }
.card-stat .k {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: "IBM Plex Mono";
  letter-spacing: .06em;
  line-height: 1.3;
}
.testimonial { padding-top: 22px; border-top: 1px dashed var(--ink-mute); }
.testimonial .q {
  font-family: "Caveat";
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  line-height: 1.2;
}
.testimonial cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: "IBM Plex Mono";
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Marquee strip ────────────────────────────────────────── */
.strip {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 0;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative; z-index: 1;
}
.strip-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: scroll 36s linear infinite;
  font-family: "Bricolage Grotesque";
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.01em;
}
.strip-track span { display: inline-flex; align-items: center; gap: 50px; }
.strip-track .dot {
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 999px;
  display: inline-block;
}
.strip-track .lime { color: var(--lime); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Services ─────────────────────────────────────────────── */
.services { padding: 90px 0 70px; position: relative; z-index: 5; overflow: visible; }

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 60px;
}
.sec-head .num-big {
  font-family: "Bricolage Grotesque";
  font-weight: 300;
  font-size: clamp(80px, 12vw, 180px);
  line-height: .8;
  color: var(--ink);
  letter-spacing: -.06em;
}
.sec-head .num-big .sm {
  font-size: .35em;
  vertical-align: super;
  color: var(--lime-deep);
  font-weight: 500;
}
.sec-head .heading { padding-bottom: 18px; }
.sec-head .kicker {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--lime-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-family: "Bricolage Grotesque";
  font-weight: 500;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 18ch;
}
.sec-head h2 em {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  color: var(--lime-deep);
  font-size: 1.1em;
}

/* Big decorative star */
.big-star {
  position: absolute;
  top: -90px; right: 10px;
  width: 320px; height: 320px;
  pointer-events: none; z-index: 10;
}
.big-star svg { width: 320px; height: 320px; }
.big-star-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  padding: 55px 45px;
  pointer-events: auto;
}
.big-star-text .g { color: var(--lime-deep); }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.svc {
  position: relative;
  padding: 30px 26px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  transition: all .2s;
  cursor: pointer;
}
.svc:nth-child(odd)  { transform: rotate(-.4deg); }
.svc:nth-child(even) { transform: rotate(.4deg); }
.svc:hover {
  transform: translate(-3px, -3px) rotate(0);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper-3);
}
.svc .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.svc .ico-wrap {
  width: 50px; height: 50px;
  background: var(--ink);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.svc .tag {
  font-family: "IBM Plex Mono";
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 6px;
}
.svc h3 {
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.015em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.svc p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.svc .more {
  margin-top: 18px;
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}
.svc .more .a { transition: transform .2s; }
.svc:hover .more .a { transform: translateX(3px); }

/* ── Why Us (dark) ────────────────────────────────────────── */
.whyus {
  padding: 80px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.whyus::before {
  content: "";
  position: absolute;
  top: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 999px;
  background: var(--lime);
  opacity: .08;
  filter: blur(50px);
}
.whyus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.whyus-kicker {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.whyus h2 {
  font-family: "Bricolage Grotesque";
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.whyus h2 em {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  color: var(--lime);
  font-size: 1.05em;
}
.whyus-body {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.65;
  color: #c8c2b3;
  max-width: 44ch;
}
.whyus-right { display: flex; flex-direction: column; gap: 0; }
.whyus-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #2e2a22;
}
.whyus-row:first-child { padding-top: 0; }
.whyus-row:last-child  { border-bottom: 0; }
.whyus-check {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 17px;
}
.whyus-row h4 {
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--paper);
}
.whyus-row p { font-size: 15px; color: #b5af9f; line-height: 1.5; margin: 0; }

/* ── About ────────────────────────────────────────────────── */
.about { padding: 80px 0; background: var(--paper); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  /*aspect-ratio: 4/5;*/
  object-fit: cover; object-position: top;
  display: block;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.about-floater {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--lime);
  color: var(--ink);
  padding: 16px 20px;
  border: 2px solid var(--ink);
  font-family: "IBM Plex Mono";
  text-align: center;
}
.af-num {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1;
}
.af-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; }
.about-kicker {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--lime-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.about-title {
  font-family: "Bricolage Grotesque";
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.green-rule { width: 48px; height: 4px; background: var(--lime); margin-bottom: 22px; }
.about-quote {
  font-family: "Caveat";
  font-weight: 600;
  font-size: 24px;
  color: var(--ink-soft);
  line-height: 1.3;
  border-left: 4px solid var(--lime);
  padding-left: 18px;
  margin-bottom: 20px;
  font-style: normal;
}
.about-body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 26px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tags-row2 { margin-top: 8px; }
.atag {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-sec { padding: 70px 0; background: var(--paper-2); border-top: 2px solid var(--ink); }
.testi-inner { display: grid; grid-template-columns: auto 1px 1fr; gap: 50px; align-items: start; }
.testi-rating { text-align: center; min-width: 120px; }
.testi-score {
  font-family: "Bricolage Grotesque";
  font-weight: 600;
  font-size: 64px;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}
.testi-stars { color: var(--lime-deep); font-size: 24px; letter-spacing: 3px; margin: 6px 0; }
.testi-label {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
}
.testi-gbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 8px 14px;
  transition: all .15s;
}
.testi-gbtn:hover { background: var(--ink); color: var(--paper); }
.testi-divider { width: 1px; background: var(--ink); align-self: stretch; }
.testi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 24px 22px;
}
.testi-card:nth-child(odd)  { transform: rotate(-.3deg); }
.testi-card:nth-child(even) { transform: rotate(.3deg); }
.testi-stars-sm { color: var(--lime-deep); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.testi-text {
  font-family: "Caveat";
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}
.testi-cite {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-style: normal;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact { padding: 90px 0; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact h2 {
  font-family: "Bricolage Grotesque";
  font-weight: 500;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.03em;
}
.contact h2 em {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  color: var(--lime-deep);
  font-size: 1.05em;
  display: inline-block;
  transform: rotate(-2deg);
}
.contact .p { margin-top: 24px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 42ch; }
.contact .doodle {
  font-family: "Caveat";
  color: var(--lime-deep);
  font-size: 24px;
  margin-top: 30px;
  transform: rotate(-2deg);
  display: inline-block;
}
.contact-card {
  padding: 34px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1deg);
}
.contact-card h4 {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--ink-mute);
  font-size: 15px;
}
.contact-row:last-child { border-bottom: 0; }

/* ── Contact form ─────────────────────────────────────────── */
.contact-form {
  margin-top: 50px;
  padding: 34px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  max-width: 720px;
}
.contact-form h4 {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field--full { grid-column: 1 / -1; }
.cf-field label {
  font-family: "IBM Plex Mono";
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cf-field .req { color: var(--stamp); }
.cf-field input,
.cf-field select,
.cf-field textarea {
  font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  font-size: 15px;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.cf-field select { appearance: auto; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { outline: 2px solid var(--lime-deep); outline-offset: 1px; }
.cf-captcha { margin-top: 22px; }
.contact-form .btn { margin-top: 22px; }
.cf-flash {
  margin-top: 40px;
  padding: 16px 20px;
  border: 2px solid var(--ink);
  font-size: 15px;
  max-width: 720px;
}
.cf-flash--success { background: var(--lime); }
.cf-flash--error { background: var(--stamp); color: var(--paper); }

/* Contact form rendered inside the popup modal */
.modal--form { width: min(640px, 92vw); max-height: 88vh; overflow-y: auto; }
.modal-body--form { padding: 22px 30px 30px; }
.modal-body--form .contact-form { margin-top: 0; padding: 0; background: none; border: 0; max-width: none; }
.modal-body--form .cf-flash { margin-top: 0; margin-bottom: 22px; max-width: none; }
.contact-card-cta { margin-top: 22px; width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .cf-grid { grid-template-columns: 1fr; }
}
.contact-row .l {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-row a { color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.contact-row a:hover { border-bottom-color: var(--lime); }

/* ── Footer ───────────────────────────────────────────────── */
footer.foot { padding: 40px 0 30px; border-top: 2px solid var(--ink); background: var(--paper-2); }
.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-family: "IBM Plex Mono";
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .06em;
}
.foot-left  { display: flex; flex-direction: column; gap: 6px; }
.foot-center{ text-align: center; display: flex; flex-direction: column; gap: 6px; }
.foot-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.foot-inner .lime { color: var(--lime-deep); }
.foot-inner a { color: var(--ink-mute); text-decoration: none; }
.foot-inner a:hover { color: var(--ink); }
.foot-logo {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.foot-logo .lime { color: var(--lime); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(31,29,24,.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  animation: fade .25s;
}
.modal-back.on { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper);
  border: 2px solid var(--ink);
  width: min(540px, 92vw);
  box-shadow: 10px 10px 0 var(--ink);
  animation: rise .35s cubic-bezier(.2,.7,.2,1);
  transform: rotate(-.5deg);
}
@keyframes rise {
  from { transform: translateY(20px) rotate(-.5deg); opacity: 0; }
  to   { transform: translateY(0)    rotate(-.5deg); opacity: 1; }
}
.modal-head {
  padding: 28px 30px 22px;
  border-bottom: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: start;
}
.modal-head .k {
  font-family: "IBM Plex Mono";
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--lime-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-head h3 {
  font-family: "Bricolage Grotesque";
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -.02em;
  line-height: 1;
}
.modal-head h3 em {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  color: var(--lime-deep);
}
.modal-close {
  background: transparent;
  border: 2px solid var(--ink);
  width: 36px; height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px; line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-body { padding: 8px 12px 14px; }
.portal-opt {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: all .15s;
  margin: 6px 0;
  border: 2px solid transparent;
}
.portal-opt:hover { background: var(--paper-2); border-color: var(--ink); transform: translateX(4px); }
.portal-opt:hover .arr { transform: translateX(6px); color: var(--lime-deep); }
.portal-opt .pico {
  width: 50px; height: 50px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.portal-opt .pt { flex: 1; }
.portal-opt .pt .t { font-family: "Bricolage Grotesque"; font-weight: 600; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.portal-opt .pt .d { margin-top: 4px; font-size: 15px; color: var(--ink-mute); }
.portal-opt .arr { font-size: 22px; color: var(--ink-mute); transition: all .2s; font-family: "Bricolage Grotesque"; }
.portal-opt .arr-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.portal-opt .click-here {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Chat widget ──────────────────────────────────────────── */
.chat-btn {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  border: 3px solid var(--lime);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 50;
  transition: transform .2s;
}
.chat-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.chat-btn .bub {
  position: absolute;
  top: -12px; right: -12px;
  background: var(--stamp);
  color: var(--paper);
  font-family: "Caveat"; font-weight: 600; font-size: 15px;
  padding: 2px 10px;
  border-radius: 999px;
  transform: rotate(8deg);
  border: 2px solid var(--ink);
  white-space: nowrap;
}
.chat-panel {
  position: fixed;
  bottom: 104px; right: 26px;
  width: min(360px, 92vw);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  z-index: 50;
  display: none;
  flex-direction: column;
  animation: rise .3s;
}
.chat-panel.on { display: flex; }
.chat-head {
  background: var(--ink); color: var(--paper);
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head .who { font-family: "Bricolage Grotesque"; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.chat-head .stat {
  font-family: "IBM Plex Mono"; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: #a8a397;
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.chat-head .stat .dot2 { width: 6px; height: 6px; border-radius: 999px; background: var(--lime); }
.chat-x { background: transparent; border: 0; color: var(--paper); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 8px; }
.chat-msgs {
  padding: 18px 20px;
  background: var(--paper-2);
  min-height: 180px;
  display: flex; flex-direction: column; gap: 10px;
}
.bubble {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 85%;
}
.bubble.me { align-self: flex-end; background: var(--lime); border-radius: 14px 14px 4px 14px; }
.chat-input { display: flex; border-top: 2px solid var(--ink); background: var(--paper); }
.chat-input input {
  flex: 1; border: 0;
  padding: 14px 16px;
  background: transparent;
  font-family: "Bricolage Grotesque"; font-size: 15px;
  color: var(--ink); outline: none;
}
.chat-input input::placeholder { color: var(--ink-mute); }
.chat-input button {
  background: var(--ink); color: var(--lime);
  border: 0; padding: 0 22px;
  cursor: pointer;
  font-family: "Bricolage Grotesque"; font-weight: 600; font-size: 15px; letter-spacing: .06em;
}
.chat-input button:hover { background: var(--lime); color: var(--ink); }


/* ============================================================
   ANIMATIONS & INTERACTIONS
   ============================================================ */

/* ── Scroll reveal (JS adds .is-visible via IntersectionObserver) ───────── */
:root { --ease-out: cubic-bezier(.16,.84,.44,1); }

.reveal, .reveal-left, .reveal-right, .reveal-zoom, .reveal-fade {
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out);
}
.reveal        { opacity: 0; transform: translateY(28px); }
.reveal-left   { opacity: 0; transform: translateX(-36px); }
.reveal-right  { opacity: 0; transform: translateX(36px); }
.reveal-zoom   { opacity: 0; transform: scale(.9); }

/* Cards that already carry a static rotate/hover transform use a blur+fade
   variant so the reveal doesn't fight with their own transform rules. */
.reveal-fade { opacity: 0; filter: blur(6px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible { opacity: 1; transform: none; }
.reveal-fade.is-visible { opacity: 1; filter: blur(0); }

.svc-grid .reveal-fade:nth-child(1) { transition-delay: .05s; }
.svc-grid .reveal-fade:nth-child(2) { transition-delay: .12s; }
.svc-grid .reveal-fade:nth-child(3) { transition-delay: .19s; }
.svc-grid .reveal-fade:nth-child(4) { transition-delay: .26s; }
.svc-grid .reveal-fade:nth-child(5) { transition-delay: .33s; }
.svc-grid .reveal-fade:nth-child(6) { transition-delay: .40s; }

.testi-cards .reveal-fade:nth-child(1) { transition-delay: .05s; }
.testi-cards .reveal-fade:nth-child(2) { transition-delay: .15s; }
.testi-cards .reveal-fade:nth-child(3) { transition-delay: .25s; }

.whyus-right .reveal-right:nth-child(1) { transition-delay: .05s; }
.whyus-right .reveal-right:nth-child(2) { transition-delay: .13s; }
.whyus-right .reveal-right:nth-child(3) { transition-delay: .21s; }
.whyus-right .reveal-right:nth-child(4) { transition-delay: .29s; }

/* ── Number counter (JS animates the text content on scroll-into-view) ──── */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* ── Hero entrance (runs once, on page load — no JS needed) ─────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardPop {
  0%   { opacity: 0; transform: scale(.85) rotate(1.2deg) translateY(20px); }
  60%  { opacity: 1; transform: scale(1.03) rotate(1.2deg) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) rotate(1.2deg) translateY(0); }
}
.hero .eyebrow      { animation: fadeUp .6s ease both; }
.hero h1             { animation: fadeUp .6s ease .08s both; }
.hero .lede          { animation: fadeUp .6s ease .16s both; }
.hero .hero-actions  { animation: fadeUp .6s ease .24s both; }
.hero-card           { animation: cardPop .7s cubic-bezier(.2,.7,.3,1.4) .3s both; }

/* Entrance animations are cleared by JS once they finish (see main.js), so
   these elements are free to respond to :hover afterwards instead of being
   pinned by the animation's fill-forwards value. */
.hero-card { transition: transform .3s ease, box-shadow .3s ease; }
.hero-card:hover { transform: rotate(1.2deg) translateY(-5px); box-shadow: 9px 9px 0 var(--ink); }

/* ── Decorative motion — star stays still, tilts slightly on hover ──────── */
.big-star svg { transition: transform .5s var(--ease-out); }
.services:hover .big-star svg { transform: rotate(10deg) scale(1.03); }

/* ── Extra hover polish ───────────────────────────────────────────────── */
.svc .ico-wrap { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.svc:hover .ico-wrap { transform: scale(1.12) rotate(-6deg); }

.testi-card { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.testi-card:hover { transform: translateY(-5px) rotate(0deg); box-shadow: 5px 5px 0 var(--ink); }

.about-photo-wrap { overflow: hidden; }
.about-photo { transition: transform .6s var(--ease-out); }
.about-photo-wrap:hover .about-photo { transform: scale(1.045); }

.whyus-row { transition: transform .3s var(--ease-out); }
.whyus-row:hover { transform: translateX(8px); }
.whyus-check { transition: background .2s, color .2s, transform .3s var(--ease-out); }
.whyus-row:hover .whyus-check { background: var(--paper); color: var(--ink); transform: scale(1.1); }

.contact-card { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.contact-card:hover { transform: rotate(-1deg) translateY(-4px); box-shadow: 10px 10px 0 var(--ink); }

/* Tactile press feedback on every button */
.btn { transition: all .15s, transform .1s ease; }
.btn:active { transform: scale(.96); }

/* ── Respect reduced-motion preference ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-zoom, .reveal-fade {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .hero-actions, .hero-card { animation: none; opacity: 1; }
  .big-star svg { transition: none; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Mobile bottom navigation ─────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
}
.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "IBM Plex Mono";
  font-size: 10px;
  letter-spacing: .02em;
}
.mbn-item svg { width: 20px; height: 20px; }
.mbn-item:active { color: var(--lime-deep); }
.mbn-item--call svg { color: var(--lime-deep); }

/* — Tablet (≤900px) — */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .big-star { width: 200px; height: 200px; top: -70px; right: 0; }
  .big-star svg { width: 200px; height: 200px; }
  .big-star-text { font-size: 12px; padding: 34px 28px; }
  .whyus-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-photo-wrap { max-width: 380px; margin: 0 auto; }
  .testi-inner { grid-template-columns: 1fr; gap: 30px; }
  .testi-divider { display: none; }
  .testi-cards { grid-template-columns: repeat(2, 1fr); }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-head .num-big { font-size: 80px; }
  nav.main a:not(.cta) { display: none; }
  .foot-inner { grid-template-columns: 1fr; text-align: left; gap: 16px; }
  .foot-right { align-items: flex-start; text-align: left; }
  .foot-center { text-align: left; }

  /* Bottom nav takes over primary navigation on mobile/tablet */
  body { padding-bottom: 64px; }
  .mobile-bottom-nav { display: flex; }
  .chat-btn { bottom: 78px; }
  .chat-panel { bottom: 156px; }
}

/* — Mobile (≤640px) — */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }

  /* Announce bar */
  .announce-inner { height: auto; padding: 7px 16px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .announce-inner span:last-child { display: none; }

  /* Header */
  header.head { padding: 12px 0; }
  .head-inner { gap: 10px; flex-wrap: nowrap; align-items: center; }

  /* Logo — horizontal with 2-line tag */
  .logo { align-items: center; gap: 10px; }
  .logo .mark { font-size: 22px; }
  .logo .tag {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ink);
    padding-left: 10px;
    font-size: 9px;
    letter-spacing: .22em;
    line-height: 1.65;
  }
  .logo .tag .tag-line1 { text-transform: uppercase; }
  .logo .tag .tag-line1::after { display: none; }
  .logo .tag .tag-line2 { text-transform: uppercase; color: var(--ink-mute); }

  /* Nav */
  nav.main .cta { font-size: 13px; padding: 8px 14px; }

  /* Hero */
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: clamp(38px, 11vw, 62px); }
  .hero p.lede { font-size: 16px; margin-top: 20px; }
  .hero-actions { margin-top: 26px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn { font-size: 14px; padding: 12px 20px; }
  .note { padding-left: 0; transform: none; }
  .note::before { display: none; }

  /* Hero card */
  .hero-card { padding: 26px 22px 24px; transform: none; }
  .card-stat .v { font-size: 36px; }
  .stamp { width: 72px; height: 72px; font-size: 8px; }

  /* Marquee */
  .strip-track { font-size: 18px; }

  /* Services */
  .services { padding: 60px 0 50px; }
  .svc-grid { grid-template-columns: 1fr; }
  .big-star { display: none; }
  .svc:nth-child(odd), .svc:nth-child(even) { transform: none; }
  .sec-head .num-big { font-size: 60px; }

  /* Why Us */
  .whyus { padding: 56px 0; }

  /* About */
  .about { padding: 56px 0; }
  .about-floater { right: -6px; bottom: -6px; padding: 12px 14px; }
  .af-num { font-size: 22px; }
  .about-photo-wrap { max-width: 100%; }

  /* Testimonials */
  .testimonial-sec { padding: 50px 0; }
  .testi-score { font-size: 52px; }
  .testi-cards { grid-template-columns: 1fr; }
  .testi-card:nth-child(odd), .testi-card:nth-child(even) { transform: none; }

  /* Contact */
  .contact { padding: 60px 0; }
  .contact h2 { font-size: clamp(36px, 10vw, 56px); }
  .contact-card { padding: 24px 18px; transform: none; box-shadow: 5px 5px 0 var(--ink); }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 0; }
  .contact-row a { word-break: break-all; font-size: 14px; }

  /* Footer */
  footer.foot { padding: 28px 0 22px; }
  .foot-inner { gap: 20px; }

  /* Chat */
  .chat-btn { bottom: 20px; right: 16px; width: 54px; height: 54px; }
  .chat-btn .bub { font-size: 13px; padding: 2px 8px; }
  .chat-panel { right: 12px; bottom: 88px; width: calc(100vw - 24px); }
}

/* — Small mobile (≤400px) — */
@media (max-width: 400px) {
  .logo .mark { font-size: 19px; }
  .logo .tag { font-size: 8px; padding-left: 8px; letter-spacing: .16em; }
  .hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .card-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-stat .v { font-size: 30px; }
}
