/* ================================================================
   MAGAN MOTORS — home page
   Loads after v3.css, which still supplies the tokens, the booking
   modals, the form styles and the toasts (and all of portal.html).
   Type follows the roundel: Anton for MAGAN, Kaushan Script for the
   "Service – Repairs – WOF – Tyres" line, Barlow Condensed for labels.
   ================================================================ */

:root {
  --ff-anton:  'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --ff-script: 'Kaushan Script', 'Brush Script MT', cursive;
  --gutter:    clamp(1rem, 4vw, 4rem);
}

body { background: var(--cream); }

/* ── Header ────────────────────────────────────────────────── */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--maroon);
}

.mm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
}

.mm-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.mm-brand img { width: 56px; height: 56px; display: block; flex-shrink: 0; }

.mm-brand span {
  font-family: var(--ff-anton);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--brick);
  white-space: nowrap;
}

.mm-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.75rem); }

.mm-nav a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  text-decoration: none;
  white-space: nowrap;
}

.mm-nav a:hover { color: var(--brick); }

@media (max-width: 640px) { .mm-nav-phone { display: none; } }
@media (max-width: 420px) {
  .mm-brand span { display: none; }
  .mm-brand img { width: 48px; height: 48px; }
}

section[id] { scroll-margin-top: 80px; }

/* ── Hero ──────────────────────────────────────────────────── */
.mm-hero {
  position: relative;
  background: var(--brick);
  color: var(--cream);
  min-height: clamp(30rem, 44vw, 38rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* The shopfront fills the right of the hero and fades into the brick on its left edge. */
.mm-hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
          mask-image: linear-gradient(to right, transparent 0%, #000 28%);
}

.mm-since {
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  z-index: 2;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--maroon);
}

.mm-hero-copy {
  position: relative;
  z-index: 1;
  padding: 4rem var(--gutter);
  max-width: 50rem;
}

.mm-hero h1 {
  font-family: var(--ff-anton);
  font-weight: 400;
  font-size: clamp(3.2rem, 7.4vw, 6.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0.06em 0.06em 0 var(--maroon);
  text-wrap: balance;
}

.mm-tagline {
  font-family: var(--ff-script);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  color: var(--cream);
  margin: 1.1rem 0 2rem;
}

.mm-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.mm-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.8rem;
  border: 2px solid var(--cream);
  border-radius: 3px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
}

.mm-btn-solid { background: var(--cream); color: var(--brick); }
.mm-btn-solid:hover { background: var(--white); }
.mm-btn-line { background: transparent; color: var(--cream); }
.mm-btn-line:hover { background: rgba(242,234,216,0.12); }

.mm-hero :focus-visible, .mm-find :focus-visible { outline-color: var(--cream); }

@media (max-width: 860px) {
  .mm-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .mm-hero-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    order: 2;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  }
  .mm-hero-copy { padding-block: 3rem 1rem; }
  .mm-since { top: auto; bottom: 1rem; font-size: 1rem; }
}

@media (max-width: 480px) {
  .mm-ctas { flex-direction: column; }
  .mm-btn { justify-content: center; font-size: 1.1rem; }
}

/* ── Services ──────────────────────────────────────────────── */
.mm-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: 2.5rem clamp(1rem, 2.2vw, 2.25rem);
}

.mm-services-head { grid-column: 1 / -1; max-width: 52rem; padding: 1rem 0 0.25rem; }

.mm-services-head h2 {
  font-family: var(--ff-anton);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.8rem;
}

.mm-services-head p { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }

/* Each card is a link to its service page. */
.mm-card {
  display: flex;
  flex-direction: column;
  background: var(--cream2);
  border-top: 6px solid var(--brick);
  border-radius: 4px;
  padding: 1.6rem 1.6rem 1.6rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

a.mm-card:hover { background: var(--brick-lt); transform: translateY(-2px); }

.mm-card-more {
  margin-top: auto;
  padding-top: 1.2rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
}

a.mm-card:hover .mm-card-more { color: var(--brick); }

.mm-card h2, .mm-card h3 {
  font-family: var(--ff-anton);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.9rem;
}

.mm-card p { font-size: 1.2rem; line-height: 1.5; color: var(--ink); }

@media (max-width: 1000px) { .mm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .mm-services { grid-template-columns: 1fr; } }

/* ── Find us ───────────────────────────────────────────────── */
.mm-find {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--maroon);
  color: var(--cream);
  min-height: clamp(26rem, 34vw, 33rem);
}

.mm-find-copy {
  align-self: center;
  padding: 3.5rem var(--gutter);
}

.mm-find h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.6rem;
}

.mm-find ul { list-style: none; display: grid; gap: 0.75rem; }

.mm-find li, .mm-find li a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.mm-find li a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.mm-find-photo {
  width: 100%;
  height: 0;          /* the band's min-height sets the size, not the tall photo */
  min-height: 100%;
  object-fit: cover;
  object-position: center 62%;
  display: block;
}

@media (max-width: 760px) {
  .mm-find { grid-template-columns: 1fr; }
  .mm-find-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

/* ── About ─────────────────────────────────────────────────── */
.mm-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}

