/* ============================================================
   Mendota Storage — styles
   Brand: navy #16307a · red #d8232a · off-white #f6f7f9
   ============================================================ */

:root {
  --navy: #16307a;
  --navy-dark: #0e2054;
  --red: #d8232a;
  --red-dark: #b01a20;
  --ink: #1c2333;
  --muted: #5b6478;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e4e7ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 32, 84, 0.10);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1120px, 92%); margin-inline: auto; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-xl { padding: 1.05rem 2.4rem; font-size: 1.3rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(216, 35, 42, 0.35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-call { background: var(--red); color: #fff; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-call:hover { background: var(--red-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 0; }
.brand { text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; text-transform: uppercase; margin-right: auto; }
.brand-mendota { color: var(--navy); }
.brand-storage { color: var(--red); }
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(216, 35, 42, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy-dark);
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 0.45rem; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transform: rotate(1.2deg);
}

/* ---------- Features ---------- */
.features { padding: clamp(3rem, 6vw, 5rem) 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(22, 48, 122, 0.08);
  color: var(--navy);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--navy-dark); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Rates ---------- */
.rates { background: var(--navy-dark); color: #eef1f8; padding: clamp(3rem, 6vw, 5rem) 0; }
.rates .section-title { color: #fff; }
.rates-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.rates-copy p { color: #c3cbe4; margin-bottom: 1.4rem; max-width: 48ch; }
.rates-note { margin-top: 1.1rem; font-size: 0.95rem; }
.rates-note strong { color: #ffd166; }
.rates-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.rates-card h3 { font-family: var(--font-display); font-weight: 800; color: var(--navy-dark); margin-bottom: 1.1rem; font-size: 1.25rem; }
.fit-list { list-style: none; }
.fit-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.15rem; }
.fit-list li:last-of-type { border-bottom: 0; }
.fit-size { font-family: var(--font-display); font-weight: 700; color: var(--red); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.fit-desc { color: var(--muted); font-size: 0.95rem; }
.rates-card-cta {
  margin-top: 1.2rem;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.rates-card-cta a { font-family: var(--font-display); font-weight: 800; color: var(--navy); text-decoration: none; font-size: 1.1rem; }
.rates-card-cta a:hover { color: var(--red); }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(3rem, 6vw, 5rem) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item {
  border: 0; padding: 0; cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(14, 32, 84, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  aspect-ratio: 4 / 3;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Location ---------- */
.location { background: #fff; border-block: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0; }
.location-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.location-copy address { font-style: normal; font-size: 1.1rem; margin-bottom: 1rem; color: var(--ink); }
.location-copy p { color: var(--muted); margin-bottom: 1.4rem; }
.location-sign { margin-top: 1.8rem; }
.location-sign img { border-radius: var(--radius); box-shadow: var(--shadow); }
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.contact-inner h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.contact-inner p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c3cbe4; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
  padding: 2.5rem 0;
}
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; text-transform: uppercase; }
.footer-brand p { font-family: var(--font-body); font-weight: 400; text-transform: none; font-size: 0.92rem; margin-top: 0.6rem; color: #9aa6c9; }
.footer-brand a { color: #fff; text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }
.footer-apm { display: grid; gap: 0.5rem; justify-items: end; font-size: 0.85rem; color: #9aa6c9; }
.footer-apm img { background: #fff; border-radius: 10px; padding: 0.6rem 0.9rem; width: 160px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1rem 0; font-size: 0.85rem; color: #8b96bb; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 16, 40, 0.9);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .rates-inner, .location-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-media img { transform: none; }
  .location-map iframe { min-height: 340px; }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.9rem 5%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .feature-grid, .gallery-grid { grid-template-columns: 1fr; }
  .btn-call span { display: none; }
  .btn-call { padding: 0.55rem 0.8rem; }
  .footer-apm { justify-items: start; }
}
