/* Freeman's Storage of El Reno
   Colors come from the place itself: the deep Oklahoma sky in the photos, the
   yellow safety posts, the red dirt, and the gravel of the lot. Headings use a
   sturdy slab, closer to a painted farm-store sign than a tech company. */

:root {
  color-scheme: light;
  --sky-top: #15356b;
  --sky: #284980;
  --navy: #0e2c5e;
  --yellow: #ffc20e;
  --red-dirt: #9a3b1f;
  --ink: #1f1d1a;
  --muted: #55504a;
  --paper: #fcf9f3;
  --gravel: #f1ebdf;
  --line: #ddd4c4;
  --display: "Rokkitt", Rockwell, Georgia, serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
}

img { display: block; width: 100%; height: auto; }
picture { display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
address { font-style: normal; }

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .band-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--gravel); }
.section-lede { font-size: 1.25rem; margin-top: 10px; text-wrap: balance; }
.section-lede.dark { color: var(--muted); }
.not-found-action { margin-top: 24px; }
.not-found-title { font-size: clamp(2.5rem, 6vw, 4rem); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 52px; padding: 12px 24px;
  font: 700 1.375rem/1 var(--display); letter-spacing: 0.01em;
  text-decoration: none; border: 2px solid transparent; border-radius: 4px;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffd24d; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #17427f; }
.btn-dark-outline { border-color: var(--navy); color: var(--navy); }
.btn-dark-outline:hover { background: rgba(14, 44, 94, 0.1); }
.file-note { font: 500 1rem/1 var(--body); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Hero: the copy sits in an extended sky that melts into the photo's sky. */
.hero {
  background: linear-gradient(to bottom, var(--sky-top), var(--sky) 62%);
  color: #fff;
  overflow: hidden;
}
.site-header {
  display: flex; align-items: center; gap: 24px;
  padding-block: 20px;
}
.brand { display: flex; flex-direction: column; color: #fff; text-decoration: none; margin-right: auto; }
.brand-name { font: 700 1.75rem/1 var(--display); }
.brand-place { font: 500 0.9375rem/1.2 var(--body); }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.site-nav a:hover { text-decoration: underline; }
.header-phone { color: var(--yellow); font: 700 1.5rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }

.hero-copy { padding-block: clamp(16px, 3vw, 36px) 8px; position: relative; z-index: 1; }
h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 800; line-height: 1; max-width: 20ch; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--yellow); font: 600 clamp(1rem, 1.6vw, 1.1875rem)/1.3 var(--body); }
.hero-lede { font-size: clamp(1.1875rem, 2vw, 1.4375rem); max-width: 34em; margin-block: 16px 22px; }
.hero-price { color: #fff; font-weight: 600; margin-left: 8px; text-wrap: balance; }

.hero-photo { margin-top: clamp(-90px, -5vw, -20px); }
.hero-photo img {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%);
  mask-image: linear-gradient(to bottom, transparent, #000 34%);
}

/* Metal trim: the ribbed tan wall of the buildings, used as a section edge. */
.facts-band::before, .band-navy::before, .site-footer::before {
  content: ""; display: block; height: 12px;
  background: repeating-linear-gradient(90deg, #a48d66 0 5px, #c8b48f 5px 10px);
}

/* At a glance */
.facts-band { background: var(--gravel); }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding-block: 28px;
}
.facts li { padding-inline: 20px; border-left: 1px solid var(--line); color: var(--muted); font-size: 1rem; line-height: 1.35; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; color: var(--ink); font: 700 1.5rem/1.1 var(--display); margin-bottom: 4px; }

/* Rates */
.group-title {
  font-size: 1.75rem; margin-block: 40px 18px; padding-bottom: 10px;
  border-bottom: 4px solid var(--yellow);
}
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.rate { display: flex; flex-direction: column; }
.rate img { border-radius: 4px; margin-bottom: 16px; }
.rates-lead { max-width: 34em; margin-top: 12px; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.35; }
.group-note { margin-block: -6px 18px; color: var(--muted); }
.rate h4 { font-size: 1.75rem; }
.rate-size { color: var(--muted); font-weight: 600; }
.rate-price { font: 800 3.5rem/1 var(--display); margin-top: 12px; color: var(--red-dirt); }
.rate-price span { font: 500 1.125rem/1 var(--body); color: var(--muted); }
.rate-price .from { margin-right: 2px; }
.rate-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1rem; }

/* Other payment terms, right after the lowest prices. */
.pay-other {
  display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center;
  margin-top: 40px; padding: clamp(24px, 4vw, 40px);
  background: var(--red-dirt); color: #fff; border-radius: 4px;
}
.pay-other h3 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
.pay-other p { max-width: 36em; margin-top: 10px; }
.pay-other :focus-visible { outline-color: var(--yellow); }

/* Size drawings. Every width below is a share of .plans, based on feet out of
   50, and each SVG's viewBox is in feet, so all of them share one scale. */
.plans-intro { color: var(--muted); }
.plans { margin: 18px 0 0; width: 100%; max-width: 820px; }
.scale-key { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 0.9375rem; font-weight: 600; }
.scale-key-bar { flex: 0 0 20%; height: 9px; border: solid var(--navy); border-width: 0 2px 2px; }
.plan { margin-bottom: 18px; }
.plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.plan-50 { width: 100%; }
.plan-40 { width: 80%; }
.plan-20 { width: 40%; }
.plan-10 { width: 20%; }
.plan-pair { display: flex; gap: 24px; }
.plan-pair .plan { flex: none; }
.plan-label { margin-bottom: 6px; font-size: 0.9375rem; line-height: 1.3; color: var(--muted); }
.plan-label strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.plans figcaption { color: var(--muted); font-size: 0.9375rem; }
.plan-floor { fill: var(--gravel); stroke: var(--navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v-body { fill: #fff; stroke: var(--navy); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.v-line { fill: none; stroke: var(--navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v-dark { fill: var(--navy); }
.v-detail { fill: #c4ccd8; }
.v-accent { fill: var(--yellow); }

/* Security */
.band-navy { background: var(--navy); color: #fff; }
.security { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.feature-list { margin: 28px 0 0; }
.feature-list div { padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.feature-list dt { font: 700 1.625rem/1.1 var(--display); color: var(--yellow); }
.feature-list dd { margin: 6px 0 0; }
.security-photo { padding: 10px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); rotate: 0.7deg; }

/* How to rent */
.rent-layout { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(32px, 5vw, 72px); margin-top: 36px; align-items: start; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 32px 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  font: 700 1.875rem/1 var(--display); border-radius: 4px;
}
.steps h3 { font-size: 1.75rem; margin-bottom: 6px; }
.steps .btn { margin-top: 14px; }
/* A posted notice, like the rules sign at the gate. */
.good-to-know { background: #fff; padding: 24px 26px; border: 6px double var(--navy); }
.good-to-know h3 { font-size: 1.75rem; margin-bottom: 12px; text-align: center; color: var(--navy); }
.good-to-know li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 1rem; }
.notice-foot { padding-top: 12px; border-top: 2px solid var(--navy); font-size: 1rem; font-weight: 600; text-align: center; }

/* Photos, as printed snapshots on a board. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-top: 32px; }
.gallery li { padding: 12px 12px 14px; background: #fff; box-shadow: 0 4px 14px rgba(70, 50, 20, 0.22); }
.gallery li:nth-child(4n + 1) { rotate: -0.7deg; }
.gallery li:nth-child(4n + 2) { rotate: 0.5deg; }
.gallery li:nth-child(4n + 3) { rotate: 0.4deg; }
.gallery li:nth-child(4n) { rotate: -0.5deg; }
.gallery a { display: block; }
.gallery p { margin-top: 10px; font: 600 1.1875rem/1.2 var(--display); }

/* Contact */
.band-yellow { background: var(--yellow); color: var(--ink); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.contact-phone { margin-block: 6px 22px; font: 700 clamp(2.75rem, 7vw, 4.5rem)/1 var(--display); }
.contact-phone a { color: var(--ink); text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; }
.contact address { margin-top: 26px; }
.hours { margin-top: 10px; }
.nearby { margin-top: 10px; }
.sign-photo { margin: 0; padding: 10px 10px 12px; background: #fff; box-shadow: 0 6px 16px rgba(90, 60, 0, 0.3); rotate: -0.7deg; }
.sign-photo figcaption { margin-top: 10px; font: 600 1.1875rem/1.2 var(--display); }

/* Footer */
.site-footer { background: var(--navy); color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr minmax(200px, 280px); gap: 32px 48px; align-items: center; padding-block: 44px 32px; }
.footer-brand { font: 800 1.875rem/1.1 var(--display); }
.footer-note { margin-top: 8px; color: #d4dcea; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding-block: 4px; font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-map { display: block; width: 100%; height: auto; }
.map-state { fill: #2a4a80; stroke: #d4dcea; stroke-width: 1.5; stroke-linejoin: round; }
.map-ring { fill: none; stroke: var(--yellow); stroke-width: 2; }
.map-dot { fill: var(--yellow); }
.map-label { fill: #fff; font: 700 17px var(--display); }
.footer-legal { padding-block: 14px 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: #d4dcea; font-size: 0.9375rem; }

/* Phone call bar */
.call-bar { display: none; }

@media (max-width: 1000px) {
  .site-nav { display: none; }
}

@media (max-width: 900px) {
  .rate-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .pay-other { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; max-width: 300px; }
  .security, .rent-layout, .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .security-photo { order: -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .header-phone { font-size: 1.25rem; }
  .brand-name { font-size: 1.5rem; }
  .actions .btn { flex: 1 1 auto; }
  .hero-copy .actions .btn-primary { flex-basis: 100%; }
  .hero-price { margin-left: 0; width: 100%; text-align: center; }
  .hero-photo { margin-top: -6px; }
  .mini-grid { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .gallery { gap: 24px; }
  .plan-pair { display: block; }
  .plan-10 .plan-label { width: max-content; }
  .gallery { grid-template-columns: 1fr; }
  .rate-price { font-size: 3rem; }
  .steps li { padding-left: 62px; }
  .steps .btn { flex-direction: column; width: 100%; gap: 6px; }

  .call-bar {
    position: fixed; inset: auto 0 0 0; z-index: 5;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--navy);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center;
    height: 60px; color: var(--ink); background: var(--yellow);
    font: 700 1.5rem/1 var(--display); text-decoration: none;
  }
  .call-bar a + a { background: var(--navy); color: #fff; }
}

@media print {
  .call-bar, .site-nav, .skip-link { display: none; }
  .hero, .band-navy, .band-yellow { background: none; color: #000; }
}
