/* ==========================================================================
   Town Center Dry Cleaners — design tokens + components
   Art direction: warm linen neutrals, deep forest green accent,
   serif display (Zodiak) + humanist sans (Work Sans)
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', system-ui, sans-serif;

  /* Content widths */
  --content-narrow: 620px;
  --content-default: 960px;
  --content-wide: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Light (default): cream / linen ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f7f3ea;
  --color-surface: #fdfaf3;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #f0eade;
  --color-surface-deep: #1f3a30;

  --color-divider: #e2dbcb;
  --color-border: rgba(31, 58, 48, 0.14);

  --color-text: #24261f;
  --color-text-muted: #6a6b60;
  --color-text-faint: #a3a396;
  --color-text-inverse: #f8f5ec;

  --color-primary: #1f5d4c;
  --color-primary-hover: #17493c;
  --color-primary-active: #10362d;
  --color-primary-soft: #dfe9e2;

  --color-accent-warm: #a4682c;

  --shadow-sm: 0 1px 2px rgba(52, 44, 28, 0.07);
  --shadow-md: 0 6px 18px rgba(52, 44, 28, 0.09);
  --shadow-lg: 0 18px 44px rgba(52, 44, 28, 0.14);
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --color-bg: #141613;
  --color-surface: #1a1d19;
  --color-surface-2: #1f221e;
  --color-surface-offset: #23261f;
  --color-surface-deep: #101410;

  --color-divider: #2a2e28;
  --color-border: rgba(226, 232, 216, 0.14);

  --color-text: #e6e3d8;
  --color-text-muted: #9a9c90;
  --color-text-faint: #6d6f65;
  --color-text-inverse: #141613;

  --color-primary: #7cbba3;
  --color-primary-hover: #93cbb4;
  --color-primary-active: #a8d8c4;
  --color-primary-soft: #23342c;

  --color-accent-warm: #d59a5e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141613;
    --color-surface: #1a1d19;
    --color-surface-2: #1f221e;
    --color-surface-offset: #23261f;
    --color-surface-deep: #101410;
    --color-divider: #2a2e28;
    --color-border: rgba(226, 232, 216, 0.14);
    --color-text: #e6e3d8;
    --color-text-muted: #9a9c90;
    --color-text-faint: #6d6f65;
    --color-text-inverse: #141613;
    --color-primary: #7cbba3;
    --color-primary-hover: #93cbb4;
    --color-primary-active: #a8d8c4;
    --color-primary-soft: #23342c;
    --color-accent-warm: #d59a5e;
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--default { max-width: var(--content-default); }
.wrap--narrow { max-width: var(--content-narrow); }

.section { padding-block: clamp(var(--space-12), 9vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-10), 6vw, var(--space-16)); }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
h2 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; }

.lede { color: var(--color-text-muted); font-size: var(--text-base); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: #fdfaf3;
}
[data-theme='dark'] .btn--primary { color: #10231c; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--primary:active { background: var(--color-primary-active); transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--block { width: 100%; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.header--scrolled { border-bottom-color: var(--color-divider); box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
}
.brand__mark { width: 34px; height: 34px; color: var(--color-primary); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.nav { display: none; align-items: center; gap: var(--space-6); }
.nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--color-primary); }

.header__actions { display: flex; align-items: center; gap: var(--space-2); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }
.header__call { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header__call { display: inline-flex; }
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--color-primary); color: #fff;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  z-index: 100; text-decoration: none; font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-3); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-top: clamp(var(--space-10), 7vw, var(--space-20)); }
.hero__grid { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }

