/* ============================================================
   247 CLOSERS — notary signing service
   Editorial brand · sticky-nav stacked layout (Oak & Grid style)
   Reuses the Arron Johnson design tokens + components.
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f0e8;   /* warm off-white */
  --ink:       #1b1b1b;   /* primary dark */
  --ink-2:     #2e2e2e;   /* charcoal */
  --muted:     #6f6a60;   /* warm gray secondary text */
  --gold:      #f2c200;   /* vivid brand yellow (CTA / accents) */
  --gold-deep: #a8892e;   /* muted gold — eyebrows / hover on light */
  --gold-soft: rgba(242, 194, 0, 0.16);
  --line:      rgba(27, 27, 27, 0.12);
  --line-dark: rgba(245, 240, 232, 0.16);

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', var(--font-sans);

  --nav-h: 80px;
  --max:   1180px;

  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 72px;
  --sp-2xl: 120px;

  --ease: 260ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol, li { list-style: none; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.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;
}

.section-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 6vw; }

/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--sp-md);
}
.eyebrow-light { color: var(--gold); }

.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.display-hero { font-size: clamp(40px, 6vw, 78px); line-height: 1.02; }
.display em, .u-italic { font-style: italic; color: var(--gold-deep); }
.display-onDark { color: var(--bg-alt); }
.display-onDark .u-italic { color: var(--gold); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(27, 27, 27, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 6vw;
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}
.brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.3px;
  color: var(--bg-alt);
  display: inline-flex;
  align-items: center;
}
.brand-accent { color: var(--gold); font-style: italic; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-links { margin-left: auto; display: flex; gap: var(--sp-lg); }
.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: rgba(245, 240, 232, 0.78);
  transition: color var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.btn-nav { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--bg-alt); transition: var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 8px 0 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-link {
  font-family: var(--font-display);
  font-weight: 900; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,232,0.82);
  padding: 14px 6vw;
}
.mobile-link:hover { color: var(--gold); }
.mobile-cta { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 15px; letter-spacing: 0.01em;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-arrow { transition: transform var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-pill {
  background: var(--gold); color: var(--ink);
  padding: 11px 20px; border-radius: 999px; font-size: 14px;
}
.btn-pill:hover { background: var(--bg-alt); }

.btn-primary {
  background: var(--gold); color: var(--ink);
  padding: 15px 30px; border-radius: 999px;
}
.btn-primary:hover { background: var(--ink); color: var(--gold); }

.btn-ghost {
  color: var(--bg-alt); padding: 15px 26px;
  border: 1px solid rgba(245,240,232,0.4); border-radius: 999px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  background: var(--ink); color: var(--gold);
  padding: 15px 30px; border-radius: 999px;
}
.btn-dark:hover { background: var(--bg); color: var(--ink); }

.btn-block { width: 100%; justify-content: center; padding-top: 17px; padding-bottom: 17px; }

.text-link {
  display: inline-block;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--ease);
}
.text-link:hover { color: var(--gold-deep); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--ink); color: var(--bg-alt); }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: var(--sp-2xl) 6vw;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-xl);
  align-items: center;
}
.hero-copy { max-width: 720px; }
.display-hero { color: var(--bg-alt); margin-bottom: var(--sp-lg); }
.hero .display-hero em { color: var(--gold); }
.hero-sub {
  font-size: 19px; line-height: 1.6;
  color: rgba(245,240,232,0.74);
  max-width: 540px; margin-bottom: var(--sp-lg);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-aside { display: grid; gap: 16px; }
.hero-card {
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  min-height: 96px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-card span {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 22px; line-height: 1.05; color: var(--gold);
}
.hero-card-1 { background: linear-gradient(150deg, #2e2e2e, #1b1b1b); }
.hero-card-2 { background: linear-gradient(150deg, var(--gold) 0%, var(--gold-deep) 100%); }
.hero-card-2 span { color: var(--ink); font-style: normal; }
.hero-card-3 { background: linear-gradient(150deg, #242424, #161616); }

/* ============================================================
   THE COMPANY
   ============================================================ */
.company { padding: var(--sp-2xl) 0; background: var(--bg); }
.statement {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.22;
  letter-spacing: -0.4px; color: var(--ink);
  max-width: 980px; margin-bottom: var(--sp-lg);
}
.statement-lead { font-weight: 600; }
.statement em { font-style: italic; color: var(--gold-deep); }
.statement-note {
  font-size: 18px; color: var(--muted); max-width: 660px;
}

/* ============================================================
   WHY US — alternating rows
   ============================================================ */
.why { padding: var(--sp-xl) 0 var(--sp-2xl); background: var(--bg-alt); }
.why-head { text-align: center; max-width: 760px; margin: 0 auto var(--sp-2xl); }
.why-head .display { margin-top: 4px; }

.rows { display: flex; flex-direction: column; gap: var(--sp-2xl); }
.row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl); align-items: center;
}
.row:nth-child(even) .row-visual { order: 2; }   /* flip image side */
.row-visual {
  min-height: 320px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(150deg, #2e2e2e 0%, #1b1b1b 100%);
}
.row-visual-alt { background: linear-gradient(150deg, var(--gold) 0%, var(--gold-deep) 100%); }
.visual-word {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(40px, 5vw, 72px); line-height: 0.9; letter-spacing: -1px;
  text-align: center; color: rgba(242, 194, 0, 0.92); user-select: none;
}
.row-visual-alt .visual-word { color: var(--ink); }

.row-num {
  display: block;
  font-family: var(--font-serif); font-style: italic;
  font-size: 30px; color: var(--gold-deep); margin-bottom: 8px;
}
.row-cat {
  font-family: var(--font-display); font-weight: 900;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.row-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12;
  color: var(--ink); margin-bottom: 14px;
}
.row-text { color: var(--ink-2); margin-bottom: 20px; max-width: 460px; }

/* ============================================================
   SERVICES (dark)
   ============================================================ */
.section-dark { background: var(--ink); color: var(--bg-alt); }
.services { padding: var(--sp-2xl) 0; }
.services .display { margin-bottom: var(--sp-xl); }
.service-list { border-top: 1px solid var(--line-dark); }
.service {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 40px 1.4fr;
  gap: var(--sp-md); align-items: baseline;
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left var(--ease);
}
.service:hover { padding-left: 12px; }
.service-name {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); color: var(--bg-alt);
}
.service:hover .service-name { color: var(--gold); }
.service-rule { font-family: var(--font-serif); font-size: 26px; color: var(--gold); }
.service-desc { font-size: 16px; color: rgba(245,240,232,0.66); line-height: 1.5; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { padding: var(--sp-2xl) 0; background: var(--bg); }
.testi-head { text-align: center; max-width: 760px; margin: 0 auto var(--sp-xl); }
.testi-head .eyebrow { text-align: center; }
.testi-head .display { margin-top: 4px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.testi-rating {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: var(--sp-md); font-size: 15px;
}
.testi-rating .stars { font-size: 18px; }
.testi-rating-text { color: var(--muted); font-weight: 600; }

.testi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg);
  align-items: stretch;
}
.review {
  display: flex; flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--sp-lg);
}
.review .stars { font-size: 17px; margin-bottom: var(--sp-md); }
.review-quote {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(20px, 2.1vw, 25px); line-height: 1.34;
  letter-spacing: -0.2px; color: var(--ink);
  margin-bottom: var(--sp-lg); flex: 1;
}
.review-by { display: flex; align-items: center; gap: 14px; }
.review-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  flex: none; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  color: #fff; text-transform: uppercase;
}
.review-by-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
.review-logo { width: auto; height: 40px; }
.review-id { display: flex; flex-direction: column; }
.review-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.review-role { font-size: 13px; color: var(--muted); }

/* ============================================================
   YELLOW CTA BAND
   ============================================================ */
.cta-band { background: var(--gold); padding: var(--sp-2xl) 0; text-align: center; }
.cta-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 58px); line-height: 1.05;
  letter-spacing: -0.5px; color: var(--ink);
  max-width: 800px; margin: 0 auto var(--sp-lg);
}

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact { padding: var(--sp-2xl) 0; background: var(--bg-alt); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--sp-xl);
  align-items: start;
}
.contact-intro .display {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.14;
  margin-bottom: var(--sp-md);
}
.contact-lead { color: var(--ink-2); margin-bottom: var(--sp-lg); max-width: 380px; }
.contact-points { display: flex; flex-direction: column; gap: 10px; }
.contact-points li {
  position: relative; padding-left: 26px;
  font-size: 15px; color: var(--ink-2);
}
.contact-points li::before {
  content: "\2713"; position: absolute; left: 0;
  color: var(--gold-deep); font-weight: 700;
}

