/* Fresno Towing Co — TRL design system, navy + orange. Hand-written, no framework. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/static/fonts/inter-800.woff2') format('woff2'); }

:root {
  --brand: #16305e;          /* navy = TRL green-900 role */
  --brand-dark: #10244a;
  --brand-tile: #1d3c73;
  --brand-soft: #b8c7e8;     /* body copy on navy */
  --brand-softer: #8fa7d6;   /* small text on navy tiles */
  --cta: #f97316;            /* orange-500: calls + submits only */
  --cta-dark: #ea580c;
  --cta-soft: #fb923c;
  --g900: #111827; --g800: #1f2937; --g700: #374151; --g600: #4b5563;
  --g500: #6b7280; --g400: #9ca3af; --g300: #d1d5db; --g200: #e5e7eb;
  --g100: #f3f4f6; --g50: #f9fafb;
  --ok-bg: #f0fdf4; --ok-border: #bbf7d0; --ok-text: #166534;
  --red: #ef4444;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--g900); background: #fff;
  line-height: 1.5; font-size: 1rem;
  padding-top: 80px; /* fixed header */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

/* Containers */
.wrap   { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.wrap-4 { max-width: 56rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.wrap-3 { max-width: 48rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.wrap-2 { max-width: 42rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px)  { .wrap, .wrap-4, .wrap-3, .wrap-2 { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .wrap, .wrap-4, .wrap-3, .wrap-2 { padding-left: 2rem; padding-right: 2rem; } }

/* Section rhythm */
.sec { padding: 4rem 0; background: #fff; }
.sec-alt { background: var(--g50); }
@media (min-width: 768px) { .sec { padding: 5rem 0; } }
.band { background: var(--brand); color: #fff; padding: 3rem 0; }
.trust { background: var(--brand); color: #fff; padding: 2rem 0; }

/* Type */
h1 { font-weight: 800; line-height: 1.25; font-size: 2.25rem; }
@media (min-width: 640px) { h1 { font-size: 3rem; line-height: 1.1; } }
h2 { font-weight: 700; font-size: 1.875rem; line-height: 1.2; color: var(--g900); margin-bottom: 1rem; }
@media (min-width: 768px) { h2 { font-size: 2.25rem; } }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.4; color: var(--g900); margin-bottom: 0.5rem; }
.deck { font-size: 1.125rem; color: var(--g600); margin-bottom: 3rem; max-width: 42rem; }
.copy p, .copy li { font-size: 1.125rem; color: var(--g700); line-height: 1.625; }
.copy p { margin-bottom: 1.5rem; }
.copy h2 { margin-top: 2.5rem; }
.copy h3 { margin-top: 2rem; }
.copy ul { padding-left: 1.4rem; margin-bottom: 1.5rem; }
.copy li { margin-bottom: 0.6rem; }
.copy a { color: var(--brand); font-weight: 600; text-decoration: none; }
.copy a:hover { text-decoration: underline; }
.copy strong { color: var(--g900); }
.post-meta { font-size: 0.875rem; color: var(--g500); margin-bottom: 1.5rem; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--g200); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.05rem; color: var(--brand); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { flex-shrink: 0; display: block; }
@media (min-width: 480px) { .brand { font-size: 1.15rem; } }
#nav-toggle { display: none; }
.nav-toggle-label { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; min-width: 44px; min-height: 44px; }
.nav-toggle-label span { width: 24px; height: 2px; background: var(--g700); display: block; border-radius: 2px; }

/* Mobile drawer (right side, white) */
.drawer-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.5); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 45; }
#nav-toggle:checked ~ .drawer-overlay { opacity: 1; pointer-events: auto; }
.site-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px);
  background: #fff; z-index: 50; overflow-y: auto;
  transform: translateX(103%); transition: transform 0.25s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.18);
}
#nav-toggle:checked ~ .site-nav { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 80px; border-bottom: 1px solid var(--g200); font-weight: 700; color: var(--brand); }
.drawer-close { font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--g700); padding: 4px 10px; }
.nav-list { list-style: none; padding: 0.75rem 1rem; }
.nav-list li a {
  display: flex; align-items: center; min-height: 48px; padding: 0 1rem;
  color: var(--g700); font-weight: 500; text-decoration: none; border-radius: 8px; font-size: 1rem;
}
.nav-list li a:hover { background: var(--g50); color: var(--brand); }

