/* ==========================================================================
   LMG Ltd — Shared Stylesheet
   Brand: colours pulled from the LMG Ltd logo — road blue as the primary
   brand colour, with the logo's red road-marking as a small accent.
   ========================================================================== */

:root {
  --lmg-black: #0d1b2a;       /* deep navy, from logo's dark tones */
  --lmg-charcoal: #142a40;
  --lmg-charcoal-light: #1d3b57;
  --lmg-blue: #1e5f99;        /* primary brand blue, sampled from logo */
  --lmg-blue-dark: #14456f;
  --lmg-red: #d21430;         /* accent red, from logo's road marking */
  --lmg-red-dark: #a80f26;
  --lmg-white: #ffffff;
  --lmg-off-white: #f5f5f4;
  --lmg-grey: #6b7078;
  --lmg-grey-light: #d7d9dc;
  --lmg-border: #e7e7e5;

  --font-head: "Oswald", "Arial Narrow", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--lmg-charcoal);
  background: var(--lmg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--lmg-grey); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lmg-red);
  font-weight: 600;
  margin-bottom: 10px;
}

.section {
  padding: 80px 0;
}

.section--tight { padding: 56px 0; }

.section--dark {
  background: var(--lmg-charcoal);
  color: var(--lmg-white);
}
.section--dark h2, .section--dark h3 { color: var(--lmg-white); }
.section--dark p { color: var(--lmg-grey-light); }

.section--off {
  background: var(--lmg-off-white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--lmg-blue);
  color: var(--lmg-white);
  border-color: var(--lmg-blue);
}
.btn--primary:hover { background: var(--lmg-blue-dark); border-color: var(--lmg-blue-dark); }

.btn--outline {
  background: transparent;
  color: var(--lmg-white);
  border-color: var(--lmg-white);
}
.btn--outline:hover { background: var(--lmg-white); color: var(--lmg-black); }

.btn--dark {
  background: var(--lmg-black);
  color: var(--lmg-white);
  border-color: var(--lmg-black);
}
.btn--dark:hover { background: var(--lmg-charcoal-light); }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lmg-black);
  border-bottom: 3px solid var(--lmg-red);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--lmg-white);
  font-weight: 700;
}
.logo .logo-img {
  height: 40px;
  width: auto;
}
.logo .logo-sub {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.62rem;
  color: var(--lmg-grey-light);
  font-weight: 400;
  margin-top: -2px;
}

.footer-logo .logo-img { height: 46px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lmg-grey-light);
  border-radius: 3px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--lmg-white);
  background: var(--lmg-charcoal-light);
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--lmg-white);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--lmg-black) 0%, var(--lmg-charcoal) 55%, var(--lmg-blue-dark) 150%);
  color: var(--lmg-white);
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.hero p.lead {
  color: var(--lmg-grey-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 18px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero--page {
  padding: 74px 0;
  background: linear-gradient(120deg, var(--lmg-black) 0%, var(--lmg-charcoal) 100%);
}
.hero--page h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--lmg-grey-light);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--lmg-blue); }

/* ===================== Stats bar ===================== */
.stats-bar {
  background: var(--lmg-blue);
  color: var(--lmg-white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stats-grid div { padding: 26px 12px; border-right: 1px solid rgba(255,255,255,0.25); }
.stats-grid div:last-child { border-right: none; }
.stats-grid strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
}
.stats-grid span { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ===================== Cards / Grids ===================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--lmg-white);
  border: 1px solid var(--lmg-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card .icon {
  width: 48px;
  height: 48px;
  background: var(--lmg-off-white);
  border: 2px solid var(--lmg-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--lmg-blue);
}

.card h3 { margin-bottom: 10px; color: var(--lmg-black); }
.card p { font-size: 0.94rem; }
.card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lmg-blue);
  border-bottom: 1px solid var(--lmg-blue);
}

/* value / feature list */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--lmg-charcoal);
  border-bottom: 1px solid var(--lmg-border);
}
.check-list li:last-child { border-bottom: none; }
.check-list .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lmg-blue);
  color: var(--lmg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Placeholder visual block used instead of photography */
.visual-block {
  border-radius: var(--radius);
  min-height: 320px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, var(--lmg-charcoal) 0%, var(--lmg-black) 100%);
  border: 1px solid var(--lmg-charcoal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lmg-grey-light);
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}
.visual-block.red {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, var(--lmg-blue) 0%, var(--lmg-blue-dark) 100%);
  color: var(--lmg-white);
}
.visual-block.light {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #eceeef 0%, var(--lmg-off-white) 100%);
  color: var(--lmg-grey);
  border: 1px solid var(--lmg-border);
}

