/* ============================================================
   Mr. Jones Bail Bonds
   Built to the supplied design spec:
     Colours    #B11217 red · #D4AF37 gold · #0F0F12 black
     Type       Playfair Display (headers) · Inter (body)
     Icons      inline SVG
     Layout     desktop-first, responsive at all breakpoints
   ============================================================ */

:root {
  --red: #b11217;
  --red-dark: #8d0e12;
  --gold: #d4af37;
  --gold-soft: #e6c968;
  --black: #0f0f12;
  --white: #ffffff;

  --ink: #16161a;
  --muted: #5f6168;
  --line: #e6e4df;
  --wash: #faf9f7;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: 40px;

  /* Distance from the container's content edge to the viewport edge.
     Lets the hero media bleed off the right of the grid while every
     other child stays aligned to the container. */
  --bleed: calc((100vw - min(100vw, var(--container))) / 2 + var(--gutter));
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 100%; height: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 96px;
}

/* —— Logo —————————————————————————————————————————————————— */

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.logo-mark {
  width: 40px;
  height: 46px;
  color: var(--gold);
  flex-shrink: 0;
}

.logo-type { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-sub {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--red);
  margin-top: 4px;
}

.logo-strap {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 5px;
}

/* —— Nav ——————————————————————————————————————————————————— */

.primary-nav { display: flex; align-items: center; gap: 26px; }

.primary-nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--ink);
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.primary-nav a:hover { color: var(--red); }

.primary-nav a.is-current { color: var(--red); }

.primary-nav a.is-current::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

/* —— Header phone ——————————————————————————————————————————— */

.header-cta { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }

.header-cta-icon {
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--red);
  flex-shrink: 0;
}

.header-cta-text { display: flex; flex-direction: column; line-height: 1.25; }

.header-cta-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.header-cta-phone {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
}

.header-cta-phone:hover { color: var(--red); }

.header-cta-note { font-size: 0.6rem; color: var(--muted); margin-top: 2px; }

/* —— Mobile menu button ————————————————————————————————————— */

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav { display: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero { background: #fff; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 0;
}

.hero-content { padding-bottom: 72px; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-title span { color: var(--red); }

.title-rule {
  width: 62px;
  height: 3px;
  background: var(--gold);
  margin: 26px 0;
}

.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 34em;
}

/* —— Buttons ——————————————————————————————————————————————— */

.cta-group { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }

.cta-group .btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; flex-shrink: 0; }

.btn-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.btn-text strong { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.btn-text small { font-size: 0.67rem; opacity: 0.82; margin-top: 2px; white-space: nowrap; }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary .btn-icon { background: rgba(255, 255, 255, 0.16); }
.btn-primary:hover { background: var(--red-dark); }

.btn-outline { background: var(--white); color: var(--red); border-color: rgba(177, 18, 23, 0.45); }
.btn-outline .btn-icon { background: rgba(177, 18, 23, 0.1); }
.btn-outline:hover { background: rgba(177, 18, 23, 0.05); border-color: var(--red); }

.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* —— Feature row ———————————————————————————————————————————— */

.feature-row {
  display: flex;
  gap: 32px;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.feature { display: flex; gap: 13px; flex: 1; }

.feature-icon { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }

.feature h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink);
  margin-bottom: 5px;
}

.feature p { font-size: 0.76rem; line-height: 1.55; color: var(--muted); }

/* —— Hero media ————————————————————————————————————————————— */

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  margin-right: calc(-1 * var(--bleed));
  border-radius: 0 0 0 110px;
  overflow: hidden;
  background: var(--black);
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--black);
  color: var(--gold);
  text-align: center;
  padding: 40px;
}

.fallback-mark { width: 52px; height: 60px; opacity: 0.85; margin-bottom: 18px; }

.fallback-line {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}

.fallback-note {
  margin-top: 22px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.hero-trust-bar { background: #0f0f12; color: #fff; }

.trust-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.trust-motto {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.13em;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 56px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  flex: 1;
}

.trust-figure {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-soft);
  white-space: nowrap;
}

.trust-icon { width: 34px; height: 34px; color: var(--gold-soft); flex-shrink: 0; }

.trust-label { font-size: 0.74rem; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.trust-label em { font-style: normal; color: rgba(255, 255, 255, 0.5); font-size: 0.68rem; }
.trust-label strong { font-weight: 600; }

/* ============================================================
   RESPONSIVE — desktop-first
   ============================================================ */

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 0.68rem; }
  .header-cta-note { display: none; }
  .hero-grid { gap: 40px; }
}

@media (max-width: 1024px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.28s ease, border-color 0.28s ease;
  }

  .mobile-nav.is-open { max-height: 560px; border-top-color: var(--line); }

  .mobile-nav a {
    display: block;
    padding: 16px var(--gutter);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a:hover { color: var(--red); background: var(--wash); }

  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .hero-content { padding-bottom: 44px; }

  .hero-media {
    min-height: 380px;
    border-radius: 0 0 0 80px;
    margin: 0 calc(var(--gutter) * -1);
  }

  .hero-media { margin-right: calc(var(--gutter) * -1); }

  .trust-inner { flex-wrap: wrap; gap: 28px 40px; }
  .trust-motto { width: 100%; }
  .trust-item { padding-left: 40px; flex: 1 1 240px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .header-inner { min-height: 76px; }
  .logo-mark { width: 34px; height: 39px; }
  .logo-name { font-size: 1.28rem; }
  .logo-sub { font-size: 0.7rem; letter-spacing: 0.28em; }
  .logo-strap { display: none; }

  .hero-grid { padding-top: 36px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .title-rule { margin: 20px 0; }
  .hero-subtitle { font-size: 0.96rem; }

  .cta-group { gap: 10px; margin-top: 28px; }
  .cta-group .btn { width: 100%; }

  .feature-row {
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
    padding-top: 26px;
  }

  .hero-media { min-height: 300px; border-radius: 0 0 0 56px; }
  .fallback-line { font-size: 1.15rem; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .trust-item {
    width: 100%;
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }
}

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