:root { --brand: #0b2a4a; }

body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.hero { background: linear-gradient(180deg, rgba(11,42,74,0.95), rgba(11,42,74,0.75)); color:#fff; }
.small-muted { color: rgba(255,255,255,0.85); }
.section-title { font-weight: 800; letter-spacing: -0.02em; }

.card-service img,
.tip-cover{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.tip-cover--ph{
  height:180px;
  background:#e9ecef;
}

/* Keep nav above everything */
.navbar{ position: relative; z-index: 1100; }

/* =========================
   SERVICES: mobile carousel
   ========================= */
@media (max-width: 991.98px) {
  .services-snap {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    padding: 0.25rem 0 0.5rem;
  }

  .services-snap::-webkit-scrollbar { display: none; }
  .services-snap { scrollbar-width: none; }

  .services-snap .service-slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .services-snap-wrap{ position: relative; }

  .services-snap-wrap::before,
  .services-snap-wrap::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    width:28px;
    z-index:2;
    pointer-events:none; /* critical: don't block taps */
  }

  .services-snap-wrap::before{
    left:0;
    background: linear-gradient(to right, rgba(248,249,250,1), rgba(248,249,250,0));
  }
  .services-snap-wrap::after{
    right:0;
    background: linear-gradient(to left, rgba(248,249,250,1), rgba(248,249,250,0));
  }

  .services-snap{
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .services-snap .service-slide { flex-basis: 70%; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-snap .service-slide { flex-basis: 55%; }
}

/* ======================
   TIPS: mobile carousel
   ====================== */
@media (max-width: 991.98px) {
  .tips-snap {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    padding: 0.25rem 0 0.5rem;
  }

  .tips-snap::-webkit-scrollbar { display: none; }
  .tips-snap { scrollbar-width: none; }

  .tips-snap .tip-slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .tips-snap-wrap{ position: relative; }

  .tips-snap-wrap::before,
  .tips-snap-wrap::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    width:28px;
    z-index:2;
    pointer-events:none; /* critical: don't block taps */
  }

  .tips-snap-wrap::before{
    left:0;
    background: linear-gradient(to right, rgba(248,249,250,1), rgba(248,249,250,0));
  }
  .tips-snap-wrap::after{
    right:0;
    background: linear-gradient(to left, rgba(248,249,250,1), rgba(248,249,250,0));
  }

  .tips-snap{
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .tips-snap .tip-slide { flex-basis: 70%; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .tips-snap .tip-slide { flex-basis: 55%; }
}

/* Extra safety: never let any carousel fades block clicks */
.services-snap-wrap::before,
.services-snap-wrap::after,
.tips-snap-wrap::before,
.tips-snap-wrap::after{
  pointer-events: none !important;
}

/* Hero area */
/* HERO: video/image behind text */
.hero.hero--media{
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: clamp(520px, 75vh, 860px);
  display: flex;
  align-items: center;

  /* IMPORTANT: ensures nothing blocks the video behind */
  background: transparent !important;
}

.hero--media .hero__media,
.hero--media .hero__scrim{
  position: absolute;
  inset: 0;
}

.hero--media .hero__media{
  z-index: 0;
}

.hero--media .hero__media video,
.hero--media .hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* dark overlay for readability */
.hero--media .hero__scrim{
  z-index: 1;
 background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.25));

}

.hero--media .hero__content{
  position: relative;
  z-index: 2; /* text above video */
}

/* 50% transparent hero card */
.hero--media .hero-card{
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
}
.hero-card{
  background: rgba(255,255,255,0.15); /* 55% visible (semi-transparent) */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero--media .hero__media video{ display:none; }
}
/* Soft section background */
.section-soft {
  background: linear-gradient(180deg, rgba(248,249,250,1) 0%, rgba(255,255,255,1) 100%);
}

/* Inner panel with border + accent */
.section-panel {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.25rem; /* ~rounded-4 */
  padding: 1.25rem;
  box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.06);
}

@media (min-width: 992px) {
  .section-panel { padding: 2rem; }
}

.section-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bs-warning);
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

/* Swipe hint pill */
.swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(255,193,7,.12);
  color: #6c757d;
  font-size: .875rem;
}

/* Make cards feel more premium */
.card-service,
#tips .card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card-service:hover,
#tips .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .9rem 1.8rem rgba(0,0,0,.10);
}

/* Consistent image crop */
.card-service img,
#tips .tip-cover {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}
/* White fields on dark form card (easier on the eyes) */
.form-card-dark .form-control,
.form-card-dark .form-select{
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  color: #212529;
}
.form-card-dark .form-control::placeholder{
  color: rgba(33,37,41,.55);
}
.form-card-dark .form-control:focus,
.form-card-dark .form-select:focus{
  border-color: var(--bs-warning);
  box-shadow: 0 0 0 .25rem rgba(255,193,7,.18);
  background: #fff;
  color: #212529;
}

/* ===== Reviews: Navy background + white text ===== */
.reviews-panel{
  background: #0b1f3a;                 /* navy */
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}

/* Keep the “bubble” accents subtle on navy */
.reviews-panel::before,
.reviews-panel::after{
  background: rgba(255,255,255,.06);
}

/* Text */
.reviews-quote,
.reviews-name{
  color: rgba(255,255,255,.92);
}

/* Stars (keep warm yellow) */
.reviews-star{
  color: #f7c948;
}

/* Dots visible on navy */
.reviews-panel .carousel-indicators [data-bs-target]{
  background-color: rgba(255,255,255,.85);
  opacity: .55;
}
.reviews-panel .carousel-indicators .active{
  opacity: 1;
}

/* Arrows visible on navy */
.reviews-panel .carousel-control-prev-icon,
.reviews-panel .carousel-control-next-icon{
  filter: invert(1) grayscale(1); /* makes the default Bootstrap icon white */
}
/* ===== Why Choose Us (roof background + white cards) ===== */
.why-choose {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1.25rem;
  overflow: hidden; /* keeps rounded corners clean */
}

/* Navy overlay for readability */
.why-choose::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.72); /* navy tint */
}

/* Optional soft vignette */
.why-choose::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.why-choose .why-inner{
  position: relative; /* sits above overlays */
  padding: 3.25rem 1.25rem;
}

@media (min-width: 992px){
  .why-choose .why-inner{ padding: 4rem 2.5rem; }
}

.why-dots{
  display:flex;
  justify-content:center;
  gap:.55rem;
  margin:.75rem 0 1rem;
}
.why-dots span{
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(255,255,255,.85);
  opacity:.85;
}
.why-dots span:nth-child(1),
.why-dots span:nth-child(6){ opacity:.55; }

.why-lead{
  max-width: 900px;
  margin: 0 auto 2.25rem;
  color: rgba(255,255,255,.92);
  line-height: 1.7;
}

/* White reason cards */
.why-card{
  background: #fff;
  color: #111827;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 .85rem 2.25rem rgba(0,0,0,.18);
  height: 100%;
  text-align: center;
}

.why-icon{
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #b2cef1;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 1rem;
}

.why-icon svg{
  width: 30px;
  height: 30px;
  stroke: #0b1f3a;
}

.why-card h3{
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.why-foot{
  max-width: 980px;
  margin: 2.25rem auto 0;
  color: rgba(255,255,255,.92);
  line-height: 1.7;
}

