/* Dunlop Motor Factors — single stylesheet */

:root {
  --blue: #277cea;
  --yellow: #fff200;
  --dark: #191b1d;
  --panel: #323336;
  --panel2: #3b3d40;
  --footer: #2b2d30;
  --text: #303030;
  --muted: #9da6a8;
  --light: #f5f5f5;
  --heading-font: 'Exo', sans-serif;
  --body-font: 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}

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

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.2;
  color: #111;
  margin: 0 0 0.6em;
}

h1 { font-size: 44px; font-weight: 700; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn-yellow { background: var(--yellow); color: #111; }
.btn-dark { background: var(--panel); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }

/* --- Header --- */
.site-header {
  background: #1a1a1a url('images/top1.jpg') center top / cover no-repeat;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-logo img { display: block; width: 380px; max-width: 100%; height: auto; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header-contact {
  display: flex;
  gap: 28px;
  font-size: 17px;
  font-weight: 500;
}
.header-contact a { color: #fff; }
.header-contact a:hover { color: var(--yellow); text-decoration: none; }
.header-contact .icon { margin-right: 6px; }
.header-phone { font-size: 19px; font-weight: 700; }

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  color: #fff;
  font-size: 16px;
  padding: 12px 18px;
}
.main-nav a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.12); }
.main-nav a.current { background: var(--blue); }

