/* JB Storage Solutions — brand palette (same as MB Storage's, per sister-company brand)
   Green   #00A34A  (primary / CTAs)
   Navy    #1E4C6B  (headings / secondary)
   Ink     #22190A  (body text / footer)
*/
:root {
  --green: #00A34A;
  --green-dark: #008a3f;
  --green-tint: #e6f6ee;
  --navy: #1E4C6B;
  --navy-dark: #163a52;
  --navy-tint: #e9eff4;
  --ink: #22190A;
  --grey: #5b5648;
  --line: #e4e1da;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 76, 107, .10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .93rem; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav .btn { padding: .55rem 1.1rem; font-size: .9rem; border-bottom: 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

.btn { display: inline-block; padding: .72rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%), var(--navy); color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(0,163,74,.35), transparent 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow { color: #7fd6a8; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: .6rem 0 1rem; }
.hero p { font-size: 1.15rem; color: #d9e4ec; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; font-size: .95rem; color: #c4d3dd; }
.hero-trust span::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head .eyebrow { color: var(--green-dark); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
h2 { color: var(--navy); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; margin: .4rem 0 .6rem; }
h3 { color: var(--navy); }
.lead { color: var(--grey); font-size: 1.06rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-tint); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.5rem; color: var(--green-dark); }

/* ---------- Unit / product cards ---------- */
.unit-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.unit-media { background: linear-gradient(160deg, var(--navy-tint), #fff); padding: 1.4rem; border-bottom: 1px solid var(--line); }
.unit-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.unit-body ul { list-style: none; }
.unit-body li { padding-left: 1.5em; position: relative; margin: .3rem 0; }
.unit-body li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.badge { display: inline-block; background: var(--green-tint); color: var(--green-dark); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: .25rem .8rem; letter-spacing: .04em; text-transform: uppercase; width: fit-content; }
.unit-sqft { color: var(--grey); font-weight: 600; font-size: .95rem; margin-top: -.3rem; }
.unit-sqft strong { color: var(--navy); }
.price-hidden { background: var(--navy-tint); border-radius: 10px; padding: .9rem 1.1rem; color: var(--navy); font-size: .95rem; }
.price-hidden strong { color: var(--green-dark); }
.unit-body .btn { margin-top: auto; }

/* ---------- Size guide figure ---------- */
.size-figure { border: 1px dashed var(--navy); border-radius: 10px; padding: 1rem; background: #fff; }
.dim-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dim-table th, .dim-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.dim-table th { color: var(--navy); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; color: var(--navy); font-size: .93rem; display: block; margin-bottom: .3rem; }
input, select, textarea { width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,163,74,.15); }
.hint { font-size: .84rem; color: var(--grey); margin-top: .25rem; }
fieldset { border: 0; }

/* Live availability badges (booking form) */
.avail-badge {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .45rem; padding: .55rem .8rem; border-radius: 9px;
  font-size: .92rem; font-weight: 700; line-height: 1.35;
}
.avail-badge.ok   { background: var(--green-tint); color: var(--green-dark); border: 1.5px solid #9adbb8; }
.avail-badge.low  { background: #fdf3e7; color: #a4560a; border: 1.5px solid #f0c894; }
.avail-badge.full { background: #fdeaea; color: #b3261e; border: 1.5px solid #efb0ac; }
.avail-badge a { color: inherit; }

/* Marketing opt-in checkbox */
.consent-check { display: flex; gap: .65rem; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; }
.consent-check input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin-top: .1rem; accent-color: var(--green); cursor: pointer; }
.consent-check label { margin: 0; font-weight: 500; color: var(--ink); font-size: .9rem; line-height: 1.5; cursor: pointer; }
.consent-check label .consent-lead { font-weight: 700; color: var(--navy); }

.quote-note { display: flex; gap: .8rem; align-items: flex-start; background: var(--green-tint); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; color: var(--ink); }
.quote-note .icon { font-size: 1.3rem; }

/* ---------- Flexibility band ---------- */
.flex-band { background: var(--green-tint); }
.flex-band-inner { display: flex; align-items: center; gap: 1.8rem; }
.flex-band .fb-icon { font-size: 2.8rem; line-height: 1; flex-shrink: 0; }
.flex-band .eyebrow { color: var(--green-dark); }
.flex-band h2 { color: var(--navy); margin: 0 0 .5rem; }
.flex-band p { margin: 0; color: var(--ink); max-width: 760px; }
.flex-band .fb-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.flex-band .fb-points li { font-weight: 700; color: var(--green-dark); font-size: .95rem; }
.flex-band .fb-points li::before { content: "✓ "; color: var(--green); font-weight: 800; }
@media (max-width: 640px) {
  .flex-band-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- WhatsApp floating chat button ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: .55rem;
  background: #25D366; color: #fff; text-decoration: none;
  padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; font-family: var(--font);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgba(0, 0, 0, .28); }
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
@media (max-width: 640px) {
  .wa-float span { display: none; }               /* icon-only bubble on phones */
  .wa-float { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* ---------- Locations ---------- */
.location-card address { font-style: normal; color: var(--grey); margin: .4rem 0 .8rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eafff3; max-width: 560px; margin: 0 auto 1.6rem; }

/* ---------- Featured branded banners (3D graphics) ---------- */
.banner-section { padding: 3rem 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.feature-banner { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #10633a; }
.feature-banner img { width: 100%; height: auto; display: block; }
a.feature-banner { transition: transform .15s ease, box-shadow .15s ease; }
a.feature-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(30,76,107,.18); }

/* horizontal step row under the phone banner */
.access-steps-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.access-steps-row li { display: flex; gap: .9rem; align-items: flex-start; }
.access-steps-row .n { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }
.access-steps-row strong { display: block; color: var(--navy); }
.access-steps-row span.t { color: var(--grey); font-size: .93rem; }
@media (max-width: 820px) { .access-steps-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .8rem; background: #fff; }
summary { font-weight: 700; color: var(--navy); cursor: pointer; }
details p { margin-top: .6rem; color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9bd; padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { color: #fff; margin-bottom: .8rem; font-size: 1rem; }
.site-footer a { color: #cfc9bd; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer ul { list-style: none; }
.site-footer li { margin: .35rem 0; }
.footer-logo { height: 60px; width: auto; margin-bottom: .8rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .85rem; color: #948d7d; }
.footer-hours { margin-top: 1rem; font-size: .88rem; line-height: 1.6; }
.footer-hours strong { color: #fff; display: block; margin-bottom: .2rem; }
.footer-hours-note { margin-top: .5rem; font-size: .82rem; color: #948d7d; line-height: 1.5; }
.footer-hours-note strong { color: var(--green); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.status-msg { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; display: none; }
.status-msg.ok { display: block; background: var(--green-tint); color: var(--green-dark); }
.status-msg.err { display: block; background: #fdecec; color: #a33; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 1rem 4%; gap: .8rem; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .grid-3, .grid-2, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
}

/* =====================================================
   Refinement pass — motion, polish & tighter integration
   ===================================================== */

/* Animated hero accent blobs + staggered entrance */
.hero::after { animation: floatBlob 15s ease-in-out infinite; }
.hero::before {
  content: ""; position: absolute; left: -130px; bottom: -170px; width: 440px; height: 440px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,163,74,.20), transparent 70%);
  z-index: 0; animation: floatBlob 20s ease-in-out infinite reverse;
}
@keyframes floatBlob { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-26px,22px); } }

/* Homepage hero: stylised (duotone) real-container photo + navy overlay */
.hero--photo {
  background: linear-gradient(115deg, rgba(16,42,60,.90) 0%, rgba(22,58,82,.66) 55%, rgba(16,42,60,.85) 100%),
              url('../img/photos/hero-brighouse.jpg') center/cover no-repeat;
}

.hero-inner > * { opacity: 0; transform: translateY(16px); animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-inner > *:nth-child(4) { animation-delay: .35s; }
.hero-inner > *:nth-child(5) { animation-delay: .45s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Scroll-reveal (class added by JS so content stays visible without JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* Animated stats band */
.stats-band { background: #fff; padding: 2.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.stat { padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .num { font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 800; color: var(--green-dark); line-height: 1; letter-spacing: -.02em; }
.stat .lab { margin-top: .5rem; color: var(--navy); font-weight: 600; font-size: .95rem; }
@media (max-width: 680px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* Card + banner micro-interactions */
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(30,76,107,.14); }
.feature-banner { position: relative; }
.feature-banner img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.feature-banner:hover img { transform: scale(1.035); }

/* Buttons: smoother shared transition */
.btn { transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(0,163,74,.28); }

/* Google review rating */
.grating { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 .2rem; }
.gstars { --pct: 100%; position: relative; display: inline-block; font-family: Arial, sans-serif; font-size: 1.15rem; line-height: 1; }
.gstars::before { content: "\2605\2605\2605\2605\2605"; color: #dcdcdc; letter-spacing: 2px; }
.gstars::after { content: "\2605\2605\2605\2605\2605"; color: #f5b301; letter-spacing: 2px; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; white-space: nowrap; }
.grating-num { font-weight: 800; color: var(--navy); }
.grating-count { color: var(--grey); text-decoration: none; font-size: .92rem; }
.grating-count:hover { color: var(--green-dark); text-decoration: underline; }

/* Locations map (Leaflet) */
#sites-map { height: 440px; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 0; }
.leaflet-popup-content { font-family: var(--font); }
.leaflet-popup-content h4 { color: var(--navy); margin-bottom: .25rem; font-size: 1rem; }
.leaflet-popup-content a.map-link { display: inline-block; margin-top: .35rem; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.leaflet-popup-content a.map-link:hover { text-decoration: underline; }
.map-pin { filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }

/* Real-photo band (image + copy) */
.photo-band .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.2rem; align-items: center; }
.photo-band .photo-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-band figcaption, .photo-figure figcaption { color: var(--grey); font-size: .88rem; margin-top: .55rem; }
.photo-figure { max-width: 640px; margin: 0 auto; }
.photo-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-figure figcaption { text-align: center; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; max-width: 1000px; margin: 0 auto; }
.photo-gallery figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-gallery figcaption { text-align: center; color: var(--grey); font-size: .88rem; margin-top: .5rem; }
@media (max-width: 820px) { .photo-band .container { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .photo-gallery { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .7rem 0; margin: 0; font-size: .85rem; color: var(--grey); }
.breadcrumb li { display: flex; align-items: center; gap: .45rem; }
.breadcrumb li + li::before { content: "›"; color: var(--grey); }
.breadcrumb a { color: var(--navy); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--grey); font-weight: 600; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green); font-weight: 800; font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 1.3rem 1.2rem; color: var(--grey); }
.faq-item .faq-a a { color: var(--green-dark); }

/* ---------- Embedded location map ---------- */
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* ---------- Persona / use-case cards ---------- */
.persona-card h3 { color: var(--navy); margin-bottom: .5rem; }
.persona-card .persona-link { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--green-dark); text-decoration: none; }
.persona-card .persona-link:hover { text-decoration: underline; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-inner > * { opacity: 1 !important; transform: none !important; }
}
