/* ============================================================
   Land Rover Repair Specialist — Heritage Craftsman v1.0
   MORPH-30: Lora serif / British racing green / warm cream
   CSS prefix: lr-
   ============================================================ */

/* --- Design tokens --- */
:root {
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --brand-primary:   #2E5939;
  --brand-secondary: #8B7355;
  --brand-gold:      #C9A84C;
  --brand-dark:      #1C2B1C;
  --brand-bg:        #FAF8F5;
  --brand-bg-alt:    #F2EDE6;
  --brand-text:      #2C2C2C;
  --brand-muted:     #5C5550;
  --brand-border:    #D4C9BB;

  --hover-color:     #2E5939;
  --section-padding: 5rem;
  --container-max:   1100px;
  --card-transition: 0.3s ease;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brand-text);
  background: var(--brand-bg);
}

*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Container --- */
.lr-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand-text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* --- Eyebrow ruled accent (Heritage Craftsman signature) --- */
.lr-eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.lr-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-primary);
  margin-top: 6px;
}

/* --- Section rhythm --- */
.lr-section {
  background: var(--brand-bg);
  padding: var(--section-padding) 0;
}

.lr-section-alt {
  background: var(--brand-bg-alt);
  padding: var(--section-padding) 0;
}

.lr-section-dark {
  background: var(--brand-dark);
  color: #fff;
  padding: var(--section-padding) 0;
}

.lr-section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--brand-text);
  margin-bottom: 2rem;
}

.lr-section-dark .lr-section-title {
  color: #fff;
}

