/* ==========================================================================
   Lean Detailing Group — brand theme (Philippine-flag inspired)
   Royal Blue primary / Intense Red accent / Golden Yellow highlight
   ========================================================================== */

:root {
  --ldg-blue: #0038a8;
  --ldg-blue-dark: #002a80;
  --ldg-blue-light: #e8eefb;
  --ldg-red: #ce1126;
  --ldg-red-dark: #a50d1e;
  --ldg-yellow: #fcd116;
  --ldg-yellow-dark: #e0ad00;
  --ldg-gray-50: #f7f8fa;
  --ldg-gray-100: #eef1f5;
  --ldg-gray-600: #5b6470;
  --ldg-gray-800: #24272e;
  --ldg-font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --ldg-radius: 0.75rem;
  --ldg-shadow: 0 10px 30px rgba(0, 42, 128, 0.09);
  --ldg-shadow-sm: 0 4px 14px rgba(0, 42, 128, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ldg-font);
  color: var(--ldg-gray-800);
  background-color: #ffffff;
  overflow-x: hidden;
}

main {
  scroll-margin-top: 76px;
}

section[id],
div[id] {
  scroll-margin-top: 76px;
}

a {
  color: var(--ldg-blue);
}

a:hover {
  color: var(--ldg-blue-dark);
}

.text-ldg-blue { color: var(--ldg-blue) !important; }
.text-ldg-red { color: var(--ldg-red) !important; }
.text-ldg-yellow { color: var(--ldg-yellow-dark) !important; }
.bg-ldg-blue { background-color: var(--ldg-blue) !important; }
.bg-ldg-light { background-color: var(--ldg-gray-50) !important; }

.section-eyebrow {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ldg-red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-weight: 800;
  color: var(--ldg-blue-dark);
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--ldg-gray-600);
  max-width: 46rem;
}

.divider-flag {
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ldg-blue) 0 50%, var(--ldg-red) 50% 100%);
  margin: 0.75rem 0 1.5rem;
}

.divider-flag.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn-ldg-primary {
  background-color: var(--ldg-blue);
  border-color: var(--ldg-blue);
  color: #fff;
  font-weight: 600;
}
.btn-ldg-primary:hover,
.btn-ldg-primary:focus {
  background-color: var(--ldg-blue-dark);
  border-color: var(--ldg-blue-dark);
  color: #fff;
}

.btn-ldg-accent {
  background-color: var(--ldg-yellow);
  border-color: var(--ldg-yellow);
  color: var(--ldg-blue-dark);
  font-weight: 700;
}
.btn-ldg-accent:hover,
.btn-ldg-accent:focus {
  background-color: var(--ldg-yellow-dark);
  border-color: var(--ldg-yellow-dark);
  color: var(--ldg-blue-dark);
}

.btn-ldg-outline {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
}
.btn-ldg-outline:hover,
.btn-ldg-outline:focus {
  background-color: #fff;
  color: var(--ldg-blue-dark);
}

/* ---------- Header / Navbar ---------- */
.ldg-navbar {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(0, 42, 128, 0.08);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: box-shadow 0.2s ease;
}

.ldg-navbar .navbar-brand img {
  height: 42px;
  width: auto;
}

.ldg-navbar .navbar-brand .brand-text {
  font-weight: 800;
  color: var(--ldg-blue-dark);
  line-height: 1.05;
}

.ldg-navbar .navbar-brand .brand-text small {
  display: block;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ldg-red);
  text-transform: uppercase;
}

.ldg-navbar .nav-link {
  font-weight: 600;
  color: var(--ldg-gray-800);
  padding: 0.5rem 0.9rem;
}

.ldg-navbar .nav-link:hover,
.ldg-navbar .nav-link.active {
  color: var(--ldg-blue);
}

.ldg-navbar .nav-cta {
  background-color: var(--ldg-red);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.5rem 1.3rem !important;
  font-weight: 700;
}
.ldg-navbar .nav-cta:hover {
  background-color: var(--ldg-red-dark);
}

