/* storagewigton.com — shared stylesheet */

:root {
  --navy: #0e2233;
  --navy-dark: #081521;
  --amber: #f5a623;
  --amber-dark: #d98c0f;
  --grey-bg: #f6f7f9;
  --text: #1c2733;
  --text-light: #5a6675;
  --border: #e2e6ea;
  --radius: 10px;
  --max-width: 1100px;
  /* Approximate match to the colour swatch supplied for the homepage
     highlight section — adjust this one line if it needs to be closer. */
  --highlight-bg: #e3993c;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

h1, h2, h3, h4, .logo-main {
  font-family: 'Anton', 'Arial Narrow', Impact, sans-serif;
  font-weight: 400; /* Anton only ships one weight — it's already heavy by design */
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

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

a { color: var(--navy); }
a:hover { color: var(--amber-dark); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--amber);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
}
.logo-main {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.logo-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.03em;
}
.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--amber); }

/* ---------- Hamburger button (mobile only) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-top: 3px solid var(--amber);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    z-index: 600;
  }
  .site-nav.nav-open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
  }
  .site-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a:hover { background: rgba(245, 166, 35, 0.12); }

  .site-header { position: relative; }

  /* Hide the floating call button while the menu is open, so it
     doesn't visually clash with the open dropdown panel. */
  body.nav-open .sticky-call-btn { display: none !important; }
}
.header-call {
  background: var(--amber);
  color: var(--navy-dark) !important;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { background: var(--amber-dark); }

/* ---------- Sticky "Call now" button, bottom-left, mobile only ---------- */
/* Desktop visitors can't tap-to-dial anyway, so this only shows where
   it's actually useful — on a phone. */
.sticky-call-btn {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 500;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 800;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.sticky-call-btn:hover { background: var(--amber-dark); color: var(--navy-dark); }
.sticky-call-icon { font-size: 1.2rem; line-height: 1; }
.sticky-call-text { font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 600px) {
  .sticky-call-btn { display: flex; }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 60px 20px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 14px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: #d7dde4;
  margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Highlight band (second "hero-style" section, home page) ---------- */
.highlight-band {
  background: var(--highlight-bg);
  color: #1c1608;
  padding: 60px 20px;
}
.highlight-band h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #1c1608;
}
.highlight-band p {
  color: #2b2211;
  margin: 0 0 14px;
}
.highlight-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.highlight-images img {
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  height: 100%;
  object-fit: cover;
}
.highlight-images img:only-child { grid-column: 1 / -1; }
@media (max-width: 500px) {
  .highlight-images { grid-template-columns: 1fr; }
}

/* ---------- Video band (home page, black background) ---------- */
.video-band {
  background: #000;
  padding: 56px 20px;
}
.video-band h2 { color: #fff; }
.video-band .video-caption {
  color: #cfd6dd;
  margin-top: 16px;
  font-size: 0.95rem;
}
.video-band .video-caption p { margin: 0; }

/* ---------- Secondary band (home page, orange highlight, one photo) ---------- */
.secondary-band {
  padding: 60px 20px;
  background: var(--highlight-bg);
}
.secondary-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "text"
    "smallgrid"
    "photo";
  gap: 24px;
  align-items: start;
}
.secondary-text-area { grid-area: text; }
.secondary-photo-area { grid-area: photo; }
.secondary-inner h2 { color: #1c1608; }
.secondary-inner p { color: #2b2211; }
.secondary-inner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.secondary-small-grid {
  grid-area: smallgrid;
  /* All actual sizing, wrapping, and centering — including balancing
     a leftover odd photo on its own row — comes from .photo-grid,
     the same proven layout already used for the main gallery. This
     class only needs to place it correctly within the section. */
}
@media (min-width: 801px) {
  /* Text and main photo sit side by side, same as before — but the
     small-photo strip now spans the FULL width of the section below
     them, rather than being squeezed into just one narrow half-column,
     which was what made thumbnails look cramped and tiny. */
  .secondary-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text photo"
      "smallgrid smallgrid";
    gap: 40px;
  }
}
.page-home .secondary-inner h2,
.page-home .secondary-inner p { text-align: center; }
.page-home .secondary-text-area {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Float-in animation for photos as they scroll into view ---------- */
.fade-in-img {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-img.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
}
.btn-amber {
  background: var(--amber);
  color: var(--navy-dark);
}
.btn-amber:hover { background: var(--amber-dark); color: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
.section {
  padding: 56px 20px;
}
.section-alt { background: var(--grey-bg); }
.section h2 {
  font-size: 1.7rem;
  margin: 0 0 18px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Cards / sizes ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ---------- Photo grids (Home gallery, About, Contact) ---------- */
/* Every photo is forced to the same 4:3 shape and cropped to fit,
   regardless of the original file's actual dimensions — so a portrait
   photo or an unusually-shaped one never looks out of place next to
   the others. */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.photo-grid img {
  flex: 0 1 260px;
  width: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .photo-grid { gap: 12px; }
  .photo-grid img { flex-basis: calc(50% - 6px); width: calc(50% - 6px); }
}

/* Contact page photo(s): shown larger and at their natural shape,
   uncropped — unlike the Home/About galleries, Contact usually has
   just one photo, so forcing a small uniform crop made it look
   undersized rather than consistent with anything. */
.natural-photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.natural-photo-grid img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(14, 34, 51, 0.12);
}
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #fdf7ee 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px 22px;
  box-shadow: 0 4px 16px rgba(14, 34, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-dark));
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(14, 34, 51, 0.12);
}
.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.15rem;
}
.card .size-figures {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ---------- List with numbers/checks ---------- */
.reason-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .reason-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reason-list { grid-template-columns: 1fr; }
}
.reason-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  background: linear-gradient(160deg, #ffffff 0%, #fdf7ee 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px 22px 58px;
  box-shadow: 0 10px 24px rgba(14, 34, 51, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.reason-list li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}
.reason-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(14, 34, 51, 0.18);
}

/* ---------- Contact / forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-details p { margin: 0 0 12px; }
.contact-details .big-phone {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfd6dd;
  padding: 40px 20px 20px;
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer a { color: #cfd6dd; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #8b96a3;
}
.footer-areas {
  max-width: var(--max-width);
  margin: 12px auto 0;
  padding: 0 20px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #6b7684;
  text-align: center;
}

/* ---------- Admin tool ---------- */
.admin-body {
  background: var(--grey-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}
.admin-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs a {
  padding: 8px 16px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-box textarea {
  width: 100%;
  min-height: 260px;
  font-family: Menlo, Consolas, monospace;
  font-size: 16px; /* iOS zooms in on focus if a text field is under 16px */
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.admin-box input[type=text], .admin-box input[type=password], .admin-box input[type=file],
.admin-box input[type=email], .admin-box input[type=tel] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 16px; /* iOS zooms in on focus if a text field is under 16px */
  font-family: inherit;
}
.admin-box button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.admin-box button:hover { background: var(--navy-dark); }
.flash-ok { background: #e6f6ea; border: 1px solid #b7e4c2; color: #1f6b34; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.flash-err { background: #fbe8e8; border: 1px solid #f0b8b8; color: #99271f; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 16px 0; }
.image-manager figure { margin: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fafafa; }
.image-manager img { width: 100%; height: 100px; object-fit: cover; }
.image-manager figcaption { padding: 6px 8px; font-size: 0.75rem; word-break: break-all; }
.image-manager figcaption a { color: #99271f; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-topbar a { font-size: 0.9rem; }

/* ---------- Home page: centred text ---------- */
.page-home .hero-text { text-align: center; }
.page-home .hero-actions { justify-content: center; }
.page-home .section h2 { text-align: center; }
.page-home .section-inner > p { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.page-home .card { text-align: center; }