@media (min-width: 768px) {
  .nav-toggle-label, .drawer-overlay, .drawer-head { display: none; }
  .site-nav { position: static; transform: none; width: auto; background: transparent; box-shadow: none; overflow: visible; }
  .nav-list { display: flex; align-items: center; gap: 2rem; padding: 0; }
  .nav-list li a { min-height: 0; padding: 0; font-size: 0.875rem; font-weight: 500; border-radius: 0; }
  .nav-list li a:hover { background: transparent; color: var(--brand); }
  .nav-list li.drawer-only { display: none; }
}

/* Hero */
.hero { position: relative; display: flex; align-items: center; background-size: cover; background-position: center top; min-height: 460px; text-align: center; }
.hero.tall { min-height: calc(100vh - 80px); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .hero-inner { padding-top: 5rem; padding-bottom: 5rem; } }
.hero .eyebrow { color: var(--cta-soft); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.75rem; }
.hero h1 { color: #fff; margin: 0 auto 1.5rem; max-width: 46rem; }
@media (min-width: 1024px) { .hero.tall h1 { font-size: 3.75rem; line-height: 1.05; } }
.hero-sub { font-size: 1.125rem; color: var(--g200); line-height: 1.625; margin: 0 auto 2rem; max-width: 40rem; }
@media (min-width: 640px) { .hero-sub { font-size: 1.25rem; } }
.btn-row { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } .btn-row .btn { min-width: 15rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem;
  padding: 1rem 2rem; border-radius: 8px; text-decoration: none; transition: background-color 0.15s, color 0.15s; min-height: 56px; border: 0; cursor: pointer; }
.btn-orange { background: var(--cta); color: #fff; }
.btn-orange:hover { background: var(--cta-dark); }
.btn-navy { background: var(--brand); color: #fff; }
.btn-navy:hover { background: var(--brand-dark); }
.btn-outline-white { border: 2px solid #fff; color: #fff; font-weight: 600; min-height: 56px; }
.btn-outline-white:hover { background: #fff; color: var(--g900); }
.btn-outline-navy { border: 2px solid var(--brand); color: var(--brand); font-weight: 600; padding: 0.75rem 2rem; min-height: 48px; }
.btn-outline-navy:hover { background: var(--brand); color: #fff; }
.btn-shadow { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* Trust strip */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.trust-item svg { width: 32px; height: 32px; color: var(--cta-soft); flex-shrink: 0; margin-top: 2px; }
.trust-item .t-label { font-weight: 700; color: #fff; }
.trust-item .t-sub { color: var(--brand-soft); font-size: 0.875rem; }

/* Card grids */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--g100);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); transition: box-shadow 0.15s; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 12rem; object-fit: cover; }
.card img.img-lg { height: 14rem; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--g600); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; color: var(--brand); font-weight: 600; font-size: 0.875rem; text-decoration: none; min-height: 44px; }
.card-link:hover { text-decoration: underline; }
.card .btn { align-self: flex-start; font-size: 1rem; padding: 0.75rem 1.5rem; min-height: 48px; }

.tile-card { background: var(--brand); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.tile-card h3 { color: #fff; }
.tile-card p { color: var(--brand-soft); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.25rem; }

/* Q&A cards */
.qa-card { background: var(--g50); border-radius: 12px; padding: 1.5rem; border: 1px solid var(--g100); margin-bottom: 1.5rem; }
.qa-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.qa-card p { color: var(--g700); line-height: 1.625; margin-bottom: 0.75rem; }
.qa-card p:last-child { margin-bottom: 0; }
.covers { color: var(--g500); font-size: 0.875rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--g200); }

/* Process steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--g600); line-height: 1.625; }

/* Navy band with tiles */
.band-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .band-grid { grid-template-columns: repeat(2, 1fr); } }
.band h2 { color: #fff; }
.band .band-copy p { color: var(--brand-soft); line-height: 1.625; margin-bottom: 1rem; }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tile { background: var(--brand-tile); border-radius: 8px; padding: 1rem; }
.tile .t-label { font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.tile .t-sub { color: var(--brand-softer); font-size: 0.875rem; line-height: 1.5; }

/* CTA band */
.band-cta { padding: 3rem 0; text-align: center; }
.band-cta h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.band-cta p { color: var(--brand-soft); margin-bottom: 1.5rem; }
.band-panel { background: var(--brand); border-radius: 16px; padding: 2rem; text-align: center; }
.band-panel h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.band-panel p { color: var(--brand-soft); margin-bottom: 1.5rem; }

/* Left-rule list (TRL signature block) */
.rule-list { list-style: none; padding: 0 !important; }
.rule-list li { border-left: 4px solid var(--brand); padding-left: 1.5rem; margin-bottom: 1.5rem !important; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; border: 1px solid var(--g200); border-radius: 8px; overflow: hidden; }
thead { background: var(--brand); color: #fff; }
th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.875rem; }
td { padding: 0.75rem 1rem; border-top: 1px solid var(--g200); vertical-align: top; color: var(--g700); }
tbody tr:nth-child(even) { background: var(--g50); }
td:first-child { font-weight: 500; color: var(--g900); }

/* Callouts */
.note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 1.5rem; margin: 2rem 0; }
.hero-strip { background: var(--g50); border: 1px solid var(--g200); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.hero-strip p { margin-bottom: 0; }

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.lead-form form { display: flex; flex-direction: column; gap: 1.25rem; }
.lead-form label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--g900); }
.lead-form label .req { color: var(--red); }
.lead-form input, .lead-form textarea {
  display: block; width: 100%; padding: 0.75rem 1rem; margin-top: 0.35rem;
  border: 1px solid var(--g300); border-radius: 8px; font: inherit; font-size: 1rem; min-height: 48px;
}
.lead-form textarea { min-height: 0; resize: none; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(22,48,94,0.3); }
.lead-form button { width: 100%; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 0.875rem; color: var(--g500); text-align: center; }
.form-note a { color: var(--brand); font-weight: 600; }
.form-success { background: var(--ok-bg); border: 1px solid var(--ok-border); border-radius: 8px; padding: 1.5rem; text-align: center; color: var(--ok-text); font-weight: 600; }
.contact-side p { font-size: 1.125rem; color: var(--g700); line-height: 1.625; margin-bottom: 1.5rem; }
.contact-meta { font-size: 0.875rem; color: var(--g500); border-top: 1px solid var(--g200); padding-top: 1rem; margin-top: 1.5rem; }

/* Page header band (inner pages without photo hero) */
.page-band { background: var(--brand); padding: 6rem 0 3rem; color: #fff; }
.page-band h1 { color: #fff; margin-bottom: 0.75rem; }
.page-band p { color: var(--brand-soft); font-size: 1.25rem; }

/* Footer */
.site-footer { background: var(--g900); color: var(--g300); padding: 2.5rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.site-footer .f-desc { color: var(--g400); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1rem; }
.f-phone { color: var(--cta-soft); font-weight: 600; text-decoration: none; }
.f-phone:hover { color: #fdba74; }
.footer-head { font-weight: 600; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; font-size: 0.875rem; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer li a { color: var(--g300); text-decoration: none; transition: color 0.15s; }
.site-footer li a:hover { color: #fff; }
.footer-legal { border-top: 1px solid var(--g800); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--g500); }
@media (min-width: 640px) { .footer-legal { flex-direction: row; } }
.footer-legal a { color: var(--g500); }

/* Sticky mobile call bar */
.call-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
.call-bar a {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--cta); color: #fff; font-weight: 700; font-size: 1.125rem;
  text-decoration: none; min-height: 56px; padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: background-color 0.15s;
}
.call-bar a:hover { background: var(--cta-dark); }
.call-bar svg { width: 20px; height: 20px; margin-right: 0.5rem; }
.call-spacer { height: 3.5rem; }
@media (min-width: 768px) { .call-bar, .call-spacer { display: none; } }

/* Note under a card grid */
.grid-note { margin-top: 2rem; font-size: 1rem; color: var(--g600); line-height: 1.625; }
.grid-note a { color: var(--brand); font-weight: 600; text-decoration: none; }
.grid-note a:hover { text-decoration: underline; }
