/* =========================================================
   Sapele Self Storage — stylesheet
   Palette: deep green + sapele wood accent
   ========================================================= */

:root {
  --green-900: #0f3a27;
  --green: #1b5e3b;
  --green-600: #237a4c;
  --green-100: #e3efe8;
  --wood: #8b4a2b;
  --wood-light: #b5673f;
  --wood-100: #f3e4da;
  --cream: #f6f1ea;
  --grey-100: #eef0f1;
  --grey-200: #dfe3e6;
  --grey-500: #7a858f;
  --slate: #4b5661;
  --slate-900: #313a43;
  --ink: #2a2f34;
  --white: #ffffff;

  --font-head: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(20, 40, 30, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 56px 0; }
.section--grey { background: var(--grey-100); }
.section__title { font-size: clamp(24px, 3vw, 30px); color: var(--green); font-weight: 800; margin-bottom: 20px; }

.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;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff;
  padding: 8px 12px; border-radius: 4px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--solid { background: var(--wood); color: #fff; border-color: var(--wood); }
.btn--solid:hover { background: var(--wood-light); border-color: var(--wood-light); }
.btn--outline { background: transparent; color: var(--wood); border-color: var(--wood); }
.btn--outline:hover { background: var(--wood-100); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none;
}
.link-arrow::after { content: "›"; font-size: 20px; line-height: 1; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Placeholder blocks ---------- */
.ph {
  position: relative;
  background-color: var(--green-100);
  background-image:
    repeating-linear-gradient(135deg, rgba(27,94,59,.10) 0 12px, transparent 12px 24px);
  color: var(--green);
  overflow: hidden;
}
.ph::before {
  content: attr(data-label);
  position: absolute; inset: auto 12px 12px 12px;
  font: 600 12px/1.35 var(--font-body);
  background: rgba(255,255,255,.85);
  padding: 6px 10px; border-radius: 4px;
  text-align: center; pointer-events: none;
}
.ph--dark {
  background-color: var(--green-900);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
  color: #fff;
}
.ph--dark::before { background: rgba(0,0,0,.45); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(180deg, #ffffff 0%, #eef0f1 100%);
  position: relative; overflow: hidden;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 44px; height: 44px; }
.logo__text {
  font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--green); line-height: 1;
  display: flex; flex-direction: column;
}
.logo__text small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.topbar__actions { display: flex; align-items: center; gap: 18px; }
.topbar__phone {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--wood); text-decoration: none; font-size: 14px;
}
.topbar__phone svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav { background: var(--grey-100); border-bottom: 1px solid var(--grey-200); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; }
.nav__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav__menu a {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--wood); text-decoration: none; padding: 14px 0; display: inline-block;
}
.nav__menu a:hover { color: var(--green); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; flex-direction: column; gap: 4px; }
.nav__toggle span:not(.sr-only) { width: 22px; height: 2px; background: var(--green); display: block; }

.nav__search, .nav__visit { display: flex; align-items: center; gap: 10px; }
.nav__visit-label { font-size: 12px; font-weight: 700; color: var(--wood); }
.nav__visit-addr { font-size: 13px; font-weight: 600; color: var(--slate-900); }
.nav__search label { font-size: 12px; font-weight: 700; color: var(--wood); }
.nav__search-field, .finder__field {
  display: flex; align-items: center; background: #fff; border: 1px solid var(--grey-200); border-radius: 4px; overflow: hidden;
}
.nav__search-field input, .finder__field input { border: 0; padding: 8px 10px; font: inherit; font-size: 13px; width: 160px; outline: none; }
.nav__geo { background: none; border: 0; border-left: 1px solid var(--grey-200); padding: 6px 8px; color: var(--grey-500); }
.nav__geo:hover { color: var(--green); }
.nav__geo svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__panels { display: grid; grid-template-columns: 1fr 1fr; height: 300px; }
.hero__panel {
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 56px;
  background-size: cover; background-position: center; position: relative;
}
.hero__panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,58,39,.05) 30%, rgba(15,58,39,.72) 100%);
}
.hero__headline { position: relative; z-index: 1; }
.hero__headline {
  margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(26px, 3.6vw, 40px);
  color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.45); line-height: 1.05;
}
.hero__promo { background: var(--wood); color: #fff; }
.hero__promo-inner { display: flex; align-items: center; justify-content: flex-start; min-height: 46px; padding: 6px 300px 6px 0; }
.hero__promo-text { font-family: var(--font-head); font-weight: 900; font-size: clamp(16px, 2.4vw, 24px); letter-spacing: .02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__promo-sub { font-weight: 700; font-size: .6em; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }

.hero__band { background: var(--slate); color: #fff; }
.hero__band-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; position: relative; }
.hero__tagline { margin: 0; font-style: italic; font-weight: 600; display: flex; align-items: center; gap: 8px; max-width: 340px; }
.hero__tagline svg { width: 18px; height: 18px; fill: var(--cream); flex: none; }

.finder {
  background: #fff; color: var(--ink); padding: 14px 16px; border-radius: 6px; box-shadow: var(--shadow);
  position: relative; margin-top: -60px; align-self: flex-start;
}
.finder__title { font-size: 14px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.finder__addr { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--slate-900); }
.finder__addr span { display: block; font-weight: 400; color: var(--grey-500); font-size: 12px; margin-top: 2px; }
.finder__row { display: flex; gap: 8px; }
.finder__field input { width: 190px; }

/* ---------- Sizes ---------- */
.sizes { padding-bottom: 40px; }
.sizes__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.size-pill {
  background: #fff; border: 2px solid var(--green); color: var(--green); border-radius: 999px;
  padding: 8px 20px; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: background .15s, color .15s;
}
.size-pill:hover, .size-pill.is-active { background: var(--green); color: #fff; }
.sizes__hint { margin: 16px 0 0; color: var(--grey-500); font-size: 14px; }
.sizes__hint strong { color: var(--green); }

/* ---------- CTA band (corrugated door texture) ---------- */
.cta-band {
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 6px, transparent 6px 60px),
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 30%, transparent 70%, rgba(0,0,0,.12));
  color: #fff; padding: 40px 0;
}
.cta-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cta-band__col h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-band__col:first-child { padding-right: 40px; border-right: 1px solid rgba(255,255,255,.25); }

/* ---------- About ---------- */
.about__inner { max-width: 860px; margin-inline: auto; }
.checklist { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--wood); }
.check {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--green); flex: none; position: relative;
}
.check::after {
  content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Carousel (shared) ---------- */
.carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.carousel__track { flex: 1; position: relative; }
.carousel__slide { display: none; }
.carousel__slide.is-active { display: grid; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.carousel__btn {
  background: none; border: 0; color: var(--wood); padding: 8px; flex: none;
}
.carousel__btn svg { width: 28px; height: 28px; fill: currentColor; }
.carousel__btn:hover { color: var(--green); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--wood); background: transparent; padding: 0;
}
.carousel__dots button[aria-selected="true"] { background: var(--wood); }

/* ---------- Featured ---------- */
.feature {
  background: #fff; grid-template-columns: 1fr 1.1fr; min-height: 300px; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow);
}
.feature__body { padding: 40px 36px; }
.feature__eyebrow { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--wood); margin-bottom: 8px; }
.feature__title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.feature__media { min-height: 220px; }
.feature__media img, .tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__media img { position: absolute; inset: 0; }
.feature__media { position: relative; }

