/*
Theme Name: TheFenceChamps
Theme URI: https://thefencechamps.com
Description: Championship-level fence company website - optimized for leads and SEO visibility.
Version: 1.0.0
Author: TheFenceChamps Dev Team
Author URI: https://thefencechamps.com
Text Domain: fencechamps
*/

/* ============================================
   DESIGN SYSTEM - CSS Custom Properties
   ============================================ */
:root {
  /* Brand Colors */
  --navy: #1B2A4A;
  --navy-dark: #111D35;
  --gold: #C8A84E;
  --gold-hover: #B8972E;
  --gold-light: #D4BA6A;
  --green: #2E7D32;
  --green-hover: #1B5E20;
  --white: #FFFFFF;
  --warm-gray: #F5F5F5;
  --charcoal: #333333;
  --light-border: #E0E0E0;
  --overlay: rgba(27, 42, 74, 0.7);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --container-padding: 0 20px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: all 0.3s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; }
h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 500; }

p { margin-bottom: 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--warm-gray);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* ============================================
   UTILITY BAR (Top)
   ============================================ */
.utility-bar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-bar a {
  color: var(--white);
  font-size: 14px;
}
.utility-bar a:hover { color: var(--gold); }

.utility-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.utility-phone {
  font-weight: 700;
  font-family: var(--font-heading);
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  font-size: 14px;
}
.social-icons a:hover { background: var(--gold); }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo:hover { color: var(--navy); }
.site-logo .logo-accent { color: var(--gold); }

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--gold);
  background: rgba(200, 168, 78, 0.08);
}

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

.main-nav .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu a {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}
.header-phone:hover { color: var(--gold); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-pre {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Trust Bar */
.trust-bar {
  background: var(--white);
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  gap: 8px;
  border-right: 1px solid var(--light-border);
}
.trust-bar-item:last-child { border-right: none; }

.trust-bar-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 168, 78, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold);
}

.trust-bar-item strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.trust-bar-item span {
  font-size: 13px;
  color: #777;
}

/* ============================================
   TRUST BADGES STRIP
   ============================================ */
.trust-badges {
  background: var(--warm-gray);
  padding: 30px 0;
}

.trust-badges-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.trust-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}

/* ============================================
   SECTION STYLES (Reusable)
   ============================================ */
.section { padding: var(--section-padding); }
.section-alt { background: var(--warm-gray); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.section-header .accent-line {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--light-border);
  border-bottom: 4px solid var(--navy);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--gold);
}

.service-card .card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(200, 168, 78, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.service-card p {
  color: #666;
  font-size: 15px;
  margin-bottom: 16px;
}

.service-card .card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   WHY US SECTION (Split Layout)
   ============================================ */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-us-content h2 { margin-bottom: 32px; }

.differentiator {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.differentiator .diff-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(200, 168, 78, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
}

.differentiator h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--navy);
}

.differentiator p {
  font-size: 15px;
  color: #666;
  margin-bottom: 0;
}

.why-us-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-us-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.image-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-collage img {
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.image-collage img:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ============================================
   FENCE TYPE SHOWCASE (Carousel)
   ============================================ */
.fence-showcase {
  overflow: hidden;
}

.fence-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 20px;
  scrollbar-width: none;
}

.fence-carousel::-webkit-scrollbar { display: none; }

.fence-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.fence-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.fence-card-img {
  width: 100%;
  height: 200px;
  background: var(--warm-gray);
  overflow: hidden;
}

.fence-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fence-card:hover .fence-card-img img { transform: scale(1.05); }

.fence-card-body {
  padding: 20px;
}

.fence-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.fence-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green);
  font-size: 16px;
  margin-bottom: 12px;
}

/* ============================================
   BEFORE/AFTER GALLERY
   ============================================ */
.ba-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: col-resize;
  box-shadow: var(--shadow-sm);
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-after { clip-path: inset(0 50% 0 0); }

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: translateX(-50%);
  z-index: 2;
}

.ba-slider .ba-handle::after {
  content: '⟨⟩';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  z-index: 3;
}

.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

/* ============================================
   TESTIMONIALS / REVIEWS
   ============================================ */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
}

.testimonial-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy);
}

.testimonial-info span {
  font-size: 13px;
  color: #999;
}

/* ============================================
   SERVICE AREA MAP
   ============================================ */
.service-map-section { position: relative; }

.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.area-map-placeholder {
  background: var(--warm-gray);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: #999;
  font-size: 18px;
  border: 2px dashed var(--light-border);
}

.area-cities {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.area-cities li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--charcoal);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.area-cities li a::before {
  content: '📍';
  font-size: 14px;
}

.area-cities li a:hover {
  background: rgba(200, 168, 78, 0.08);
  color: var(--gold);
}

/* ============================================
   PRICING TRANSPARENCY
   ============================================ */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 20px;
  text-align: left;
}

.pricing-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--light-border);
  font-size: 15px;
}

.pricing-table tbody tr:nth-child(even) { background: var(--warm-gray); }
.pricing-table tbody tr:hover { background: rgba(200, 168, 78, 0.06); }

.pricing-table .price-highlight {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green);
}

