/* ============================================================
   Main Street Laundry — style.css
   Palette drawn from the logo: deep navy, royal blue, azure,
   cyan, and street-sign green on clean whites.
   ============================================================ */

:root {
  --navy: #16223E;
  --navy-soft: #1A2340;
  --blue: #1560C8;
  --blue-dark: #0F4EA0;
  --azure: #2FA8F5;
  --cyan: #8FDFFF;
  --green: #1E9E4A;
  --green-deep: #157A3B;
  --bg-wash: #F2F7FC;
  --card: #FFFFFF;
  --ink: #1A2340;
  --muted: #4A5A73;
  --line: #DEE7F0;

  --font-head: "Quicksand", "Trebuchet MS", -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", -apple-system, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 34, 62, 0.10);
  --shadow-soft: 0 4px 14px rgba(22, 34, 62, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #FFFFFF;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--navy);
  text-align: center;
}

h3 { font-size: 1.12rem; color: var(--navy); }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

.muted { color: var(--muted); font-weight: 400; }
.center { text-align: center; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -0.18em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-lg { padding: 0.85em 1.7em; font-size: 1.05rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-head);
}
.chip.glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chip .icon { color: var(--cyan); }
.chip .icon.star { color: #FFD34D; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.06rem; }
.brand-text small { color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav > a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding-block: 6px;
}
.site-nav > a:not(.btn):hover { color: var(--blue); }
.site-nav .btn-call { padding: 0.5em 1.1em; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon { width: 1.35em; height: 1.35em; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 223, 255, 0.18) 0, transparent 32%),
    radial-gradient(circle at 8% 85%, rgba(143, 223, 255, 0.14) 0, transparent 30%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 48%, #10386E 100%);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-block: 2.6rem 4.4rem;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1em;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  color: #fff;
  margin-bottom: 0.5em;
}

.lede { font-size: 1.13rem; color: rgba(255, 255, 255, 0.88); max-width: 34em; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 1.4rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero-address {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero-address .icon { color: var(--cyan); }

.hero-figure {
  position: relative;
  margin: 0;
}
.hero-figure img {
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.14);
}

.float-card {
  position: absolute;
  left: 16px;
  bottom: 26px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
}
.float-card strong { font-family: var(--font-head); color: var(--navy); font-size: 0.95rem; }
.float-card span { color: var(--muted); line-height: 1.4; }

.hero-wave {
  display: block;
  width: 100%;
  height: 56px;
  margin-bottom: -1px;
}

/* ---------- Sections ---------- */

.section { padding-block: 4.2rem; }
.section-wash { background: var(--bg-wash); }

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 44em;
  margin: 0 auto 2.6rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(47, 168, 245, 0.16), rgba(21, 96, 200, 0.16));
  color: var(--blue);
}
.card-icon .icon { width: 1.4em; height: 1.4em; }
.card-icon .icon:first-child { margin: 0; }

.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card h3 { margin-bottom: 0.45em; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1.1rem;
}

.g-item {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.g-item:hover img { transform: scale(1.045); }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* ---------- Reviews ---------- */

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 2.2rem;
}
.reviews-summary strong { font-size: 1.7rem; color: var(--navy); }

.stars { display: inline-flex; gap: 2px; color: #F5A623; }
.stars.small .icon { width: 1em; height: 1em; }

.reviews-grid { margin-bottom: 2rem; }

.review-card blockquote {
  margin: 0.8rem 0 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.review-card figcaption { color: var(--muted); font-size: 0.92rem; }

/* ---------- Find us ---------- */

.find-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: stretch;
}

.info-card { display: flex; flex-direction: column; gap: 1.2rem; }

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-row .card-icon { margin-bottom: 0; }
.info-row h3 { margin-bottom: 0.2em; }
.info-row p { margin: 0; }

.hours-badge {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(30, 158, 74, 0.12);
  color: var(--green-deep);
  vertical-align: middle;
}
.hours-badge.closed { background: rgba(196, 88, 42, 0.12); color: #A34A1E; }

.hours-table { border-collapse: collapse; font-size: 0.95rem; }
.hours-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  padding-right: 1.4em;
}
.hours-table td { font-weight: 700; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding-block: 3px; }

.map-wrap { padding: 8px; overflow: hidden; }
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 12px;
}

/* ---------- Facebook ---------- */

.fb-block {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}
.fb-copy .card-icon { margin-bottom: 0.8rem; }
.fb-copy p { color: var(--muted); max-width: 34em; }

.fb-feed { padding: 0; overflow: hidden; }
.fb-feed iframe { display: block; width: 100%; border: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.8rem;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #FBFDFE;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7em 0.9em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 96, 200, 0.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C0522B; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--bg-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.2rem;
}

.footer-brand img { border-radius: 14px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; }

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.footer-links a:hover { color: var(--cyan); }

.footer-contact p {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.footer-contact .icon { color: var(--cyan); flex: none; transform: translateY(2px); }
.footer-contact a { color: rgba(255, 255, 255, 0.82); }
.footer-contact a:hover { color: var(--cyan); }

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.4rem 1.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}
.footer-note a { color: var(--cyan); }
.footer-note p { margin: 0 0 0.4em; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(13, 20, 38, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.lightbox[hidden] { display: none; }

.lightbox figure {
  margin: 0;
  max-width: min(1000px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  margin-inline: auto;
}
.lightbox figcaption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close .icon { width: 1.3em; height: 1.3em; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; padding-block: 3rem 4.2rem; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .chip-row, .cta-row { justify-content: center; }
  .hero-address { justify-content: center; }
  .hero-figure { max-width: 520px; margin-inline: auto; }
  .float-card { left: 12px; }

  .card-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .find-grid, .contact-grid { grid-template-columns: 1fr; }
  .fb-block { grid-template-columns: 1fr; }
  .fb-feed { max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 640px) {
  .card-grid, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem 4% 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) {
    padding: 0.8rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn-call { margin-top: 0.9rem; justify-content: center; }

  .float-card { position: static; max-width: none; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-item img { transition: none; }
  .btn { transition: none; }
}
