/* ==========================================================================
   Jamieson's Tow Service - site styles
   Colours and fonts are set once here in :root, so changing a brand colour
   only means editing one line.
   ========================================================================== */

:root {
  --black: #000;
  --panel: #0d0d0d;
  --line: #3a0a0f;
  --red: #e0071f;
  --red-bright: #ed1c24;
  --red-dark: #700410;
  --grey: #b0b0b0;
  --grey-button: #8a8a8a;
  --text: #f2f2f2;
  --text-soft: #c9c9c9;
  --max: 1200px;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red-bright);
}

a:hover {
  color: #ff4b52;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--red);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.btn:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* Slim Afterpay announcement bar above the header */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  padding: 6px 16px;
  background: #000;
  color: #fff;
  border-bottom: 1px solid #262626;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.promo-bar:hover {
  color: #fff;
  background: #141414;
}

.promo-bar img {
  height: 20px;
  width: auto;
  border-radius: 999px;
}

.promo-more {
  text-decoration: underline;
}

.promo-short {
  display: none;
}

.site-header {
  background: var(--black);
  border-bottom: 1px solid var(--red-dark);
}

/* Desktop: big centred logo with the call button on the right, menu underneath */
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    ". logo call"
    "nav nav nav";
  align-items: center;
  row-gap: 10px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px 10px;
}

.header-bar .logo {
  grid-area: logo;
}

.header-bar .logo img {
  width: 360px;
}

.header-bar .call {
  grid-area: call;
  justify-self: end;
}

.site-nav {
  grid-area: nav;
}

.nav-toggle {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 8px 13px;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  background: #2a2a2a;
  border-radius: 4px;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--red-dark);
}

.nav-list a[aria-current="page"] {
  background: var(--red);
}

.nav-pay {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.nav-pay img {
  height: 20px;
  width: auto;
  border-radius: 999px;
}

.has-sub > a::after {
  content: " \25BE";
  font-size: 0.8em;
}

.sub {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #1a1a1a;
  border: 1px solid var(--red-dark);
  border-radius: 6px;
  z-index: 20;
  display: none;
}

.sub a {
  background: transparent;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub {
  display: block;
}

/* --------------------------------------------------------------------------
   Page hero (title + intro at the top of each page)
   -------------------------------------------------------------------------- */

.page-hero {
  text-align: center;
  padding: 56px 16px 40px;
  max-width: 820px;
  margin: 0 auto;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.15rem;
}

/* Home page banner photo */
.home-hero {
  position: relative;
  min-height: min(70vh, 620px);
  display: grid;
  align-items: end;
  background: #111 center / cover no-repeat;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgb(0 0 0 / 80%), rgb(0 0 0 / 20%) 65%),
    linear-gradient(to top, rgb(0 0 0 / 85%), transparent 55%);
}

.home-hero .wrap {
  position: relative;
  padding-bottom: 48px;
  width: 100%;
}

.home-hero h1 {
  max-width: 14em;
  text-shadow: 0 2px 12px rgb(0 0 0 / 60%);
}

.home-hero p {
  font-size: 1.2rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Text + photo sections that alternate sides
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.split:last-of-type {
  border-bottom: 1px solid var(--line);
}

.split-text {
  padding: clamp(28px, 5vw, 64px);
  align-self: center;
}

.split-text h2 {
  text-align: center;
}

.split-media {
  position: relative;
  min-height: 320px;
}

.split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media.contain {
  background: #fff;
}

.split-media.contain img {
  object-fit: contain;
  padding: 24px;
}

.split.flip .split-media {
  order: -1;
}

.credit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.7rem;
  color: #ddd;
  background: rgb(0 0 0 / 55%);
  padding: 2px 6px;
  border-radius: 3px;
}

.credit a {
  color: #ddd;
}

/* --------------------------------------------------------------------------
   Cards (service lists, FAQ lists, "why choose us")
   -------------------------------------------------------------------------- */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section + .section {
  padding-top: 40px;
}

.section:has(+ .section) {
  padding-bottom: 40px;
}

.section > .wrap > h2 {
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid #222;
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 28px 24px;
}

.card .card-more {
  margin: auto 0 0;
  padding-top: 8px;
}

.card h3 {
  text-align: center;
}

.card p {
  color: var(--text-soft);
}

.link-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  color: var(--text);
}

.link-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.link-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.link-card-body h3 {
  margin-bottom: 0.4em;
}

.link-card-body p {
  color: var(--text-soft);
  flex: 1;
}

.link-card-body .more {
  color: var(--red-bright);
  font-weight: 600;
}

.ticks {
  padding-left: 1.2em;
}

.ticks li {
  margin-bottom: 0.3em;
}

/* --------------------------------------------------------------------------
   Contact block (on every page)
   -------------------------------------------------------------------------- */

.contact {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--red-dark);
  border-radius: 8px;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border-right: 1px solid var(--red-dark);
}

