/* ==========================================================================
   SpareSpace Storage — global stylesheet
   Brand palette and typography are defined once, here, in :root.
   Change a value below and it changes everywhere on the site.
   ========================================================================== */

:root {
  /* ---- Brand colours (from the SpareSpace brand sheet) ---- */
  --navy: #002f87; /* PANTONE 287 C  */
  --orange: #ff4612; /* PANTONE 172 C  */
  --blue: #3b5cad; /* PANTONE 7455 C */

  /* ---- Neutrals (from the same brand sheet) ---- */
  --ink: #232323;
  --ink-soft: #3a3a3a;
  --ink-mute: #545554;
  --paper: #f4f4f5;
  --paper-2: #f0eff0;
  --line: #dad9d8;
  --white: #ffffff;

  /* ---- Type scale. Fluid, so there are no jarring breakpoint jumps. ---- */
  --fs-display: clamp(2.35rem, 6.4vw, 4.4rem);
  --fs-h2: clamp(1.55rem, 3.4vw, 2.35rem);
  --fs-h3: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-city: clamp(1.6rem, 4.6vw, 2.75rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);
  --fs-lead: clamp(1.06rem, 1.35vw, 1.25rem);
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* ---- Spacing ---- */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --max-w: 1240px;

  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(35, 35, 35, 0.04), 0 8px 28px rgba(35, 35, 35, 0.07);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--orange);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

