/* ============================================================
   FENCING 101 - Design System
   Palette: Charcoal, Amber, Forest Green, Cream
   Style: Outdoorsy + Rugged / Modern Corporate
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --black:       #111111;
  --charcoal:    #1C1C1C;
  --dark-gray:   #2E2E2E;
  --mid-gray:    #5A5A5A;
  --light-gray:  #D0CAC0;
  --cream:       #F5F0E8;
  --white:       #FFFFFF;

  --amber:       #C17F24;
  --amber-light: #D9963E;
  --amber-dark:  #9B6318;

  --green:       #2A4A1E;
  --green-mid:   #3D6B2C;
  --green-light: #5A8F47;

  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.25);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; line-height: 1.7; color: var(--mid-gray); }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 90px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(193,127,36,0.4); }

.btn-outline {
  border: 2px solid var(--amber);
  color: var(--amber);
}
.btn-outline:hover { background: var(--amber); color: var(--white); }

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark-gray); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--charcoal);
}
.btn-white:hover { background: var(--cream); }

.btn-outline-dark {
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: var(--black);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
#navbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--amber);
  color: var(--white) !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--amber-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--black);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--amber); }
.nav-mobile .btn { margin-top: 20px; text-align: center; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(42,74,30,0.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content h1 span { color: var(--amber); }
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: var(--amber);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-item .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.stat-item .lbl {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* ── Section Themes ─────────────────────────────────────── */
.bg-dark  { background: var(--charcoal); color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.7); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

.bg-cream { background: var(--cream); }
.bg-green { background: var(--green); color: var(--white); }
.bg-green p { color: rgba(255,255,255,0.75); }
.bg-green h2, .bg-green h3 { color: var(--white); }

/* ── Section Headers ────────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header p { max-width: 600px; margin-top: 12px; }
.section-header.centered p { margin: 12px auto 0; }
.divider {
  width: 48px;
  height: 4px;
  background: var(--amber);
  margin: 16px 0 0;
  display: block;
}
.section-header.centered .divider { margin: 16px auto 0; }

/* ── Service Cards ──────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card-img {
  height: 220px;
  background: var(--charcoal);
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-body { padding: 28px; }
.service-card-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card-body p { font-size: 0.95rem; margin-bottom: 20px; }
.service-card-body a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-card-body a:hover { gap: 12px; }

/* ── Reviews ────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
  transition: transform var(--transition);
}
.review-card:hover { transform: translateY(-4px); }

.stars { color: var(--amber); display: flex; gap: 3px; margin-bottom: 12px; }
.review-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mid-gray);
  font-style: italic;
  margin-bottom: 20px;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.reviewer-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.reviewer-location {
  font-size: 0.78rem;
  color: var(--light-gray);
}

/* ── Price Estimator ────────────────────────────────────── */
.estimator-section {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.estimator-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(193,127,36,0.06);
  pointer-events: none;
}

.estimator-wrapper {
  background: var(--dark-gray);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.estimator-header {
  background: var(--black);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.estimator-header h3 { color: var(--white); font-size: 1.4rem; }

/* Toggle */
.mode-toggle {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px;
  gap: 4px;
}
.mode-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  white-space: nowrap;
}
.mode-btn.active {
  background: var(--amber);
  color: var(--white);
}

.estimator-body { padding: 36px; }

.est-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.est-field { display: flex; flex-direction: column; gap: 8px; }
.est-field label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.est-field select,
.est-field input[type="number"] {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.est-field select:focus,
.est-field input:focus {
  outline: none;
  border-color: var(--amber);
}
.est-field select option { background: var(--dark-gray); }

/* Custom select arrow */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  pointer-events: none;
  font-size: 0.85rem;
}

/* Add-ons */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.addon-item input[type="checkbox"] { display: none; }
.addon-box {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.addon-item input:checked + .addon-box {
  background: var(--amber);
  border-color: var(--amber);
}
.addon-box::after { content: ''; display: block; width: 6px; height: 10px; border-right: 2px solid white; border-bottom: 2px solid white; transform: rotate(45deg) translate(-1px,-1px); opacity: 0; transition: opacity var(--transition); }
.addon-item input:checked + .addon-box::after { opacity: 1; }
.addon-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

/* Result */
.est-result {
  background: var(--black);
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.est-price-block {}
.est-price-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.est-price {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.est-price-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.est-actions { display: flex; gap: 12px; align-items: center; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--amber);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-banner .btn-dark { background: var(--charcoal); }
.cta-banner .btn-white { background: var(--white); color: var(--amber); }

/* ── Badges / Trust strip ───────────────────────────────── */
.trust-strip {
  background: var(--cream);
  padding: 36px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray);
}
.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Gallery Grid ───────────────────────────────────────── */
.gallery-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.06);
  color: var(--mid-gray);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--charcoal);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-overlay span {
  color: var(--white);
  font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--amber); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--amber); border-color: var(--amber); }