.contact-info .big-phone {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.contact-info iframe {
  flex: 1;
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 6px;
  margin-top: 16px;
  filter: grayscale(0.4);
}

.social {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

.social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
}

.social svg {
  width: 22px;
  height: 22px;
  fill: #000;
}

.social a:hover {
  background: var(--red);
}

.social a:hover svg {
  fill: #fff;
}

.contact-form {
  padding: 36px;
}

.contact-form label {
  display: block;
  color: var(--red-bright);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--red-dark);
  color: #fff;
  font: inherit;
  padding: 8px 4px;
  margin-bottom: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--red-bright);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 12px;
}

.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--red-dark);
  padding: 20px 0;
  font-size: 0.875rem;
  color: var(--grey);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-bar p {
  margin: 0;
}

.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact span {
  margin: 0 6px;
  color: var(--red-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  vertical-align: middle;
}

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: #777;
}

/* Floating call button, phones only */
.call-float {
  display: none;
}

/* --------------------------------------------------------------------------
   Simple text pages (privacy, pay online)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.prose ul {
  padding-left: 1.3em;
}

.pay-card {
  text-align: center;
}

.pay-logo {
  height: 40px;
  width: auto;
  border-radius: 999px;
  margin: 0 auto 12px;
}

.pay-heading {
  text-align: center;
  scroll-margin-top: 24px;
}

.pay-intro {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.pay-online {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  margin: 0 auto 56px;
  max-width: 980px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: linear-gradient(120deg, rgb(224 7 31 / 20%), rgb(112 4 16 / 8%) 55%, var(--panel));
  box-shadow: 0 0 32px rgb(224 7 31 / 16%);
}

.pay-online-text p {
  color: var(--text-soft);
}

.pay-form label {
  display: block;
  color: var(--red-bright);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pay-form input {
  width: 100%;
  background: rgb(0 0 0 / 35%);
  border: 1px solid var(--red-dark);
  border-radius: 6px;
  color: #fff;
  font: inherit;
  padding: 9px 12px;
  margin-bottom: 14px;
}

.pay-form input:focus {
  outline: none;
  border-color: var(--red-bright);
}

.pay-form .rego {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pay-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.pay-form .form-note {
  text-align: center;
}

.pay-steps {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.pay-steps li {
  margin-bottom: 0.3em;
}

/* --------------------------------------------------------------------------
   Header on tablets and phones: a Menu button instead of the full menu
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgb(0 0 0 / 94%);
    backdrop-filter: blur(6px);
  }

  .header-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
  }

  .header-bar .logo img {
    width: 190px;
  }

  .header-bar .call {
    order: 1;
    margin-left: auto;
    padding: 0.55em 1.1em;
  }

  .nav-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .site-nav {
    order: 3;
    display: none;
    flex-basis: 100%;
  }

  .site-nav.open {
    display: block;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 80px;
  }

  .nav-list {
    flex-direction: column;
    padding: 8px 0 16px;
  }

  .sub {
    display: block;
    position: static;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 16px;
  }

  .has-sub > a::after {
    content: "";
  }
}

/* --------------------------------------------------------------------------
   Tablet and phone
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .header-bar .call {
    display: none;
  }

  .promo-long {
    display: none;
  }

  .promo-short {
    display: inline;
  }

  .promo-bar {
    font-size: 0.8rem;
    gap: 8px;
  }

  .promo-more {
    display: none;
  }

  .split,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .split.flip .split-media {
    order: 0;
  }

  .split-media {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }

  .contact-info {
    border-right: 0;
    border-bottom: 1px solid var(--red-dark);
    padding: 28px 20px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .pay-online {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    justify-items: center;
  }

  .site-footer {
    padding-bottom: 96px;
    text-align: center;
  }

  .footer-bar,
  .footer-links {
    justify-content: center;
  }

  .call-float {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    z-index: 50;
    box-shadow: 0 6px 24px rgb(0 0 0 / 60%);
    font-size: 1.1rem;
  }
}

.form-status {
  margin: 14px 0 0;
  font-weight: 600;
  color: #fff;
}

.form-status:empty {
  display: none;
}
