/* =============================================================================
   MyCitySpecials.com — Main stylesheet
   One file. No frameworks. Design tokens first, then base, components, layout,
   responsive rules and accessibility helpers.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --c-bg:          #f5f8fb;
  --c-surface:     #ffffff;
  --c-tint:        #eef3f8;
  --c-ink:         #12203a;   /* primary text / navy            */
  --c-ink-2:       #3c4a63;   /* secondary text                 */
  --c-muted:       #64728c;   /* captions, meta                 */
  --c-border:      #dfe6f0;
  --c-border-2:    #cbd6e6;

  /* Single restrained accent (teal) */
  --c-accent:      #1f8a7a;
  --c-accent-600:  #176c60;
  --c-accent-200:  #bfe0d9;
  --c-accent-soft: #e8f4f1;

  /* Status colors (always paired with a text label, never color alone) */
  --c-ok-bg:   #e6f4ec;  --c-ok-fg:   #1c6b3f;  --c-ok-bd:   #bfe3cd;
  --c-warn-bg: #fdf2e2;  --c-warn-fg: #8a5a15;  --c-warn-bd: #f2ddb8;
  --c-neu-bg:  #eef1f6;  --c-neu-fg:  #46536b;  --c-neu-bd:  #d7dfea;

  /* Type */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape & depth */
  --radius:    10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 58, .06);
  --shadow:    0 6px 20px rgba(18, 32, 58, .08);

  /* Spacing rhythm */
  --wrap: 1120px;
  --gap: 24px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink-2);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--c-ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { color: var(--c-accent-600); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-accent); }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

strong { color: var(--c-ink); }

/* ---------- Focus & skip link ---------- */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: .7rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 72px; }
.section--tint { background: var(--c-tint); }
.section--narrow { max-width: 760px; margin-inline: auto; }

.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.15rem); }
.section__intro { color: var(--c-ink-2); margin-bottom: 0; }
.section__foot { text-align: center; margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section__foot--left { justify-content: flex-start; text-align: left; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-accent-600);
  margin: 0 0 .6rem;
  font-family: var(--font-body);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .85rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  min-height: 44px;
}
.btn--sm { padding: .6rem 1rem; font-size: .95rem; min-height: 40px; }

.btn--primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--primary:hover { background: var(--c-accent-600); border-color: var(--c-accent-600); color: #fff; }

.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-border-2); }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent-600); }

