/* =====================================================================
   ShortMidStay — Global Stylesheet
   One file, mobile-first, system fonts, accessible.
   Sections: 1) Tokens  2) Reset/base  3) Layout  4) Header/Nav
   5) Buttons  6) Hero  7) Forms  8) Components  9) Footer  10) Utilities
   ===================================================================== */

/* ---------- 1) Design tokens ---------- */
:root {
  --cream: #fbf8f3;
  --cream-2: #f4eee4;
  --ink: #23201b;
  --ink-soft: #4c463d;
  --muted: #6f675b;
  --line: #e7ded1;
  --clay: #b5613b;         /* primary accent */
  --clay-dark: #97492a;
  --teal: #2e5b57;         /* secondary accent */
  --teal-dark: #22443f;
  --gold: #c1953f;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(35,32,27,.06), 0 2px 8px rgba(35,32,27,.05);
  --shadow-md: 0 6px 24px rgba(35,32,27,.10);
  --shadow-lg: 0 20px 50px rgba(35,32,27,.16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

/* ---------- 2) Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .3rem 0; }
strong { color: var(--ink); }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3) Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--cream-2); }
.section--ink { background: var(--ink); color: #d9d2c6; }
.section--ink h2, .section--ink h3 { color: var(--cream); }
.section--teal { background: var(--teal); color: #e5efec; }
.section--teal h2, .section--teal h3, .section--teal h4 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.grid { display: grid; gap: var(--gap); }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: .6rem; }
.section--ink .eyebrow, .section--teal .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1.1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- 4) Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,243,.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 700; font-size: 1.28rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; border-radius: 9px; background: linear-gradient(135deg, var(--clay), var(--gold)); color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 800; letter-spacing: -.02em; }
.brand b { color: var(--clay); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { margin: 0; position: relative; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: .55rem .7rem; border-radius: 8px; display: inline-block; }
.nav-links a:hover { color: var(--clay-dark); background: var(--cream-2); text-decoration: none; }

/* Dropdown */
.has-sub > .sub-toggle { cursor: pointer; background: none; border: none; font: inherit; font-weight: 600; color: var(--ink-soft); padding: .55rem .7rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .3rem; }
.has-sub > .sub-toggle:hover { color: var(--clay-dark); background: var(--cream-2); }
.has-sub > .sub-toggle::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.submenu {
  list-style: none; margin: 0; padding: .4rem; position: absolute; top: calc(100% + .3rem); left: 0;
  min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.submenu li { margin: 0; }
.submenu a { display: block; padding: .5rem .7rem; border-radius: 8px; font-weight: 600; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-phone:hover { color: var(--clay-dark); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- 5) Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--sans); font-weight: 700; font-size: .98rem; line-height: 1; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .18s, box-shadow .18s; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream-2); color: var(--ink); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- 6) Hero ---------- */
.hero { position: relative; background:
    radial-gradient(1200px 500px at 80% -10%, rgba(193,149,63,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(46,91,87,.16), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--cream-2)); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero__eyebrow { color: var(--clay); }
.hero h1 { margin-bottom: .5rem; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; }
.hero__trust { margin-top: 1.4rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .7rem; }
.hero__badges span { font-size: .82rem; font-weight: 700; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 999px; }

/* Page hero (inner pages) */
.page-hero { background:
    radial-gradient(900px 400px at 85% -20%, rgba(193,149,63,.16), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--cream-2)); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(2.2rem, 5vw, 3.4rem); }

/* ---------- 7) Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.3rem, 3vw, 1.9rem); }
.form-card h2, .form-card h3 { margin-top: 0; }
.form-card .form-note { font-size: .85rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.field .req { color: var(--clay); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .75rem .85rem; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,91,87,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-status { margin-top: .5rem; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.error { color: var(--clay-dark); }
.form-status.ok { color: var(--teal-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 8) Components ---------- */
/* Cards grid */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; }
.card h3 { margin-top: .2rem; }
.card .card-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); color: var(--clay); margin-bottom: .9rem; }
.card .card-ico svg { width: 24px; height: 24px; }

/* Location cards */
.loc-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 190px; color: #fff; border: 1px solid var(--line); background: var(--teal); box-shadow: var(--shadow-sm); }
.loc-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); transition: .18s; }
.loc-card .loc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.loc-card .loc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,22,18,.15), rgba(24,22,18,.75)); }
.loc-card .loc-body { position: relative; padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; }
.loc-card h3 { color: #fff; margin: 0; }
.loc-card span { color: #efe7d8; font-size: .9rem; font-weight: 600; }

/* Feature list with checks */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin: .6rem 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--teal); }
.check-list li::after { content: ""; position: absolute; left: .38rem; top: .5em; width: .32rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.section--ink .check-list li::before, .section--teal .check-list li::before { background: var(--gold); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--clay); }
.stat span { font-size: .9rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.3rem 3.6rem; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.1rem; top: 1.2rem; width: 1.9rem; height: 1.9rem; background: var(--clay); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--sans); }
.step h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.step p { margin: 0; }

/* Split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.split img, .media-frame { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.media-frame { aspect-ratio: 3/2; background: linear-gradient(135deg, var(--cream-2), #e9ddca); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.media-frame img { border-radius: var(--radius); height: 100%; object-fit: cover; }

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; }
.quote .stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .5rem; }
.quote p { font-style: italic; color: var(--ink-soft); }
.quote cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 700; color: var(--muted); font-size: .88rem; }

/* Logos strip */
.logos { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; }
.logos span { font-weight: 700; color: var(--muted); font-size: 1.05rem; letter-spacing: .02em; opacity: .8; }

/* FAQ accordion */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--clay); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; }
.faq .faq-body p { margin: 0; color: var(--ink-soft); }

/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding-top: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebe8; max-width: 60ch; margin-inline: auto; }

/* Prose blocks (legal) */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { margin-bottom: 1.2rem; }

/* Info tiles (contact) */
.info-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.info-tile h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.info-tile a { font-weight: 700; }

/* ---------- 9) Footer ---------- */
.site-footer { background: var(--ink); color: #b9b1a4; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; }
.site-footer a { color: #d8d1c5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { color: #a49c8e; max-width: 34ch; }
.footer-contact { margin-top: 1rem; font-size: .92rem; display: grid; gap: .3rem; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .45rem 0; }
.footer-col a { font-size: .95rem; }
.social-row { display: flex; gap: .6rem; margin-top: 1rem; }
.social-row a { width: 38px; height: 38px; border: 1px solid #3a362f; border-radius: 10px; display: grid; place-items: center; color: #cfc7b9; }
.social-row a:hover { background: #2c2822; color: #fff; }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #34302a; margin-top: 2rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #8f887b; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- 10) Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-block; background: var(--cream-2); color: var(--clay-dark); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (min-width: 861px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none; flex-direction: column; padding: 1rem; gap: .2rem; max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-links a, .has-sub > .sub-toggle { width: 100%; padding: .8rem .6rem; font-size: 1.05rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .4rem .6rem; padding-left: .4rem; display: none; }
  .has-sub.open .submenu { display: block; }
  .has-sub > .sub-toggle { justify-content: space-between; }
  .nav-cta .nav-phone { display: none; }
  .cols-2, .cols-3, .cols-4, .split, .hero__grid, .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
  .hero .btn, .cta-band .btn { width: auto; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