/* ---------- How it works ---------- */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--cream); border-radius: 6px; padding: 28px 24px 24px; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--wood); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900; font-size: 20px; margin-bottom: 14px;
}
.step h3 { font-size: 18px; color: var(--green); margin-bottom: 8px; }
.step p { margin: 0; font-size: 14px; color: var(--slate-900); }
.steps__cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 800px; margin-inline: auto; }
.faq__intro { color: var(--slate); margin-bottom: 20px; }
.faq__list { display: grid; gap: 8px; }
.faq__item { background: #fff; border-radius: 6px; border: 1px solid var(--grey-200); }
.faq__item summary {
  cursor: pointer; padding: 14px 44px 14px 18px; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--green);
  list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border: solid var(--wood); border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__item p { margin: 0; padding: 0 18px 16px; font-size: 14px; color: var(--slate-900); }

/* ---------- Tiles ---------- */
.tiles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; text-decoration: none; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile__head {
  background: var(--wood); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; text-transform: uppercase;
  letter-spacing: .03em; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center;
}
.tile__arrow { width: 8px; height: 8px; border: solid #fff; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.tile__img { aspect-ratio: 4 / 3; display: block; overflow: hidden; background: var(--green-100); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__img img { transition: transform .3s; }

/* ---------- Location ---------- */
.location-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.location-hero__media { display: grid; grid-template-rows: 1fr auto; }
.location-hero__main { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.location-hero__map { width: 100%; height: 220px; border: 0; display: block; margin-top: 4px; background: var(--grey-100); }
.location-hero__body { padding: 28px 28px 28px 0; }
.location-hero__body h3 { font-size: 22px; color: var(--green); }
.location-hero__facts { margin: 16px 0; display: grid; gap: 6px; }
.location-hero__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 14px; }
.location-hero__facts dt { font-weight: 700; color: var(--wood); }
.location-hero__facts dd { margin: 0; }
.checklist--tight { grid-template-columns: 1fr; gap: 8px; margin: 12px 0 20px; }
.checklist--tight li { font-size: 14px; }
.location-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; }
.contact__list { list-style: none; padding: 0; margin: 0; }
.optional { font-weight: 400; color: var(--grey-500); }
.sizes__intro { max-width: 640px; color: var(--slate); margin-bottom: 18px; }
.contact__list li { padding: 8px 0; border-top: 1px solid var(--grey-200); }
.contact__list strong { display: inline-block; width: 110px; color: var(--green); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--cream); padding: 24px; border-radius: 6px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; color: var(--slate-900); }
.field input, .field select, .field textarea {
  font: inherit; padding: 9px 10px; border: 1px solid var(--grey-200); border-radius: 4px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-600); outline-offset: 1px; }
