/* =========================================================
   J.P. Statics Ltd. — Main Stylesheet
   Author : SteveK — UKActiveWeb
   Version: 2.0  |  March 2026
   ========================================================= */

/* ---- Custom Properties ---- */
:root {
  /* Brand */
  --brand:        #D4641A;
  --brand-dark:   #A84D12;
  --brand-light:  #F0975A;
  --brand-pale:   #FEF0E3;

  /* Backgrounds */
  --bg:           #FFFBF7;
  --bg-warm:      #FEF3E8;
  --bg-dark:      #2D1F15;

  /* Text */
  --text:         #2D1F15;
  --text-muted:   #7A6050;
  --text-light:   #A89080;

  /* Borders */
  --border:       #E8D2BF;
  --white:        #ffffff;

  /* Status */
  --sale:         #1E6B2E;
  --sold:         #B71C1C;
  --deposit:      #D45900;

  /* Fonts */
  --font-h:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-b:       'Inter', system-ui, -apple-system, sans-serif;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  24px;

  /* Shadows */
  --sh-sm: 0 2px 8px  rgba(45, 31, 21, 0.08);
  --sh-md: 0 4px 20px rgba(45, 31, 21, 0.12);
  --sh-lg: 0 8px 40px rgba(45, 31, 21, 0.18);

  /* Layout */
  --nav-h: 72px;
  --max-w: 1200px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.brand-text { color: var(--brand); }
.muted      { color: var(--text-muted); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section       { padding: 5rem 0; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--bg-dark); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm       { gap: 0.75rem; }
.gap-md       { gap: 1.5rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-sm);
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn-white {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--brand-pale);
  color: var(--brand-dark);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ---- Top Notice Bar ---- */
.top-bar {
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.top-bar a { color: var(--white); text-decoration: underline; }

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.navbar-brand-ltd {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a,
.nav-links > button,
.nav-dropdown > button {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-b);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links > button:hover,
.nav-dropdown > button:hover {
  background: var(--bg-warm);
  color: var(--brand);
}
.nav-links a.active { color: var(--brand); font-weight: 700; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  min-width: 270px;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu .dd-label {
  display: block;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  pointer-events: none;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-warm);
  color: var(--brand);
}
.nav-dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0;
}

/* Phone button in nav */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  margin-left: 0.5rem;
}
.nav-phone:hover {
  background: var(--brand-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.nav-phone svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-phone.mobile-only { display: none; }  /* hidden on desktop, shown in mobile drawer */

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav auth icons */
.nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.nav-icon-link:hover {
  background: var(--bg-warm);
  color: var(--brand);
}
.nav-icon-link svg { width: 18px; height: 18px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,31,21,0.78) 0%, rgba(45,31,21,0.42) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 760px;
}
.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
  margin-bottom: 0.75rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.hero-content .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.trust-item svg { color: var(--brand); flex-shrink: 0; width: 20px; height: 20px; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: var(--brand-pale);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Welcome / About Section ---- */
.about-content p { color: var(--text); font-size: 1.05rem; margin-bottom: 0.9rem; }
.about-content p strong { color: var(--brand); }
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
  margin: 0.5rem 0 1.5rem;
}
.services-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.25rem 0;
}
.services-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ---- Service Cards (homepage grid) ---- */
.service-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  color: var(--text);
}
.service-card-icon {
  width: 100%;
  height: 160px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.service-card-icon svg { width: 56px; height: 56px; color: var(--brand); }
.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.service-card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex: 1;
  line-height: 1.6;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 1rem;
  transition: gap 0.2s var(--ease);
}
.service-card:hover .service-card-link { gap: 0.7rem; }
.service-card-link svg { width: 14px; height: 14px; }

/* ---- Why Choose Us ---- */
.why-item { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.5rem; }
.why-item:last-child { margin-bottom: 0; }
.why-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--brand-pale);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.why-icon svg { width: 24px; height: 24px; }
.why-text h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.why-text p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---- Partners / Logos Strip ---- */
.partners-strip {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.partners-strip .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.partners-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.partner-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.partner-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #4a2e1a 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p  { color: rgba(255,255,255,0.78); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .phone-number {
  font-family: var(--font-h);
  font-size: 2rem;
  color: var(--brand-light);
  display: block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: color 0.2s;
}
.cta-banner .phone-number:hover { color: var(--white); }