.btn--on-dark { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--on-dark:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
}
.brand__mark { color: var(--c-accent); flex: none; }
.brand--footer { color: #fff; }
.brand--footer .brand__mark { color: var(--c-accent-200); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--c-ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  padding: .4rem 0;
}
.nav a:hover { color: var(--c-accent-600); }
.nav a.is-active { color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-accent); }
.nav__cta a { color: #fff; }
.nav__cta a:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--c-border-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar { width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-block: 72px 64px;
  background:
    radial-gradient(1100px 380px at 82% -10%, var(--c-accent-soft), transparent 60%),
    var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__title { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: .5rem; }
.hero__lead { font-size: 1.12rem; color: var(--c-ink-2); max-width: 34em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__art { display: flex; justify-content: center; }
.skyline { width: 100%; max-width: 480px; filter: drop-shadow(var(--shadow)); }

/* ---------- "More than restaurants" groups ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.group-grid { list-style: none; margin: 0; padding: 0; }
.group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.group__title { font-size: 1.18rem; margin-bottom: .35rem; }
.group p { margin: 0; color: var(--c-ink-2); font-size: .98rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  counter-reset: step;
}
.step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-600);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step__title { font-size: 1.12rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--c-ink-2); font-size: .97rem; }

/* ---------- Property cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--c-border-2); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__title { font-size: 1.25rem; margin: 0; }
.card__domain { color: var(--c-accent-600); font-weight: 600; font-size: .95rem; margin: .2rem 0 1rem; word-break: break-word; }

.card__meta { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 8px; }
.card__meta li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; border-bottom: 1px dashed var(--c-border); padding-bottom: 8px; }
.card__meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.card__meta-label { color: var(--c-muted); }
.card__meta-value { color: var(--c-ink); font-weight: 600; text-align: right; }

.card__desc { color: var(--c-ink-2); font-size: .96rem; margin: 0 0 1rem; }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.1rem; }
.card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Badges & tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .3rem .55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: none;
}
.badge--status.is-available   { background: var(--c-ok-bg);  color: var(--c-ok-fg);  border-color: var(--c-ok-bd); }
.badge--status.is-coming      { background: var(--c-warn-bg); color: var(--c-warn-fg); border-color: var(--c-warn-bd); }
.badge--status.is-reserved    { background: var(--c-neu-bg); color: var(--c-neu-fg); border-color: var(--c-neu-bd); }
.badge--status.is-unavailable { background: var(--c-neu-bg); color: var(--c-neu-fg); border-color: var(--c-neu-bd); }
.badge--status.is-review      { background: var(--c-warn-bg); color: var(--c-warn-fg); border-color: var(--c-warn-bd); }

.tag {
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-ink-2);
  background: var(--c-tint);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: .25rem .6rem;
}

/* ---------- Chips ---------- */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chip {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .55rem 1.05rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Panels (purchase / lease) ---------- */
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.panel__title { font-size: 1.3rem; margin-bottom: .4rem; }
.panel p { margin: 0; color: var(--c-ink-2); }

/* ---------- Notes / callouts ---------- */
.note {
  color: var(--c-muted);
  font-size: .92rem;
}
.note--inline {
  margin-top: 26px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.callout {
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-200);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.callout__title { font-size: 1.15rem; margin-bottom: .4rem; }
.callout p { margin: 0; color: var(--c-ink-2); }

.empty {
  text-align: center;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px dashed var(--c-border-2);
  border-radius: var(--radius);
  padding: 30px 20px;
}

/* ---------- CTA band ---------- */
.cta { background: var(--c-ink); padding-block: 64px; }
.cta__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.cta__title { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.cta__text { color: #c8d3e4; margin-bottom: 1.6rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page head / breadcrumbs ---------- */
.page-head {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding-block: 46px;
}
.page-head__title { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-bottom: .35rem; }
.page-head__lead { color: var(--c-ink-2); max-width: 46em; margin: 0; }

.crumbs { font-size: .88rem; color: var(--c-muted); margin-bottom: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--c-accent-600); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { color: var(--c-ink-2); }

/* ---------- Prose ---------- */
.prose h2 { font-size: 1.45rem; margin-top: 1.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--c-ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

.list-2col {
  columns: 2;
  column-gap: 36px;
  padding-left: 1.1rem;
}
@media (max-width: 620px) { .list-2col { columns: 1; } }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.filters__label { font-weight: 600; color: var(--c-ink); }
.filters__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-2);
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
  min-height: 40px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--c-accent); color: var(--c-accent-600); }
.filter.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.filters__count { color: var(--c-muted); font-size: .9rem; margin: 0 0 24px; }

/* ---------- Forms ---------- */
.section--form { max-width: 760px; margin-inline: auto; }
.form { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin: 0; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field--error .field__input { border-color: #c0392b; background: #fdf3f2; }

.field__label { font-weight: 600; color: var(--c-ink); margin-bottom: .4rem; display: block; }
.req { color: #c0392b; }
.opt { color: var(--c-muted); font-weight: 400; font-size: .9em; }

.field__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-2);
  border-radius: var(--radius-sm);
  padding: .7rem .8rem;
  width: 100%;
  min-height: 44px;
}
textarea.field__input { min-height: auto; resize: vertical; }
.field__input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); }
.field__error { color: #b03024; font-size: .88rem; font-weight: 600; margin-top: .35rem; }

fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; }

.choices { display: flex; gap: 18px; flex-wrap: wrap; margin-top: .2rem; }
.choice { display: inline-flex; align-items: flex-start; gap: .5rem; font-weight: 500; color: var(--c-ink-2); cursor: pointer; }
.choice input { margin-top: .3rem; width: 18px; height: 18px; flex: none; accent-color: var(--c-accent); }
.choice--consent { align-items: flex-start; font-size: .95rem; }

.form__actions { margin-top: 24px; }
.form__note { margin: 16px 0 0; font-size: .9rem; color: var(--c-muted); }

/* Honeypot — visually and functionally hidden from real users */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; border: 1px solid transparent; }
.alert__title { margin: 0 0 .3rem; font-size: 1.15rem; }
.alert p { margin: 0; }
.alert--success { background: var(--c-ok-bg); border-color: var(--c-ok-bd); color: var(--c-ok-fg); }
.alert--success .alert__title { color: var(--c-ok-fg); }
.alert--success a { color: var(--c-ok-fg); }
.alert--error { background: #fdecea; border-color: #f4c7c1; color: #8a2015; }
.alert--error a { color: #8a2015; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #b9c4d6; padding-block: 52px 30px; }
.site-footer a { color: #d6dfec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer__desc { margin-top: 14px; font-size: .95rem; max-width: 40ch; color: #a9b6cb; }
.site-footer__heading { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa0ba; margin: 0 0 .8rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer__base { padding-top: 22px; font-size: .88rem; color: #9aa8be; }
.site-footer__base p { margin: 0 0 .4rem; }
.site-footer__note { color: #8494ac; }

/* ---------- Utilities ---------- */
/* Make the HTML [hidden] attribute reliably win over component display rules
   (e.g. .card uses display:flex). Used by the Available Cities filter. */
[hidden] { display: none !important; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__art { order: -1; max-width: 420px; margin-inline: auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .nav__list li { border-bottom: 1px solid var(--c-border); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: .9rem 0; }
  .nav a.is-active { box-shadow: inset 3px 0 0 var(--c-accent); padding-left: 10px; }
  .nav__cta { margin-top: 12px; }
  .nav__cta a { display: block; text-align: center; }
  .site-header__inner { position: relative; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 52px; }
  .grid--2, .grid--3, .steps { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .section__foot--left { flex-direction: column; align-items: stretch; }
  .section__foot--left .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
