/* ===== Base Styles ===== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

html {
  scroll-behavior: smooth;
}


h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}


/* Logo & header layout */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 50px; /* Adjust to match header text */
  width: auto;
}

header {
  background-color: #000;
  padding: 10px 20px;
  color: #e10600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav a {
  color: #e10600;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: white;
}

/* Mobile layout */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  .logo-container {
    justify-content: center;
    margin-bottom: 10px;
  }
}
 

.services-modern h2,
.mission-text h2,
.service-detail-text h2,
.why-choose-us h2,
.reviews-section h2 {
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #e10600;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 40px;
}

/* Unique title font for logo and hero */
h1,
.hero-content h2,
nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
  letter-spacing: 2px;
  font-size: 1rem;
}

/* Optional: bigger hero headline */
.hero-content h2 {
  font-size: 4.6rem;
}

/* Body text stays clean and readable */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}


header {
  background-color: #000;
  padding: 20px;
  text-align: center;
  color: #e10600;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav a {
  color: #e10600;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: white;
}

/* ===== Hero Section ===== */
.hero {
  background-image: url('hero.png');
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 4.6rem;
  margin-bottom: 10px;
  color: #e10600;
  text-shadow: 2px 2px 4px black;
}

.cta-button {
  display: inline-block;
  background-color: #e10600;
  color: white;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  margin: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button.secondary {
  background-color: #333;
  color: #f0f0f0;
  border: 1px solid #e10600;
}

.cta-button:hover {
  background-color: #ff2c1f;
  transform: scale(1.05);
}

.cta-button-group {
  text-align: left;
  margin-top: 30px;
}

/* ===== Modern Services Section ===== */
.services-modern {
  background-color: #111;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.services-modern h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card-modern {
  position: relative;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.service-card-modern:hover {
  transform: scale(1.02);
}

.service-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  padding: 20px;
}

.service-card-modern h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card-modern p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ddd;
}



/* ===== Footer ===== */
footer {
  background-color: #000;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #888;
}

/* ===== Detailed Service Sections ===== */
.service-detail {
  background-color: #0a0a0a;
  padding: 80px 20px;
}

.service-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.service-detail-container img {
  flex: 1 1 500px;
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  object-fit: cover;
}

.service-detail-text {
  flex: 1 1 500px;
  color: #eee;
}

.service-detail-text h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 20px;
}

.service-detail-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 20px;
}

.service-detail-text ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #bbb;
  margin-bottom: 20px;
}

.service-detail-text ul li {
  margin-bottom: 8px;
}

/* ===== Our Mission Section ===== */
.mission-section {
  background-color: #0d0d0d;
  padding: 60px 20px;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
}

.mission-container {
  display: flex;
  max-width: 1200px;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.mission-text {
  flex: 1 1 500px;
}

.mission-text h2 {
  font-size: 2.5rem;
  color: #e10600;
  margin-bottom: 20px;
}

.mission-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ccc;
}

.mission-image {
  flex: 1 1 400px;
  text-align: center;
}

.mission-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* ===== Responsive Fix for Side-by-Side ===== */
@media (min-width: 768px) {
  .service-detail-container {
    flex-wrap: nowrap;
  }
  .service-detail-container.reverse {
    flex-direction: row-reverse;
  }
}

/* ===== Why Choose Us Section ===== */
.why-choose-us {
  background-color: #111;
  padding: 60px 20px;
  text-align: center;
  color: #f0f0f0;
}

.why-choose-us h2 {
  font-size: 2.5rem;
  color: #e10600;
  margin-bottom: 20px;
}

.why-choose-us p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ccc;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}


.why-item {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3);
}



.why-item h4 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.why-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 15px;
}

/* Fade-in & slide-up animation for Why Choose Us */
.why-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.why-item.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.fade-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-visible {
  opacity: 1;
  transform: translateY(0);
}



/* ===== Reviews Section ===== */