/* ---------- Hero ---------- */
.ldg-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ldg-blue-dark) 0%, var(--ldg-blue) 55%, #0b4fc7 100%);
  color: #fff;
  padding: 7.5rem 0 6rem;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(0, 42, 128, 0.90) 0%, rgba(0, 56, 168, 0.78) 28%, rgba(11, 79, 199, 0.55) 50%, rgba(11, 79, 199, 0.35) 68%, rgba(0, 56, 168, 0.45) 100%),
    linear-gradient(0deg, rgba(0, 42, 128, 0.6) 0%, rgba(0, 42, 128, 0) 22%);
  pointer-events: none;
}

.ldg-hero h1,
.ldg-hero .hero-badge,
.ldg-hero .lead,
.ldg-hero .stat-number,
.ldg-hero .stat-label {
  text-shadow: 0 2px 16px rgba(0, 10, 30, 0.55);
}

.ldg-hero .container {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
}

.ldg-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 209, 22, 0.55);
  color: var(--ldg-yellow);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.ldg-hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
}

.ldg-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 38rem;
}

.ldg-hero .hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.ldg-hero .hero-stats .stat-number {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ldg-yellow);
}

.ldg-hero .hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.ldg-hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ldg-radius);
  backdrop-filter: blur(6px);
  padding: 1.75rem;
}

.ldg-hero-panel ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}
.ldg-hero-panel ul li:last-child {
  border-bottom: 0;
}

.ldg-hero-panel .icon-check {
  color: var(--ldg-yellow);
  margin-right: 0.5rem;
}

/* ---------- Generic section spacing ---------- */
.ldg-section {
  padding: 5rem 0;
}

@media (max-width: 767.98px) {
  .ldg-section {
    padding: 3.25rem 0;
  }
  .ldg-hero {
    padding: 6.5rem 0 3.5rem;
  }
}

/* ---------- Cards ---------- */
.ldg-card {
  background: #fff;
  border: 1px solid var(--ldg-gray-100);
  border-radius: var(--ldg-radius);
  box-shadow: var(--ldg-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.ldg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ldg-shadow);
}

.ldg-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ldg-blue-light);
  color: var(--ldg-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.ldg-icon-badge.accent {
  background: #fdeceb;
  color: var(--ldg-red);
}

.ldg-icon-badge.gold {
  background: #fff8dc;
  color: var(--ldg-yellow-dark);
}

/* Core values */
.value-card {
  border-top: 4px solid var(--ldg-blue);
}
.value-card.red { border-top-color: var(--ldg-red); }
.value-card.yellow { border-top-color: var(--ldg-yellow); }

/* ---------- Services tabs ---------- */
.ldg-service-tabs {
  gap: 0.25rem;
}

.ldg-service-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ldg-gray-800);
  background-color: #fff;
  border: 1px solid var(--ldg-gray-100);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  margin: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ldg-service-tabs .nav-link .tab-icon {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.ldg-service-tabs .nav-link:hover {
  border-color: var(--ldg-blue);
  color: var(--ldg-blue);
  transform: translateY(-1px);
}

.ldg-service-tabs .nav-link.active {
  background-color: var(--ldg-blue);
  color: #fff;
  border-color: var(--ldg-blue);
}

.ldg-service-tabs .nav-link.active .tab-icon {
  opacity: 1;
}

.service-lead {
  color: var(--ldg-gray-600);
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.service-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ldg-gray-50);
  border: 1px solid var(--ldg-gray-100);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ldg-gray-800);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-list li:hover {
  background: var(--ldg-blue-light);
  border-color: var(--ldg-blue);
  transform: translateY(-2px);
}

.service-list li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ldg-blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

/* ---------- Industries ---------- */
.industries-video-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.industries-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.industries-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 20, 60, 0.9) 0%, rgba(0, 28, 72, 0.84) 55%, rgba(0, 20, 60, 0.9) 100%);
}

.industries-video-section .section-eyebrow {
  color: var(--ldg-yellow);
}

.industries-video-section .section-title {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 10, 30, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .industries-bg-video {
    display: none;
  }
  .industries-video-section {
    background: linear-gradient(135deg, var(--ldg-blue-dark) 0%, var(--ldg-blue) 100%);
  }
}