.request-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--sp-lg);
  box-shadow: 0 18px 50px rgba(27,27,27,0.08);
}
.form-section-label {
  font-family: var(--font-display); font-weight: 900;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 10px; margin-bottom: var(--sp-md);
  border-bottom: 1px solid var(--line);
}
.form-section-label + .field-grid { margin-top: 0; }
.field-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display); font-weight: 900;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  font-size: 16px; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note.is-success { color: var(--gold-deep); font-weight: 600; }
.form-note.is-error { color: #b4452e; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--bg-alt); padding: var(--sp-2xl) 0 var(--sp-lg); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 6vw;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { font-family: var(--font-serif); font-size: 30px; color: var(--bg-alt); margin-bottom: 16px; line-height: 0; }
.footer-logo { height: 84px; width: auto; display: block; }
.footer-tag { color: rgba(245,240,232,0.66); max-width: 420px; }
.footer-line { margin-bottom: 10px; color: rgba(245,240,232,0.82); }
.footer-key {
  display: inline-block; min-width: 86px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.footer-line a { color: var(--gold); transition: color var(--ease); }
.footer-line a:hover { color: var(--bg-alt); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: var(--sp-lg) 6vw 0;
  display: flex; justify-content: space-between; gap: var(--sp-md);
  font-size: 13px; color: rgba(245,240,232,0.6);
}
.footer-bottom a { color: rgba(245,240,232,0.6); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .hero-aside { grid-template-columns: 1fr 1fr 1fr; }

  .row { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .row:nth-child(even) .row-visual { order: 0; }   /* normal stack on mobile */
  .row-visual { min-height: 220px; }

  .service { grid-template-columns: 1fr; gap: 8px; }
  .service-rule { display: none; }

  .testi-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --sp-2xl: 80px; }
  .hero-aside { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