/* --- Header --- */
.lr-header-split { background: var(--brand-bg); border-bottom: 1px solid var(--brand-border); position: sticky; top: 0; z-index: 100; }
.lr-utility-bar { background: var(--brand-dark); padding: 6px 0; font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.lr-utility-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.lr-utility-address { font-size: 0.75rem; }
.lr-utility-right { display: flex; gap: 1rem; align-items: center; }
.lr-utility-phone { color: #fff; font-weight: 600; }
.lr-utility-hours { color: rgba(255,255,255,0.6); }
.lr-main-bar { padding: 12px 0; }
.lr-main-bar-inner { display: flex; align-items: center; gap: 1.5rem; }
.lr-logo { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--brand-text); flex-shrink: 0; }
.lr-nav { display: flex; gap: 1.5rem; flex: 1; }
.lr-nav a { font-size: 0.875rem; font-weight: 500; color: var(--brand-text); transition: color 0.2s; }
.lr-nav a:hover { color: var(--brand-primary); }
.lr-nav-cta { background: var(--brand-primary); color: #fff; padding: 8px 20px; border-radius: 4px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; transition: background 0.2s; }
.lr-nav-cta:hover { background: #245030; }
.lr-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.lr-hamburger span { display: block; width: 22px; height: 2px; background: var(--brand-text); border-radius: 2px; }

/* --- Mobile panel --- */
.lr-panel { position: fixed; inset: 0; background: var(--brand-dark); z-index: 200; transform: translateX(100%); transition: transform 0.3s ease; }
.lr-panel.open { transform: translateX(0); }
.lr-panel-inner { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; }
.lr-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.lr-panel-brand { color: #fff; font-family: var(--font-head); font-weight: 600; }
.lr-panel-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.lr-panel-nav { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.lr-panel-nav a { color: rgba(255,255,255,0.85); font-size: 1.1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.lr-panel-foot { display: flex; flex-direction: column; gap: 0.75rem; }
.lr-panel-phone { color: #fff; font-size: 1.1rem; font-weight: 600; }
.lr-panel-cta { background: var(--brand-primary); color: #fff; text-align: center; padding: 12px; border-radius: 4px; font-weight: 600; }

/* --- Hero — LIGHT warm cream (Heritage Craftsman) --- */
.lr-hero {
  background: var(--brand-bg);
  padding: 5rem 0 4rem;
}

.lr-hero--centered-text .lr-hero-center {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.lr-hero-eyebrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
  margin-bottom: 1.25rem;
}

.lr-hero-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-primary);
  margin-top: 6px;
}

.lr-hero-heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0 auto 1.25rem;
  color: var(--brand-text);
  line-height: 1.2;
}

.lr-hero-city {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  font-style: italic;
  color: var(--brand-muted);
  margin-top: 0.3em;
  letter-spacing: 0.02em;
}

.lr-hero-sub {
  font-size: 1.1rem;
  color: var(--brand-muted);
  margin-bottom: 1.5rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.lr-hero-phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.lr-hero-phone-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-text);
  letter-spacing: -0.01em;
}

.lr-hero-phone-label {
  font-size: 0.8rem;
  color: var(--brand-muted);
}

.lr-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.lr-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.lr-btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.lr-btn-primary:hover { background: #245030; border-color: #245030; }

.lr-btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.lr-btn-outline:hover { background: var(--brand-primary); color: #fff; }

/* --- Trust strip — green band --- */
.lr-trust-strip {
  background: var(--brand-primary);
  padding: 14px 0;
}

.lr-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: center;
}

.lr-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 500;
}

.lr-trust-item::before {
  content: attr(data-code);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand-gold);
  background: rgba(0,0,0,0.2);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.lr-trust-credential-text {
  display: none;
}

/* --- Diagnostic Authority band (dark green) --- */
.lr-diag-authority {
  background: var(--brand-dark);
  padding: var(--section-padding) 0;
}

.lr-diag-authority-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lr-diag-authority-heading {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: #fff;
  text-align: center;
  margin-bottom: 2.5rem;
}

.lr-diag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.lr-diag-tool {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}

.lr-diag-tool:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(46,89,57,0.4);
}

.lr-diag-tool-code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.lr-diag-tool-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.lr-diag-tool-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* --- Services grid --- */
.lr-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lr-service-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  padding: 1.5rem;
  border-left: 3px solid var(--brand-secondary);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.lr-service-card:hover {
  border-left-color: var(--brand-primary);
}

.lr-service-icon {
  display: block;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.lr-service-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-text);
  margin-bottom: 0.4rem;
}

.lr-service-desc {
  font-size: 0.875rem;
  color: var(--brand-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.lr-service-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.lr-service-link:hover { text-decoration: underline; }

/* --- Expertise grid (Heritage Craftsman signature section) --- */
.lr-expertise-section {
  background: var(--brand-bg-alt);
  padding: var(--section-padding) 0;
}

.lr-expertise-section > .lr-container > .lr-eyebrow {
  align-items: flex-start;
}

.lr-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.lr-expertise-card {
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  padding: 1.5rem;
  border-left: 3px solid var(--brand-primary);
}

.lr-expertise-card-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-primary);
  margin: 0 0 0.5rem;
}

.lr-expertise-card-desc {
  font-size: 0.875rem;
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Models grid --- */
.lr-models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lr-model-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  text-align: center;
}

.lr-model-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-bg-alt);
}

.lr-model-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brand-text);
}

/* --- Proof / reviews --- */
.lr-proof-strip {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.lr-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lr-proof-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  line-height: 1;
}

.lr-proof-label {
  font-size: 0.8125rem;
  color: var(--brand-muted);
  font-weight: 500;
}

.lr-featured-review {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-left: 3px solid var(--brand-primary);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  max-width: 680px;
}

.lr-featured-review-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--brand-text);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.lr-featured-review-author {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-muted);
}