.field--full { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--green); font-weight: 600; min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { background: var(--slate); color: #fff; padding: 40px 0 30px; font-size: 13px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer__brand p { margin: 12px 0 0; font-weight: 600; max-width: 300px; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.footer__col a { display: block; color: #fff; text-decoration: none; font-weight: 600; padding: 3px 0; }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); }
.footer__copy { margin: 0; font-weight: 700; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 24px; z-index: 400; display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; text-decoration: none; padding: 10px 16px 10px 12px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; left: 18px; bottom: 24px; width: 36px; height: 36px; border-radius: 4px;
  background: var(--wood); border: 0; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,58,39,.6); }
.modal__panel {
  position: relative; background: #fff; border-radius: 8px; padding: 32px; width: min(100%, 560px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 90vh; overflow: auto;
}
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; color: var(--grey-500); line-height: 1; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.calc__item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.calc__item input[type="number"] { font: inherit; padding: 8px; border: 1px solid var(--grey-200); border-radius: 4px; }
.calc__item--check { flex-direction: row; align-items: center; grid-column: 1 / -1; }
.calc__result { margin-top: 18px; }
.calc__result .result {
  background: var(--green-100); border-left: 4px solid var(--green); padding: 14px 16px; border-radius: 4px;
}
.calc__result .result strong { font-family: var(--font-head); font-size: 20px; color: var(--green); display: block; }
.pay__details { margin: 16px 0; display: grid; gap: 10px; }
.pay__details div { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--grey-200); }
.pay__details dt { font-weight: 700; color: var(--green); }
.pay__details dd { margin: 0; }
.pay__note { font-size: 13px; color: var(--slate); margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .location-hero { grid-template-columns: 1fr; gap: 0; }
  .location-hero__body { padding: 24px; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav__inner { flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__menu { display: none; flex-direction: column; gap: 0; width: 100%; order: 3; padding-bottom: 8px; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 10px 0; }
  .nav__visit { margin-left: auto; }
  .nav__visit-label { display: none; }

  .hero__panels { grid-template-columns: 1fr; height: auto; }
  .hero__panel { min-height: 190px; padding-bottom: 32px; }
  .hero__band-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 0; }
  .finder { margin-top: 0; }
  .hero__promo-inner { justify-content: center; padding: 6px 0; }
  .finder__row { flex-wrap: wrap; }
  .finder__field { flex: 1; }
  .finder__field input { width: 100%; }

  .cta-band__inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-band__col:first-child { padding-right: 0; border-right: 0; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.25); }

  .checklist { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__body { order: 2; }
  .tiles__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .topbar__inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .topbar__actions { width: 100%; justify-content: space-between; }
  .tiles__grid, .contact__form, .calc__grid { grid-template-columns: 1fr; }
  .nav__visit-addr { display: none; }
  .carousel__btn { display: none; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
}