.hero__title {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero__title em { font-style: italic; color: var(--color-primary); }
.hero__lede { color: var(--color-text-muted); margin-bottom: var(--space-8); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__cta .btn { flex: 1 1 190px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta .icon { width: 15px; height: 15px; color: var(--color-primary); }

.hero__figure { position: relative; }
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  background: var(--color-surface-deep);
  color: #f4efe3;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: calc(100% - var(--space-8));
}
.hero__badge strong { display: block; font-size: var(--text-sm); font-weight: 600; }
.hero__badge span { font-size: var(--text-xs); color: #b9c6bd; line-height: 1.4; display: block; margin-top: 2px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */

.strip {
  background: var(--color-surface-deep);
  color: #e9e3d5;
  padding-block: var(--space-4);
  margin-top: clamp(var(--space-8), 5vw, var(--space-16));
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  justify-content: center;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.strip__inner span { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.strip__dot { width: 5px; height: 5px; border-radius: 50%; background: #7cbba3; flex: none; }

/* ==========================================================================
   Services
   ========================================================================== */

.section__head { max-width: 56ch; margin-bottom: clamp(var(--space-8), 5vw, var(--space-12)); }
.section__head h2 + .lede,
.area__grid h2 + .lede,
.contact__aside h2 + p { margin-top: var(--space-4); }

.services { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .service:nth-child(1) { grid-column: span 4; }
  .service:nth-child(2) { grid-column: span 2; }
  .service:nth-child(3) { grid-column: span 3; }
  .service:nth-child(4) { grid-column: span 3; }
}

.service {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
}
.service p { color: var(--color-text-muted); font-size: var(--text-sm); }
.service ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.service li {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 500;
}
[data-theme='dark'] .service li { color: var(--color-primary-active); }

.service--feature {
  background: var(--color-surface-2);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Why us — split with image
   ========================================================================== */

.why { background: var(--color-surface-offset); }
.why__grid { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
@media (min-width: 900px) { .why__grid { grid-template-columns: 0.9fr 1.1fr; } }

.why__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.reasons { list-style: none; display: grid; gap: var(--space-6); margin-top: clamp(var(--space-6), 4vw, var(--space-10)); }
.reason { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.reason .icon { width: 22px; height: 22px; color: var(--color-primary); margin-top: 3px; }
.reason h3 { margin-bottom: var(--space-1); }
.reason p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ==========================================================================
   Service area
   ========================================================================== */

.area__grid { display: grid; gap: var(--space-8); }
@media (min-width: 860px) { .area__grid { grid-template-columns: 1fr 1.1fr; align-items: center; } }

.towns { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin-top: var(--space-2); }
.towns li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  background: var(--color-surface);
}
.towns li:first-child {
  background: var(--color-primary);
  color: #fdfaf3;
  border-color: transparent;
  font-weight: 600;
}
[data-theme='dark'] .towns li:first-child { color: #10231c; }

/* ==========================================================================
   Hours & location
   ========================================================================== */

.visit { background: var(--color-surface-deep); color: #ebe6d9; }
.visit h2, .visit h3 { color: #f6f1e5; }
.visit .eyebrow { color: #7cbba3; }
.visit__grid { display: grid; gap: var(--space-10); }
@media (min-width: 860px) { .visit__grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }

.info-block + .info-block { margin-top: var(--space-8); }
.info-block h3 { font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: #7cbba3; margin-bottom: var(--space-3); }
.info-block p, .info-block a { color: #d9d3c4; font-size: var(--text-base); }
.info-block a { color: #f6f1e5; text-decoration: none; border-bottom: 1px solid rgba(124, 187, 163, 0.5); }
.info-block a:hover { color: #7cbba3; }

.hours { list-style: none; display: grid; gap: var(--space-2); max-width: 340px; }
.hours li { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); color: #d9d3c4; padding-bottom: var(--space-2); border-bottom: 1px dashed rgba(233, 227, 213, 0.16); }
.hours li strong { color: #f6f1e5; font-weight: 600; white-space: nowrap; }
.hours__note { font-size: var(--text-xs); color: #a8b3a8; margin-top: var(--space-3); }

.map-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(233, 227, 213, 0.16);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.map-card__pin { width: 28px; height: 28px; color: #7cbba3; margin-bottom: var(--space-4); }
.map-card address { font-style: normal; font-size: var(--text-lg); font-family: var(--font-display); line-height: 1.4; color: #f6f1e5; }
.map-card .btn--ghost { color: #f6f1e5; border-color: rgba(233, 227, 213, 0.3); margin-top: var(--space-6); }
.map-card .btn--ghost:hover { border-color: #7cbba3; color: #7cbba3; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact__grid { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 0.85fr 1.15fr; } }

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.field-row { display: grid; gap: var(--space-5); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); text-align: center; }

.form__success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.form__success.is-visible { display: flex; animation: fade-up 400ms cubic-bezier(0.16, 1, 0.3, 1); }
[data-theme='dark'] .form__success { color: var(--color-primary-active); }

.contact__aside p { color: var(--color-text-muted); }
.contact__call {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.contact__call:hover { color: var(--color-primary-hover); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--color-divider); padding-block: var(--space-12) calc(var(--space-12) + 76px); }
@media (min-width: 720px) { .footer { padding-bottom: var(--space-12); } }

.footer__grid { display: grid; gap: var(--space-8); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.footer h3 { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-3); font-weight: 600; }
.footer p, .footer address, .footer li { font-size: var(--text-sm); color: var(--color-text-muted); font-style: normal; }
.footer a { color: var(--color-text); text-decoration: none; }
.footer a:hover { color: var(--color-primary); }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   Sticky mobile call bar
   ========================================================================== */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-divider);
  display: flex;
  gap: var(--space-3);
}
.callbar .btn { min-width: 0; padding-inline: var(--space-4); }
.callbar .btn--primary { flex: 1.6; }
.callbar .btn--ghost { flex: 1; }
.callbar .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 720px) { .callbar { display: none; } }

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
