:root {
  --primary-dark: #0d1b2a;
  --secondary-dark: #1a3c6e;
  --accent: #e8751a;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --muted: #6c757d;
  --body-color: #334155;
  --heading-color: #0f172a;
  --border-color: rgba(13, 27, 42, 0.08);
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --transition: all 0.35s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--body-color);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  max-width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.section-title,
.page-title {
  font-family: "Poppins", sans-serif;
  color: var(--heading-color);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 80px 0;
}

.text-muted-custom {
  color: var(--muted) !important;
}

.bg-primary-dark {
  background: var(--primary-dark);
}

.bg-secondary-dark {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.bg-light-custom {
  background: var(--light-bg);
}

.topbar-phone {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1030;
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 0.75rem 0;
}

.navbar-brand {
  color: var(--white);
  letter-spacing: 0.18rem;
  font-size: 1.15rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  margin: 0 0.55rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.navbar-toggler i {
  color: var(--white);
  font-size: 1.35rem;
}

.btn-primary-custom,
.btn-outline-custom,
.btn-light-custom {
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.btn-primary-custom {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--white);
}

.btn-primary-custom:hover {
  background: #cf6410;
  border-color: #cf6410;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-light-custom {
  background: var(--white);
  border: 2px solid var(--white);
  color: var(--primary-dark);
}

.btn-light-custom:hover {
  background: transparent;
  color: var(--white);
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.88), rgba(13, 27, 42, 0.56));
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.hero-badge,
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.hero-badge i,
.page-badge i {
  color: #28a745;
}

.hero-title,
.page-title {
  color: var(--white);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero-text,
.page-subtitle,
.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  padding: 170px 0 90px;
  background-size: cover;
  background-position: center;
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.section-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-text {
  color: var(--muted);
  max-width: 640px;
}

.stats-bar {
  background: var(--primary-dark);
  color: var(--white);
}

.stat-item {
  text-align: center;
}

.stat-number {
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.about-image-grid img,
.rounded-image,
.service-showcase-image,
.feature-side-image,
.gallery-item img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.about-image-grid img:nth-child(2) {
  margin-top: 2.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
}

.check-list li {
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.check-list i {
  color: var(--accent);
  margin-top: 0.25rem;
}

.service-card,
.feature-card,
.contact-card,
.value-card,
.cert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover,
.feature-card:hover,
.value-card:hover,
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
}

.service-icon,
.feature-icon,
.contact-icon,
.value-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(232, 117, 26, 0.12);
  color: var(--accent);
  font-size: 1.7rem;
  margin-bottom: 1.4rem;
}

.service-link {
  color: var(--secondary-dark);
  font-weight: 600;
}

.service-link:hover {
  color: var(--accent);
}

.feature-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}

.feature-panel h3,
.feature-panel p,
.feature-panel .feature-icon {
  color: var(--white);
}

.feature-panel .feature-icon {
  background: rgba(232, 117, 26, 0.18);
}

.dark-section .section-title,
.dark-section .section-text,
.dark-section p,
.dark-section h3,
.dark-section .section-label {
  color: var(--white);
}

.dark-section .section-text,
.dark-section p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-section {
  background: var(--accent);
  color: var(--white);
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.74);
}

.footer h5,
.footer .navbar-brand,
.footer a,
.footer strong {
  color: var(--white);
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-control,
.form-select {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(232, 117, 26, 0.16);
  border-color: rgba(232, 117, 26, 0.55);
}

.service-showcase {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.service-showcase .content-wrap {
  padding: 2.5rem;
}

.service-showcase-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.gallery-item {
  margin-bottom: 1.5rem;
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
}

.contact-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.aos-animate {
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1) !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    background: rgba(13, 27, 42, 0.96);
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .topbar-phone {
    display: none;
  }

  .hero-section {
    min-height: 860px;
  }

  .service-showcase .content-wrap {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 70px 0;
  }

  .hero-section {
    min-height: 780px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .about-image-grid {
    grid-template-columns: 1fr;
  }

  .about-image-grid img:nth-child(2) {
    margin-top: 0;
  }

  .page-hero {
    padding: 145px 0 75px;
  }
}

/* Gallery thumbnails */
.gallery-item img.gallery-thumb {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
.gallery-item img.gallery-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.active {
  display: flex;
}
.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(232,117,26,0.75);
}
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev  { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }
