/* =========================
   MJ Cleaning Solutions — Website Styles
   Inspired by Shockey Builds structure (hero + blocks),
   using MJ Cleaning Solutions brand palette from the PDF.
   ========================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* Theme */
:root{
  --bg: #f6fbfd;
  --surface: #ffffff;
  --text: #0b0f14;
  --muted: rgba(11,15,20,.68);
  --line: rgba(11,15,20,.10);

  /* Brand (from PDF) */
  --brand: #2F5D7C;
  --brand2: #6E8FA6;
  --brandSoft: rgba(47,93,124,.10);

  --shadow: 0 18px 40px rgba(0,0,0,.10);
  --shadowSoft: 0 10px 24px rgba(0,0,0,.08);

  --radius: 18px;
  --radius2: 26px;

  --container: 1120px;
}

/* Base */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(47,93,124,.14), transparent 55%),
              radial-gradient(900px 500px at 100% 0%, rgba(110,143,166,.14), transparent 55%),
              var(--bg);
  line-height: 1.55;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 1rem; }
small{ color: var(--muted); }

.container{
  width: min(var(--container), calc(100% - 2.2rem));
  margin-inline: auto;
}

.section{
  padding: 4.2rem 0;
}
.section.tight{ padding: 2.6rem 0; }
.section-head{
  display: grid;
  gap: .6rem;
  margin-bottom: 1.6rem;
}
.kicker{
  color: var(--brand);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}
.h2{
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  letter-spacing: .01em;
  margin: 0;
}
.lede{
  color: var(--muted);
  max-width: 64ch;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246,251,253,.72);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: .8rem;
}
.brand-logo{
  width: 40px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.08));
}
.brand-name{
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links > a,
.dropdown-toggle{
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  padding: .5rem .55rem;
  border-radius: 12px;
  color: rgba(11,15,20,.82);
  font-weight: 500;
}
.nav-links > a:hover,
.dropdown-toggle:hover{
  background: var(--brandSoft);
  color: var(--text);
}

/* Dropdown */
.dropdown{
  position: relative;
}
.dropdown-menu{
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadowSoft);
  padding: .6rem;
  display: none;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  display: block;
}
.dropdown-menu a{
  display: block;
  padding: .6rem .7rem;
  border-radius: 12px;
  color: rgba(11,15,20,.82);
}
.dropdown-menu a:hover{
  background: var(--brandSoft);
  color: var(--text);
}


/* Top Banner (large strip above menu) */
.top-banner{
  background: linear-gradient(90deg, rgba(47,93,124,1), rgba(34,73,98,1));
  color: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.banner-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding: 1.15rem 0;
  flex-wrap:wrap;
}
.banner-left, .banner-right{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}
.banner-item a{ color: rgba(255,255,255,.96); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.banner-dot{ opacity:.7; }
.banner-loc{ opacity:.92; }
.banner-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.65rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color:#fff;
  font-weight:700;
  white-space:nowrap;
}
.banner-cta:hover{ background: rgba(255,255,255,.22); }
@media (max-width: 640px){
  .banner-grid{ padding: .95rem 0; }
  .banner-right{ width:100%; justify-content:space-between; }
}

/* Buttons */
.btn-row{ display: flex; gap: .8rem; flex-wrap: wrap; }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(47,93,124,.25);
  background: var(--surface);
  color: rgba(11,15,20,.92);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  background: linear-gradient(180deg, rgba(47,93,124,1), rgba(34,73,98,1));
  border-color: rgba(47,93,124,.55);
  color: white;
}
.btn.ghost{
  background: transparent;
  box-shadow: none;
}

/* Hero */
.hero{
  padding: 3.2rem 0 1.2rem;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.6rem;
  align-items: stretch;
}
.hero-card{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-copy{
  padding: 2.2rem 2.2rem 2rem;
}
.h1{
  font-family: "Playfair Display", serif;
  font-size: clamp(2.05rem, 3.1vw, 3rem);
  margin: 0 0 .55rem;
  line-height: 1.08;
}
.hero-sub{
  color: var(--muted);
  margin: 0 0 1.2rem;
  max-width: 62ch;
}
.hero-pills{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.pill{
  font-size: .86rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(47,93,124,.22);
  background: rgba(47,93,124,.06);
  color: rgba(11,15,20,.80);
}
.hero-media{
  position: relative;
  height: 100%;
  min-height: 360px;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(47,93,124,.08));
}

/* Grid cards */
.grid{
  display: grid;
  gap: 1rem;
}
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card{
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
  overflow: hidden;
}
.card.pad{ padding: 1.2rem; }
.card .title{
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 .3rem;
}
.card .meta{
  color: var(--muted);
  font-size: .95rem;
}
.card-media{
  aspect-ratio: 16/10;
  background: rgba(47,93,124,.08);
}
.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body{ padding: 1.1rem 1.2rem 1.15rem; }

/* Split block (Shockey-like) */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}
.panel{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadowSoft);
  overflow: hidden;
}
.panel.pad{ padding: 1.6rem; }
.panel img{ width: 100%; height: 100%; object-fit: cover; }

/* =========================
   Our Work — Project Carousel
   Fixed-size carousel panels, fitted images, clean dots.
   ========================= */

/* The panel defines the fixed size. The carousel fills it completely,
   so no white strip appears at the bottom. */
.panel:has(.carousel){
  aspect-ratio: 4 / 3;
  max-height: 420px;
  background: transparent;
  border: 0;
  padding: 0;
  overflow: hidden;
}

