/* =========================================================
   Simply Cleaner — site stylesheet
   Replaces: styles.css, modal.css, engine1/style.css
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy: #304781;
  --navy-dark: #22335e;
  --yellow: #f8de2f;
  --charcoal: #333;
  --white: #fff;
  --text: #304781;

  --font: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  --max-width: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--yellow); color: #000;
  font-weight: bold; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--navy); position: relative; z-index: 10; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo img { width: clamp(160px, 22vw, 240px); }

.primary-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }

.primary-nav a {
  display: block;
  padding: .4rem 0;
  color: var(--white);
  font-weight: bold;
  font-size: .95rem;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, .6);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--yellow); border-color: var(--yellow); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute; left: 10px; right: 10px;
  height: 3px; background: var(--yellow); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { left: 0; right: 0; top: -8px; }
.nav-toggle-bar::after  { left: 0; right: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-dark);
    padding: .5rem var(--gutter) 1rem;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- Banner slider ---------- */
.banner { background: var(--yellow); padding-block: 1.25rem; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.slides { display: grid; }
.slides img {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1000 / 360;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slides img.is-active { opacity: 1; }

.slider-dots {
  position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.slider-dots button {
  width: 12px; height: 12px; padding: 0;
  border: 2px solid var(--white); border-radius: 50%;
  background: rgba(0, 0, 0, .35);
}
.slider-dots button[aria-current="true"] { background: var(--yellow); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2rem, 6vw, 3.5rem); }
.section--yellow { background: var(--yellow); }
.section--navy   { background: var(--navy); color: var(--yellow); }
.section--dark   { background: var(--charcoal); color: var(--white); }

.section h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.2; margin-bottom: .5rem; }
.section p  { margin-bottom: 1rem; }

/* Intro */
.intro { text-align: center; margin-bottom: 2rem; }
.intro h1 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.1;
  color: var(--navy);
  text-shadow: 2px 4px 3px rgba(0, 0, 0, .3);
}
.tagline { font-size: clamp(1.1rem, 2.6vw, 1.75rem); font-weight: bold; margin-top: .5rem; }

/* Grids */
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-main-side { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-main-side { grid-template-columns: 2.5fr 1fr; } }

/* Services */
.service { text-align: center; display: flex; flex-direction: column; }
/* Push the photo to the bottom so both columns line up whatever the text length */
.service .photo-button { margin-top: auto; }
.service h2 { color: var(--navy); text-shadow: 2px 2px 4px rgba(0, 0, 0, .3); }

.photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 10px solid var(--white);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.photo-button { text-decoration: none; }
.photo-button img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.photo-button:hover img { transform: scale(1.04); }
.photo-button-label {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  padding: .5rem 1.25rem;
  background: var(--navy); color: var(--yellow);
  font-weight: bold; border-radius: 999px; white-space: nowrap;
}

/* Community */
.section--navy h2 { text-shadow: 3px 3px 5px #000; }
.section--navy img { border-radius: 6px; margin-block: 1rem; }
.section--navy a { color: var(--yellow); font-weight: bold; }
.section--navy a:hover { color: var(--white); }

.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.team-photos img { margin: 0; border: 3px solid var(--yellow); transition: transform .2s; }
.team-photos a:hover img { transform: translateY(-3px); }

/* Links */
.links-title { text-align: center; margin-bottom: 1.5rem; }
.section--dark h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.section--dark p { opacity: .8; font-size: .9rem; }
.link-list li { padding-block: .3rem; }
.link-list a { text-decoration: none; }
.link-list a::before { content: "\25A0"; color: var(--yellow); font-size: .6em; margin-right: .6rem; vertical-align: middle; }
.link-list a:hover { color: var(--yellow); }

/* ---------- Inner-page hero ---------- */
.page-hero {
  background: var(--navy);
  border-top: 6px solid var(--yellow);
  padding-block: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
}
.page-hero h1 {
  color: var(--yellow);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  text-shadow: 3px 3px 5px #000;
}
.page-hero .tagline { color: var(--white); font-weight: normal; }

/* ---------- Shared content blocks ---------- */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.panel h2 { color: var(--navy); font-size: 1.5rem; margin: 1.5rem 0 .5rem; }
.panel h2:first-child { margin-top: 0; }
.panel h3 { font-size: 1.1rem; margin: 1rem 0 .25rem; }

.prose { max-width: 760px; margin-inline: auto; font-size: 1.1rem; }
.prose p { margin-bottom: 1.1rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: var(--yellow);
  border-left: 6px solid var(--yellow);
  border-radius: 6px;
  font-style: italic;
}
.prose blockquote p { margin: 0; }

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--yellow);
  font-weight: bold;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--navy-dark); color: var(--white); }

.center-note { text-align: center; margin-top: 1rem; }

/* Announcement bar (see comment in index.html) */
.announcement {
  background: #c40000;
  color: var(--white);
  font-weight: bold;
  text-align: center;
  padding: .75rem 0;
}

/* ---------- Services: clickable bucket ---------- */
.services-hint { text-align: center; font-weight: bold; font-size: 1.1rem; margin-bottom: 1rem; }

/* Twice the old size (380px → 760px), shrinking to fit smaller screens */
.bucket {
  position: relative;
  width: min(760px, 100%);
  margin-inline: auto;
}
.bucket img { width: 100%; }

