/* ============================================================
   Location Pages — Shared Stylesheet
   South Jersey Tent Rentals
   ============================================================ */

/* ---- SITE HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  box-shadow: 0 2px 16px rgba(26,64,128,0.10);
  padding: 0;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

/* ---- LOGO ---- */
.logo-link { display: flex; align-items: center; }
.logo-img  { height: 52px; width: auto; }

/* Logo markup variants (text+icon OR image) */
a.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1rem; color: #1a4080; text-decoration: none;
  white-space: nowrap;
}
a.logo i   { font-size: 1.5rem; color: #1a4080; flex-shrink: 0; }
a.logo em  { font-style: normal; color: #5a6280; font-weight: 500; }
a.logo img { height: 52px; width: auto; }

/* ---- DESKTOP NAV ---- */
.main-nav { display: flex; align-items: center; }

/* Flat-link variant (newer pages) */
.main-nav > a {
  font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 500;
  color: #1a1f36; text-decoration: none; padding: 8px 14px;
  border-radius: 6px; transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > a.active { color: #1a4080; background: rgba(26,64,128,0.07); }

/* List-link variant (older pages) */
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul li a,
.nav-links    li a {
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  color: #1a1f36; text-decoration: none; padding: 8px 14px;
  border-radius: 6px; transition: color 0.2s, background 0.2s;
  display: block; white-space: nowrap;
}
.main-nav ul li a:hover,
.nav-links    li a:hover,
.main-nav ul li a.active,
.nav-links    li a.active { color: #1a4080; background: rgba(26,64,128,0.07); }

/* Get a Quote CTA in nav — works whether it's .btn-primary or plain .nav-cta */
.btn-nav,
.main-nav .btn-primary,
.nav-links .btn-primary,
.main-nav .nav-cta,
.main-nav > .nav-cta,
.nav-links .nav-cta,
li .nav-cta {
  background: #1a4080 !important; color: #fff !important;
  padding: 9px 20px !important; border-radius: 6px !important;
  font-size: 0.88rem !important; font-weight: 700 !important;
  transition: background 0.2s !important;
  text-transform: none !important; letter-spacing: 0 !important;
  display: inline-flex !important; align-items: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  /* vertically center within the nav row */
  align-self: center !important;
}
.btn-nav:hover,
.main-nav .btn-primary:hover,
.nav-links .btn-primary:hover,
.main-nav .nav-cta:hover,
.main-nav > .nav-cta:hover,
.nav-links .nav-cta:hover,
li .nav-cta:hover { background: #2a5aad !important; }

/* ---- HAMBURGER TOGGLE ---- */
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.4rem; color: #1a4080; cursor: pointer;
  padding: 10px;                 /* 44px touch target with font size */
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}

/* ---- MOBILE DRAWER ---- */
.nav-drawer {
  position: fixed; top: 0; right: 0;
  width: min(300px, 88vw); height: 100vh;
  background: #fff; z-index: 1001;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  padding: 24px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

/* Drawer list variant */
.nav-drawer ul   { list-style: none; margin-top: 48px; padding: 0; }
.nav-drawer ul li { margin-bottom: 0; }
.nav-drawer ul li a,
.nav-drawer ul a,
.nav-drawer nav  a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: #1a1f36; text-decoration: none;
  padding: 14px 8px;                    /* 44px+ touch target */
  border-bottom: 1px solid #eef0f6;
  transition: color 0.2s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul a:hover,
.nav-drawer nav  a:hover { color: #1a4080; }

/* Drawer close button */
.drawer-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 1.4rem; color: #1a4080; cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ---- BREADCRUMB ---- */
.breadcrumb { background: #f5f6fa; border-bottom: 1px solid #e4e7f0; padding: 10px 0; }
.breadcrumb .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.breadcrumb ol {
  display: flex; gap: 6px; list-style: none; flex-wrap: wrap;
  margin: 0; padding: 0; align-items: center;
}
.breadcrumb ol li { font-size: 0.82rem; color: #5a6280; }
.breadcrumb ol li::before {
  content: '›';
  margin-right: 6px; color: #a0a5bb;
}
.breadcrumb ol li:first-child::before { display: none; }
.breadcrumb ol li a { color: #1a4080; text-decoration: none; }
.breadcrumb ol li a:hover { text-decoration: underline; }
.breadcrumb ol li[aria-current="page"] { font-weight: 600; color: #1a1f36; }

/* ---- HERO ---- */
.loc-hero {
  min-height: 440px;
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative;
}

/* Overlay fallback if not inline */
.loc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(26,64,128,0.60);
  pointer-events: none;
}

/* Two naming variants for the hero content wrapper */
.loc-hero-content,
.hero-inner,
.loc-hero-inner {
  position: relative; z-index: 2;
  padding: 72px 32px;
  max-width: 820px;
  width: 100%;
}
.loc-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 800; color: #fff; margin-bottom: 18px; line-height: 1.15;
}
.loc-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.92);
  margin-bottom: 28px; line-height: 1.75;
  max-width: 680px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s; border: none;
  min-height: 44px;            /* touch target */
}
.btn-primary { background: #1a4080; color: #fff; }
.btn-primary:hover { background: #2a5aad; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px;
  background: transparent; color: #1a4080;
  border: 2px solid #1a4080;
  font-weight: 600; font-size: 0.93rem;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s;
  min-height: 44px;
}
.btn-secondary:hover { background: #1a4080; color: #fff; transform: translateY(-1px); }

.btn-white { background: #fff; color: #1a4080; }
.btn-white:hover { background: #f0f4ff; transform: translateY(-1px); }

.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---- TRUST BAR ---- */
.trust-bar { background: #1a4080; padding: 16px 0; }
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  align-items: center;
}

/* Variant 1: <div class="trust-item"><i/><span/></div> */
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 0.88rem; font-weight: 600;
}
.trust-item i { color: #f9c74f; font-size: 0.95rem; }
.trust-item span { color: #fff; }

/* Variant 2: <span><i/> text</span> directly in trust-bar-inner */
.trust-bar-inner > span {
  color: #fff; font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.trust-bar-inner > span i { color: #f9c74f; }

/* ---- SECTIONS ---- */
.loc-section { padding: 72px 0; }
.loc-section.alt { background: #f5f6fa; }

/* Section containers */
.loc-section .container,
.loc-section > .container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* Section header block (used above cards, areas grid) */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}
.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: #1a1f36;
  margin-bottom: 10px;
}
.section-header p {
  color: #5a6280; font-size: 0.97rem; line-height: 1.7;
}

/* Alias used on older pages */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: #1a1f36;
  text-align: center; margin-bottom: 44px;
}

/* ---- TWO-COL LAYOUT ---- */
.loc-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* Content column — two naming variants */
.loc-text,
.loc-content {
  /* layout handled by grid */
}
.loc-text h2,
.loc-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700; color: #1a1f36; margin-bottom: 18px;
}
.loc-text h3,
.loc-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: #1a4080; margin: 24px 0 10px;
}
.loc-text p,
.loc-content p {
  color: #3a3f55; line-height: 1.8;
  margin-bottom: 14px; font-size: 0.97rem;
}
.loc-text ul,
.loc-content ul {
  color: #3a3f55; line-height: 1.8;
  margin: 0 0 14px 18px; font-size: 0.97rem;
}
.loc-content .btn-secondary { margin-top: 8px; }

/* Image column — two naming variants */
.loc-img img,
.loc-photo img {
  width: 100%; border-radius: 16px;
  object-fit: cover; max-height: 440px;
  box-shadow: 0 8px 32px rgba(26,64,128,0.12);
}

/* ---- SERVICE CARDS ---- */
.loc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.loc-card {
  background: #fff; border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(26,64,128,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.loc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,64,128,0.13); }
.loc-card i { font-size: 2rem; color: #1a4080; margin-bottom: 16px; display: block; }
.loc-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.08rem; font-weight: 700; color: #1a1f36; margin-bottom: 10px; }
.loc-card p  { color: #5a6280; font-size: 0.93rem; line-height: 1.7; }

/* ---- PROCESS STEPS ---- */
.loc-steps {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.loc-step {
  position: relative; background: #fff;
  border-radius: 14px; padding: 32px 28px 28px;
  box-shadow: 0 4px 20px rgba(26,64,128,0.08);
}
.loc-step h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: #1a4080; margin-bottom: 10px; }
.loc-step p  { color: #5a6280; font-size: 0.93rem; line-height: 1.7; }

/* ---- AREAS GRID ---- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
/* Both <span> and <a> variants */
.areas-grid span,
.areas-grid a {
  display: block;
  background: #fff; border: 1px solid #cdd1df;
  border-radius: 8px; padding: 12px 14px;
  font-size: 0.88rem; font-weight: 500;
  color: #1a4080; text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-height: 44px;                  /* touch target */
  display: flex; align-items: center; justify-content: center;
}
.areas-grid a:hover {
  background: #1a4080; color: #fff; border-color: #1a4080;
}

/* ---- FAQ ---- */
.loc-faq { padding: 72px 0; background: #f5f6fa; }
.loc-faq-list {
  max-width: 860px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.loc-faq .section-header { padding: 0 24px; }

.loc-faq-item {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,64,128,0.07);
}
.loc-faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 22px;
  font-family: 'Montserrat', sans-serif; font-size: 0.97rem; font-weight: 600;
  color: #1a1f36; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; transition: background 0.2s;
  min-height: 44px;                   /* touch target */
}
.loc-faq-q:hover { background: #f0f4ff; }
.loc-faq-q i { color: #1a4080; transition: transform 0.3s; flex-shrink: 0; }
.loc-faq-item.open .loc-faq-q i { transform: rotate(180deg); }
.loc-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.loc-faq-item.open .loc-faq-a { max-height: 600px; }
.loc-faq-a p { padding: 0 22px 20px; color: #3a3f55; font-size: 0.95rem; line-height: 1.8; }

/* ---- CTA BAND ---- */
.loc-cta { background: linear-gradient(135deg, #1a4080 0%, #0f2d5e 100%); padding: 80px 0; }
.loc-cta-inner {
  max-width: 760px; margin: 0 auto;
  text-align: center; padding: 0 24px;
}
.loc-cta-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: #fff; margin-bottom: 16px;
}
.loc-cta-inner p {
  color: rgba(255,255,255,0.88); font-size: 1.05rem;
  line-height: 1.75; margin-bottom: 32px;
}
.loc-cta-inner a[href*="tel"] { color: #f9c74f; font-weight: 700; }
.loc-cta-inner .btn-primary { font-size: 1rem; padding: 15px 36px; }

/* ---- FOOTER ---- */
.site-footer-bottom { background: #0f1b36; padding: 28px 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.site-footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.8; }
.site-footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---- REVEAL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE — Tablet (≤ 900px) ---- */
@media (max-width: 900px) {
  .main-nav > a:not(.btn-nav):not(.nav-cta),
  .main-nav ul li a:not(.btn-primary) {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

/* ---- RESPONSIVE — Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .loc-hero { min-height: 380px; }
  .loc-hero-content,
  .hero-inner,
  .loc-hero-inner { padding: 56px 20px 48px; }
  .loc-hero p { font-size: 0.97rem; }

  /* Two-col becomes single col */
  .loc-two-col { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }

  /* Reverse order so image goes below text on mobile */
  .loc-photo,
  .loc-img { order: 2; }
  .loc-content,
  .loc-text { order: 1; }

  /* Cards */
  .loc-cards { grid-template-columns: 1fr; padding: 0 20px; }
  .loc-steps { grid-template-columns: 1fr; padding: 0 20px; }

  /* Trust bar — wrap to 2-per-row on small screens */
  .trust-bar-inner { gap: 12px; padding: 0 16px; }
  .trust-item,
  .trust-bar-inner > span { font-size: 0.82rem; gap: 6px; }

  /* Areas grid */
  .areas-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }

  /* Section padding */
  .loc-section { padding: 52px 0; }
  .loc-faq     { padding: 52px 0; }
  .loc-cta     { padding: 56px 0; }

  /* Section header */
  .section-header { padding: 0 20px; }
  .section-title  { font-size: 1.4rem; margin-bottom: 32px; }

  /* FAQ */
  .loc-faq-list { padding: 0 16px; }
  .loc-faq .section-header { padding: 0 16px; }

  /* Cards padding */
  .loc-card { padding: 24px 22px; }
  .loc-step { padding: 24px 22px; }
}

/* ---- RESPONSIVE — Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; height: 64px; }
  a.logo { font-size: 0.88rem; }
  a.logo img { height: 44px; }

  .breadcrumb ol { gap: 3px; }
  .breadcrumb ol li { font-size: 0.78rem; }

  .loc-hero h1 { font-size: 1.65rem; }
  .loc-hero-content,
  .hero-inner,
  .loc-hero-inner { padding: 44px 16px 40px; }

  .section-header h2,
  .section-title { font-size: 1.3rem; }

  .loc-cards,
  .loc-steps,
  .loc-two-col,
  .areas-grid { padding: 0 16px; }

  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .areas-grid a,
  .areas-grid span { font-size: 0.82rem; padding: 10px 8px; }

  .trust-bar-inner { flex-direction: column; align-items: flex-start; padding: 0 16px; gap: 10px; }

  .loc-cta-inner { padding: 0 16px; }
  .loc-cta-inner h2 { font-size: 1.4rem; }

  .footer-inner { padding: 0 16px; }

  .loc-faq-q { font-size: 0.92rem; padding: 16px 18px; }
  .loc-faq-a p { padding: 0 18px 18px; font-size: 0.9rem; }

  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .btn-lg { padding: 13px 26px; font-size: 0.92rem; }
}
