/* C8 Self Storage — styles (mobile-first, no frameworks) */

:root {
  /* Palette: deep forest green + warm amber accent */
  --green-900: #143326;
  --green-800: #1f4d3a;
  --green-700: #2a6149;
  --green-50:  #eef4f0;
  --amber:     #e9a23b;
  --amber-dark:#c9831c;
  --ink:       #1c2420;
  --muted:     #4a564f;
  --paper:     #ffffff;
  --cream:     #f7f4ec;
  --line:      #d9ddd6;
  --todo-bg:   #fff176;
  --todo-ink:  #3d3200;

  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 51, 38, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

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

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

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--green-900); }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--green-700); }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.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;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 0.5rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 0.5rem; }

/* Placeholders the owner needs to fill in */
mark.todo, .todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0 0.25em;
  border-radius: 3px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.draft-banner {
  background: #fffbe0;
  border-bottom: 1px solid #efe39a;
  color: var(--todo-ink);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover { background: var(--amber-dark); color: var(--ink); }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn mark.todo { font-size: 0.72em; white-space: nowrap; }
@media (min-width: 640px) { .btn mark.todo { font-size: 0.85em; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--green-900); }
.logo { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; }
.header-actions { display: flex; gap: 0.5rem; width: 100%; }
.header-actions .btn { flex: 1; padding: 0.55rem 0.7rem; font-size: 0.95rem; }

/* Hero */
.hero {
  background:
    linear-gradient(160deg, rgba(20,51,38,0.0) 55%, rgba(233,162,59,0.18) 100%),
    var(--green-800);
  color: #fff;
  padding: 3rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* simple mountain silhouette */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: var(--green-900);
  clip-path: polygon(0 100%, 0 65%, 12% 30%, 22% 60%, 35% 15%, 48% 55%, 58% 35%, 70% 70%, 82% 25%, 92% 55%, 100% 40%, 100% 100%);
  opacity: 0.55;
}
.hero-inner { position: relative; z-index: 1; }
.hero-art { display: none; }
.hero h1 { color: #fff; max-width: 16ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700;
  color: var(--amber); margin-bottom: 0.75rem;
}
.lead { font-size: clamp(1.15rem, 3vw, 1.4rem); max-width: 34ch; }
.lead strong { color: #fff; }
.hero .avail-count { font-weight: 800; color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-note { font-size: 0.95rem; color: #d7e6dd; margin-bottom: 1rem; }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--cream); }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 1.75rem; }

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

/* Units */
.units-grid { display: grid; gap: 1.25rem; }
.unit-card { border-top: 6px solid var(--green-800); }
.unit-head h3 { font-size: 1.5rem; margin-bottom: 0.1em; }
.unit-area { color: var(--muted); margin-bottom: 0.75rem; }
.price { margin-bottom: 0.5rem; color: var(--green-900); }
.price-amount { font-size: 2.75rem; font-weight: 800; line-height: 1; }
.price-term { font-size: 1.1rem; color: var(--muted); }
.availability { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--green-700); margin-bottom: 1.25rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2e9e5e; box-shadow: 0 0 0 3px rgba(46,158,94,0.2); }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em;
  width: 0.5rem; height: 0.85rem;
  border: solid var(--green-700); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.fine-print { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }

.details { margin: 0; }
.details > div { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
.details dt { font-weight: 700; font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.details dd { margin: 0.15rem 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; counter-reset: none; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--green-800); color: #fff; font-weight: 800; margin-bottom: 0.75rem;
}
.step p { margin: 0; }

/* Location */
.location-grid { display: grid; gap: 1.5rem; align-items: start; }
.address { font-style: normal; font-size: 1.15rem; line-height: 1.6; margin-bottom: 0.75rem; font-weight: 600; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--green-50);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact / form */
.contact-grid { display: grid; gap: 1.75rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.contact-label { display: inline-block; min-width: 7.5rem; font-weight: 700; color: var(--muted); }

.form .field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; }
.form label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.req { color: #a33b1f; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.65rem 0.75rem;
  border: 1.5px solid #9aa59e; border-radius: 8px; background: #fff;
}
.form input:focus, .form textarea:focus { border-color: var(--green-800); outline: 3px solid rgba(233,162,59,0.55); outline-offset: 0; }
.form .fine-print { margin-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--green-900); color: #dbe7df; padding: 2.25rem 0; font-size: 0.95rem; }
.site-footer p { margin: 0 0 0.3rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-name { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-inner { display: grid; gap: 1.25rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .header-actions { width: auto; }
  .header-actions .btn { flex: none; padding: 0.55rem 1rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { flex: none; }
}

@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero::after { height: 110px; }
  .hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
  .hero-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25)); }
  .section { padding: 4.5rem 0; }
  .units-grid { grid-template-columns: 1fr 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr 1.4fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}
