/* Newmarket Towing — styles */
:root {
  --red: #f10c14;
  --red-dark: #c8080f;
  --ink: #2f2e2e;
  --black: #111;
  --grey: #e3e3e3;
  --light: #f5f5f5;
  --white: #fff;
  --muted: #5d5d61;
  /* Avenir is licensed and not embedded: Mac/iOS show Avenir; Windows/Android fall back to Helvetica/Arial */
  --font-body: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  /* The old site's DIN Next Light is licensed; Barlow (Google Fonts, free) is the closest open match */
  --font-display: 'Barlow', 'DIN Next', 'Helvetica Neue', Arial, sans-serif;
  /* Page titles (H1): Helvetica Bold; Windows/Android use Arial Bold */
  --font-h1: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--black); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header-h); max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.logo img { width: 128px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a, .main-nav .dropdown-toggle {
  display: block; padding: 10px 18px;
  font-family: var(--font-body); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--black); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav .dropdown-toggle:hover, .main-nav .has-dropdown.active > .dropdown-toggle { color: var(--red); }
.has-dropdown { position: relative; }
.dropdown-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.main-nav .dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 230px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.14);
  padding: 8px 0; display: none; flex-direction: column !important; gap: 0 !important;
}
.main-nav .has-dropdown:hover .dropdown, .main-nav .has-dropdown:focus-within .dropdown, .main-nav .has-dropdown.open .dropdown { display: flex; }
.dropdown a { text-transform: none; letter-spacing: 0; font-size: 15px; padding: 9px 20px; }
.header-call {
  justify-self: end; font-family: var(--font-display); font-size: 26px; font-weight: 400;
  color: var(--black); text-decoration: none; white-space: nowrap;
}
.header-call:hover { color: var(--red); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: var(--white);
  padding: 14px 34px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body); transition: background .2s;
}
.btn:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); text-align: center;
  background: #000 center/cover no-repeat;
  padding: clamp(80px, 14vw, 170px) 0 clamp(70px, 11vw, 140px);
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.hero > .container { position: relative; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 8.2vw, 76px); letter-spacing: .02em; margin-bottom: .35em;
}
/* Homepage title: Helvetica Bold (Arial Bold on Windows/Android, which don't include Helvetica) */
.hero h1 .title { font-family: var(--font-h1); font-weight: 700; font-size: clamp(30px, 8vw, 80px); letter-spacing: 0; line-height: 1.05; }
.hero h1 .sub { display: block; font-family: var(--font-body); text-transform: none; font-size: clamp(16px, 2.4vw, 22px); letter-spacing: .02em; margin-top: 10px; font-weight: 500; }
.hero p { max-width: 640px; margin: 0 auto 1.2em; font-size: clamp(15px, 1.8vw, 17px); }
.hero-phone {
  display: inline-block; font-family: var(--font-display); color: var(--white); text-decoration: none;
  font-size: clamp(34px, 8vw, 60px); white-space: nowrap; line-height: 1.1;
}
.hero-phone:hover { color: var(--white); opacity: .85; }

/* Page band (service / inner pages) */
.page-band {
  position: relative; color: var(--white); text-align: center;
  background: var(--ink) center/cover no-repeat;
  padding: clamp(70px, 12vw, 140px) 0;
}
.page-band.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.page-band > .container { position: relative; }
.page-band h1 { font-family: var(--font-h1); font-weight: 700; font-size: clamp(28px, 5.6vw, 54px); line-height: 1.1; margin: 0; }
.page-band .lead { margin: 12px auto 0; max-width: 620px; font-size: clamp(15px, 1.8vw, 18px); }