/* ============================================================
   INVENTORY / SALES
   ============================================================ */

/* Search / Filter bar */
.search-filter {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.search-filter label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.search-filter input {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 240px;
}
.search-filter input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(212,100,26,0.14);
}
.search-filter .field { flex-shrink: 0; }
.search-filter .field-grow { flex: 1; min-width: 200px; }
.search-filter .field-grow input { width: 100%; }

/* Inventory grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.inv-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.inv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  color: var(--text);
}
.inv-card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.inv-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.inv-card:hover .inv-card-img-wrap img { transform: scale(1.05); }
.inv-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}
.inv-badge.for-sale  { background: var(--sale); }
.inv-badge.sold      { background: var(--sold); }
.inv-badge.deposit   { background: var(--deposit); }
.inv-card-body {
  padding: 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.inv-card-title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.inv-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.inv-spec {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.inv-card-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.inv-price-figure {
  font-family: var(--font-h);
  font-size: 1.45rem;
  color: var(--brand);
  font-weight: 700;
}
.inv-view-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.inv-view-link svg { width: 14px; height: 14px; }

/* Results info */
.results-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
  background: var(--white);
  text-decoration: none;
}
.pagination a:hover {
  background: var(--bg-warm);
  border-color: var(--brand);
  color: var(--brand);
}
.pagination a.active,
.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}
.pagination-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   INVENTORY LISTING (detail page)
   ============================================================ */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

/* Image slider */
.img-slider {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--sh-md);
}
.img-slider-main {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--bg-warm);
}
.img-slider-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.img-slider-main img.active { opacity: 1; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--sh-md);
  transition: background 0.2s, transform 0.2s;
}
.slider-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.slider-btn-prev { left: 0.75rem; }
.slider-btn-next { right: 0.75rem; }
.slider-btn svg  { width: 18px; height: 18px; color: var(--text); }
.img-slider-thumbs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: var(--bg-warm);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.img-slider-thumbs img {
  width: 68px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}
.img-slider-thumbs img.active,
.img-slider-thumbs img:hover { opacity: 1; border-color: var(--brand); }
.slider-count {
  position: absolute;
  bottom: 0.6rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  z-index: 5;
}

/* Listing detail side */
.listing-detail { position: sticky; top: calc(var(--nav-h) + 1rem); }
.listing-detail h1 { font-size: 1.75rem; margin-bottom: 0.3rem; }
.listing-meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.listing-price-box {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.listing-price-box .status-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.listing-price {
  font-family: var(--font-h);
  font-size: 2.75rem;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.listing-price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
}
.cta-call:hover { background: var(--brand-dark); color: var(--white); }
.cta-call svg { width: 20px; height: 20px; }
.listing-specs-table { width: 100%; border-collapse: collapse; }
.listing-specs-table tr { border-bottom: 1px solid var(--border); }
.listing-specs-table tr:last-child { border-bottom: none; }
.listing-specs-table td { padding: 0.6rem 0; font-size: 0.9rem; }
.listing-specs-table td:first-child { color: var(--text-muted); font-weight: 600; width: 42%; }
.listing-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
  text-decoration: none;
}
.listing-back-btn:hover { color: var(--brand); }
.listing-back-btn svg { width: 14px; height: 14px; }
.listing-desc { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.listing-desc h3 { margin-bottom: 0.75rem; }

/* ============================================================
   SERVICE PAGES
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #4a2e1a 100%);
  padding: 3rem 0 2.5rem;
}
.page-hero .eyebrow {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.72); max-width: 600px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.35); }

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.service-img {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-md);
  position: relative;
}
.service-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.service-img:hover img { transform: scale(1.02); }

/* Editable image button */
.editable-img-wrap { position: relative; }
.edit-img-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.93);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-family: var(--font-b);
  transition: background 0.2s;
}
.edit-img-btn:hover { background: var(--white); }
.edit-img-btn svg { width: 14px; height: 14px; }
body.edit-mode .edit-img-btn { display: flex; }

.service-text h3 { margin-bottom: 1rem; color: var(--brand); }
.service-text p  { margin-bottom: 0.9rem; font-size: 1.0rem; }
.service-text p:last-child { margin-bottom: 0; }

