/* ==========================================================================
   Box House Self Storage — brand-aligned stylesheet
   Official design tokens (boxhouse.pt / Breakdance global-settings.css):
   brand #C93B3B (red), brand light #E68585, body #000 / #4A4A4A,
   page bg #EFEBEB, light sections #F5F5F7, beige accent #dcd4bf,
   links gold #c5a885, League Spartan headings + Open Sans body,
   buttons: red bg / white text / radius 3px / 14px 24px / weight 500
   ========================================================================== */

:root {
  --red: #C93B3B;            /* brand primary */
  --red-light: #E68585;      /* brand light */
  --ink: #000;               /* body text */
  --ink-soft: #4A4A4A;       /* secondary text */
  --grey: #4A4A4A;
  --bg: #EFEBEB;             /* page background */
  --bg-soft: #F5F5F7;        /* light sections */
  --bg-dark: #2a282a;        /* footer */
  --beige: #dcd4bf;          /* beige/gold accent */
  --gold: #c5a885;           /* text links */
  --line: #d8d3c8;           /* borders on light bg */
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .07);
  --font-head: 'League Spartan', 'Open Sans', sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.5rem; }
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--grey); margin-bottom: 40px; }

/* ---------- Buttons (official style) ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 500;
  padding: 14px 24px; border-radius: 3px; border: 1px solid transparent;
  font-size: 1rem; line-height: 1; text-transform: uppercase; letter-spacing: .3px;
  cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(201, 59, 59, .3); }
.btn-ghost { background: #202020; color: #fff; }
.btn-ghost:hover { background: #444244; color: #fff; }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header (official: brand red) ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .5px; color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.92); font-size: .95rem; font-weight: 600; transition: color .15s; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header .btn-primary { background: #fff; color: var(--red); }
.header .btn-primary:hover { background: #fff; color: var(--red); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.lang-switch {
  font-family: var(--font-head); font-weight: 700; color: #fff; border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 3px; padding: 5px 10px; font-size: .85rem; transition: background .15s, color .15s;
}
.lang-switch:hover { background: #fff; color: var(--red); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero (official: facility photo, dark overlay, white text) ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(42,40,42,.92) 0%, rgba(42,40,42,.78) 40%, rgba(42,40,42,.45) 100%),
    url('../assets/hero-photo.webp') center/cover no-repeat;
  color: #fff;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { margin-bottom: 18px; color: #fff; }
.hero h1::after { content: ""; display: block; width: 72px; height: 5px; background: var(--red); border-radius: 3px; margin-top: 16px; }
.hero-sub { font-size: 1.08rem; color: #e2e2e2; margin-bottom: 30px; max-width: 520px; }
.hero-sub strong { color: var(--gold); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 14px; color: #d0d0d0; font-size: .92rem; }
.hero-media { display: none; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.security-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.service { text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.service:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.service img { margin: 0 auto 16px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--grey); font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-soft); }
.price-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.price-card.featured { border: 2px solid var(--red); transform: scale(1.02); }
.price-card img { margin-bottom: 12px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; margin: 8px 0 2px; }
.price span { font-size: .95rem; font-weight: 600; color: var(--grey); }
.price .per { font-size: 1rem; color: var(--grey); }
.price-size { font-family: var(--font-head); font-weight: 700; color: var(--red); margin-bottom: 8px; }
.price-desc { color: var(--grey); font-size: .92rem; margin-bottom: 20px; min-height: 44px; }
.price-card .btn { margin-top: auto; }

/* ---------- Security (beige accent band) ---------- */
.security { background: var(--beige); color: var(--ink); }
.security .section-title { color: var(--ink); }
.security .section-sub { color: var(--ink-soft); }
.security-item { text-align: center; padding: 20px; }
.security-item img { margin: 0 auto 14px; }
.security-item h4 { color: var(--red); margin-bottom: 8px; }
.security-item p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Calculator ---------- */
.calculator { background: var(--bg); }
.calc-card { max-width: 680px; margin: 0 auto; }
.calc-controls { margin-bottom: 22px; }
.calc-controls label { display: block; font-weight: 600; margin-bottom: 8px; }
.calc-controls input[type="range"] { width: 100%; accent-color: var(--red); }
.calc-controls output { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--red); }
.calc-result { text-align: center; border-top: 1px solid var(--line); padding-top: 22px; }
.calc-reco { color: var(--grey); }
.calc-box { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.calc-price { color: var(--red); font-weight: 700; margin-bottom: 16px; }

/* ---------- Testimonials ---------- */
.testimonials { background: #fff; }
.testimonial { max-width: 720px; margin: 0 auto 20px; text-align: center; }
.testimonial blockquote { font-size: 1.15rem; font-style: italic; color: var(--ink-soft); margin-bottom: 12px; }
.testimonial figcaption { font-weight: 600; }
.stars { color: #f5a623; letter-spacing: 2px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #ccc; cursor: pointer; }
.slider-dots button.active { background: var(--red); }
.google-badge { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; color: var(--grey); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 0 20px; }
.faq-item summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; padding: 16px 0; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; font-size: 1.4rem; color: var(--red); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--grey); padding-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1fr 1.2fr; }
.contact-info h3 { margin: 18px 0 6px; }
.contact-info .location:first-child h3 { margin-top: 0; }
.contact-info p { color: var(--grey); }
.contact-note { margin-top: 20px; font-weight: 600; color: var(--ink) !important; }
.contact-form h3 { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin: 10px 0 4px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 3px;
  background: #fff; font-family: var(--font-body); font-size: .95rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 2px var(--red); }
.form-status { margin-top: 12px; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: var(--red); }

/* ---------- Newsletter (brand red band) ---------- */
.newsletter { background: var(--red); color: #fff; }
.newsletter-inner { text-align: center; }
.newsletter-inner h2 { color: #fff; margin-bottom: 8px; }
.newsletter-inner p { margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; max-width: 460px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 0; border-radius: 3px; font-size: .98rem; }
.newsletter-form .btn-primary { background: #fff; color: var(--red); }
.newsletter-form .btn-primary:hover { background: #fff; color: var(--red); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ---------- Footer (official dark) ---------- */
.footer { background: var(--bg-dark); color: #cfcfcf; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer a { color: #d8d8d8; }
.footer a:hover { color: var(--gold); }
.footer-brand strong { font-family: var(--font-head); font-size: 1.3rem; color: #fff; letter-spacing: .5px; }
.footer-brand p { margin-top: 10px; font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.footer-contact p { font-size: .95rem; margin-top: 4px; }
.footer-bottom { border-top: 1px solid #3a383a; padding: 18px 0; font-size: .85rem; color: #9a9a9a; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--red); flex-direction: column; padding: 20px; gap: 14px; }
  .nav.open { display: flex; }
  .hamburger { display: block; }
  .services-grid, .pricing-grid, .security-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero-cta { flex-direction: column; }
  .price-card.featured { transform: none; }
}