/* ---------- Red highlights band ---------- */
.highlights { background: var(--red); color: var(--white); padding: 56px 0; }
.highlights .grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlights .item { text-align: center; padding: 0 34px; }
.highlights .item + .item { border-left: 1px solid rgba(255,255,255,.6); }
.highlights h2 { font-family: var(--font-body); font-weight: 800; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }
.highlights p { font-size: 15px; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-grey { background: var(--grey); }
.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; text-align: center;
  font-size: clamp(28px, 4.5vw, 38px); margin-bottom: .3em;
}
.section-title::after { content: ""; display: block; width: 44px; height: 2px; background: var(--ink); margin: 18px auto 0; }
.section-sub { text-align: center; font-size: clamp(18px, 2.4vw, 23px); max-width: 560px; margin: 18px auto 44px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(24px, 3.2vw, 30px); }
.split img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--white); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card h2, .card h3 { font-family: var(--font-body); font-weight: 800; font-size: 19px; margin-bottom: .35em; }
.card p { font-size: 15px; margin: 0 0 .8em; color: var(--muted); }
.card .more { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* Phone band */
.phone-band { background: var(--red); text-align: center; padding: 38px 0; }
.phone-band a { font-family: var(--font-display); color: var(--white); text-decoration: none; font-size: clamp(34px, 8vw, 62px); white-space: nowrap; }
.phone-band a:hover { opacity: .85; }
.phone-band .label { display: block; color: var(--white); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 48px; text-align: center; }
.features h3 { font-family: var(--font-body); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; margin: 0; padding: 22px 12px; border: 2px solid var(--red); }
.prose h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(22px, 3vw, 27px); margin-top: 1.4em; }
.prose h3 { font-family: var(--font-body); font-weight: 800; font-size: 20px; margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .3em; }
.service-list { columns: 2; column-gap: 40px; }
.prose-with-image { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.prose-with-image aside img { width: 100%; margin-bottom: 22px; }
.wrap-images::after { content: ""; display: block; clear: both; }
.float-images { float: right; width: 380px; margin: 4px 0 20px 44px; }
.float-images img { width: 100%; margin-bottom: 22px; }

/* Info strip */
.info-strip { background: var(--light); padding: 48px 0; text-align: center; }
.info-strip .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-strip h2 { font-family: var(--font-body); font-weight: 800; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4em; }
.info-strip p { margin: 0; font-size: 18px; }
.info-strip a { color: var(--ink); text-decoration: none; }
.info-strip a:hover { color: var(--red); }

/* ---------- Forms ---------- */
.form-section { background: var(--grey); }
.form-card { background: var(--white); padding: clamp(24px, 4vw, 44px); max-width: 760px; margin: 0 auto; }
.form-card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.6vw, 32px); text-align: center; }
.form-card .form-intro { text-align: center; color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid #bdbdbd; border-radius: 0; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { margin-top: 22px; text-align: center; }
.form-status { margin-top: 18px; padding: 14px 16px; display: none; text-align: center; }
.form-status.success { display: block; background: #e7f6ea; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-status.error { display: block; background: #fdecea; color: #8e1b12; border: 1px solid #f5b5ae; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-details h2 { font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .3em; }
.contact-details p { margin-bottom: 1.6em; font-size: 18px; }
.contact-details .big-phone { font-family: var(--font-display); font-size: clamp(30px, 5vw, 40px); color: var(--red); text-decoration: none; white-space: nowrap; }
.contact-grid .form-card { padding: 0; max-width: none; }
.contact-grid .form-card h2 { text-align: left; }
.contact-grid .form-card .form-intro { text-align: left; }
.map-embed { line-height: 0; background: var(--grey); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Legal */
.callout { border-left: 5px solid var(--red); background: #fff3f3; padding: 20px 24px; margin: 0 0 32px; }
.callout p:last-child { margin: 0; }
.legal-updated { color: var(--muted); font-size: 15px; }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound h1 { font-family: var(--font-h1); font-weight: 700; font-size: clamp(28px, 5.6vw, 52px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #ddd; padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.footer-logo { background: var(--white); display: inline-block; padding: 10px 14px; margin-bottom: 16px; }
.footer-logo img { width: 130px; }
.site-footer h2 { font-family: var(--font-body); font-weight: 800; color: var(--white); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-phone { font-family: var(--font-display); font-size: 28px; color: var(--white) !important; white-space: nowrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding: 22px 0 26px; font-size: 13px; color: #bbb; }
.footer-bottom p { margin: 0 0 .4em; }

/* Mobile sticky call button */
.mobile-call { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .logo img { width: 100px; }
  .header-call { display: none; }
  .nav-toggle {
    display: inline-flex; justify-self: end; grid-column: 3; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 26px; height: 2px; background: var(--black); position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -8px; }
  .nav-toggle span::after { top: 8px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    box-shadow: 0 12px 24px rgba(0,0,0,.12); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; }
  .main-nav a, .main-nav .dropdown-toggle { padding: 13px 24px; width: 100%; text-align: left; }
  .main-nav .dropdown { position: static; transform: none; box-shadow: none; display: flex; padding: 0 0 6px 14px; min-width: 0; }
  .dropdown-toggle::after { display: none; }
  .highlights .grid, .features, .info-strip .grid { grid-template-columns: 1fr; }
  .highlights .item { padding: 22px 8px; }
  .highlights .item + .item { border-left: 0; border-top: 1px solid rgba(255,255,255,.5); }
  .split, .contact-grid, .prose-with-image { grid-template-columns: 1fr; gap: 34px; }
  .float-images { width: 42%; margin-left: 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.4; padding-bottom: 62px; }
  .hero p, .highlights p, .card p, .site-footer, .page-band .lead { font-size: 14px; }
  .info-strip p, .contact-details p, .section-sub { font-size: 17px; }
  .container { padding: 0 18px; }
  .cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .service-list { columns: 1; }
  .float-images { display: none; }
  .map-embed iframe { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .features { margin-bottom: 36px; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 62px;
    background: var(--red); color: var(--white); text-decoration: none;
    font-size: 17px; font-weight: 700; letter-spacing: .04em;
    box-shadow: 0 -4px 14px rgba(0,0,0,.18);
  }
  .mobile-call:hover { color: var(--white); }
  .mobile-call svg { width: 20px; height: 20px; fill: currentColor; }
}
