/* ============================================
   THE MODFATHER — Mobile & Responsive
   Clean rebuild. Desktop styles live in style.css.
   This file only handles screens ≤ 920px.
============================================ */

/* ─────────────────────────────────────────
   1. NAV — mobile
   The red topstrip + logo + burger.
   .nav is fixed; contains .nav-topstrip then .nav-inner
   ───────────────────────────────────────── */
@media (max-width:920px) {
  .nav-inner        { padding:0 1rem; height:60px; }
  .nav-logo         { font-size:1.05rem; }
  .nav-logo .logo-sub { display:none; }
  .nav-links,
  .nav-search-btn,
  .nav-admin-btn    { display:none !important; }
  .nav-cart-btn     { padding:.5rem .85rem; font-size:.66rem; }
  .nav-burger       { display:flex !important; }

  /* page content clears the fixed nav (topstrip ~30 + inner 60) */
  .page-wrap        { padding-top:92px !important; }
}

/* Red contact strip */
.nav-topstrip {
  min-height:30px;
}
@media (max-width:420px) {
  .nav-topstrip { font-size:.62rem; padding:.4rem 1rem; }
  .nav-topstrip span:first-child { max-width:62%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

/* ─────────────────────────────────────────
   2. HAMBURGER — animated to X
   ───────────────────────────────────────── */
.nav-burger {
  width:40px; height:40px;
  align-items:center; justify-content:center;
  flex-direction:column; gap:0;
  position:relative; z-index:9600;
  background:none; border:none; cursor:pointer;
}
.nav-burger span {
  position:absolute; width:22px; height:2px;
  background:var(--gold); border-radius:2px; left:9px;
  transition:transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-burger span:nth-child(1) { top:13px; }
.nav-burger span:nth-child(2) { top:19px; }
.nav-burger span:nth-child(3) { top:25px; }
.nav-burger.open span:nth-child(1) { top:19px; transform:rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity:0; }
.nav-burger.open span:nth-child(3) { top:19px; transform:rotate(-45deg); }

/* ─────────────────────────────────────────
   3. FULLSCREEN SLIDE-IN MENU
   ───────────────────────────────────────── */
.mobile-menu {
  position:fixed; inset:0;
  background:var(--black);
  z-index:9500;
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.mobile-menu.open { transform:translateX(0); }

.mobile-menu-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 1.25rem; height:60px;
  border-bottom:1px solid #1a1a1a; flex-shrink:0;
}
.mobile-menu-logo {
  font-family:'Cinzel',serif; font-size:1.05rem;
  color:var(--gold); letter-spacing:.07em;
  display:flex; align-items:center; gap:.5rem; text-decoration:none;
}
.mobile-menu-close {
  background:none; border:1px solid var(--stone);
  color:var(--muted); width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; cursor:pointer; transition:all .2s;
}
.mobile-menu-close:hover { border-color:var(--gold); color:var(--gold); }

/* Nav links */
.mobile-menu-nav { flex:1; display:flex; flex-direction:column; padding:.5rem 0; }
.mobile-nav-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:1.15rem 1.5rem;
  font-family:'Cinzel',serif; font-size:1.05rem;
  color:var(--ivory); text-decoration:none;
  border-bottom:1px solid #101010;
  transition:background .2s, color .2s, padding-left .2s;
  min-height:56px;
}
.mobile-nav-item:active,
.mobile-nav-item:hover,
.mobile-nav-item.active {
  color:var(--gold); background:rgba(201,168,76,.05); padding-left:1.85rem;
}
.mobile-nav-arrow { color:var(--stone); font-size:1rem; }
.mobile-nav-item:hover .mobile-nav-arrow,
.mobile-nav-item.active .mobile-nav-arrow { color:var(--gold-dark); }

/* CTAs at bottom of menu */
.mobile-menu-ctas {
  padding:1.5rem 1.25rem; display:flex; flex-direction:column; gap:.75rem;
  border-top:1px solid #1a1a1a; flex-shrink:0;
}
.mobile-cta-primary {
  display:block; background:var(--gold); color:var(--black);
  font-family:'Cinzel',serif; font-size:.85rem; letter-spacing:.12em;
  text-transform:uppercase; padding:1rem; text-align:center; text-decoration:none;
}
.mobile-cta-secondary {
  display:block; background:none; border:1px solid var(--stone); color:var(--silver);
  font-family:'Cinzel',serif; font-size:.82rem; letter-spacing:.1em;
  text-transform:uppercase; padding:.9rem; text-align:center; text-decoration:none;
}
.mobile-cta-secondary:active { border-color:var(--gold); color:var(--gold); }

/* Hours line in menu */
.mobile-hours {
  padding:1rem 1.5rem;
  font-family:'Inter',sans-serif; font-size:.72rem;
  color:var(--dim); letter-spacing:.05em;
  border-top:1px solid #1a1a1a;
  display:flex; align-items:center; gap:.5rem; flex-shrink:0;
}
.mobile-hours-dot { width:7px; height:7px; border-radius:50%; background:#4a9; flex-shrink:0; }

#mobile-bottom-nav { display:none !important; }

/* ─────────────────────────────────────────
   4. TOUCH TARGETS
   ───────────────────────────────────────── */
@media (max-width:768px) {
  .btn, .btn-add-cart, .btn-sm { min-height:46px; }
  .form-input, .form-select, .form-textarea { min-height:48px; font-size:16px !important; }
  .cookie-btn { min-height:48px; }
}

/* ─────────────────────────────────────────
   5. LAYOUT — stack everything cleanly
   ───────────────────────────────────────── */
@media (max-width:900px) {
  .container { padding:0 1.25rem; }
  .section   { padding:3.5rem 0; }

  /* Any multi-column grid → single column on mobile */
  .why-grid,
  .offer-grid,
  .cat-grid,
  .grid-4, .grid-3, .grid-2, .grid-auto,
  .testimonials-grid,
  .stats-grid,
  .split-section { grid-template-columns:1fr !important; }

  /* Split sections stack image over text */
  .split-section .split-img { min-height:220px; }
  .split-body { padding:2.5rem 1.5rem !important; }

  /* Hero */
  .hero-title  { line-height:.95; }
  .hero-ctas   { flex-direction:column; align-items:stretch; width:100%; }
  .hero-ctas .btn { width:100%; justify-content:center; }

  /* Section headings a touch smaller */
  .section-title { font-size:1.9rem; }
}

/* Product grids: 2-up on tablet, 1-up on phone */
@media (max-width:768px) {
  .product-grid,
  .products-grid { grid-template-columns:repeat(2,1fr) !important; gap:1rem; }
}
@media (max-width:460px) {
  .product-grid,
  .products-grid { grid-template-columns:1fr !important; }
  .product-card-body { padding:1rem; }
}

/* ─────────────────────────────────────────
   6. SHOP PAGE — sidebar stacks above listings
   ───────────────────────────────────────── */
@media (max-width:860px) {
  .shop-layout { grid-template-columns:1fr !important; gap:1.5rem; }
  .sidebar     { position:static !important; }
  .sidebar-block { margin-bottom:1rem; }
}

/* ─────────────────────────────────────────
   7. FOOTER
   ───────────────────────────────────────── */
@media (max-width:700px) {
  .footer-grid  { grid-template-columns:1fr 1fr; gap:2rem; }
}
@media (max-width:460px) {
  .footer-grid  { grid-template-columns:1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; text-align:center; gap:.75rem; }
}

/* ─────────────────────────────────────────
   8. FORMS
   ───────────────────────────────────────── */
@media (max-width:640px) {
  .form-grid-2, .form-grid-3 { grid-template-columns:1fr !important; gap:.85rem; }
  .repair-form, .contact-form { padding:1.5rem 1.25rem !important; }
}
.form-input.valid   { border-color:#3a7a4a; }
.form-input.invalid { border-color:var(--blood); }
.field-error {
  font-family:'Inter',sans-serif; font-size:.72rem;
  color:#c05050; margin-top:.3rem;
}

/* ─────────────────────────────────────────
   9. FLOATING BUTTONS — position on mobile
   ───────────────────────────────────────── */
@media (max-width:768px) {
  #back-to-top { bottom:1.5rem; right:1.25rem; width:44px; height:44px; }
  #wa-widget   { bottom:1.5rem !important; left:1.25rem !important; }
}

/* ─────────────────────────────────────────
   10. ACCESSIBILITY
   ───────────────────────────────────────── */
body.keyboard-nav *:focus { outline:2px solid var(--gold) !important; outline-offset:3px !important; }
#skip-nav {
  position:fixed; top:-100px; left:1rem; z-index:99999;
  background:var(--gold); color:var(--black);
  padding:.5rem 1rem; font-family:'Inter',sans-serif; font-size:.8rem;
  font-weight:600; text-decoration:none; transition:top .2s;
}
#skip-nav:focus { top:1rem; }

/* ─────────────────────────────────────────
   11. PRINT
   ───────────────────────────────────────── */
@media print {
  .nav, footer, #cookie-banner, #wa-widget, #back-to-top,
  .marquee-wrap, .trust-bar, #reviews-section { display:none !important; }
  body { background:#fff; color:#000; }
  .page-wrap { padding-top:0 !important; }
  .section-title { color:#000 !important; }
  a { color:#000; text-decoration:none; }
}
