/* ==========================================================================
   Springfield Road Storage — public site
   Barn red + weathered steel. Every colour is a token on :root so a rebrand,
   or a future move to srsarthur.com with different accents, is a few edits.
   ========================================================================== */

:root {
  --barn:        #8E2B22;
  --barn-dk:     #6E1F18;
  --barn-lt:     #B24237;

  --steel:       #6F767E;
  --steel-dk:    #3C4248;
  --steel-ink:   #22262A;
  --steel-lt:    #A8AEB5;
  --galv:        #C9CFD5;

  --bone:        #F6F2EA;
  --bone-2:      #EDE7DC;
  --white:       #FFFFFF;

  --ok:          #2E7D4F;
  --ok-bg:       #E6F2EA;
  --warn:        #B4741A;
  --warn-bg:     #FBF1DF;

  --shadow:      0 1px 2px rgba(34,38,42,.07), 0 6px 20px rgba(34,38,42,.08);
  --shadow-lg:   0 18px 50px rgba(34,38,42,.22);
  --radius:      12px;
  --radius-sm:   7px;

  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* attribute must beat our own display rules */

html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--steel-ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.12;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
a { color: var(--barn); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--head); font-size: .82rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--barn); font-weight: 600; margin-bottom: .5rem;
}
.lede { font-size: 1.12rem; color: #4A5157; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--head); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; padding: .82rem 1.6rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--barn); color: var(--bone); border-color: var(--barn); }
.btn-primary:hover { background: var(--barn-dk); border-color: var(--barn-dk); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(246,242,234,.55); }
.btn-ghost:hover { background: rgba(246,242,234,.12); border-color: var(--bone); }
.btn-steel { background: var(--steel-dk); color: var(--bone); border-color: var(--steel-dk); }
.btn-steel:hover { background: var(--steel-ink); }
.btn-sm { padding: .5rem 1rem; font-size: .84rem; }

/* ---------- corrugated steel band ---------- */
/* Repeating-linear-gradient reads as ribbed metal without an image request. */
.corrugated {
  background-color: var(--steel-dk);
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,.055) 0 2px, rgba(0,0,0,.10) 2px 4px, transparent 4px 11px);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,242,234,.97); backdrop-filter: blur(9px);
  border-bottom: 3px solid var(--barn);
}
.header-inner { display: flex; align-items: center; gap: 1.4rem; height: 74px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 50px; width: auto; display: block; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--head); text-transform: uppercase; font-size: .9rem; letter-spacing: .08em;
  color: var(--steel-ink); text-decoration: none; font-weight: 500; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--barn); border-bottom-color: var(--barn); }