.carousel{
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: rgba(47,93,124,.08);
  overflow: hidden;
  line-height: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.carousel-track{
  width: 100%;
  height: 100%;
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.carousel-slide{
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  line-height: 0;
}

.carousel-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
}

.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.30);
  color: rgba(11,15,20,.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 22px rgba(0,0,0,.12);
  z-index: 5;
}

.carousel-btn:hover{ background: rgba(255,255,255,.44); }
.carousel-btn:focus-visible{ outline: 3px solid rgba(47,93,124,.30); outline-offset: 2px; }

.carousel-btn.prev{ left: 12px; }
.carousel-btn.next{ right: 12px; }

/* Dots without the white pill/base underneath */
.carousel-dots{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 6;
  line-height: 1;
}

.carousel-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.80);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.carousel-dot[aria-current="true"]{
  width: 22px;
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.96);
}

.carousel[data-count="1"] .carousel-btn,
.carousel[data-count="1"] .carousel-dots{ display: none; }

@media (max-width: 900px){
  .panel:has(.carousel){
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px){
  .carousel-btn{ width: 40px; height: 40px; }
  .carousel-dots{ bottom: 10px; }
}

/* Lists */
.clean-list{
  margin: .6rem 0 0;
  padding-left: 1.1rem;
  color: rgba(11,15,20,.84);
}
.clean-list li{ margin: .35rem 0; }

/* Contact blocks */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.2rem;
  align-items: start;
}
.form{
  display: grid;
  gap: .9rem;
}
.input{
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.90);
  border-radius: 14px;
  padding: .95rem 1rem;
  font: inherit;
}
textarea.input{ min-height: 140px; resize: vertical; }
.note{
  font-size: .92rem;
  color: var(--muted);
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 2.1rem 0;
  color: rgba(11,15,20,.80);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: start;
}
.footer-links{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a{
  padding: .35rem .55rem;
  border-radius: 12px;
}
.footer-links a:hover{ background: var(--brandSoft); }

/* Utility */
.hr{
  height: 1px;
  background: var(--line);
  margin: 1.2rem 0;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(47,93,124,.22);
  background: rgba(255,255,255,.78);
  font-weight: 600;
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ min-height: 280px; }
  .split{ grid-template-columns: 1fr; }
  .grid.cols-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-links{ justify-content: flex-start; }
}
@media (max-width: 640px){
  .grid.cols-3, .grid.cols-2{ grid-template-columns: 1fr; }
  .hero-copy{ padding: 1.6rem; }
}


/* =========================
   HERO SLIDER (Image Banner)
   ========================= */
.hero-slider{
  position: relative;
  height: 84vh;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-slider__track{
  position: absolute;
  inset: 0;
  display: flex;
  width: 300%; /* 3 slides */
  transform: translateX(0%);
  transition: transform 900ms ease-in-out;
}
.hero-slide{
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.20) 55%, rgba(0,0,0,.35));
  z-index: 1;
}
.hero-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  color: #fff;
  max-width: 680px;
}
.hero-title{
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: .4rem 0 .6rem;
  text-shadow: 0 12px 26px rgba(0,0,0,.25);
}
.hero-subtitle{
  font-size: 1.1rem;
  opacity: .92;
  margin: 0 0 1.2rem;
  max-width: 52ch;
}
.hero-dots{
  display: flex;
  gap: .45rem;
  margin-top: 1.2rem;
}
.hero-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.35);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.hero-dot.is-active{
  background: rgba(255,255,255,.92);
  transform: scale(1.15);
}
.hero-arrow{
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-arrow:hover{ background: rgba(255,255,255,.20); }
.hero-arrow--left{ left: 1rem; }
.hero-arrow--right{ right: 1rem; }
@media (max-width: 640px){
  .hero-slider{ min-height: 480px; }
  .hero-arrow{ display: none; }
}

/* =========================
   Mobile Nav (Hamburger)
   ========================= */

/* Make the nav a positioning context for the dropdown panel */
.nav{ position: relative; }

.menu-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span{
  display: block;
  width: 22px;
  height: 2.5px;
  background: rgba(47,93,124,1);
  border-radius: 999px;
}

@media (max-width: 768px){
  /* Show only logo + hamburger */
  .menu-toggle{ order: 0; }
  .brand{ order: 1; }
  .nav{ justify-content: flex-start; }
  .brand{ margin: 0 auto; }
  .menu-toggle{ display: inline-flex; }

  /* Hide nav links until hamburger opens */
  .nav-links{
    display: none;
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadowSoft);
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .nav-links.active{ display: flex; }

  /* Make each link feel like a tappable row */
  .nav-links > a,
  .dropdown-toggle{
    width: 100%;
    text-align: left;
    padding: .75rem .85rem;
    border-radius: 14px;
  }

  /* Dropdown menus should flow (not absolute) on mobile */
  .dropdown-menu{
    position: static;
    min-width: 0;
    margin: .1rem 0 .35rem;
    padding: .35rem 0 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: none;
  }
  .dropdown.is-open .dropdown-menu{ display: block; }

  .dropdown-menu a{
    padding: .6rem .85rem;
    border-radius: 14px;
  }
}



/* =========================
   Image sizing tweaks (Services/Markets/Our Work)
   Goal: keep images as neat rectangles, not full-screen/tall blocks.
   ========================= */

/* Don't force hero image to stretch too tall */
.hero-grid{ align-items: start; }
.hero-media{
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: 420px;
}
.hero-media img{ height: 100%; }

/* Split sections: keep image panels as a fixed rectangle */
.split{ align-items: start; }
.split .panel:not(.pad){
  aspect-ratio: 4 / 3;
  max-height: 420px;
}
.split .panel:not(.pad) img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* On small screens, keep a comfortable height */
@media (max-width: 900px){
  .hero-media,
  .split .panel:not(.pad){
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }
}
