/* Nepean Towing — styles */
:root {
  --red: #ff0000;
  --red-dark: #d10000;
  --text: #2b2b2b;
  --ink: #111111;
  --dark: #1b1b1b;
  --darker: #0e0e0e;
  --grey-bg: #ededed;
  --grey-soft: #f5f5f5;
  --line: #d9d9d9;
  --white: #ffffff;
  --font: 'Avenir Next', Avenir, 'Helvetica Neue', 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); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
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: 15px;
  padding: 10px 28px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn-pill { border-radius: 100px; min-width: 190px; text-align: center; padding: 12px 32px; }
.btn-wide { min-width: 200px; text-align: center; padding: 12px 30px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 74px; width: auto; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 6px; align-items: center; }
.site-nav a, .sub-toggle {
  display: block; padding: 10px 20px;
  font-size: 15px; 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 { font-size: 15px; padding: 9px 20px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.header-phone { font-weight: 700; font-size: 22px; letter-spacing: .03em; 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; z-index: 0; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.62)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(70px, 9vw, 120px) 24px clamp(40px, 5vw, 60px); max-width: 900px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-title { display: block; font-size: clamp(40px, 7vw, 70px); line-height: 1.05; }
.hero-tag { display: block; font-size: clamp(16px, 2.2vw, 21px); font-weight: 600; margin-top: .55em; }
.hero-phone { display: inline-block; color: #fff; text-decoration: none; font-weight: 700; font-size: clamp(36px, 6.4vw, 66px); white-space: nowrap; letter-spacing: .02em; margin-bottom: .2em; }
.hero-phone:hover { text-decoration: underline; }
.hero p { max-width: 640px; margin: 0 auto; font-size: 18px; font-weight: 500; }
.feature-boxes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 0 auto; padding: 0 24px; }
.feature-boxes > div { background: #fff; color: var(--ink); padding: 26px 12px 24px; border: 1px solid var(--line); text-align: center; }
.feature-boxes svg { width: 30px; height: 30px; display: block; margin: 0 auto 10px; }
.feature-boxes p { margin: 0; font-weight: 700; font-size: 16px; }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); }
.intro { background: var(--grey-bg); text-align: center; }
.intro p { max-width: 820px; margin: 0 auto 1.6em; font-size: 16px; }

.services { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; text-align: left; }
.card { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--grey-bg); }
.card img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.card h3 { font-size: 21px; margin-bottom: .35em; }
.card p { font-size: 15px; flex: 1; }

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

.cta-band { background: radial-gradient(ellipse at 30% 20%, #3a3a3a 0%, #1e1e1e 55%, #111 100%); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 40px); margin-bottom: .7em; }

/* 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,.95); padding: 18px 36px; max-width: calc(100% - 32px); text-align: center;
}
.page-hero-box h1 { font-size: clamp(24px, 4vw, 42px); margin: 0; }
.title-band { background: radial-gradient(ellipse at 30% 20%, #3a3a3a 0%, #1e1e1e 55%, #111 100%); color: #fff; text-align: center; padding: clamp(44px, 6vw, 70px) 0; }
.title-band h1 { color: #fff; font-size: clamp(30px, 5vw, 58px); margin: 0; }
.page-title { font-size: clamp(30px, 4.4vw, 44px); text-align: center; }
.prose .wrap { max-width: 960px; }
.prose p { font-size: 16px; }
.call-line { text-align: center; font-size: 18px; margin-top: 1.6em; }
.call-line a { color: var(--red); font-weight: 700; text-decoration: none; white-space: nowrap; }

.other-services { background: var(--grey-soft); }
.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); border-radius: 100px; text-decoration: none; font-size: 15px; background: #fff; }
.pill-list a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Contact */
.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.info-cols h2 { font-size: 24px; margin-bottom: .4em; }
.info-cols p { margin: 0 0 .2em; }
.info-cols a { text-decoration: none; }
.info-cols a:hover { color: var(--red); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; align-items: stretch; }
.contact-form { background: #000; color: #fff; padding: 34px 36px 28px; }
.form-title { font-size: clamp(22px, 2.6vw, 26px); color: #fff; font-weight: 500; text-align: center; margin-bottom: 1em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 4px; }
.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 transparent; border-radius: 4px; background: #efefef;
}
.field select { appearance: auto; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: #fff0f0; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { width: 100%; font-weight: 700; margin-top: 4px; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #7ee29a; }
.form-status.err { color: #ff8a8a; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.contact-grid .map-embed iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; }
.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 */
.site-footer { background: var(--dark); color: #eee; }
.footer-main { padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 32px; align-items: start; }
.footer-h { font-weight: 700; font-size: 18px; color: #fff; margin-bottom: .8em; }
.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; color: #fff; }
.footer-main p { font-size: 14px; margin-bottom: .6em; }
.footer-phone a { font-size: 22px; font-weight: 700; white-space: nowrap; }
.footer-logo img { width: 190px; }
.footer-legal { background: var(--darker); color: #ccc; text-align: center; padding: 16px 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: 19px; }
  .brand img { height: 64px; }
  .card { grid-template-columns: 1fr; }
  .card img { min-height: 0; height: 220px; }
}

/* Mobile nav */
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .brand img { height: 56px; }
  .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: 16px; }
  .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; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 700px) {
  body { font-size: 15px; line-height: 1.4; }
  p, li { line-height: 1.4; }
  .wrap { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero-inner { padding: 56px 16px 32px; }
  .hero p { font-size: 15px; }
  .feature-boxes { grid-template-columns: repeat(3, 1fr); padding: 0 16px; }
  .feature-boxes > div { padding: 16px 6px; }
  .feature-boxes p { font-size: 13px; }
  .feature-boxes svg { width: 24px; height: 24px; }
  .cards { grid-template-columns: 1fr; }
  .card img { height: 210px; }
  .list-block, .info-cols { grid-template-columns: 1fr; gap: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 18px 20px; }
  .contact-grid { margin-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-logo { grid-column: 1 / -1; }
  .footer-logo img { width: 160px; }
  .prose p, .long-copy p, .intro p, .svc-bullets, .card p, .legal { font-size: 15px; }
  .section-title { font-size: 26px; }
  .page-hero img { height: 230px; }
  .page-hero-box { padding: 14px 16px; width: calc(100% - 32px); }
  .page-hero-box h1 { font-size: 23px; }
  .legal h2 { font-size: 18px; }
  .cta-band { padding: 48px 0; }
  .mobile-call { font-size: 16px; }
  .map-section iframe { height: 320px; }
  .contact-grid .map-embed iframe { min-height: 320px; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
  .feature-boxes p { font-size: 12px; }
}