/* Invisible click areas over each word bubble; positions are % of the image so they scale with it */
.hotspot {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background .2s, box-shadow .2s;
}
.hotspot:hover,
.hotspot:focus-visible {
  background: rgba(248, 222, 47, .3);
  box-shadow: 0 0 0 4px var(--yellow), 0 0 18px 6px rgba(255, 255, 255, .8);
  outline: none;
}

/* Service pop-ups: styled like the old cards */
.dialog.dialog--service {
  width: min(460px, calc(100% - 2rem));
  border-top: 8px solid var(--navy);
  background: var(--white);
  text-align: left;
}
.dialog.dialog--service h2 { text-shadow: none; text-transform: none; font-size: 1.75rem; padding-right: 2.5rem; }
.dialog.dialog--service p { font-size: 1.15rem; color: #333; }

/* Features list on laundry.html (outside a dialog) */
.section .features { text-align: left; }

/* ---------- Gallery + lightbox ---------- */
.gallery {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.gallery a {
  display: block;
  border: 5px solid var(--white);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
  overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.06); }

/* Full-screen photo viewer */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: #000; }
.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;   /* fills the screen without cropping or stretching */
}
.lightbox-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  text-align: center;
  pointer-events: none;
}
.lightbox-caption { font-weight: bold; font-size: 1.05rem; margin: 0 0 .2rem; }
.lightbox-caption:empty { display: none; }
.lightbox-count { font-size: .85rem; opacity: .8; margin: 0; }
.lightbox .dialog-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 44px; height: 44px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 72px;
  border: 0; border-radius: 8px;
  background: rgba(0, 0, 0, .45); color: var(--yellow);
  font-size: 2.75rem; line-height: 1;
}
.lightbox-nav:hover { background: rgba(0, 0, 0, .7); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 560px) {
  .lightbox-nav { top: auto; bottom: 4.5rem; transform: none; width: 44px; height: 56px; font-size: 2.25rem; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

.gallery-empty { text-align: center; font-weight: bold; padding: 2rem 0; }

/* ---------- Embeds ---------- */
.video-frame, .map-frame {
  position: relative;
  width: 100%;
  border: 8px solid var(--white);
  border-radius: 6px;
  background: #000;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.video-frame { aspect-ratio: 16 / 9; }
.map-frame { aspect-ratio: 4 / 3; background: #eee; }
.video-frame iframe, .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 2rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.contact-media { display: grid; gap: 1.25rem; }
.contact-media > img { border: 8px solid var(--white); border-radius: 6px; box-shadow: var(--shadow); }
.contact-media .center-note { margin: 0; }

.hours li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .3rem 0; border-bottom: 1px dashed #ccc; }
.hours span { font-weight: bold; min-width: 6.5rem; }

.form { display: grid; gap: .35rem; margin-top: 1rem; }
.form label { font-weight: bold; font-size: .9rem; text-transform: uppercase; margin-top: .6rem; }
.form input, .form textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  color: var(--navy);
  border: 2px solid #c9cfdd;
  border-radius: 6px;
  background: #fafbff;
}
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: none; background: var(--white); }
.form .btn { justify-self: start; margin-top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Message pages (thank you, error, 404) ---------- */
.message-page { text-align: center; min-height: 40vh; display: grid; align-items: center; }
.message-page h1 { font-size: clamp(2rem, 6vw, 3.25rem); color: var(--navy); text-shadow: 2px 2px 4px rgba(0, 0, 0, .25); margin-bottom: .75rem; }
.message-page p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding-block: 2rem 1rem; border-top: 6px solid var(--yellow); }
.footer-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { color: var(--yellow); font-size: 1.15rem; margin-bottom: .5rem; }
.site-footer p { font-size: .9rem; margin-bottom: .5rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.social { display: flex; gap: .75rem; }
.social img { width: 40px; height: 40px; transition: transform .2s; }
.social a:hover img { transform: scale(1.1); }
.footer-logo { width: 180px; }
.copyright { text-align: center; font-size: .8rem; opacity: .7; margin-top: 1rem; }

/* ---------- Dialogs ---------- */
.dialog {
  width: min(600px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(#fff, #e6e6e6);
  color: #222;
  text-align: center;
  box-shadow: var(--shadow);
}
.dialog--wide { width: min(1000px, calc(100% - 2rem)); }
.dialog::backdrop { background: rgba(0, 0, 0, .8); }
.dialog[open] { animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } }

.dialog h2 {
  font-size: 1.75rem;
  text-transform: uppercase;
  color: var(--navy);
  text-shadow: 2px 2px 3px var(--yellow);
  margin-bottom: .75rem;
}
.dialog-lead { margin-bottom: 1.5rem; }

.dialog-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: var(--yellow); color: #000;
  font-size: 1.5rem; line-height: 1; font-weight: bold;
  box-shadow: 1px 1px 3px #000;
}
.dialog-close:hover { background: var(--navy); color: var(--yellow); }

.features {
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: left;
}
.features div { padding: 1rem; background: var(--white); border-left: 4px solid var(--yellow); border-radius: 6px; }
.features dt { font-weight: bold; text-transform: uppercase; color: var(--navy); margin-bottom: .25rem; }
.features dd { font-size: .9rem; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .nav-toggle, .primary-nav, .banner, .social, .skip-link, .photo-button-label, .form, .video-frame, .map-frame { display: none !important; }
  .section, .site-header, .site-footer { background: none !important; color: #000 !important; padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