/* The page background is WHITE on purpose. The brand logo files have a white
   background baked in, so they only sit invisibly on white. Never place the
   logo on navy or orange — it disappears. */
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-soft);
  /* Exo Demi Bold is the only weight used anywhere on this site. */
  font-family: "Exo", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.65;
  /* clip rather than hidden: overflow-x:hidden on body breaks position:sticky */
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--orange);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Eyebrow labels borrow the wide letter-spacing of the STORAGE lockup
   in the logo — it is the one typographic gesture the brand already owns. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.2;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.eyebrow--onnavy {
  color: rgba(255, 255, 255, 0.86);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.75rem 1.6rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.btn__arrow {
  flex: none;
  width: 18px;
  transition: transform 180ms ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-block: 0.75rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 3px;
}

.site-header__logo img {
  width: clamp(140px, 22vw, 176px);
  height: auto;
}

.site-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.35rem;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  border-bottom-color: var(--orange);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__lockup {
  width: clamp(190px, 42vw, 268px);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.hero .eyebrow {
  justify-content: center;
}

.hero h1 {
  font-size: var(--fs-display);
  margin-block: 1.1rem 1.6rem;
  max-width: 17ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero__copy {
  max-width: 52ch;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

.hero__copy + .hero__copy {
  margin-top: 1.1rem;
}

.hero__cta {
  margin-top: clamp(1.9rem, 4vw, 2.6rem);
}

/* --------------------------------------------------------------------------
   Locations
   -------------------------------------------------------------------------- */

.locations {
  padding-block: var(--section-y);
}

.locations__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.locations__head h2 {
  font-size: var(--fs-h2);
  margin-top: 0.9rem;
}

.locations__count {
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.city-list {
  border-top: 1px solid var(--line);
}

/* Narrow screens: the status pill sits under the city name. From 560px up it
   moves out to the right-hand edge of the row. */
.city {
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  transition: padding-inline 200ms ease;
}

.city:hover {
  padding-inline: 0.6rem;
  background: linear-gradient(90deg, var(--paper-2), transparent 70%);
}

.city__name {
  font-size: var(--fs-city);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.city__state {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-top: 0.4rem;
}

.city__status {
  justify-self: start;
  margin-top: 0.85rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.city:hover .city__status {
  border-color: var(--orange);
}

@media (min-width: 560px) {
  .city {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1.25rem;
  }
  .city__status {
    justify-self: end;
    align-self: center;
    margin-top: 0;
  }
}

.locations__note {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 52ch;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   What to expect
   -------------------------------------------------------------------------- */

.expect {
  padding-block: var(--section-y);
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.expect__head h2 {
  font-size: var(--fs-h2);
  margin-top: 0.9rem;
}

.expect__list {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.expect__item {
  padding-top: 1.5rem;
  border-top: 3px solid var(--orange);
}

.expect__item h3 {
  font-size: var(--fs-h3);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.expect__item p {
  color: var(--ink-soft);
  max-width: 32ch;
}

@media (min-width: 760px) {
  .expect__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y);
  background: var(--paper);
}

.contact__grid {
  display: grid;
  /* Grid items default to min-width:auto, which stops them shrinking. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-block: 1rem 1.4rem;
}

.contact__intro {
  max-width: 40ch;
  font-size: var(--fs-lead);
}

.contact__aside {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.contact__aside dt {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.contact__aside dd {
  margin: 0.3rem 0 1.25rem;
  /* `anywhere` rather than `break-word`: only `anywhere` reduces the
     min-content width, which is what was pushing the grid past 320px. */
  overflow-wrap: anywhere;
}

.contact__aside dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact__aside dd:last-child {
  margin-bottom: 0;
}

@media (min-width: 940px) {
  .contact__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--navy);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-soft);
}

.form-card h2 {
  font-size: var(--fs-h2);
}

.form-legend {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.form-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.9rem;
}

@media (min-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: var(--fs-small);
  color: var(--navy);
  letter-spacing: 0.03em;
}

.field label .req {
  color: var(--orange);
  margin-left: 0.15rem;
}

.field input,
.field textarea {
  font: inherit;
  /* 16px minimum stops iOS Safari zooming in when a field is focused. */
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  min-height: 52px;
  width: 100%;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.55;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-mute);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: var(--focus);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--orange);
  background: #fff6f3;
}

/* Errors carry an icon and text, never colour alone. */
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: var(--fs-small);
  color: #b32a00;
  line-height: 1.45;
}

.field__error svg {
  flex: none;
  width: 16px;
  margin-top: 0.2rem;
}

.field__hint {
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.consent input {
  width: 24px;
  height: 24px;
  accent-color: var(--navy);
  /* Padding plus negative margin keeps a 44px tap target without making the
     visible box oversized or shifting the grid. */
  padding: 10px;
  box-sizing: content-box;
  margin: -10px;
}

.consent label {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.5;
}

.consent--invalid {
  border-color: var(--orange);
  background: #fff6f3;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.9rem;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  background: #fff6f3;
  color: var(--ink);
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

.form-status svg {
  flex: none;
  width: 20px;
  margin-top: 0.15rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thanks {
  text-align: left;
}

.thanks__mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  margin-bottom: 1.35rem;
}

.thanks__mark svg {
  width: 26px;
  color: var(--white);
}

.thanks h2 {
  font-size: var(--fs-h2);
}

.thanks p {
  margin-top: 0.9rem;
  max-width: 44ch;
}

.thanks .btn {
  margin-top: 1.9rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

.site-footer__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  text-decoration-color: var(--orange);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

.site-footer__heading {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ig-link svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.ig-link:hover {
  border-color: var(--orange);
  background: rgba(255, 70, 18, 0.16);
  transform: translateY(-1px);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .site-footer__social {
    justify-self: end;
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   Motion. Elements start hidden only when JavaScript is running AND the
   visitor has not asked for reduced motion — so nothing is ever stuck
   invisible for someone who has motion turned off or JS disabled.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-hero-item],
  .js [data-reveal-item] {
    opacity: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===========================================================================
   Reveal animations
   ---------------------------------------------------------------------------
   Elements fade and rise slightly into place: the hero on page load, the lower
   sections as they scroll into view.

   Two safety rules are built in, and both matter:

   1. Elements are only hidden up front when JavaScript is actually running
      (the `js` class) AND the visitor has not asked their device to reduce
      motion. Otherwise everything simply renders in its finished state.
   2. script.js removes the `js` class if it cannot start. Content must never
      be able to get stuck invisible.
   =========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js [data-anim],
  .js [data-reveal-item] {
    opacity: 0;
    transform: translateY(24px);
  }

  .js [data-anim].is-in,
  .js [data-reveal-item].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* ---------------------------------------------------------------------------
   404 page
   --------------------------------------------------------------------------- */

.notfound {
  padding-block: clamp(4rem, 12vw, 8rem);
  text-align: center;
}

.notfound h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.notfound p {
  max-width: 44ch;
  margin-inline: auto;
}

.notfound .btn {
  margin-top: 2rem;
}
