/* Brand-styled Get a Quote button for service cards */
.service-quote-btn {
  display: block;
  width: 80%;
  margin: 18px auto 0 auto;
  padding: 12px 0;
  background: #007acc;
  color: #fff;
  font-size: 1.08em;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
}
.btn {
  display: block;
  background: #007acc;
  color: #fff;
  padding: 14px 32px;
  font-size: 1.2em;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
  margin: 32px auto 0 auto;
  width: max-content;
}
.btn:hover {
  background: #fff !important;
  color: #007acc !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  border: 3px solid #007acc;
  outline: none;
  text-shadow: none;
}

.nav-title {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}
/* style.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: #007acc; color: #fff; }
header .container { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
header a { color: inherit; text-decoration: none; }
nav ul { list-style: none; display: flex; }
nav li + li { margin-left: 20px; }

/* Responsive Nav */
@media (max-width: 700px) {
  header .container { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .nav-logo-title { margin-bottom: 10px; }
  nav ul { flex-direction: column; width: 100%; padding: 0; }
  nav li { margin: 0 0 10px 0; }
  nav li + li { margin-left: 0; }
  nav a, .nav-quote-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: left;
    border-radius: 4px;
  }
  .nav-quote-btn {
    margin-top: 8px;
  }
}

/* Hero */
.hero { 
  background: #f4f4f4; 
  text-align: center; 
  padding: 60px 0; 
  position: relative;
  background-image: url('images/gallery1.jpg'); /* Change to your preferred image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* dark overlay */
  z-index: 0;
}
.hero h1 { margin-bottom: 10px; font-size: 3rem; }
.hero p { 
  margin-bottom: 20px; 
  font-size: 1.5rem; /* Increased font size for better visibility */ 
}
.btn { display: inline-block; background: #007acc; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 4px; }
/* Ensure hero text is white */
.hero h1,
.hero p,
.hero .btn {
  color: #fff;
}

/* Make hero button bigger and add white hover effect */
.hero .btn {
  font-size: 1.25rem;
  padding: 16px 36px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.hero .btn:hover {
  background: #fff;
  color: #007acc !important;
}

/* Sections */
.section { padding: 40px 0; }
h2 { margin-bottom: 20px; }

/* Services & Process */
.service-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-item { background: #fff; border: 1px solid #ddd; padding: 20px; text-align: center; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.gallery-grid img { width: 100%; height: auto; }

/* Forms */
form label { display: block; margin-bottom: 5px; font-weight: bold; }
form input, form select, form textarea { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; }
/* Improved radio button alignment */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  margin-bottom: 20px;
  padding: 0.7em 0 0.7em 0.2em;
  border: none;
}
.radio-group label {
  display: flex;
  align-items: center;
  font-weight: 400;
  margin: 0;
  font-size: 1em;
  padding-left: 0.2em;
  line-height: 1.2;
  min-height: 2.2em;
}
.radio-group input[type="radio"] {
  margin-right: 0.8em;
  accent-color: #007acc;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  position: relative;
  top: 0.75em;
}
.radio-group legend {
  font-size: 1.05em;
  font-weight: 500;
  margin-bottom: 0.5em;
  padding-left: 0.1em;
}
.checkbox-group label, .radio-group label { font-weight: normal; margin-right: 15px; }
button[type="submit"] { background: #007acc; color: #fff; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; }
button[type="submit"]:hover { background: #005fa3; }
#formStatus { margin-bottom: 20px; font-weight: bold; }

/* Footer */
.footer { background: #007acc; color: #fff; padding: 20px 0; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer h3 { margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 5px; }
.footer a { color: #fff; text-decoration: none; }
.footer-copy { text-align: center; padding: 10px 0; color: #ccc; }

@media (max-width: 700px) {
  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer h3 {
    font-size: 1.1rem;
  }
  .footer ul, .footer p {
    font-size: 1rem;
  }
}

/* ANIMATION BASE STATE */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* VISIBLE STATE */
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
/*.portfolio-wrapper { position: relative; overflow: hidden; }
.portfolio-wrapper img { transition: transform 0.5s; }
.overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 122, 204, 0.7); opacity: 0; transition: opacity 0.5s; }
.portfolio-wrapper:hover .overlay { opacity: 1; }
.fadeInOverlay { animation: fadeInUp 1s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.portfolio-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 620px;
  max-height: 600px;
  margin: 0 auto;
}
.portfolio-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1);
}*/

/* Section */
.services { padding: 60px 0; }
.services-title { margin: 0 0 24px; font-size: 2rem; font-weight: 800; }

/* Make How It Works heading bigger and bolder */
.section.process h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Make Our Work in Action heading bigger and bolder */
.section.gallery h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.service-card {
  grid-column: span 12;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.service-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.service-card p { margin: 0; color: #444; }

/* Image cards */
.service-card.with-image { padding: 0; overflow: hidden; }
.service-card .media { position: relative; }
.service-card .media img {
  width: 100%;
  aspect-ratio: 4 / 3;           /* consistent tile shape */
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,2,.6,1);
}

/* Overlay */
.overlay { 
  position: absolute; inset: 0;
  background: rgba(0, 122, 204, 0.72); /* #007acc with alpha */
  opacity: 0; 
  transition: opacity .45s ease;
}
.overlay-main {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 20px;
}
.overlay-main h3 { margin: 0 0 6px; font-size: 1.25rem; }
.overlay-main p { margin: 0; opacity: .95; }
.service-card.with-image:hover .overlay { opacity: 1; }
.service-card.with-image:hover img { transform: scale(1.05); }

/* Accent (brand color) */
.services-title,
.service-card h3 { color: #0a2233; }
.service-card:hover h3 { color: #007acc; }

/* Responsive */
@media (min-width: 640px) {
  .service-card { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .service-card { grid-column: span 4; }
}



/* Flip container */
.flip-card {
  perspective: 1000px; 
  position: relative;
}

/* Front image */
.flip-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.8s;
  backface-visibility: hidden;
}

/* Back overlay */
/*.flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 204, 0.85);
  color: #fff;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  transition: transform 0.8s;
}*/

/* Overlay text */
.overlay-main {
  text-align: center;
  padding: 20px;
}
.overlay-main h3 { margin: 0 0 8px; font-size: 1.25rem; }
.overlay-main p { margin: 0; opacity: .95; }

/* Flip on hover */
.flip-card:hover img {
  transform: rotateY(180deg);
}
.flip-card:hover .flip-card-back {
  transform: rotateY(0deg);
}
/* Back overlay (brand blue, centered text) */
.face-back.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 204, 0.85);
  color: #fff;                 /* default text color */
  padding: 20px;
  text-align: center;
}

/* Ensure headings & paragraphs are white with shadow */
.face-back.overlay h3,
.face-back.overlay p {
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* subtle glow */
}
/* Overlay text always white */
.face-back.overlay h3,
.face-back.overlay p {
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Explicitly keep text white when hovered */
.flip-card:hover .face-back.overlay h3,
.flip-card:hover .face-back.overlay p {
  color: #fff !important;
}

a:hover,
button:hover,
.service-card:hover h3,
.service-card:hover p {
  color: #fff !important;
}
.indented {
  text-indent: 1.5em;
}
.align-right {
  margin-left: 10em;
}

:root { --brand: #007acc; }

.service-items {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.service-item {
  position: relative;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 8px;
  padding: 56px 24px 24px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.step-number {
  position: absolute;
  top: -28px;
  left: 16px;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: var(--brand);
}

.service-item h3 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.25rem;
}

.service-item p {
  margin: 0;
  line-height: 1.5;
  color: #222;
}

/* Responsive */
@media (max-width: 900px) {
  .service-items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .service-items { grid-template-columns: 1fr; }
  .step-number { top: -22px; font-size: 64px; }
}



/* Step numbers animation */
.step-number {
  position: absolute;
  top: -28px;
  left: 16px;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: var(--brand);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Triggered when .animate becomes visible */
.animate.visible .step-number {
  opacity: 1;
  transform: translateY(0);
}

:root { --brand:#007acc; --ink:#0a2233; --muted:#666; --bg:#fff; }

/* --- Commercial multi-select dropdown (NO CHECKBOXES) --- */
.multi-select {
  position: relative;
  display: inline-block;
  width: 100%;
}

.multi-select-trigger {
  width: 100%;
  text-align: left;
  border: 1.5px solid #d9e3ea;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
}

/* caret */
.multi-select-trigger::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #6b7a86;
}
.multi-select.open .multi-select-trigger::after {
  border-top: 0;
  border-bottom: 7px solid #6b7a86;
}

/* keyboard focus */
.multi-select-trigger:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,122,204,.15);
}

/* menu */
.multi-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e6eef4;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  max-height: 240px;
  overflow: auto;
  display: none;
  z-index: 1000;
}
.multi-select.open .multi-select-options { display: block; }

/* option buttons (no checkboxes) */
.ms-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
}
.ms-option:hover { background: #f5faff; }
.ms-option:focus { outline: none; background: #eef7ff; }

/* selected state */
.ms-option.selected { color: var(--brand); font-weight: 600; }
.ms-option.selected::after { content: "✓"; margin-left: auto; }

/* make the field span full grid width */
@media (min-width: 720px) {
  label[for="comPackage"],
  #comPackageWrapper,
  #comPackage { grid-column: 1 / -1; }
}
.hp {
  display: none;
}

/* About section image/text side-by-side */
.about-flex {
  display: flex;
  align-items: center;
  gap: 32px;
}
.about-img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.about-text {
  flex: 1;
}

/* Make About section heading bigger and bolder */
.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Navbar Get a Quote button hover effect */
.nav-quote-btn {
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  background: #007acc;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
.nav-quote-btn:hover {
  background: #005fa3;
  color: #fff !important;
}
@media (max-width: 700px) {
  .nav-quote-btn {
    width: 100%;
    display: block;
    margin: 12px 0 0 0;
    font-size: 1.15em;
    text-align: center;
    padding: 14px 0;
    border-radius: 6px;
    background: #007acc;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
}

/* Navbar link hover: black text */
nav a:hover {
  color: #000 !important;
}

/* Highlight Home link on index page */
nav a.active {
  color: #000 !important;
  font-weight: 700;
}

/* Gallery section background and button */
.gallery-bg {
  background-image: none;
}
.gallery-bg::before {
  display: none;
}
.gallery-bg > * {
  position: relative;
  z-index: 1;
}
.gallery-btn {
  display: inline-block;
  background: #007acc;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  margin-bottom: 32px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.gallery-btn:hover {
  background: #005fa3;
  color: #fff;
}

/* Add spacing between gallery heading, button, and grid */
.gallery-bg h2 {
  margin-bottom: 24px;
}
.gallery-btn {
  margin-bottom: 32px;
  margin-top: 0;
}
.gallery-grid {
  margin-top: 8px;
}

/* Restore gallery section spacing and rounded corners */
.section.gallery {
  padding: 40px 0;
}
.gallery-bg {
  border-radius: 12px;
  min-height: unset;
  padding: 48px 0;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.gallery-bg::before {
  border-radius: 12px;
}
.gallery-grid {
  margin-top: 8px;
  padding-bottom: 0;
}
/* Keep the site chrome above page content */
header { position: relative; z-index: 3000; }
.hero   { position: relative; z-index: 0; }
/* =========================
   Mobile nav: right off-canvas (no overlay)
   ========================= */
@media (max-width: 700px) {
  /* Fixed toggle in the top-right */
  .nav-toggle {
    display: grid;
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    width: 44px; height: 44px;
    border: 0; background: none; color: #fff;
    place-items: center;
    cursor: pointer;
    z-index: 2002; /* on top */
    -webkit-tap-highlight-color: transparent;
  }

  /* Off-canvas panel from RIGHT (above page content) */
  nav#mainNav {
    position: fixed;
    top: calc(max(16px, env(safe-area-inset-top)) + 44px); /* sits under the toggle */
    right: max(12px, env(safe-area-inset-right));
    width: min(82vw, 360px);
    background: #007acc;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);

    transform: translateX(120%);   /* hidden offscreen */
    opacity: 0;
    pointer-events: none;          /* not clickable when closed */
    transition: transform .32s ease, opacity .32s ease;
    z-index: 3001;                 /* below toggle, above page */
        /* ✅ Add these three lines */
    max-height: calc(100dvh - (max(16px, env(safe-area-inset-top)) + 44px + 12px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav#mainNav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;          /* clickable when open */
  }

  /* Right-aligned vertical links */
  nav#mainNav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px 18px;
    align-items: flex-end;
    position: relative;            /* improves tap reliability on iOS */
    z-index: 1;
  }
  nav#mainNav li { margin: 0; }
  nav#mainNav a {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 1.15em;
    padding: 10px 6px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
  }
  nav#mainNav a:hover { background: rgba(255,255,255,0.12); }
}
/* =========================
   Desktop reset (>=701px)
   ========================= */
@media (min-width: 701px) {
  /* Show the nav inline inside the header */
  nav#mainNav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    width: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
  }

  /* Horizontal list */
  nav#mainNav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  /* Spacing between items */
  nav#mainNav li + li { margin-left: 20px; }

  /* Hide hamburger on desktop */
  .nav-toggle { display: none !important; }
}

/* Prevent horizontal scroll without breaking iOS vertical scroll */
body {
  overflow-x: hidden;      /* clamp horizontal overflow */
  overflow-y: auto;        /* ensure vertical scroll is allowed */
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}
/* optional: keep html untouched, or if you want a belt-and-suspenders approach: */
/* html { overflow-x: clip; }  /* safer than hidden on iOS; optional */


/* Mobile fixes for About section */
@media (max-width: 700px) {
  .about-flex {
    flex-direction: column;     /* stack image above text */
    align-items: stretch;        /* full width children */
    gap: 16px;                   /* a bit tighter on mobile */
  }
  .about-img {
    display: block;     /* avoids inline-image quirks */
    width: 100%;                 /* responsive image */
    max-width: 100%;
    height: auto;
  }
  .about-text {
    overflow-wrap: anywhere;     /* wrap long words */
    word-break: break-word;
    hyphens: auto;
  }
  /* Slightly reduce horizontal padding to avoid edge overflow */
    .container {
    box-sizing: border-box;  /* make padding not expand width */
    padding-left: 16px;
    padding-right: 16px;
  }

 /* Ensure the document has a real height immediately on iOS */
  html { height: -webkit-fill-available; }

 body {
  /* use modern, stable viewport units with iOS fallback */
  min-height: 100svh;                 /* stable viewport (newer iOS) */
  min-height: -webkit-fill-available; /* fallback for older iOS */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Default: hidden overlay */
.service-card.with-image .overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

/* Hover (desktop) or open (mobile) */
.service-card.with-image:hover .overlay,
.service-card.with-image.is-open .overlay {
  opacity: 1;
  pointer-events: auto;  /* allow clicks on button */
}

/* Optional: prevent zoom effect on touch devices */
@media (hover: none), (pointer: coarse) {
  .service-card.with-image img { transform: none !important; }
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: #f8f9fa;
  text-align: center;
}

.contact-item {
  flex: 1 1 200px;
  max-width: 250px;
}

.contact-icon {
  font-size: 2rem;
  color: #007acc; /* A&T Soft Wash brand blue */
  margin-bottom: 0.5rem;
}

.contact-item h3 {
  margin: 0.5rem 0;
  color: #0a2233;
  font-size: 1.25rem;
}

.contact-item a {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}



}