/* ── Contact / Form ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--amber);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.contact-detail-text span { font-size: 0.95rem; color: var(--mid-gray); }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: var(--shadow);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: none;
}

/* ── Services Page ──────────────────────────────────────── */
.service-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.service-full:nth-child(even) { direction: rtl; }
.service-full:nth-child(even) > * { direction: ltr; }
.service-full-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-full-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.service-full-body {}
.service-full-body h3 { margin-bottom: 16px; }
.service-full-body p { margin-bottom: 20px; }
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--cream);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
}
/* Sections with a cream background need the opposite (white) pill fill,
   otherwise the tag blends invisibly into its own section background. */
.bg-cream .service-tag { background: var(--white); }

/* Frosted glass badge used in page-hero sections (license lookup, Yelp, etc.) */
.license-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.86rem;
  transition: background 0.25s ease;
}
.license-card:hover { background: rgba(255,255,255,0.22); }
.license-card svg { flex-shrink: 0; color: var(--amber); }

/* ── About Page ─────────────────────────────────────────── */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-stack { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 480px; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--amber);
  color: var(--white);
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}
.about-badge .big { font-size: 2rem; line-height: 1; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.value-card:hover { transform: translateY(-6px); }
.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.value-card h4 { margin-bottom: 10px; }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  height: 380px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.page-hero.no-image { background: var(--charcoal); }
.page-hero.no-image .page-hero-content { padding-top: 0; }
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-top: 12px; max-width: 560px; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--amber); }
.breadcrumb span { margin: 0 8px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}
.footer-logo span { color: var(--amber); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-contact { margin-top: 20px; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--amber); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-hours p { font-size: 0.88rem; line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom a { color: var(--amber); }

/* ── Utilities ──────────────────────────────────────────── */
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.centered { text-align: center; }
.hidden { display: none !important; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-full { grid-template-columns: 1fr; direction: ltr !important; }
  .service-full > * { direction: ltr !important; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-img-stack { max-width: 480px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .est-row { grid-template-columns: 1fr; }
  .addons-grid { grid-template-columns: 1fr; }
  .est-result { flex-direction: column; align-items: flex-start; }
  .estimator-header { flex-direction: column; align-items: flex-start; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 24px; }
  .hero-buttons { flex-direction: column; }
  .page-hero { height: 280px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.4rem; }
  .est-actions { flex-direction: column; width: 100%; }
  .est-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   GATE ESTIMATOR - dynamic SVG configurator
   ============================================================ */
.gate-app {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--dark-gray);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.gate-visual {
  background: var(--cream);
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
}
.gate-visual-inner { flex: 1; display: flex; align-items: center; }
.gate-svg { width: 100%; height: auto; display: block; }
.gate-caption { margin-top: 6px; }
.gate-caption h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.gate-caption p {
  font-size: 0.92rem;
  color: var(--mid-gray);
  margin: 0;
}

.gate-config {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gate-step { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.gate-step-width { padding-top: 4px; }
.gate-step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.gate-step-amt {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber);
  min-width: 64px;
}
.gate-step-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
#gate-width-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  outline: none;
}
#gate-width-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  border: 3px solid var(--dark-gray);
  box-shadow: 0 0 0 1px var(--amber);
}
#gate-width-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  border: 3px solid var(--dark-gray);
}
.gate-width-readout {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.gate-opt-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gate-opt {
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.gate-opt:hover { border-color: var(--amber); color: #fff; }
.gate-opt.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
  font-weight: 600;
}
.gate-total {
  margin-top: 18px;
  padding-top: 22px;
  border-top: 2px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gate-total-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.gate-total-price {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.gate-total-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  max-width: 40ch;
}
.gate-cta { align-self: flex-start; }

@media (max-width: 900px) {
  .gate-app { grid-template-columns: 1fr; }
  .gate-visual { padding: 24px 20px 10px; }
}
@media (max-width: 480px) {
  .gate-config { padding: 22px 18px 24px; }
  .gate-total-price { font-size: 2.1rem; }
}

/* Estimator teaser card (used on services/home) */
.estimator-teaser {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--charcoal);
  border-radius: 10px;
  padding: 30px 34px;
  color: #fff;
  flex-wrap: wrap;
  justify-content: space-between;
}
.estimator-teaser h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.estimator-teaser p { color: rgba(255,255,255,0.65); margin: 0; max-width: 46ch; }

/* Honest gallery placeholder */
.gallery-placeholder {
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 90px 40px;
  text-align: center;
  background: var(--white);
}
.gallery-placeholder .icon { font-size: 2.6rem; margin-bottom: 20px; display: block; }
.gallery-placeholder h3 { margin-bottom: 12px; }
.gallery-placeholder p { max-width: 50ch; margin: 0 auto; }