/* --- Why-us (kept for legacy compatibility, visually superseded by expertise section) --- */
.lr-why-us { background: var(--brand-bg); padding: var(--section-padding) 0; }
.lr-why-dealer { margin-bottom: 1.5rem; }
.lr-why-dealer-heading { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--brand-primary); }
.lr-why-dealer-list { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.lr-why-dealer-list li { font-size: 0.9375rem; color: var(--brand-text); line-height: 1.65; }
.lr-why-us p { font-size: 0.9375rem; color: var(--brand-text); line-height: 1.7; margin-bottom: 1rem; }

/* --- FAQ --- */
.lr-faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--brand-border); }
.lr-faq-item { border-bottom: 1px solid var(--brand-border); }
.lr-faq-question {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  padding: 1.125rem 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: var(--brand-text);
  gap: 1rem;
}
.lr-faq-question::after { content: '+'; font-family: var(--font-body); font-size: 1.25rem; font-weight: 400; color: var(--brand-primary); flex-shrink: 0; }
.lr-faq-item.open .lr-faq-question::after { content: '−'; }
.lr-faq-answer { display: none; padding: 0 0 1.25rem; font-size: 0.9375rem; color: var(--brand-muted); line-height: 1.7; }
.lr-faq-item.open .lr-faq-answer { display: block; }

/* --- CTA band --- */
.lr-cta-band {
  background: var(--brand-dark);
  padding: 4rem 0;
  text-align: center;
}

.lr-cta-band-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.lr-cta-band-headline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  max-width: 30ch;
}

.lr-cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.lr-cta-band-btn-primary {
  background: var(--brand-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s;
}

.lr-cta-band-btn-primary:hover { background: #245030; }

.lr-cta-band-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}

.lr-cta-band-btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* --- Footer --- */
.lr-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 0;
}

.lr-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lr-footer-col-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 1rem;
}

.lr-footer-brand p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 0.5rem; }
.lr-footer-brand a { color: var(--brand-gold); }

.lr-footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.lr-footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.lr-footer-links a:hover { color: #fff; }

.lr-footer-hours p { font-size: 0.875rem; line-height: 1.65; }

.lr-footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.lr-footer-bottom a { color: rgba(255,255,255,0.6); }
.lr-footer-bottom a:hover { color: #fff; }

/* --- Sticky CTA bar (unprefixed — fleet-level) --- */
.cta-sb-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--brand-dark);
  display: flex;
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cta-sb-bar.visible { transform: translateY(0); }

.cta-sb-phone, .cta-sb-book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px;
  font-weight: 600;
  font-size: 0.875rem;
}

.cta-sb-phone { color: rgba(255,255,255,0.9); border-right: 1px solid rgba(255,255,255,0.1); }
.cta-sb-book { background: var(--brand-primary); color: #fff; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .lr-nav { display: none; }
  .lr-nav-cta { display: none; }
  .lr-hamburger { display: flex; margin-left: auto; }
  .lr-diag-grid { grid-template-columns: repeat(2, 1fr); }
  .lr-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .lr-services-grid { grid-template-columns: 1fr 1fr; }
  .lr-models-grid { grid-template-columns: 1fr 1fr; }
  .lr-expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .lr-utility-bar { display: none; }
  h1 { text-align: center; }
}

@media (max-width: 480px) {
  .lr-services-grid { grid-template-columns: 1fr; }
  .lr-models-grid { grid-template-columns: 1fr 1fr; }
  .lr-expertise-grid { grid-template-columns: 1fr; }
  .lr-diag-grid { grid-template-columns: 1fr; }
  .lr-footer-inner { grid-template-columns: 1fr; }
  .lr-proof-strip { justify-content: center; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .lr-panel { transition: none; }
}


/* interior-components: appended by assemble-interiors.js */
﻿/* ================================================================
   interior.css -- Interior Page Components
   MORPH-13: Interior page template system
   All classes use lr-prefix.
   Appended to styles.css bundle by assemble.ps1.
   DL/VL/MI body classes apply automatically.
   Key scoping rule: homepage has NO <main> tag; interior pages do.
   Use "main .lr-hero" to scope without changing HTML.
================================================================ */

/* ── BREADCRUMB ──────────────────────────────────────────────────────────── */
.lr-breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.lr-breadcrumb-inner {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted, var(--text));
  flex-wrap: wrap;
}
.lr-breadcrumb a {
  color: var(--text-muted, var(--text));
  text-decoration: none;
}
.lr-breadcrumb a:hover { color: var(--primary); }
.lr-breadcrumb .sep {
  opacity: 0.4;
  font-size: 12px;
}

