/* CopperTop Self Storage - site styles (patterned on FEA-software's) */
:root {
  --ink: #131a33;
  --ink-soft: #4d5672;
  --line: #e2e1dc;
  --bg: #ffffff;
  --bg-alt: #f7f4ef;
  --card: #ffffff;
  --navy: #14226a;           /* ctop.org's blue, and the awning's */
  --navy-2: #0c1747;
  --copper: #b8662f;
  --copper-ink: #ffffff;
  --copper-soft: #f6e6d9;
  --copper-light: #e8a36d;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 26, 51, .06), 0 8px 24px rgba(19, 26, 51, .07);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ecebe7;
    --ink-soft: #a9adbd;
    --line: #2a3150;
    --bg: #0d1226;
    --bg-alt: #121831;
    --card: #161d3a;
    --navy: #0a1036;
    --navy-2: #060a24;
    --copper: #e0884b;
    --copper-ink: #1d0e03;
    --copper-soft: #3a2416;
    --copper-light: #f0b080;
    --ok: #4cc38a;
    --err: #ff8a7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--copper); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(800px, 100% - 32px); }
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-tag {
  display: inline-block;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 660px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: var(--copper-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: #cfd5ee; font-size: .86rem; }
.topbar-wrap { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 520px) { .topbar-wrap span { display: none; } .topbar-wrap { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), #2a3d9a);
  color: #fff;
}
.brand-text { font: 700 1.2rem/1.1 var(--font-head); }
.brand-text small { display: block; font: 500 .72rem/1.3 var(--font-body); color: var(--ink-soft); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--copper); }
.nav a.nav-cta { background: var(--copper); color: var(--copper-ink); margin-left: 8px; }
.nav-toggle { display: none; }
.nav-btn { display: none; font-size: 1.6rem; cursor: pointer; padding: 4px 8px; color: var(--ink); }
@media (max-width: 960px) {
  .nav-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: -16px; right: -16px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav a { padding: 12px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-2) url('img/storefront-wide.jpg') center 40% / cover no-repeat;
  padding: 110px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 14, 48, .92) 0%, rgba(12, 23, 71, .78) 45%, rgba(12, 23, 71, .25) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero .section-tag { color: var(--copper-light); }
.hero h1 { max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--copper-light); }
.hero .lead { color: #d8ddef; }
.hero .btn-ghost { color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: #e4e7f4; font-weight: 500; font-size: .95rem; }
.hero-facts li::before { content: "\2713"; color: var(--copper-light); margin-right: 8px; font-weight: 700; }
.page-head { padding: 64px 0 48px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--copper-soft); color: var(--copper);
}
.feature p { color: var(--ink-soft); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); display: block; width: 100%; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--copper-soft); box-shadow: inset 0 0 0 5px var(--copper);
}

/* ---------- Rates ---------- */
.rates { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.rates th, .rates td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.rates thead th { background: var(--navy); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates tbody tr:hover { background: var(--bg-alt); }
.rates .num { text-align: right; font-variant-numeric: tabular-nums; }
.rates .price { font-weight: 700; color: var(--copper); font-size: 1.05rem; }
.rates .size { font-weight: 600; white-space: nowrap; }
.rates .pic { font-size: .82rem; font-weight: 500; margin-left: 6px; }
@media (max-width: 420px) { .rates th, .rates td { padding: 11px 10px; } .rates .pic { display: block; margin: 2px 0 0; } }
.per { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }

.guide-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.guide-card img { display: block; width: 100%; aspect-ratio: 320 / 245; object-fit: cover; background: var(--bg-alt); }
.guide-card .noimg { aspect-ratio: 320 / 245; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink-soft); font: 700 2rem/1 var(--font-head); }
.guide-card .body { padding: 20px 22px 24px; }
.guide-card h3 { margin: 0 0 4px; }
.guide-card .like { color: var(--copper); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.guide-card .fits { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.guide-card .from { margin-top: 10px; font-weight: 600; }

.terms { counter-reset: t; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.terms li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: 10px; padding: 14px 18px; }

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours th { font-weight: 600; padding-right: 16px; }
.hours td small { display: block; color: var(--ink-soft); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.gate-note { margin-top: 16px; padding: 14px 18px; border-radius: 10px; background: var(--copper-soft); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #2a3d9a);
  color: #fff; border-radius: 20px; padding: 52px 28px; text-align: center;
}
.cta-band p { color: #d6dbf0; max-width: 560px; margin-inline: auto; }
.cta-band .btn-ghost { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%; min-width: 0;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.contact-grid { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }
.contact-info h3 { font-size: 1rem; margin-bottom: .3em; }
.contact-info p { margin-bottom: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: #b9c0dc; padding: 60px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #d9ddef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem;
}

/* ---------- Test-copy banner (SITE_BANNER) ---------- */
.site-banner { background: #c98a1b; color: #1b1300; text-align: center; font-weight: 700;
  font-size: .9rem; letter-spacing: .04em; padding: 6px 16px; }