.pricing-disclaimer {
  margin-top: 16px;
  font-size: 14px;
  color: #999;
  font-style: italic;
  text-align: center;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  height: 200px;
  background: var(--warm-gray);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body .blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(200, 168, 78, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 12px;
}

.blog-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.blog-card-body h3 a { color: var(--navy); }
.blog-card-body h3 a:hover { color: var(--gold); }

.blog-card-body p {
  font-size: 14px;
  color: #666;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-banner .btn { margin: 0 8px; }

.cta-banner .cta-phone {
  margin-top: 20px;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
}

.cta-banner .cta-phone a {
  color: var(--gold);
  font-weight: 700;
  font-size: 22px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}
.footer-logo .logo-accent { color: var(--gold); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-contact-item .fci-icon {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 16px;
  margin-top: 2px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

.footer-legal {
  display: flex;
  gap: 20px;
}

/* ============================================
   QUOTE FORM
   ============================================ */
.quote-form-section {
  background: var(--warm-gray);
  padding: 80px 0;
}

.quote-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.form-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.form-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-progress-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-border);
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.form-progress-step.active .step-num {
  background: var(--gold);
  color: var(--white);
}

.form-progress-step.completed .step-num {
  background: var(--green);
  color: var(--white);
}

.form-progress-step .step-label {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}

.form-progress-step.active .step-label { color: var(--charcoal); }

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--light-border);
  align-self: center;
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  color: var(--charcoal);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: #999;
}

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--light-border);
  border-radius: 30px;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay { transform: translateY(0); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stat-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-block {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-block .stat-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.stat-block .stat-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(200, 168, 78, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: #666; margin: 0; }

/* ============================================
   SERVICE PAGE TEMPLATE
   ============================================ */
.service-hero {
  background: linear-gradient(var(--overlay), var(--overlay)),
              url('assets/images/service-placeholder.jpg') center/cover no-repeat;
  padding: 100px 0 80px;
  color: var(--white);
  text-align: center;
}

.service-hero h1 { color: var(--white); margin-bottom: 16px; }
.service-hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.process-step {
  padding: 32px 24px;
}

.process-step .step-number {
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 { font-size: 20px; margin-bottom: 8px; }
.process-step p { font-size: 15px; color: #666; margin: 0; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active { border-color: var(--gold); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { background: var(--warm-gray); }

.faq-question .faq-toggle {
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* ============================================
   PAGE HERO (Generic)
   ============================================ */
.page-hero {
  background: var(--navy);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { font-size: 18px; opacity: 0.8; }

/* ============================================
   MOBILE STICKY BAR
   ============================================ */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 999;
  padding: 12px 20px;
}

.mobile-sticky-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mobile-sticky-bar .btn { width: 100%; padding: 12px; font-size: 14px; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-blocks { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px 0;
  }

  /* Utility bar */
  .utility-bar { display: none; }

  /* Header */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
  }

  .main-nav.open { right: 0; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--light-border);
    font-size: 16px;
  }

  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 16px;
  }

  .menu-toggle { display: flex; }

  .header-cta .btn { display: none; }

  /* Hero */
  .hero { min-height: 70vh; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }

  /* Trust bar */
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }

  /* Grids */
  .services-grid,
  .ba-gallery-grid,
  .testimonials-slider,
  .blog-grid,
  .process-steps { grid-template-columns: 1fr; }

  .service-area-grid { grid-template-columns: 1fr; }
  .area-cities { grid-template-columns: 1fr; }

  /* Form */
  .quote-form-wrapper { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-progress-step .step-label { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  /* Mobile sticky bar */
  .mobile-sticky-bar { display: block; }
  body { padding-bottom: 70px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .trust-bar-inner { grid-template-columns: 1fr; }
  .stat-blocks { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .fence-card { flex: 0 0 260px; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.nav-overlay.active { display: block; }

/* ============================================
   SLIM VERSION ADDITIONS
   ============================================ */

/* Google Maps embed */
.area-map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.area-map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Company Info Block */
.company-info-block {
  margin-top: 40px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.company-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.company-phone {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.company-phone:hover { color: var(--gold); }
.company-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.company-badge {
  background: rgba(200, 168, 78, 0.1);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}
.company-quote-form h4 {
  margin-bottom: 16px;
  font-size: 20px;
}
.form-trust {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

/* Slim Quote Forms */
.slim-quote-form .form-group {
  margin-bottom: 12px;
}
.slim-quote-form input,
.slim-quote-form select,
.slim-quote-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  box-sizing: border-box;
}
.slim-quote-form input:focus,
.slim-quote-form select:focus,
.slim-quote-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.15);
}
.slim-quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Service Quote Modal */
.service-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.modal-close:hover { color: var(--charcoal); }

/* Service card quote button */
.service-quote-btn {
  display: inline-block;
  width: 100%;
  margin-top: 12px;
}

/* Fence Upkeep Tips */
.fence-upkeep-tip {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  line-height: 1.4;
}

/* Slim responsive */
@media (max-width: 768px) {
  .company-info-header { flex-direction: column; text-align: center; }
  .company-badges { justify-content: center; }
  .slim-quote-form .form-row { grid-template-columns: 1fr; }
  .modal-content { padding: 24px; }
  .company-info-block { padding: 20px; }
}
/* END SLIM VERSION ADDITIONS */