.header-cta { display: flex; align-items: center; gap: .9rem; flex: none; }
.phone-link {
  font-family: var(--head); font-size: 1.12rem; color: var(--steel-ink);
  text-decoration: none; letter-spacing: .03em; white-space: nowrap;
}
.phone-link:hover { color: var(--barn); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--steel-ink); cursor: pointer; padding: .2rem .4rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--bone); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--steel-dk); }
/* Stand-in for the facility photo. Swap .hero-bg's background for
   url('assets/facility.jpg') center/cover when photos arrive — nothing else
   needs to change. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 3px, rgba(0,0,0,.12) 3px 6px, transparent 6px 16px),
    linear-gradient(160deg, #4A5157 0%, #2B3035 55%, #22262A 100%);
}
.hero-inner { position: relative; padding: 5.5rem 0 5rem; }
.hero h1 { color: var(--bone); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--barn-lt); }
.hero .lede { color: #DCD8D0; margin-top: 1.1rem; }
.hero-actions { display: flex; gap: .9rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero-points { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-points div { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: #DCD8D0; }
.hero-points strong { color: var(--bone); }
.tick { color: var(--barn-lt); font-size: 1.1rem; }

/* ---------- sections ---------- */
.section { padding: 4.4rem 0; }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section.alt { background: var(--bone-2); }
.section.dark { background: var(--steel-ink); color: var(--bone); }
.section.dark h2 { color: var(--bone); }
.section.dark .lede { color: #C3C7CB; }

/* ---------- unit cards ---------- */
/* 235px min lets all five storage sizes sit on one row at desktop width
   instead of stranding a single card on a second row. */
.unit-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
/* Two parking options shouldn't stretch to half the page each. */
#parkingGrid { grid-template-columns: repeat(auto-fit, minmax(235px, 340px)); }
.unit-card {
  background: var(--white); border: 1px solid var(--galv); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.unit-card .photo {
  height: 140px; background: var(--bone-2); position: relative;
  display: grid; place-items: center; border-bottom: 1px solid var(--galv);
}
.unit-card .photo span {
  font-family: var(--head); font-size: 2.1rem; color: var(--steel-lt); letter-spacing: .05em;
}
.unit-card .body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.unit-card h3 { font-size: 1.4rem; color: var(--steel-ink); }
.unit-card .kind { font-size: .82rem; color: var(--steel); text-transform: uppercase; letter-spacing: .1em; margin-top: .15rem; }
.unit-card .desc { font-size: .92rem; color: #4A5157; margin: .7rem 0 1rem; flex: 1; }
/* Price styles removed with the prices themselves — rates are quoted by the
   office, never published. The availability pill now carries the bottom of the
   card, so it needs the spacing the price row used to provide. */
.avail {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 30px; margin-bottom: 1rem; align-self: flex-start;
}
.avail.open { background: var(--ok-bg); color: var(--ok); }
.avail.tight { background: var(--warn-bg); color: var(--warn); }
.avail.none { background: #F3E6E5; color: var(--barn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- features ---------- */
.feature-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .ico {
  flex: none; width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center;
  background: var(--barn); color: var(--bone); font-size: 1.2rem;
}
.feature h3 { font-size: 1rem; margin-bottom: .25rem; }
.feature p { font-size: .92rem; color: #4A5157; margin: 0; }
.section.dark .feature p { color: #B9BEC3; }
.section.dark .feature .ico { background: var(--barn); }

/* ---------- stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: rgba(246,242,234,.16); }
.stat-band > div { background: var(--steel-ink); padding: 1.7rem 1.2rem; text-align: center; }
.stat-band .n { font-family: var(--head); font-size: 2.5rem; color: var(--bone); line-height: 1; }
.stat-band .l { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel-lt); margin-top: .4rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--galv); padding: 1.05rem 0;
}
.faq summary {
  cursor: pointer; font-family: var(--head); font-size: 1.08rem; text-transform: uppercase;
  letter-spacing: .03em; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--barn); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .8rem 0 0; color: #4A5157; font-size: .96rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr 1fr; align-items: start; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .32rem; color: var(--steel-dk); }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .85rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--steel-lt); border-radius: var(--radius-sm); background: var(--white);
  color: var(--steel-ink);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--barn); outline-offset: -1px; border-color: var(--barn);
}
.field .hint { font-size: .78rem; color: var(--steel); margin-top: .25rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--steel); }
.form-status { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .93rem; margin-bottom: 1rem; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: #F3E6E5; color: var(--barn); }
/* Bots fill every field they can see; humans never see this one. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.info-card {
  background: var(--white); border: 1px solid var(--galv); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: .8rem; }
.info-row { display: flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--bone-2); font-size: .95rem; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--steel); min-width: 84px; flex: none; }
.map-embed {
  margin-top: 1.2rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--galv); background: var(--bone-2); height: 230px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--steel-ink); color: #A8AEB5; padding: 3rem 0 1.6rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 2rem; }
.site-footer h4 {
  font-family: var(--head); text-transform: uppercase; color: var(--bone);
  font-size: .92rem; letter-spacing: .12em; margin-bottom: .8rem;
}
.site-footer a { color: #A8AEB5; text-decoration: none; display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--bone); }
.site-footer img { height: 46px; margin-bottom: .8rem; }
.footer-bar {
  border-top: 1px solid rgba(246,242,234,.13); padding-top: 1.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem;
}
/* Staff login in the header nav. Deliberately quiet — staff know it's there and
   customers have no reason to click it — so it reads as utility beside the
   primary links rather than competing with them. */
.nav .nav-staff {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; letter-spacing: .1em; color: var(--steel);
  padding-left: 1.1rem; margin-left: .3rem;
  border-left: 1px solid var(--galv); border-bottom: 0;
}
.nav .nav-staff:hover { color: var(--barn); border-bottom: 0; }
.nav .nav-staff svg { opacity: .75; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--bone);
    flex-direction: column; gap: 0; padding: .5rem 22px 1.2rem;
    border-bottom: 3px solid var(--barn); transform: translateY(-130%);
    transition: transform .22s ease; box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: none; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--bone-2); width: 100%; }
  /* In the dropdown it's a full-width row like the rest, so the desktop
     divider-on-the-left treatment has to be undone. */
  .nav .nav-staff {
    padding-left: 0; margin-left: 0; border-left: 0;
    border-bottom: 0; padding-top: 1rem; font-size: .82rem;
  }
  .menu-btn { display: block; margin-left: auto; order: 3; }
  /* The brand lockup, a phone number and a CTA button do not fit beside a
     hamburger at 375px — they overflowed the viewport by ~100px. On a phone
     the header keeps the logo and the menu only; the same phone number and
     call-to-action are a thumb's reach away in the hero and the menu. */
  .header-cta .phone-link,
  .header-cta .btn { display: none; }
  .header-inner { gap: .75rem; }
  .brand img { height: 42px; }
  .hero-inner { padding: 3.6rem 0 3.4rem; }
  .hero-points { gap: 1rem 1.6rem; }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.2rem 0; }
}
