/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */

body {
  background-color: #000026 !important; /* Dark mode default */
  color: #f8f9fa;
  font-family: "Kodchasan", sans-serif;
  margin: 0;
  padding: 0;
}

body.light-mode {
  background-color: #d9e9eb !important; /* Light mode */
  color: #111 !important;
}

a {
  text-decoration: none;
}

/* --------------------------------------------------
   NAVBAR + BUBBLE NAV
-------------------------------------------------- */

#navMenu,
.nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

#navBubble {
  position: absolute;
  bottom: 0;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  transition: all 0.25s ease;
  z-index: 0;
}

#navMenu .nav-link,
.nav-wrapper .nav-link {
  position: relative;
  padding: 6px 18px !important;
  border-radius: 18px;
  z-index: 2;
}

.nav-link.active {
  color: #fff !important;
}

body.light-mode #navBubble {
  background: rgba(255, 255, 255, 0.35) !important;
}

/* Light mode nav links should be white, active black */
body.light-mode .nav-link {
  color: #ffffff !important;
}

body.light-mode .nav-link.active {
  color: #000000 !important;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.hero-section {
  padding: 4rem 0 2rem;
}

/* OLD single hero image (kept if used elsewhere) */
.hero-image {
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

/* --------------------------------------------------
   DUAL HERO (DIAGONAL HOVER EFFECT)
-------------------------------------------------- */

.dual-hero {
  --g: 8px; /* gap */
  display: grid;
  clip-path: inset(1px); /* avoid visual glitches */
}

.dual-hero > img {
  --_p: calc(-1 * var(--g));
  grid-area: 1 / 1;
  width: 100%;
  max-width: 750px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.4s 0.1s;
  object-fit: cover;
}

.dual-hero > img:first-child {
  clip-path: polygon(0 0, calc(100% + var(--_p)) 0, 0 calc(100% + var(--_p)));
}

.dual-hero > img:last-child {
  clip-path: polygon(100% 100%, 100% calc(0% - var(--_p)), calc(0% - var(--_p)) 100%);
}

.dual-hero:hover > img:last-child,
.dual-hero:hover > img:first-child:hover {
  --_p: calc(50% - var(--g));
}

.dual-hero:hover > img:first-child,
.dual-hero:hover > img:first-child:hover + img {
  --_p: calc(-50% - var(--g));
}

/* --------------------------------------------------
   TITLES
-------------------------------------------------- */

.section-title {
  margin: 3rem 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* --------------------------------------------------
   SQUARE IMAGES (1:1)
-------------------------------------------------- */

.square-img {
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* --------------------------------------------------
   SERVICES GRID
-------------------------------------------------- */

.services-grid .card {
  background-color: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  height: 100%;
}

body.light-mode .services-grid .card {
  background-color: #ffffff !important;
  border-color: #ccc !important;
}

/* Home page service text color */
body:not(.light-mode) .services-grid .card-body,
body:not(.light-mode) .services-grid .card-body h5,
body:not(.light-mode) .services-grid .card-body p {
  color: #ffffff !important;
}

body.light-mode .services-grid .card-body,
body.light-mode .services-grid .card-body h5,
body.light-mode .services-grid .card-body p {
  color: #000000 !important;
}

/* --------------------------------------------------
   SERVICES PAGE CARDS
-------------------------------------------------- */

body:not(.light-mode) .services-page .card {
  background-color: #000 !important;
  border-color: #333 !important;
}

body:not(.light-mode) .services-page .card-title,
body:not(.light-mode) .services-page .card-text {
  color: #ffffff !important;
}

body.light-mode .services-page .card {
  background-color: #ffffff !important;
  border-color: #ccc !important;
}

body.light-mode .services-page .card-title,
body.light-mode .services-page .card-text {
  color: #000000 !important;
}

/* --------------------------------------------------
   UPREV FULL-WIDTH BACKGROUND
-------------------------------------------------- */

.uprev-section {
  margin: 3rem 0;
  position: relative;
}

.uprev-bg {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  filter: brightness(0.55);
}

.uprev-overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  width: 40%;
  text-align: left;
  color: white;
}

/* --------------------------------------------------
   BANNER
-------------------------------------------------- */

.banner {
  background: linear-gradient(90deg, #343a40, #212529);
  padding: 2rem 1rem;
  border-radius: 14px;
  margin: 3rem 0;
}

body.light-mode .banner {
  background: #e9ecef !important;
}

/* --------------------------------------------------
   FOOTER BANNER (NO SPACING)
-------------------------------------------------- */

.footer-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.footer-banner img {
  width: 100%;
  height: auto;
  display: block;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
}

footer .bottom-line {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #adb5bd;
}

/* --------------------------------------------------
   CONTACT / QUOTE
-------------------------------------------------- */

.contact-card {
  background-color: #1e1e1e;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
}

body.light-mode .contact-card {
  background-color: #ffffff !important;
  border-color: #ccc !important;
}

.map-embed {
  border-radius: 14px;
  overflow: hidden;
}

/* --------------------------------------------------
   FORMS
-------------------------------------------------- */

.form-control,
.form-select {
  border-radius: 14px !important;
}

body:not(.light-mode) .form-control,
body:not(.light-mode) .form-select {
  background-color: #1e1e1e !important;
  color: #f8f9fa !important;
  border-color: #2b2b2b !important;
}

body.light-mode .form-control,
body.light-mode .form-select {
  background-color: #ffffff !important;
  color: #111 !important;
  border-color: #ccc !important;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

.btn {
  border-radius: 14px !important;
  padding: 10px 20px;
  font-weight: 500;
}

/* --------------------------------------------------
   PRICE QUOTE FORM — DARK MODE TEXT FIX
-------------------------------------------------- */

body:not(.light-mode) .contact-card label,
body:not(.light-mode) .contact-card h1,
body:not(.light-mode) .contact-card h2,
body:not(.light-mode) .contact-card h3,
body:not(.light-mode) .contact-card h4,
body:not(.light-mode) .contact-card h5,
body:not(.light-mode) .contact-card p,
body:not(.light-mode) .contact-card input,
body:not(.light-mode) .contact-card textarea {
  color: #ffffff !important;
}

/* CONTACT PAGE — DARK MODE TEXT FIX */

body:not(.light-mode) .contact-card,
body:not(.light-mode) .contact-card * {
  color: #ffffff !important;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 767.98px) {
  .uprev-overlay {
    width: 90%;
    left: 5%;
  }

  .dual-hero > img {
    max-width: 260px;
  }
}
