/* Quality Dry Cleaners — first-draft homepage styles */

:root {
  --navy: #173042;
  --navy-deep: #0f2230;
  --ink: #1c2328;
  --muted: #5b656c;
  --teal: #2c6a6a;
  --teal-dark: #215353;
  --gold: #b08948;
  --gold-soft: #d4b07a;
  --cream: #f4efe6;
  --paper: #faf7f2;
  --white: #fffcf8;
  --line: #e3dbcf;
  --closed: #8a4a3b;
  --shadow: 0 18px 40px -24px rgba(23, 48, 66, 0.45);
  --radius: 16px;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.visually-hidden {
  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: -3.5rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--teal);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-place {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--teal);
}

.header-phone {
  font-weight: 650;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.header-phone:hover {
  color: var(--teal);
}

/* Hero */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 12% 20%, rgba(44, 106, 106, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 92% 8%, rgba(176, 137, 72, 0.14), transparent 50%),
    linear-gradient(180deg, #ece5d8 0%, var(--cream) 48%, var(--paper) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 48, 66, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) 1.25rem 4.25rem;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tagline {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 1.75rem;
  padding: 0.45rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 20px -16px rgba(23, 48, 66, 0.5);
}

.stars {
  display: inline-flex;
  gap: 0.12rem;
  color: var(--gold);
}

.rating-text {
  font-size: 0.92rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  color: var(--navy);
  background: #fff;
  border-color: #cfc5b6;
}

.hero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Sections */

.section {
  padding: clamp(3.25rem, 7vw, 5.25rem) 0;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-lead {
  max-width: 38rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.services {
  background: var(--paper);
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 12px 28px -24px rgba(23, 48, 66, 0.5);
}

.service-icon {
  display: inline-flex;
  color: var(--teal);
  margin-bottom: 0.7rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hours-location {
  background:
    linear-gradient(180deg, #efe8db 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px -24px rgba(23, 48, 66, 0.5);
}

.hours-table th,
.hours-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table th {
  font-weight: 600;
  color: var(--navy);
  width: 50%;
}

.hours-table td {
  font-variant-numeric: tabular-nums;
}

.hours-table .closed td {
  color: var(--closed);
  font-weight: 600;
}

.hours-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.address {
  font-style: normal;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.text-link {
  font-weight: 600;
}

.map-frame {
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.7), transparent 28%),
    linear-gradient(180deg, #d7e3df 0%, #c5d3cf 100%);
  min-height: 280px;
  box-shadow: 0 12px 28px -24px rgba(23, 48, 66, 0.5);
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--navy);
  text-align: center;
  padding: 1rem;
  z-index: 0;
}

.map-fallback p {
  margin: 0;
  font-size: 0.95rem;
}

.map-fallback p:first-of-type {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.map-frame iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  background: transparent;
}

.contact {
  background: var(--paper);
}

.contact-inner {
  max-width: 720px;
}

.contact-list {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list dt {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.contact-list dd {
  margin: 0;
}

.contact-list a {
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: #d5ddd8;
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: #e8efe9;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-copy {
  margin-top: 1.15rem !important;
  font-size: 0.85rem;
  color: #9aabaf;
}

/* Responsive */

@media (min-width: 800px) {
  .hero-inner {
    max-width: 46rem;
  }

  .split {
    grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
    align-items: start;
    gap: 3.5rem;
  }

  .contact-list {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-grid li {
    grid-column: span 2;
  }

  .service-grid li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .service-grid li:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 799px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    padding-top: 0.15rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .header-phone {
    font-size: 0.92rem;
  }

  .hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .map-frame iframe {
    height: 280px;
  }
}

@media (max-width: 420px) {
  .brand-place {
    display: none;
  }

  .rating {
    flex-direction: column;
    gap: 0.25rem;
    border-radius: 14px;
    text-align: center;
    padding: 0.55rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