.industry-card {
  position: relative;
  border-radius: var(--ldg-radius);
  overflow: hidden;
  box-shadow: var(--ldg-shadow-sm);
  height: 260px;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.industry-card:hover img {
  transform: scale(1.06);
}

.industry-card .industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,42,128,0) 35%, rgba(0,32,96,0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.25rem;
}

.industry-card h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

/* ---------- Sample drawings ---------- */
.drawing-card {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ldg-gray-100);
  border-radius: var(--ldg-radius);
  box-shadow: var(--ldg-shadow-sm);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--ldg-gray-600);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.drawing-card-view {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ldg-blue);
  letter-spacing: 0.02em;
}

.drawing-card-view::after {
  content: "\2192";
  margin-left: 0.3rem;
}

.drawing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ldg-shadow);
  border-color: var(--ldg-blue-light);
}

.drawing-card .ldg-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 0.9rem;
}

.drawing-card h3 {
  color: var(--ldg-blue-dark);
  font-weight: 700;
}

.drawing-card p {
  font-size: 0.85rem;
  line-height: 1.45;
}

.drawing-card-cta {
  text-decoration: none;
  background: var(--ldg-blue-light);
  border-color: var(--ldg-blue-light);
}

.drawing-card-cta:hover {
  background: #fff;
  border-color: var(--ldg-blue);
}

.drawing-card-cta h3 {
  color: var(--ldg-red);
}

.drawing-carousel .carousel-item img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--ldg-gray-50);
}

.drawing-carousel .carousel-control-prev,
.drawing-carousel .carousel-control-next {
  width: 3.5rem;
  opacity: 1;
}

.drawing-carousel .carousel-control-prev-icon,
.drawing-carousel .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(0, 42, 128, 0.78);
  box-shadow: 0 2px 10px rgba(0, 20, 60, 0.3);
  transition: background-color 0.2s ease;
}

.drawing-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.drawing-carousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--ldg-blue-dark);
}

/* ---------- FAQ ---------- */
.accordion-ldg .accordion-button {
  font-weight: 700;
  color: var(--ldg-blue-dark);
  background-color: #fff;
}

.accordion-ldg .accordion-button:not(.collapsed) {
  color: var(--ldg-blue-dark);
  background-color: var(--ldg-blue-light);
  box-shadow: none;
}

.accordion-ldg .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.2);
}

.accordion-ldg .accordion-item {
  border: 1px solid var(--ldg-gray-100);
  border-radius: var(--ldg-radius) !important;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.accordion-ldg .accordion-button::after {
  filter: invert(15%) sepia(80%) saturate(2000%) hue-rotate(200deg);
}

/* ---------- Contact ---------- */
.ldg-contact-panel {
  background: linear-gradient(160deg, var(--ldg-blue-dark), var(--ldg-blue));
  color: #fff;
  border-radius: var(--ldg-radius);
  padding: 2rem;
}

.ldg-contact-panel a {
  color: var(--ldg-yellow);
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 0.5rem;
  border: 1px solid #d7dce3;
  padding: 0.7rem 0.9rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--ldg-blue);
  box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.15);
}

.form-status {
  display: none;
}
.form-status.show {
  display: block;
}

/* ---------- Footer ---------- */
.ldg-footer {
  background: #051638;
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
}

.ldg-footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ldg-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.ldg-footer a:hover {
  color: var(--ldg-yellow);
}

.ldg-footer hr {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2rem 0 1.25rem;
}

.ldg-footer .footer-bottom {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ldg-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ldg-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1030;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ldg-red-dark);
}

/* ---------- Legal pages ---------- */
.legal-page h1 {
  color: var(--ldg-blue-dark);
  font-weight: 800;
}

.legal-page h2 {
  color: var(--ldg-blue-dark);
  font-weight: 700;
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.legal-page .updated-badge {
  display: inline-block;
  background: var(--ldg-blue-light);
  color: var(--ldg-blue-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.legal-page ul li {
  margin-bottom: 0.35rem;
}

/* ---------- Utilities ---------- */
.rounded-ldg { border-radius: var(--ldg-radius) !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ldg-blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
}