/* --- Tagline strip --- */
.tagline-strip { background: #000; color: #fff; }
.tagline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.tagline {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tagline-cta { font-weight: 700; white-space: nowrap; }
.tagline-cta .icon { margin-right: 6px; }

/* --- Mobile menu / toggle --- */
.mobile-bar { display: none; }
.menu-toggle { display: none; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 360px;
  background: #000;
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 16px; }
.mobile-menu a {
  display: block;
  color: #cfd4d6;
  font-size: 22px;
  padding: 14px 18px;
}
.mobile-menu a:hover { text-decoration: none; color: #fff; }
.mobile-menu a.current { background: var(--blue); color: #fff; }
body.menu-open .mobile-menu { transform: translateX(0); visibility: visible; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* --- Page hero (inner pages) --- */
.page-hero {
  background: #fff;
  padding: 34px 0 8px;
  border-bottom: 2px dashed #e0e0e0;
}
.page-hero h1 { text-align: center; margin: 0 0 30px; }
.breadcrumbs { font-size: 15px; margin-bottom: 4px; }
.breadcrumbs a { color: var(--blue); }
.crumb-sep { color: #999; margin: 0 8px; font-size: 12px; }
.crumb-current { color: var(--blue); }

/* --- Home hero --- */
/* On the home page the header + tagline strip sit transparently on top of
   the hero background, which is carried by the .home-top wrapper. */
.home-top {
  background: #111 url('images/slider1.jpg') center top / cover no-repeat;
}
body.home .site-header { background: transparent; }
body.home .tagline-strip { background: transparent; }

.home-hero {
  color: #fff;
  padding: 70px 0;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 50px;
  align-items: center;
}
.home-hero .welcome { font-size: 18px; margin-bottom: 4px; }
.home-hero h1 { color: #fff; font-size: 48px; margin-bottom: 20px; }
.home-hero p { font-size: 16px; }
.home-hero img { display: block; border-radius: 2px; }

/* --- Info bar --- */
.info-bar { background: var(--panel); color: #fff; }
.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.info-item {
  display: flex;
  gap: 18px;
  padding: 32px 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.info-item:first-child { border-left: 0; }
.info-item .icon {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.info-item h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.info-item p { color: #c9ced0; font-size: 15px; margin: 0; }
.info-item a { color: #c9ced0; text-decoration: underline; }
.info-item a:hover { color: #fff; }

/* --- Offer banners --- */
.offers { padding: 60px 0; }
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.offer-card {
  position: relative;
  color: #fff;
  padding: 44px 34px 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
}
.offer-card > * { position: relative; }
.offer-card h2 {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  max-width: 420px;
}
.offer-card h2 .free { color: var(--yellow); }
.offer-card p { margin: 18px 0 0; font-size: 16px; }
.offer-wiper { background-image: url('images/Free-Wiper-Blade-Fitting.jpg'); }
.offer-battery { background-image: url('images/alternator-testing.jpg'); }

/* --- Split intro (home bottom / generic two-column) --- */
.section { padding: 60px 0; }
.section-dashed-top { border-top: 2px dashed #e0e0e0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col .kicker {
  font-family: var(--heading-font);
  font-size: 26px;
  margin-bottom: 6px;
  color: #222;
}
.two-col h2 { font-size: 42px; font-weight: 700; }

.map-embed {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* --- Brand logo carousel --- */
.brand-carousel {
  overflow: hidden;
  padding: 30px 0 10px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.brand-carousel.dragging { cursor: grabbing; }
.brand-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.brand-item {
  flex: none;
  width: 220px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-item img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  pointer-events: none;
}

/* --- Dark feature band (car parts page) --- */
.dark-band { background: var(--dark); color: #fff; padding: 50px 0; }
.dark-band h2 { color: #fff; }
.dark-band .two-col { align-items: center; gap: 50px; }
.dark-band img { display: block; }

/* --- Buttons row --- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}
.contact-aside { text-align: center; }
.contact-aside .aside-icon {
  width: 84px;
  height: 84px;
  margin: 26px auto 10px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-aside .aside-icon .icon { width: 38px; height: 38px; }
.contact-aside h3 { font-size: 26px; }

/* --- Forms --- */
form.enquiry { max-width: 820px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; margin-bottom: 8px; }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row textarea {
  width: 100%;
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 2px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  background: #fff;
}
.form-row textarea { min-height: 170px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-notice { padding: 14px 18px; border-radius: 3px; margin-bottom: 24px; }
.form-notice-ok { background: #e7f6e7; border: 1px solid #9fd89f; color: #1e5c1e; }
.form-notice-err { background: #fdeaea; border: 1px solid #efb3b3; color: #7c1f1f; }

/* --- Info list (our shop aside) --- */
.shop-aside .btn { display: block; margin-bottom: 12px; text-align: center; }
.shop-aside .icon { margin-right: 8px; }

/* --- Footer --- */
.site-footer { background: var(--footer); color: var(--muted); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 46px;
}
.footer-col h3 {
  color: #8f979a;
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 18px;
}
.footer-col p { color: var(--muted); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: #fff; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #c3c9cb; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  background: #0d0d0d;
  color: #8f979a;
  text-align: center;
  padding: 18px 0;
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c3c9cb; }

/* --- 404 --- */
.error-page { text-align: center; padding: 90px 20px; }
.error-page h1 { font-size: 60px; }

/* ==================== Mobile ==================== */
@media (max-width: 980px) {
  .home-hero-grid, .two-col, .offers-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .info-bar-grid { grid-template-columns: 1fr; }
  .info-item { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .dark-band .two-col { gap: 30px; }
}

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

  .mobile-bar {
    display: block;
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-bar-phone { color: #fff; font-size: 17px; font-weight: 700; }
  .mobile-bar-phone:hover { text-decoration: none; color: var(--yellow); }
  .mobile-bar-phone .icon { margin-right: 6px; }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    color: #fff;
    font: 500 17px var(--body-font);
    cursor: pointer;
    padding: 12px 0;
  }
  .menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .menu-toggle-bars span { width: 22px; height: 3px; background: #fff; border-radius: 2px; }

  .header-inner { padding-top: 12px; padding-bottom: 12px; justify-content: center; }
  .site-logo img { width: 260px; }

  .tagline-strip { display: none; }

  h1, .home-hero h1 { font-size: 34px; }
  .two-col h2 { font-size: 32px; }
  .offer-card h2 { font-size: 32px; }
  .section, .offers { padding: 40px 0; }
}