/* Illustration blocks (SVG imagery) */
.illustration {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--lmg-charcoal-light);
}
.illustration img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.illustration--banner { min-height: 220px; }
.illustration--banner img { min-height: 220px; }

/* ===================== Testimonials ===================== */
.testimonial {
  background: var(--lmg-off-white);
  border-left: 4px solid var(--lmg-blue);
  padding: 26px 28px;
  border-radius: var(--radius);
}
.testimonial p { color: var(--lmg-charcoal); font-size: 1rem; font-style: italic; }
.testimonial .stars { color: var(--lmg-red); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .name { display: block; margin-top: 14px; font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lmg-black); }

/* ===================== CTA banner ===================== */
.cta-banner {
  background: var(--lmg-black);
  color: var(--lmg-white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { color: var(--lmg-grey-light); margin-bottom: 26px; }

/* ===================== Location / Contact cards ===================== */
.location-card {
  background: var(--lmg-white);
  border: 1px solid var(--lmg-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.location-card .location-head {
  background: var(--lmg-charcoal);
  color: var(--lmg-white);
  padding: 18px 22px;
}
.location-card .location-head h3 { color: var(--lmg-white); margin: 0; }
.location-card .location-body { padding: 22px; font-size: 0.92rem; color: var(--lmg-charcoal); }
.location-card .location-body p { color: var(--lmg-grey); margin-bottom: 6px; }
.location-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lmg-red);
  border: 1px solid var(--lmg-red);
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 10px;
}

/* ===================== Forms ===================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lmg-charcoal);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--lmg-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--lmg-white);
  color: var(--lmg-charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--lmg-blue);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--lmg-grey); margin-top: 10px; }

.form-response {
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.form-response--success {
  color: #146c2e;
  background: rgba(20, 108, 46, 0.08);
  border-color: rgba(20, 108, 46, 0.25);
}
.form-response--error {
  color: var(--lmg-red-dark);
  background: rgba(210, 20, 48, 0.08);
  border-color: rgba(210, 20, 48, 0.25);
}

.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--lmg-black);
  color: var(--lmg-grey-light);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--lmg-charcoal-light);
}
.footer-grid h4 {
  color: var(--lmg-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid a { font-size: 0.88rem; color: var(--lmg-grey-light); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--lmg-blue); }

/* Contact rows with icons (footer + contact card) */
.contact-list li,
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact-row { margin-bottom: 12px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-list .c-icon,
.contact-row .c-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--lmg-blue);
}
.contact-row a {
  color: var(--lmg-blue);
  font-weight: 500;
  word-break: break-word;
}
.contact-row a:hover { color: var(--lmg-blue-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--lmg-grey);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--lmg-grey); }
.footer-bottom a:hover { color: var(--lmg-blue); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--lmg-charcoal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.social-row a:hover { border-color: var(--lmg-blue); color: var(--lmg-blue); }

.placeholder-tag {
  display: inline-block;
  background: rgba(216,31,38,0.12);
  color: var(--lmg-red);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===================== Legal / prose content ===================== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--lmg-black);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  color: var(--lmg-charcoal);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul {
  list-style: disc;
  margin: 0 0 14px 22px;
}
.legal-content li {
  color: var(--lmg-charcoal);
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-content a { color: var(--lmg-blue); text-decoration: underline; }
.legal-content .updated-note { color: var(--lmg-grey); font-size: 0.85rem; margin-bottom: 30px; }

/* ===================== Blog ===================== */
.post-card { background: var(--lmg-white); border: 1px solid var(--lmg-border); border-radius: var(--radius); overflow: hidden; }
.post-card .post-thumb { display: block; width: 100%; height: 180px; object-fit: cover; }
.post-card .post-meta { padding: 22px 22px 0; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lmg-red); }
.post-card .post-body { padding: 12px 22px 24px; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { font-size: 0.9rem; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(2) { border-right: none; }
}

@media (max-width: 760px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--lmg-black); flex-direction: column; align-items: stretch; padding: 20px; transform: translateY(-120%); transition: transform var(--transition); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px; font-size: 0.95rem; }
  .nav-toggle { display: flex; }
  .nav-cta { margin: 10px 0 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
