/* Kanata Towing — styles */
:root {
  --red: #ce2026;
  --red-dark: #a8181d;
  --text: #2f2e2e;
  --ink: #111111;
  --dark: #2f2e2e;
  --darker: #1c1c1c;
  --grey-bg: #e3e3e3;
  --grey-soft: #f4f4f4;
  --line: #d9d9d9;
  --white: #ffffff;
  --font: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Barlow', 'DIN Next', 'Avenir Next', Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
svg { width: 1em; height: 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.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; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 26px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn-wide { min-width: 200px; text-align: center; text-transform: uppercase; letter-spacing: .06em; padding: 12px 30px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 8px solid var(--red);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 70px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 8px; align-items: center; }
.site-nav a, .sub-toggle {
  display: block; padding: 10px 22px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.site-nav a:hover, .sub-toggle:hover, .site-nav a.active, .active-parent > .sub-toggle { color: var(--red); }
.caret { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 230px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px 0 !important; display: none;
}
.sub a { text-transform: none; letter-spacing: 0; font-size: 15px; padding: 9px 20px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.header-phone { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--red); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; color: #fff; text-align: center; overflow: hidden; background: #111; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.7)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(70px, 10vw, 130px) 24px; max-width: 900px; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero-title { display: block; font-size: clamp(38px, 8vw, 76px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; font-weight: 500; }
.hero-tag { display: block; font-size: clamp(16px, 2.4vw, 22px); font-weight: 500; margin-top: .5em; letter-spacing: .04em; }
.hero p { max-width: 640px; margin: 0 auto 1.2em; font-size: 16px; }
.hero-phone { display: inline-block; color: #fff; -webkit-tap-highlight-color: transparent; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 6vw, 50px); white-space: nowrap; letter-spacing: .02em; }
.hero-phone:hover { text-decoration: underline; }

/* Red band */
.red-band { background: var(--red); color: #fff; text-align: center; padding: 44px 0; }
.red-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.red-grid > div { padding: 4px 28px; }
.red-grid > div + div { border-left: 1px solid rgba(255,255,255,.7); }
.red-band h2 { color: #fff; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5em; }
.red-band p { font-size: 14px; max-width: 300px; margin: 0 auto; }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 34px); }
.welcome-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.welcome p { font-size: 15px; }
.welcome .btn { margin-top: .4em; }

.services { background: var(--grey-bg); text-align: center; }
.services-title { font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.rule { display: block; width: 44px; height: 2px; background: var(--ink); margin: 0 auto 22px; }
.services-sub { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); max-width: 560px; margin: 0 auto 36px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #222; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .05em; text-align: left;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); opacity: .85; }
.tile:hover .tile-label, .tile:focus-visible .tile-label { background: linear-gradient(transparent, rgba(206,32,38,.9)); }

.features { padding-bottom: 32px; }
.features .section-title { text-transform: uppercase; letter-spacing: .06em; max-width: 620px; margin: 0 auto 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.feature-grid svg { width: 40px; height: 40px; color: var(--red); margin: 0 auto 12px; display: block; }
.feature-grid h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }

.long-copy { padding-top: 24px; }
.long-copy p { font-size: 15px; }
.list-block { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-bottom: 1.1em; }
.svc-bullets { margin: 0; padding-left: 20px; font-size: 15px; columns: 2; column-gap: 32px; }
.long-copy a { color: inherit; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; background: #222; }
.page-hero img { width: 100%; height: clamp(240px, 36vw, 440px); object-fit: cover; }
.page-hero-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.94); padding: 18px 36px; max-width: calc(100% - 32px); text-align: center;
}
.page-hero-box h1 { font-size: clamp(24px, 4vw, 42px); margin: 0; }
.page-title { font-size: clamp(30px, 4.4vw, 44px); text-align: center; }
.prose .wrap, .prose-inner { max-width: 960px; }
.prose p, .prose-inner p { font-size: 16px; }

.call-band { background: var(--red); color: #fff; padding: 30px 0; text-align: center; }
.call-band-phone { display: inline-block; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 6vw, 52px); white-space: nowrap; letter-spacing: .02em; }
.call-band-phone:hover { text-decoration: underline; }

.form-title { font-size: clamp(22px, 3vw, 30px); text-align: center; margin-bottom: 1em; }
.other-services .section-title { font-size: clamp(22px, 3vw, 28px); }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill-list a { display: block; padding: 10px 18px; border: 1px solid var(--ink); text-decoration: none; font-size: 15px; }
.pill-list a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; margin-top: 24px; }
.about-side { display: grid; gap: 24px; align-content: start; justify-items: start; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: 32px; }
.contact .form-title { text-align: left; font-size: 22px; }
.contact-info h2 { color: var(--red); font-family: var(--font); font-size: 16px; font-weight: 600; margin: 0 0 .2em; }
.contact-info p { margin-bottom: 1.3em; }
.contact-info a { text-decoration: none; word-break: break-word; }
.contact-info a:hover { color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 10px 12px; border: 1px solid #8a8a8a; border-radius: 0; background: #fff;
}
.field select { appearance: auto; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: #fff5f5; }
.hp { position: absolute; left: -9999px; }
.contact-note { font-size: 14px; background: var(--grey-soft); padding: 14px 16px; border-left: 4px solid var(--red); }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: var(--red-dark); }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.map-section iframe { display: block; width: 100%; height: 420px; }
.home-map { padding-bottom: 0; }
.home-map p { margin-bottom: 28px; }

/* Legal */
.legal h2 { font-size: 21px; margin-top: 1.8em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: .5em; }
.updated { text-align: center; color: #777; font-size: 14px; }
.callout { background: #fff3f3; border-left: 5px solid var(--red); padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0; }
.page-404 { min-height: 50vh; }

/* Footer */
.footer-contact { background: var(--red); color: #fff; padding: 30px 0 24px; }
.footer-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.footer-contact-grid > div { padding: 0 24px; }
.footer-contact-grid > div + div { border-left: 1px solid rgba(255,255,255,.7); }
.footer-contact p { margin: 0; font-size: 14px; }
.footer-contact a { text-decoration: none; word-break: break-word; }
.footer-contact a:hover { text-decoration: underline; }
.fc-label { display: flex; align-items: center; gap: 10px; font-size: 18px !important; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px !important; }
.fc-label svg { width: 20px; height: 20px; }
.fc-label svg:not([fill]) { fill: currentColor; }
.footer-main { background: var(--dark); color: #fff; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 32px; align-items: start; }
.footer-logo img { width: 200px; background: #fff; padding: 10px 12px; }
.footer-h { font-family: var(--font-display); font-weight: 500; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8em; text-decoration: underline; text-underline-offset: 5px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: 4px; }
.footer-main a { font-size: 14px; text-decoration: none; }
.footer-main a:hover { text-decoration: underline; }
.footer-main p { font-size: 14px; margin-bottom: .6em; }
.footer-phone a { font-family: var(--font-display); font-size: 24px; white-space: nowrap; }
.footer-map { display: inline-flex; align-items: center; gap: 6px; }
.footer-map svg { width: 18px; height: 18px; }
.footer-legal { background: var(--darker); color: #ddd; text-align: center; padding: 14px 0; }
.footer-legal p { margin: 0; font-size: 13px; }
.mobile-call { display: none; }

/* Tablet */
@media (max-width: 1024px) {
  .site-nav a, .sub-toggle { padding: 10px 12px; }
  .header-phone { font-size: 21px; }
  .brand img { height: 60px; }
}

/* Mobile nav */
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .brand img { height: 54px; }
  .header-phone { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 4px solid var(--red); box-shadow: 0 10px 20px rgba(0,0,0,.12);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .site-nav a, .sub-toggle { width: 100%; text-align: left; padding: 14px 24px; font-size: 15px; }
  .sub { position: static; transform: none; box-shadow: none; padding: 0 0 6px !important; background: var(--grey-soft); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub a { padding-left: 40px; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 18px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 14px rgba(0,0,0,.2);
  }
  .mobile-call svg { fill: currentColor; width: 18px; height: 18px; }
  body { padding-bottom: 58px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Phones */
@media (max-width: 700px) {
  body { font-size: 14px; line-height: 1.4; }
  .wrap { padding: 0 16px; }
  .section { padding: 48px 0; }
  .red-grid, .feature-grid, .footer-contact-grid { grid-template-columns: 1fr; }
  .red-grid > div { padding: 22px 8px; }
  .red-grid > div + div, .footer-contact-grid > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.6); }
  .red-band { padding: 16px 0; }
  .footer-contact-grid > div { padding: 14px 0; }
  .feature-grid { gap: 28px; }
  .tiles { grid-template-columns: 1fr; }
  .welcome-grid, .list-block, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .svc-bullets { columns: 1; }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-logo { grid-column: 1 / -1; }
  .footer-logo img { width: 170px; }
  .prose p, .prose-inner p, .welcome p, .long-copy p, .hero p, .svc-bullets, .legal { font-size: 14px; }
  .hero-title { font-size: 40px; }
  .hero-tag { font-size: 15px; }
  .hero-phone { font-size: 36px; }
  .section-title { font-size: 23px; }
  .features .section-title { margin-bottom: 28px; }
  .services-title { font-size: 30px; }
  .page-title { font-size: 28px; }
  .page-hero img { height: 240px; }
  .page-hero-box { padding: 14px 18px; width: calc(100% - 32px); }
  .page-hero-box h1 { font-size: 24px; }
  .red-band h2 { font-size: 20px; }
  .legal h2 { font-size: 18px; }
  .call-band-phone { font-size: 36px; }
  .mobile-call { font-size: 16px; }
  .map-section iframe { height: 320px; }
  p, li { line-height: 1.4; }
  .hero { min-height: 540px; display: flex; align-items: center; }
  .hero .hero-inner { padding: 64px 16px; width: 100%; }
  .hero p { margin-bottom: 1.4em; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
}
