/* ===========================================
   Local Deliveries page — cloned layout & styling
   from the live ov17transport.com courier page.
   Scoped entirely under .ld-page so it never
   touches / conflicts with css/style.css.
   =========================================== */

.ld-page {
  --ld-red: #eb171e;
  --ld-red-dark: #860e12;
  --ld-black: #000000;
  --ld-white: #ffffff;
  --ld-mint: #ecf4f3;
  --ld-gray: #d1d1d1;
  --ld-tint-10: rgba(134, 14, 18, 0.10);
  --ld-tint-20: rgba(134, 14, 18, 0.20);
  --ld-container: 1200px;
  --ld-font: 'Poppins', sans-serif;
  --ld-font-alt: 'DM Sans', sans-serif;

  font-family: var(--ld-font);
  font-weight: 400;
  font-size: 16px;
  color: var(--ld-black);
  line-height: 1.6;
  background: var(--ld-white);
}

.ld-page * { box-sizing: border-box; }
.ld-page img { max-width: 100%; display: block; }
.ld-page a { color: inherit; text-decoration: none; }
.ld-page ul { margin: 0; padding: 0; list-style: none; }

.ld-page h1, .ld-page h2, .ld-page h3, .ld-page h4 {
  font-family: var(--ld-font);
  font-weight: 500;
  line-height: 1.25em;
  margin: 0;
}
.ld-page h2 { font-size: 40px; }
.ld-page h3 { font-size: 24px; }

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

/* Buttons — sharp corners, uppercase DM Sans, matches source exactly */
.ld-btn {
  display: inline-block;
  font-family: var(--ld-font-alt);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 15px 30px;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ld-btn--primary { background: var(--ld-red); color: var(--ld-white); }
.ld-btn--primary:hover { background: var(--ld-red-dark); }
.ld-btn--outline { background: transparent; color: var(--ld-white); border-color: var(--ld-white); }
.ld-btn--outline:hover { background: var(--ld-white); color: var(--ld-black); }

.ld-center { text-align: center; }

/* Hero */
.ld-hero {
  position: relative;
  min-height: 750px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: var(--ld-black) url('../images/ld-hero-bg.png') center / cover no-repeat;
}
.ld-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ld-black);
  opacity: 0.55;
}
.ld-hero__content { position: relative; z-index: 2; max-width: 900px; }
.ld-hero h1 {
  color: var(--ld-white);
  font-size: 75px;
  padding: 0 5%;
  margin-bottom: 28px;
}
.ld-hero__dots { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 20px; }
.ld-hero__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* Overlapping problem card */
.ld-problem-wrap {
  background: var(--ld-tint-10);
  margin-top: -100px;
  padding: 0 40px;
  position: relative;
  z-index: 3;
}
.ld-problem {
  display: flex;
  align-items: stretch;
  max-width: var(--ld-container);
  margin: 0 auto;
}
.ld-problem__text {
  width: 50%;
  background: var(--ld-white);
  padding: 5px 60px 123px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ld-problem__text h2 { font-size: 36px; margin-bottom: 20px; }
.ld-problem__text p { margin: 0 0 24px; color: rgba(0,0,0,0.75); }
.ld-problem__image { width: 50%; }
.ld-problem__image img { width: 100%; height: 100%; object-fit: cover; }

/* How it works */
.ld-how { padding: 110px 40px; }
.ld-how__heading { text-align: center; max-width: 44%; margin: 0 auto 50px; }
.ld-how__heading h2 { text-transform: uppercase; font-size: 34px; }
.ld-how__grid {
  display: flex;
  gap: 30px;
  margin-top: 46px;
}
.ld-step { flex: 1; text-align: left; }
.ld-step__num {
  display: block;
  font-family: var(--ld-font-alt);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ld-red);
  margin-bottom: 10px;
}
.ld-step h3 { margin-bottom: 10px; }
.ld-step p { color: rgba(0,0,0,0.75); margin: 0; }
.ld-how__cta { text-align: center; margin-top: 40px; }

/* Dark image CTA banners (value-prop + closing quote) */
.ld-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background-color: var(--ld-black);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.ld-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ld-black);
  opacity: 0.8;
}
.ld-banner--cta { background-image: url('../images/ld-cta-bg.png'); }
.ld-banner--quote { background-image: url('../images/ld-quote-bg.png'); min-height: 400px; padding: 130px 40px; }
.ld-banner__content { position: relative; z-index: 2; max-width: 1000px; }
.ld-banner__eyebrow {
  font-family: var(--ld-font-alt);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ld-red);
  margin-bottom: 15px;
}
.ld-banner--quote .ld-banner__eyebrow { color: var(--ld-white); }
.ld-banner__content h2 { color: var(--ld-white); margin-bottom: 24px; }