.mm-about h2 {
  font-family: var(--ff-anton);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.1rem;
}

.mm-about-copy p { max-width: 40rem; font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.mm-about-copy p + p { margin-top: 0.9rem; }

.mm-about-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.mm-about-links .mm-btn { font-size: 1.05rem; padding: 0.9rem 1.3rem; }
.mm-btn-brick { background: var(--brick); border-color: var(--brick); color: var(--cream); }
.mm-btn-brick:hover { background: var(--maroon); border-color: var(--maroon); }
.mm-btn-outline { background: transparent; border-color: var(--maroon); color: var(--maroon); }
.mm-btn-outline:hover { background: var(--cream2); }

.mm-map {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border: 3px solid var(--maroon);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--brick);
  background: var(--cream2);
}

.mm-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 760px) { .mm-about { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mm-about-links .mm-btn { width: 100%; justify-content: center; } }

/* ── FAQ ───────────────────────────────────────────────────── */
.mm-faq {
  background: var(--cream2);
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--gutter);
}

.mm-faq h2 {
  font-family: var(--ff-anton);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.5rem;
}

.mm-faq-list { display: grid; gap: 0.75rem; max-width: 52rem; }

.mm-faq details {
  background: var(--cream);
  border-left: 5px solid var(--brick);
  border-radius: 3px;
}

.mm-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--maroon);
}

.mm-faq summary::-webkit-details-marker { display: none; }
.mm-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brick); }
.mm-faq details[open] summary::after { content: "–"; }

.mm-faq details p {
  padding: 0 1.25rem 1.15rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
}

.mm-faq a, .mm-page-copy a { color: var(--brick); text-underline-offset: 0.15em; }

/* ── Footer ────────────────────────────────────────────────── */
.mm-footer {
  padding: 2.25rem var(--gutter) 1.25rem;
  background: var(--ink);
  color: var(--tan);
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.mm-footer a { color: var(--cream); }

.mm-footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem clamp(2rem, 8vw, 6rem);
  padding-bottom: 1.75rem;
}

.mm-footer-cols p + p { margin-top: 0.4rem; }
.mm-footer ul { list-style: none; }

.mm-footer-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.mm-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(203, 191, 163, 0.25);
  font-size: 0.72rem;
}

/* ── Service pages (wof, servicing, tyres, repairs) ─────────── */
.mm-page-hero {
  background: var(--brick);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(2.75rem, 5vw, 4.25rem);
}

.mm-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.mm-crumbs li + li::before { content: "›"; margin-right: 0.4rem; opacity: 0.7; }
.mm-crumbs a { color: var(--cream); }
.mm-crumbs [aria-current] { opacity: 0.8; }

.mm-page-hero h1 {
  font-family: var(--ff-anton);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0.06em 0.06em 0 var(--maroon);
  text-wrap: balance;
  max-width: 18ch;
}

.mm-page-lead {
  max-width: 42rem;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  margin: 1.1rem 0 1.9rem;
}

.mm-page-hero :focus-visible { outline-color: var(--cream); }

.mm-page-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--gutter);
}

.mm-page-copy h2 {
  font-family: var(--ff-anton);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--brick);
  margin: 2.25rem 0 0.9rem;
}

.mm-page-copy h2:first-child { margin-top: 0; }

.mm-page-copy p { max-width: 42rem; font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.mm-page-copy p + p { margin-top: 0.9rem; }

.mm-page-copy ul {
  list-style: none;
  max-width: 42rem;
  display: grid;
  gap: 0.55rem;
  margin: 0.25rem 0 0.5rem;
}

.mm-page-copy li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
}

.mm-page-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--brick);
  border-radius: 1px;
}

.mm-page-copy li strong { color: var(--maroon); }

.mm-page-photo {
  position: sticky;
  top: 6.5rem;
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--maroon);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--brick);
}

@media (max-width: 860px) {
  .mm-page-body { grid-template-columns: 1fr; }
  .mm-page-photo { position: static; max-width: 32rem; }
}

/* The "book it" band near the bottom of each service page. */
.mm-page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  background: var(--maroon);
  color: var(--cream);
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
}

.mm-page-cta h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.mm-page-cta p {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  color: var(--tan);
}

.mm-page-cta :focus-visible { outline-color: var(--cream); }

.mm-related { padding-top: 2.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .mm-related { grid-template-columns: 1fr; } }
.mm-related .mm-services-head { padding-top: 0; }

@media (max-width: 480px) {
  .mm-page-cta .mm-ctas { width: 100%; }
}

/* ── Book a service modal ──────────────────────────────────── */
/* The two choices had no styles of their own and rendered as bare links. */
.booking-choice-options { display: grid; gap: 0.7rem; }

.booking-choice-btn {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border: 1.5px solid;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.booking-choice-btn:hover { transform: translateY(-1px); }

.booking-choice-btn-label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-choice-btn-sub { font-size: 0.98rem; line-height: 1.45; color: var(--muted); }

.booking-choice-divider {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