.fade-review {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-review.visible {
  opacity: 1;
  transform: translateY(0);
}

.reviews-section {
  background-color: #0d0d0d;
  padding: 60px 20px;
  color: #f0f0f0;
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.5rem;
  color: #e10600;
  margin-bottom: 40px;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card .stars {
  font-size: 1.2rem;
  color: gold;
  margin-bottom: 10px;
}

.review-card p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.review-card .reviewer {
  font-size: 0.95rem;
  color: #888;
  font-style: italic;
}

.fade-in-text {
  font-size: 2.5rem;
  font-weight: bold;
  color: #e10600;
  text-shadow: 2px 2px 4px black;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-subtext {
  font-size: 1.1rem;
  color: #f0f0f0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 1s;
}

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* dim layer for text readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.service-card-modern {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3);
}

.site-footer {
  background-color: #0a0a0a;
  color: #ccc;
  padding: 60px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-container > div {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-about h2,
.footer-links h3,
.footer-contact h3 {
  color: #e10600;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #e10600;
}

.footer-map iframe {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
}

.footer-social img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(19%) sepia(97%) saturate(3363%) hue-rotate(356deg) brightness(103%) contrast(119%);
  
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #777;
}

.appointment-section {
  background-color: #111;
  color: #eee;
  padding: 80px 20px;
  text-align: center;
}

.appointment-container {
  max-width: 800px;
  margin: 0 auto;
}

.appointment-text h2 {
  font-size: 2.5rem;
  color: #e10600;
  margin-bottom: 10px;
}

.appointment-text p {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.appointment-form input,
.appointment-form textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #1e1e1e;
  color: #f0f0f0;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  outline: 2px solid #e10600;
}

.appointment-call {
  margin-top: 20px;
  color: #aaa;
  font-size: 0.95rem;
}

.appointment-call a {
  color: #e10600;
  text-decoration: none;
}

.appointment-call a:hover {
  text-decoration: underline;
}


.appointment-form .cta-button {
  align-self: center;
  margin-top: 10px;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  background-color: #e10600;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.appointment-form .cta-button:hover {
  background-color: #ff2c1f;
  transform: scale(1.05);
}

#formStatus.form-status {
  margin-top: 12px;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 6px;
  display: inline-block;
}
#formStatus.success {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}
#formStatus.error {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}


.cta-button {
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

.cta-button:hover {
  background-color: #ff2c1f;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 44, 31, 0.7);
}

/* Animation Base */
.slide-in-left, .slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left {
  transform: translateX(-100px);
}

.slide-in-right {
  transform: translateX(100px);
}

.slide-in-visible {
  opacity: 1;
  transform: translateX(0);
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 50px;
  width: auto;
}


/* --- Mobile polish --- */
* { -webkit-tap-highlight-color: transparent; }
a, button { min-height: 44px; }            /* thumb-friendly */
img, video { max-width: 100%; height: auto; }

/* Header/nav: nicer wrap + spacing on small screens */

nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
nav a { padding: 8px 10px; border-radius: 6px; }
@media (max-width: 768px){
  header { padding: 12px 14px; }
  header h1 { font-size: 1.4rem; }
}

/* Hero: reduce height & headline size on phones */
@media (max-width: 768px){
  .hero { height: 58vh; }
  .hero-content { padding: 10px 12px; }
  .hero-content h2 { font-size: 2.2rem; }
  .fade-in-subtext { font-size: 1rem; }
}

/* Popular services cards: shorter on phones */
@media (max-width: 768px){
  .service-card-modern { height: 240px; }
}

/* Service detail sections: tighter spacing on phones */
@media (max-width: 768px){
  .service-detail { padding: 56px 16px; }
  .service-detail-container { gap: 22px; }
  .service-detail-text h2 { font-size: 1.6rem; }
  .service-detail-text p { font-size: 1rem; }
}

/* Why Choose Us grid: 3 → 2 → 1 cols */
@media (max-width: 900px){
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .why-grid { grid-template-columns: 1fr; }
}

/* Reviews: card breathing room on phones */
@media (max-width: 768px){
  .reviews-section { padding: 48px 16px; }
  .review-card { padding: 18px; }
}

/* Appointment form: comfy controls */
@media (max-width: 768px){
  .appointment-section { padding: 56px 16px; }
  .appointment-form input,
  .appointment-form textarea { font-size: 16px; } /* prevents iOS zoom */
  .appointment-form .cta-button { width: 100%; }
}

/* Footer: stack cleanly on phones */
@media (max-width: 768px){
  .footer-container { gap: 18px; }
  .footer-container > div { flex: 1 1 100%; }
}

/* --- WhatsApp floating button (optional) --- */
.whatsapp-fab{
  position: fixed; right: 16px; bottom: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  text-decoration: none;
}
.whatsapp-fab span{ font-size: 13px; letter-spacing: .3px; }
.whatsapp-fab:hover{ transform: translateY(-2px); }
@media (min-width: 769px){
  /* show it on desktop too; change to 'display:none' if you want mobile-only */
  .whatsapp-fab{ right: 24px; bottom: 24px; }
}

/* Mobile: always show image first in service sections */
@media (max-width: 768px){
  .service-detail-container{ display:flex; flex-direction: column; }
  /* handle both reverse patterns */
  .service-detail-container.reverse,
  .service-detail.reverse .service-detail-container{ flex-direction: column; }

  .service-detail-container.reverse img,
  .service-detail.reverse .service-detail-container img{ order: 1; }
  .service-detail-container.reverse .service-detail-text,
  .service-detail.reverse .service-detail-container .service-detail-text{ order: 2; }
}

/* === Global guard (no sideways scroll on phones) === */
@media (max-width: 768px){
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
}

/* === Mobile: hero video should never stick out === */
@media (max-width: 768px){
  .hero{
    padding: 0 !important;          /* ignore old padded hero on mobile */
    background: none !important;     /* ignore background image version */
    width: 100%;
    max-width: 100%;
    overflow: hidden;                /* clip any sub-pixel spill */
  }
  .hero::before{ content: none !important; }  /* we already have .hero-overlay */

  .hero-video{
    position: absolute;
    top: 0; left: -1px;              /* iOS rounding guard */
    width: calc(100% + 2px);
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* === Mobile: nav links shouldn't push width (margin + gap issue) === */
@media (max-width: 768px){
  nav { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
  nav a { margin: 0; }               /* remove base 0 15px margin on phones */
}

/* === Mobile: animations start closer so they don’t extend off-screen === */
@media (max-width: 768px){
  .slide-in-left  { transform: translateX(-40px); }  /* was -100px */
  .slide-in-right { transform: translateX( 40px); }  /* was  100px */
}


/* --- Mobile-only fixes (won't affect desktop) --- */
@media (max-width: 768px){

  /* stop any sideways scroll */
  html, body { overflow-x: hidden; }

  /* hero: clamp video so it can't stick out on iOS */
  .hero{
    position: relative;
    width: 100%;
    margin: 0; padding: 0;
    overflow: hidden;
    background: none;
  }
  .hero::before{ content: none; }          /* ignore old bg overlay on mobile */
  .hero-video{
    position: absolute; top: 0; left: -1px;
    width: calc(100% + 2px); height: 100%;
    object-fit: cover; display: block; transform: translateZ(0);
  }
  .hero-overlay{ position: absolute; inset: 0; }

  /* nav: remove margins that, combined with gap, caused tiny overflow */
  nav a { margin: 0; }

  /* sections: clip slide-in overshoot */
  .mission-section, .service-detail, .why-choose-us,
  .reviews-section, .appointment-section { overflow-x: hidden; }

  /* service rows: image first on mobile only */
  .service-detail-container{ flex-direction: column; }
  .service-detail-container.reverse,
  .service-detail.reverse .service-detail-container{ flex-direction: column; }
}


/* === MOBILE-ONLY: kill horizontal overflow everywhere (keeps desktop untouched) === */
@media (max-width: 768px){

  /* global guards */
  html, body { overflow-x: hidden; }
  *, *::before, *::after { box-sizing: border-box; }

  /* hero already fixed; keep it clamped */
  .hero { overflow: hidden; }
  .hero-video { left: -1px; width: calc(100% + 2px); }

  /* nav: margins were adding to gap */
  header nav a { margin-left: 0 !important; margin-right: 0 !important; }

  /* sections: prevent slide-in overshoot from creating scroll */
  .mission-section, .service-detail, .why-choose-us, .reviews-section, .appointment-section, .site-footer { overflow-x: hidden; }

  /* containers: hard max to viewport width */
  .mission-container,
  .service-detail-container,
  .why-grid,
  .review-grid,
  .appointment-container,
  .footer-container {
    width: 100%;
    max-width: 100vw;
  }

  /* images/iframes can’t stick out */
  img, video, iframe { max-width: 100%; height: auto; display: block; }
  .footer-map iframe { width: 100% !important; }

  /* services: image before text on phones */
  .service-detail-container { flex-direction: column; }
  .service-detail-container.reverse,
  .service-detail.reverse .service-detail-container { flex-direction: column; }
}


/* === MOBILE: kill remaining sideways scroll in service/mission === */
@media (max-width: 768px){

  /* 1) No horizontal scroll on the page */
  html, body { overflow-x: hidden; }

  /* 2) Clip the sections that have slide-in children */
  .mission-section,
  .service-detail { overflow: hidden; }

  /* 3) Force image-first layout on phones (keeps desktop as-is) */
  .service-detail-container{ flex-direction: column !important; }
  .service-detail-container.reverse,
  .service-detail.reverse .service-detail-container{ flex-direction: column !important; }

  /* 4) iOS rounding fix: slightly overfill images so they can't push the width */
  .service-detail-container img,
  .mission-image img{
    display: block;
    max-width: none;
    width: calc(100% + 2px);   /* overfill by 2px */
    margin-left: -1px;         /* shift left so right edge never sticks out */
    height: auto;
  }

  /* 5) Make sure text blocks never exceed container width */
  .service-detail-text,
  .mission-text{
    width: 100%;
    max-width: 100%;
  }

  /* 6) Extra safety: containers never exceed viewport */
  .mission-container,
  .service-detail-container{
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
}


/* === MOBILE: center service/mission images & remove sideways drift === */
@media (max-width: 768px){

  /* keep everything within the viewport */
  .mission-section, .service-detail { overflow-x: hidden; }
  .mission-container, .service-detail-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 16px;           /* even side padding */
  }

  /* stack image then text (you already wanted this) */
  .service-detail-container { flex-direction: column !important; }
  .service-detail-container.reverse,
  .service-detail.reverse .service-detail-container { flex-direction: column !important; }

  /* FULL-WIDTH, CENTERED images (override earlier left-shift hacks) */
  .mission-image img,
  .service-detail-container img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin: 12px auto 0 !important;  /* centered */
    object-fit: cover;
  }
}


/* === MOBILE FIX PACK — no desktop changes === */
@media (max-width: 768px){

  /* 1) Stop slide-in transforms from pushing the page wider on phones */
  .slide-in-left,
  .slide-in-right { transform: none !important; }

  /* 2) Clamp sections and keep them centered */
  .mission-section,
  .service-detail { overflow-x: hidden; }

  .mission-container,
  .service-detail-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 16px; /* even side padding */
  }

  /* 3) Make service/mission images FULL WIDTH and centered */
  .mission-image img,
  .service-detail-container img {
    flex: 0 0 auto !important;     /* remove 500px flex-basis */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 12px auto 0 !important; /* centered */
    display: block;
    object-fit: cover;
  }
}


/* mobile-only helper label for datetime input */
@media (max-width: 768px){
  .mobile-label{
    display:block;
    font-size:0.9rem;
    color:#9a9a9a;
    margin: 2px 2px 6px;
  }
}
@media (min-width: 769px){
  .mobile-label{ display:none; }
}


@media (max-width: 768px){
  .dt-wrapper{ position:relative; }
  .dt-wrapper .dt-placeholder{
    position:absolute;
    left:14px; right:12px; top:50%;
    transform:translateY(-50%);
    color:#9a9a9a;
    pointer-events:none;        /* taps hit the input */
    opacity:.9; transition:opacity .2s;
    font-size:0.95rem;
  }
  .dt-wrapper.has-value .dt-placeholder,
  .dt-wrapper.is-focus .dt-placeholder{ opacity:0; }
}
@media (min-width: 769px){
  .dt-wrapper .dt-placeholder{ display:none; }
}

/* Form controls: full-width, consistent sizing */
.appointment-form input,
.appointment-form textarea { 
  width: 100%;
  display: block;
}

/* Make the datetime wrapper stretch like the others */
.appointment-form .dt-wrapper { width: 100%; }

/* Safari/iOS: ensure datetime looks like other fields */
.appointment-form input[type="datetime-local"]{
  -webkit-appearance: none;
  padding: 12px;             /* matches your inputs */
  height: 44px;              /* comfortable tap target */
  border-radius: 6px;
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: none;
}

/* Mobile-only faux placeholder alignment */
@media (max-width: 768px){
  .dt-wrapper{ position: relative; }
  .dt-wrapper .dt-placeholder{
    position: absolute;
    left: 16px;               /* align with input padding */
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    pointer-events: none;
    opacity: .9;
    transition: opacity .2s;
    font-size: 0.95rem;
  }
  .dt-wrapper.has-value .dt-placeholder,
  .dt-wrapper.is-focus .dt-placeholder{ opacity: 0; }
}

/* Date/time placeholder: left-align like other fields (mobile only) */
@media (max-width: 768px){
  .dt-wrapper .dt-placeholder{
    text-align: left;
    right: auto;            /* don't stretch full width */
  }
}


/* Hide the faux placeholder once the datetime has a value (or on focus) */
@media (max-width: 768px){
  .dt-wrapper input:focus + .dt-placeholder,
  .dt-wrapper input:valid + .dt-placeholder {
    opacity: 0;
  }
}


/* Back to Top — mobile only */
@media (max-width: 768px){
  .to-top{
    position: fixed;
    right: 16px;
    bottom: 16px;               /* if you add WhatsApp later, change to 84px to avoid overlap */
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: #e10600;
    color: #fff;
    font-size: 20px;
    line-height: 48px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
    cursor: pointer;
    z-index: 999;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .to-top.show{
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}

/* Hide by default */
.to-top { display: none !important; }

/* Mobile-only show + animation */
@media (max-width: 768px){
  .to-top{
    display: flex !important;
    align-items: center; justify-content: center;
    position: fixed; right: 16px; bottom: 16px;
    width: 48px; height: 48px; border-radius: 50%;
    border: none; background: #e10600; color: #fff;
    font-size: 20px; line-height: 1; z-index: 9999;
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .to-top.show{
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}


/* Desktop-only: stop hero from sticking out to the right */
@media (min-width: 769px){
  .hero{
    width: 100%;
    max-width: 100%;      /* avoid 100vw overflow with scrollbar */
    padding: 0;           /* the video version shouldn't have side padding */
    overflow: hidden;     /* clip any sub-pixel spill */
  }
  .hero-video{
    position: absolute;
    inset: 0;
    left: 0;              /* undo the mobile left:-1px */
    width: 100%;          /* undo calc(100% + 2px) */
    height: 100%;
    object-fit: cover;
  }
}


/* Desktop: larger hero, edge-to-edge, no horizontal scroll */
@media (min-width: 769px){
  .hero{
    height: 90vh;            /* adjust: 72–85vh to taste */
    overflow: hidden;        /* clip any spill so no side scroll */
  }
  .hero-video{
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;            /* drive size by height */
    width: auto;             /* let aspect ratio decide width */
    min-width: 100%;         /* always cover full viewport width */
    transform: translateX(-50%);  /* center the video */
    object-fit: cover;
  }
}


/* Desktop: restore normal height for CTA links */
@media (min-width: 769px){
  .cta-button { min-height: 0 !important; padding: 12px 24px; }
}

/* Mobile: keep big tap targets, but only on phones */
@media (max-width: 768px){
  a, button { min-height: 44px; }                 /* mobile only */
  .service-detail .cta-button { width: auto; }    /* keep Call Now not full-width */
  .appointment-form .cta-button { width: 100%; }  /* booking stays full-width */
}