/* Features: accordion + image */
.ld-features {
  background: var(--ld-tint-10);
  padding: 100px 40px;
}
.ld-features__grid {
  max-width: var(--ld-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 35px;
}
.ld-features__col { width: 50%; }
.ld-features__col--text { padding: 5% 8%; }
.ld-features__col h2 { margin-bottom: 30px; }
.ld-features__col--image img { width: 100%; border-radius: 4px; }

.ld-accordion-item { margin-bottom: 10px; }
.ld-accordion-item summary {
  list-style: none;
  cursor: pointer;
  background: var(--ld-tint-20);
  padding: 20px;
  font-family: var(--ld-font-alt);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ld-accordion-item summary::-webkit-details-marker { display: none; }
.ld-accordion-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ld-red);
  margin-left: 12px;
}
.ld-accordion-item[open] summary::after { content: "\2212"; }
.ld-accordion-item__body {
  padding: 16px 20px 4px;
  color: rgba(0,0,0,0.75);
}

/* Who we serve */
.ld-serve { background: var(--ld-tint-10); padding: 100px 40px; }
.ld-serve__heading { text-align: center; text-transform: uppercase; margin-bottom: 50px; }
.ld-serve__grid {
  max-width: var(--ld-container);
  margin: 0 auto;
  display: flex;
  gap: 35px;
}
.ld-serve-card {
  flex: 1;
  background: var(--ld-white);
  padding: 32px;
}
.ld-serve-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ld-red);
  color: var(--ld-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.ld-serve-card h3 { margin-bottom: 20px; }
.ld-serve-card p { font-size: 18px; color: var(--ld-black); margin: 0; }

/* Rates */
.ld-rates {
  background: var(--ld-tint-10);
  padding: 100px 40px;
}
.ld-rates__heading { text-align: center; text-transform: uppercase; margin-bottom: 50px; }
.ld-rates__grid {
  max-width: var(--ld-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
}
.ld-rate-card {
  background: var(--ld-white);
  border: 1px solid #ececec;
}
.ld-rate-card img { width: 100%; aspect-ratio: 600 / 464; object-fit: cover; }
.ld-rate-card__body { padding: 24px; }
.ld-rate-card h3 { font-size: 20px; margin-bottom: 12px; }
.ld-rate-card p { font-size: 15px; color: rgba(0,0,0,0.75); margin: 0 0 10px; }
.ld-rate-card p:last-child { margin-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .ld-hero { padding: 80px 32px; min-height: 0; }
  .ld-hero h1 { font-size: 52px; padding: 0; }
  .ld-problem-wrap { margin-top: -80px; padding: 0 32px; }
  .ld-problem { flex-direction: column; }
  .ld-problem__text, .ld-problem__image { width: 100%; padding: 35px; }
  .ld-problem__image img { height: 500px; }
  .ld-how { padding: 80px 32px; }
  .ld-how__heading { max-width: 100%; }
  .ld-how__grid { flex-direction: column; gap: 35px; }
  .ld-banner { padding: 80px 32px; }
  .ld-banner--quote { padding: 80px 32px; }
  .ld-features { padding: 80px 32px; }
  .ld-features__grid { flex-direction: column; }
  .ld-features__col { width: 100%; }
  .ld-serve { padding: 80px 32px; }
  .ld-serve__grid { flex-direction: column; }
  .ld-rates { padding: 80px 32px; }
  .ld-rates__grid { grid-template-columns: 1fr; max-width: 500px; }
}

@media (max-width: 767px) {
  .ld-hero { padding: 110px 24px 120px; }
  .ld-hero h1 { font-size: 34px; }
  .ld-problem-wrap { margin-top: -60px; padding: 0 24px; }
  .ld-problem__text { padding: 25px; }
  .ld-problem__image img { height: 300px; }
  .ld-how { padding: 80px 24px 64px; }
  .ld-banner { padding: 64px 24px; }
  .ld-banner--quote { padding: 64px 24px; }
  .ld-features { padding: 64px 24px; }
  .ld-features__col--text { padding: 50px 30px; }
  .ld-serve { padding: 64px 24px; }
  .ld-rates { padding: 64px 24px; }
  .ld-rates__grid { grid-template-columns: 1fr; }
  .ld-page h2 { font-size: 30px; }
}
