/* =========================================================
   Outlaw Insurance Agency — black & white, bordered-box theme
   Matches the original Squarespace design.
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-section: #d9d9d9;   /* light gray section background */
  --gray-mid: #808080;       /* middle review column */
  --gray-soft: #f4f4f4;      /* footer + side review columns */
  --border: 4px solid var(--black);
  --border-thin: 2px solid var(--black);
  --maxw: 1240px;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--black); }

h1, h2, h3 { font-weight: 300; margin: 0; line-height: 1.1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-black {
  background: var(--black);
  color: var(--white);
  padding: 18px 40px;
  border: none;
}
.btn-black:hover { opacity: 0.82; color: var(--white); }
.btn-outline {
  background: var(--white);
  color: var(--black);
  border: var(--border-thin);
  padding: 14px 30px;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--white); padding: 22px 0; }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  text-decoration: none;
  color: var(--black);
  font-size: 1.35rem;
  font-weight: 400;
  padding-bottom: 3px;
}
.nav a:hover { opacity: 0.6; }
.nav a.active { border-bottom: 2px solid var(--black); }

.nav-toggle {
  display: none;
  background: none; border: var(--border-thin);
  width: 48px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #000; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero title ---------- */
.hero-title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: 0.01em;
  padding: 36px 0 56px;
}

/* ---------- Feature boxes ---------- */
.box {
  border: var(--border);
  padding: 38px 40px;
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 400;
}
.box p { margin: 0; }
.box p + p { margin-top: 1rem; }

/* ---------- Hero split (image | boxes) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding-bottom: 80px;
}
.split-photo { width: 100%; height: 100%; min-height: 480px; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-stack { display: flex; flex-direction: column; gap: 34px; align-items: flex-start; }
.split-stack .box { width: 100%; }

/* ---------- Gray section ---------- */
.gray-section { background: var(--gray-section); padding: 80px 0; }
.gray-section .stack { display: flex; flex-direction: column; gap: 34px; max-width: 620px; }

/* ---------- Reviews ---------- */
.reviews-section { padding: 70px 0 90px; }
.reviews-title { text-align: center; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; margin-bottom: 56px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review {
  padding: 48px 40px;
  font-size: 1.3rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  background: var(--gray-soft);
}
.review.mid { background: var(--gray-mid); color: var(--white); }
.review p { margin: 0 0 28px; }
.review .by { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-soft); padding: 44px 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center;
}
.footer-socials { display: flex; gap: 22px; align-items: center; }
.footer-socials a { color: var(--black); display: inline-flex; }
.footer-socials svg { width: 30px; height: 30px; }
.footer-name {
  text-align: center; text-transform: uppercase;
  font-size: 1.5rem; font-weight: 400; line-height: 1.2;
}
.footer-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.footer-actions .btn { min-width: 230px; text-align: center; }

/* ---------- Generic content (inner pages) ---------- */
.section { padding: 70px 0; }
.page-title { text-align: center; text-transform: uppercase; font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.2rem); margin-bottom: 16px; }
.lead { font-size: 1.4rem; line-height: 1.5; max-width: 60ch; }
.center { text-align: center; }
.center.measure, .measure { max-width: 70ch; }
.center.measure { margin: 0 auto; }
.stack-center { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }

.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.founder-grid img { width: 100%; height: auto; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.about-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1.05rem;
  padding: 14px 16px; border: var(--border-thin); background: var(--white); color: var(--black); border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: 3px solid #000; outline-offset: 1px; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.95rem; margin-top: 10px; }
.form-status { font-size: 1.05rem; font-weight: 500; margin-top: 10px; min-height: 1.2em; }
.form-status.ok { color: #15661f; }
.form-status.err { color: #000; }
.aside-box { border: var(--border); padding: 36px; }
.aside-box h3 { font-size: 1.6rem; margin-bottom: 14px; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #000; outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 116px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 2px solid #000; border-bottom: 2px solid #000;
    padding: 8px 32px 16px; transform: translateY(-150%); transition: transform 0.25s ease; z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid #ddd; }
  .nav a.active { border-bottom: 1px solid #ddd; font-weight: 600; }
  .nav-toggle { display: inline-flex; }

  .split { grid-template-columns: 1fr; }
  .split-photo { min-height: 320px; }
  .reviews { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .founder-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .footer-socials { justify-content: center; }
  .footer-actions { align-items: center; }
  .gray-section .stack { max-width: none; }
  .box { font-size: 1.3rem; padding: 30px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .nav { transition: none; }
}