/* ── INTERIOR HERO (scoped to main -- homepage has no <main>) ────────────── */
main .lr-hero {
  background: var(--nav-bg, var(--brand-dark, #1A1A1A));
  padding: 72px 0 56px;
  min-height: unset;
  max-height: unset;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
main .lr-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(var(--primary-rgb, 200,50,50), 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
main .lr-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* Interior eyebrow + h1 -- homepage uses p-hero-eyebrow / p-hero-heading */
.lr-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
main .lr-hero .lr-eyebrow {
  color: rgba(255,255,255,0.55);
}
.lr-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--dl-heading-weight, 800);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
  max-width: 18ch;
}
main .lr-hero .lr-h1 { color: #fff; }
main .lr-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ── SECTION WRAPPERS ────────────────────────────────────────────────────── */
.lr-section { padding: 72px 0; }
.lr-section-white { background: var(--bg); }
.lr-section-dark  { background: var(--nav-bg, var(--brand-dark, #1A1A1A)); }
.lr-section-mid   { background: var(--surface); }

/* ── INTERIOR CONTENT CARDS (index pages) ────────────────────────────────── */
/* Scoped inside model-grid to avoid collision with homepage p-model-card pill */
.lr-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.lr-model-grid .lr-model-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--nav-bg, var(--brand-dark, #1A1A1A));
  border-radius: 0;
  padding: 28px;
  transition: border-top-color 200ms ease;
  color: var(--text);
  text-decoration: none;
}
.lr-model-grid .lr-model-card:hover {
  border-top-color: var(--primary);
}
.lr-model-gen {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}
.lr-model-grid .lr-model-card h4,
.lr-model-grid .lr-model-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  flex: 1;
}
.lr-model-grid .lr-model-card p {
  font-size: 13px;
  color: var(--text-muted, #555);
  line-height: 1.7;
  margin-bottom: 14px;
}
.lr-model-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}
.lr-model-link:hover { text-decoration: underline; }

/* ── ARTICLE LAYOUT (article pages: 2-col main + sidebar) ───────────────── */
.lr-content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .lr-content-sidebar { grid-template-columns: 1fr; }
}

/* ── ARTICLE BODY ─────────────────────────────────────────────────────────── */
.lr-article { max-width: 720px; }
.lr-article h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.lr-article h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 10px;
}
.lr-article p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1em;
}
.lr-article ul,
.lr-article ol {
  padding-left: 24px;
  margin-bottom: 1em;
  line-height: 1.7;
  color: var(--text);
}
.lr-article li { margin-bottom: 6px; }
.lr-article a { color: var(--primary); text-decoration: underline; }
.lr-article blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted, #555);
}

/* ── TABLE ───────────────────────────────────────────────────────────────── */
.lr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.lr-table th {
  background: var(--nav-bg, var(--brand-dark, #1A1A1A));
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.lr-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.lr-table tr:nth-child(even) td { background: rgba(0,0,0,0.025); }
@media (max-width: 700px) {
  .lr-table { font-size: 13px; }
  .lr-table th,
  .lr-table td { padding: 10px 12px; }
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.lr-content-sidebar aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── SIDEBAR CTA ─────────────────────────────────────────────────────────── */
.lr-sidebar-cta {
  background: var(--nav-bg, var(--brand-dark, #1A1A1A));
  padding: 28px;
  border-radius: var(--radius-md, 8px);
}
.lr-sidebar-cta h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.lr-sidebar-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  margin-bottom: 16px;
}
.lr-sidebar-cta .lr-btn,
.lr-sidebar-cta a.lr-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm, 4px);
  transition: opacity 150ms ease;
}
.lr-sidebar-cta .lr-btn:hover { opacity: 0.88; }

/* ── SIDEBAR CARD ────────────────────────────────────────────────────────── */
.lr-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}
.lr-sidebar-card h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.lr-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lr-sidebar-card li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.lr-sidebar-card li:last-child { border-bottom: none; }

/* ── SIDEBAR LINKS ───────────────────────────────────────────────────────── */
.lr-sidebar-links {
  display: flex;
  flex-direction: column;
}
.lr-sidebar-links a {
  display: block;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.lr-sidebar-links a:last-child { border-bottom: none; }
.lr-sidebar-links a:hover { text-decoration: underline; }

/* ── ISSUE LIST (common-problems pages) ──────────────────────────────────── */
.lr-issue-list { margin-top: 8px; }
.lr-issue {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: start;
}
.lr-issue:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.lr-issue-n {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(154,154,138,0.2);
  line-height: 1.2;
  padding-top: 2px;
}
.lr-section-dark .lr-issue h4 { color: #fff; }
.lr-section-dark .lr-issue h4 a { color: #fff; text-decoration: none; }
.lr-section-dark .lr-issue h4 a:hover { color: var(--primary); }
.lr-section-dark .lr-issue p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}
/* Issue list on light background */
.lr-section-white .lr-issue,
.lr-section-mid .lr-issue {
  border-bottom-color: var(--border);
}
.lr-section-white .lr-issue:first-child,
.lr-section-mid .lr-issue:first-child {
  border-top-color: var(--border);
}
.lr-section-white .lr-issue h4,
.lr-section-white .lr-issue h4 a,
.lr-section-mid .lr-issue h4 { color: var(--text); }
.lr-section-white .lr-issue p,
.lr-section-mid .lr-issue p { color: var(--text-muted, #555); }

/* ── STICKY CONTACT BAR ──────────────────────────────────────────────────── */
.cta-sb-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--nav-bg, var(--brand-dark, #1A1A1A));
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.cta-sb-bar.cta-sb-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cta-sb-inner {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-sb-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.cta-sb-phone {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.cta-sb-phone:hover { color: var(--primary); }
.cta-sb-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm, 4px);
  transition: opacity 150ms ease;
}
.cta-sb-btn:hover { opacity: 0.88; }
@media (max-width: 480px) {
  .cta-sb-label { display: none; }
  .cta-sb-inner { gap: 12px; }
}

/* ── UNSTYLED LIST FIX (MORPH-38) ────────────────────────────────────────── */
main ul, main ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
  line-height: 1.7;
  color: var(--brand-text, var(--text, #111));
}
main li {
  margin-bottom: 0.4rem;
}

/* ── INVISIBLE SECTION FIX (MORPH-38) ────────────────────────────────────── */
/* Sections with reveal-ready must be visible even without JS */
.reveal-ready {
  opacity: 1 !important;
  transform: none !important;
}

/* ── PRINT STYLESHEET (MORPH-19: CSS-19) ─────────────────────────────────── */
/* ── DARK-SECTION TEXT CONTRAST FIX (MORPH-38 Cycle 1b) ──────────────────── */
/* Ensure all text inside section-dark is readable on dark backgrounds */
.lr-section-dark h2,
.lr-section-dark h3,
.lr-section-dark h4 {
  color: #fff;
}
.lr-section-dark p,
.lr-section-dark li {
  color: rgba(255,255,255,0.78);
}
.lr-section-dark a {
  color: var(--primary, #E8364E);
}
.lr-section-dark .lr-model-grid .lr-model-card {
  background: var(--surface, #F5F5F0);
}
.lr-section-dark .lr-model-grid .lr-model-card h4,
.lr-section-dark .lr-model-grid .lr-model-card h3 {
  color: var(--text, #111);
}
.lr-section-dark .lr-model-grid .lr-model-card p {
  color: var(--text-muted, #555);
}
.lr-section-dark .lr-model-grid .lr-model-card a {
  color: var(--text, #111);
}

/* ── ARTICLE CARD CONTRAST FIX (MORPH-38 Cycle 1b) ──────────────────────── */
/* Cards on light backgrounds must have dark text regardless of parent context */
[class*="-article-card"] h4,
[class*="-article-card"] h3 {
  color: var(--text, #111) !important;
}
[class*="-article-card"] p {
  color: var(--text-muted, #555) !important;
}
[class*="-article-card"] a {
  color: var(--text, #111);
}

/* ── SERVICE CARD TEXT (Porsche) ──────────────────────────────────────────── */
/* Service cards with light backgrounds need dark text */
[class*="-service-name"],
[class*="-service-desc"] {
  color: var(--text, #111) !important;
}
/* Only override when parent has light bg */
.lr-section-dark [class*="-service-name"],
.lr-section-dark [class*="-service-desc"] {
  color: rgba(255,255,255,0.78) !important;
}

/* ── BUTTON CONTRAST FIX (Land Rover secondary buttons) ──────────────────── */
[class*="-btn-secondary"] {
  color: #fff !important;
}

/* ── HERO HEADING CONTRAST FIX ───────────────────────────────────────────── */
/* Ensure hero headings are always white on dark hero backgrounds */
main [class*="-hero-heading"] {
  color: #fff !important;
}

/* ── SPOKE/HUB LINK CONTRAST ON DARK SECTIONS ───────────────────────────── */
.lr-section-dark [class*="-spoke"],
.lr-section-dark [class*="-hub"] {
  color: var(--primary, #E8364E);
}



/* ── HOMEPAGE CONTRAST FIX (MORPH-38 Cycle 1b) ──────────────────────────── */
/* Land Rover: btn-secondary + eyebrow on dark bg */
a.lr-btn-secondary,
.lr-btn-secondary {
  color: #fff !important;
}
/* Eyebrow — scoped by background context */
/* Hero eyebrow: hero has dark green bg — use light text */
p.lr-hero-eyebrow {
  color: rgba(255,255,255,0.70) !important;
}
/* Interior dark sections: light eyebrow */
.lr-section-dark p.lr-eyebrow {
  color: rgba(255,255,255,0.70) !important;
}

@media print {
  /* Hide navigation and interactive elements */
  header, .cta-sb-bar, footer, [class*="-cta-band"], [class*="-nav"], [class*="-hamburger"], [class*="-panel"] {
    display: none !important;
  }
  /* Show full article content without sidebar */
  [class*="-content-sidebar"] {
    display: block;
  }
  aside, [class*="-sidebar-cta"], [class*="-sidebar-card"] {
    display: none !important;
  }
  /* Typography for print */
  body {
    font-size: 11pt;
    line-height: 1.5;
    color: #000 !important;
    background: #fff !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  a[href^="tel"]::after,
  a[href^="#"]::after {
    content: none;
  }
  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  [class*="-table"] { page-break-inside: avoid; }
}

/* ── MORPH-40: Hero Photograph Background ──────────────────────────────── */
/* Replaces solid-color hero with real photograph + dark overlay for text   */
.lr-hero--centered-text {
  background-image: linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.48)),
                    url('assets/hero-images/landrover-hero-processed.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  background-color: transparent !important;
}
/* Force white text over photo overlay */
.lr-hero--centered-text .lr-hero-eyebrow {
  color: rgba(255,255,255,0.85) !important;
}
.lr-hero--centered-text .lr-hero-heading {
  color: #ffffff !important;
}
.lr-hero--centered-text .lr-hero-sub {
  color: rgba(255,255,255,0.80) !important;
  opacity: 1;
}
.lr-hero--centered-text .lr-hero-city {
  color: rgba(255,255,255,0.65) !important;
}
.lr-hero--centered-text .lr-hero-phone-number {
  color: #ffffff !important;
}
.lr-hero--centered-text .lr-hero-phone-label {
  color: rgba(255,255,255,0.70) !important;
  opacity: 1;
}
.lr-hero--centered-text .lr-hero-cta .lr-btn-outline {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.5) !important;
}
.lr-hero--centered-text .lr-hero-cta .lr-btn-outline:hover {
  border-color: #ffffff !important;
}
/* ── END MORPH-40 Hero Photograph ──────────────────────────────────────── */

/* MORPH-40c: Service/Guide index card styling */
[class$="-service-item"],
[class$="-spoke-card"],
[class$="-article-card"] {
  display: block;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border, rgba(0,0,0,0.09));
  border-radius: var(--radius-md, 4px);
  background: var(--surface, #E3E3E1);
  text-decoration: none;
  color: var(--text, #111);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
[class$="-service-item"]:hover,
[class$="-spoke-card"]:hover,
[class$="-article-card"]:hover {
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.10));
  border-color: var(--primary, #0A4DA2);
}
[class$="-service-item"] h3,
[class$="-service-item"] h4,
[class$="-spoke-card"] h3,
[class$="-spoke-card"] h4 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-head);
}
[class$="-service-item"] p,
[class$="-spoke-card"] p,
[class$="-article-card"] p {
  margin: 0 0 0.5rem 0;
  color: var(--text-muted, #545A67);
  font-size: 0.95rem;
  line-height: 1.6;
}
[class$="-service-cta"],
[class$="-spoke-link"] {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #0A4DA2);
}
[class$="-service-list"] {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* ================================================================
   MORPH-43: Interior Prose Spacing (fleet-wide)
   Scoped under <main> so homepage (no <main> tag) is unaffected.
   Restores vertical rhythm stripped by CSS reset (p { margin: 0 }).
================================================================ */
main p { margin: 0 0 1.25rem 0; line-height: 1.7; }
main h2 { margin: 2.5rem 0 1rem 0; }
main h3 { margin: 2rem 0 0.75rem 0; }
main h4 { margin: 1.5rem 0 0.5rem 0; }
main ul, main ol { margin: 0 0 1.25rem 0; padding-left: 1.5rem; }
main li { margin: 0 0 0.5rem 0; line-height: 1.6; }
main blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--primary, #0A4DA2); background: var(--surface, #f5f5f3); }
main table { margin: 1.5rem 0; border-collapse: collapse; width: 100%; }
main th, main td { padding: 0.75rem 1rem; border: 1px solid var(--border, rgba(0,0,0,0.09)); text-align: left; }
main th { background: var(--surface, #f5f5f3); font-weight: 600; }
main img { max-width: 100%; height: auto; margin: 1rem 0; border-radius: var(--radius-md, 4px); }
main hr { margin: 2rem 0; border: none; border-top: 1px solid var(--border, rgba(0,0,0,0.09)); }
main section { padding: 3rem 0; }
main section + section { border-top: 1px solid var(--border, rgba(0,0,0,0.09)); }

/* ================================================================
   MORPH-43: Service card selector fix (adds -service-card pattern)
================================================================ */
[class$="-service-card"] {
  display: block;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border, rgba(0,0,0,0.09));
  border-radius: var(--radius-md, 4px);
  background: var(--surface, #E3E3E1);
  text-decoration: none;
  color: var(--text, #111);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
[class$="-service-card"]:hover {
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.10));
  border-color: var(--primary, #0A4DA2);
}
[class$="-service-card"] h3,
[class$="-service-card"] h4 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-head);
}
[class$="-service-card"] p {
  margin: 0 0 0.5rem 0;
  color: var(--text-muted, #545A67);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* MORPH-43: Icon visibility fix */
[class$="-service-icon"] {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
}