/* Gallery section on service pages */
.gallery-section { padding: 3rem 0; }
.gallery-section-header {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery-section-header h2 { margin-bottom: 0; }

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-warm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,31,21,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay svg { color: var(--white); width: 34px; height: 34px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev svg,
.lightbox-next svg { width: 26px; height: 26px; }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================================
   ADMIN EDIT BAR
   ============================================================ */
.admin-bar {
  background: var(--bg-dark);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  z-index: 1001;   /* above navbar (1000) */
}
/* When admin bar is present, push the sticky navbar down below it */
body.admin-mode .navbar {
  top: var(--admin-bar-h, 44px);
}
.admin-bar-label { flex: 1; color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.btn-admin {
  padding: 0.4rem 1rem;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.2s, opacity 0.2s;
}
.btn-admin-save { background: #1E6B2E; color: var(--white); display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-admin-save:hover { background: #155220; }
.btn-admin-cancel { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; }
.btn-admin-cancel:hover { background: rgba(255,255,255,0.2); }

[contenteditable="true"] {
  outline: 2px dashed var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
  cursor: text;
  min-width: 1em;
}

/* Toast notification */
.jp-toast {
  position: fixed;
  bottom: 80px;
  right: 1.25rem;
  background: #1E6B2E;
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--sh-lg);
  z-index: 10000;
  animation: toastIn 0.3s var(--ease);
}
.jp-toast.error { background: #B71C1C; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.72);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-h);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-about {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-light);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-phone:hover { color: var(--white); }
.footer-phone svg { width: 18px; height: 18px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
  font-family: var(--font-b);
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  padding: 0.22rem 0;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* Sticky phone strip (mobile) */
.sticky-phone {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  z-index: 998;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.22);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.sticky-phone:hover { background: var(--brand-dark); color: var(--white); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #4a2e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.login-card h2 { text-align: center; margin-bottom: 0.4rem; }
.login-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(212,100,26,0.15);
}
.login-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}
.login-footer-links a { color: var(--text-muted); }
.login-footer-links a:hover { color: var(--brand); }
.login-error {
  background: #fde8e8;
  border: 1px solid #f5c6c6;
  color: var(--sold);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}
.login-error.visible { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .listing-layout { grid-template-columns: 1fr 320px; gap: 1.5rem; }
}

/* ---- Nav collapses to hamburger at 1100px (too many items for smaller) ---- */
@media (max-width: 1100px) {
  :root { --nav-h: 64px; }

  /* Hide full nav, show hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: var(--sh-md);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-phone.desktop-only { display: none; }
  .nav-phone.mobile-only  { display: flex; }

  /* Mobile dropdown */
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    padding: 0.25rem 0 0.25rem 0.75rem;
    margin-left: 0.5rem;
    display: none;
  }
  .nav-dropdown-menu.mobile-open { display: block; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > button { width: 100%; text-align: left; justify-content: space-between; }
}

@media (max-width: 768px) {
  /* Layout */
  .hero              { height: 420px; }
  .hero-content h1   { font-size: 1.8rem; }
  .hero-content p    { font-size: 1rem; }
  .grid-2            { grid-template-columns: 1fr; }
  .grid-3            { grid-template-columns: repeat(2, 1fr); }
  .service-layout    { grid-template-columns: 1fr; }
  .listing-layout    { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .section           { padding: 3rem 0; }
  .trust-bar .container { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .trust-item        { flex: 0 0 calc(50% - 0.5rem); justify-content: center; }

  /* Sticky phone */
  .sticky-phone { display: block; }
  body { padding-bottom: 58px; }

  /* Inventory */
  .inventory-grid { grid-template-columns: 1fr; }
  .search-filter  { flex-direction: column; }
  .search-filter input { width: 100%; }
  .listing-detail { position: static; }
}

@media (max-width: 480px) {
  .grid-3         { grid-template-columns: 1fr; }
  .grid-4         { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .services-list  { grid-template-columns: 1fr; }
  .hero-content .btn-group { flex-direction: column; align-items: center; }
  .pagination a,
  .pagination span { min-width: 34px; height: 34px; font-size: 0.8rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.w-full  { width: 100%; }
.hidden  { display: none !important; }
