/* ============================================================
   Fulshear Fencing Pros — Custom Styles
   Font: DM Serif Display (headings) + DM Sans (body)
   Primary: #1B3A2D (forest green)
   Accent: #C85A1A (burnt orange — CTA)
   Secondary: #8B6914 (cedar gold)
   ============================================================ */

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #1C1C1C;
  background-color: #FAF9F7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.15;
}

img { max-width: 100%; display: block; }

/* ---------- UTILITY ---------- */
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-pad { padding-top: 7rem; padding-bottom: 7rem; } }

.container-custom {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---------- HEADER ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background-color: #1B3A2D !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: #fff; }

/* Mobile menu */
#mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background-color: #1B3A2D;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* header height */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 28, 20, 0.88) 0%,
    rgba(15, 28, 20, 0.70) 55%,
    rgba(15, 28, 20, 0.50) 100%
  );
}

.hero-content { position: relative; z-index: 2; }

/* Hero form card */
.quote-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  padding: 2rem;
}

.quote-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #1B3A2D;
  margin-bottom: 0.25rem;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: #1B3A2D;
  padding: 1.1rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.trust-item svg { flex-shrink: 0; }

/* ---------- FORM INPUTS ---------- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D1CEC8;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: #1C1C1C;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #1B3A2D;
  box-shadow: 0 0 0 3px rgba(27, 58, 45, 0.12);
}

.form-input::placeholder { color: #999; }

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em;
  padding-right: 2.5rem;
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #C85A1A;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
  line-height: 1;
}
.btn-primary:hover { background-color: #A34515; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ---------- SERVICE CARDS ---------- */
.service-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E8E4DC;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27, 58, 45, 0.14);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(27, 58, 45, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B3A2D;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: #C85A1A;
  opacity: 0.15;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
}

.stars { color: #F59E0B; font-size: 1.1rem; letter-spacing: 0.05em; }

.dot-btn {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #D1CEC8;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot-btn.active { background: #C85A1A; transform: scale(1.3); }

/* ---------- FAQ ACCORDION ---------- */
.faq-item { border-bottom: 1px solid #E8E4DC; }

.faq-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1C1C1C;
  transition: color 0.2s;
}
.faq-btn:hover { color: #1B3A2D; }
.faq-btn[aria-expanded="true"] { color: #1B3A2D; }

.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #F0EDE6;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.3s;
}
.faq-btn[aria-expanded="true"] .faq-icon {
  background: #1B3A2D;
  transform: rotate(45deg);
}
.faq-icon svg { transition: stroke 0.2s; stroke: #1B3A2D; }
.faq-btn[aria-expanded="true"] .faq-icon svg { stroke: #fff; }

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-body.open { max-height: 500px; }

.faq-body p {
  padding-bottom: 1.25rem;
  color: #4B5563;
  line-height: 1.7;
  font-size: 0.975rem;
}

/* ---------- STATS BAR ---------- */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.75rem;
  color: #C85A1A;
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- PROCESS STEPS ---------- */
.process-step-number {
  width: 52px; height: 52px;
  background: #C85A1A;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin: 0 auto 1rem;
}

.process-connector {
  display: none;
}
@media (min-width: 768px) {
  .process-connector {
    display: block;
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #C85A1A, #E8E4DC);
    margin-top: -1.5rem;
    position: relative;
    top: 26px;
  }
}

/* ---------- SERVICE AREA CHIPS ---------- */
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(27, 58, 45, 0.08);
  border: 1px solid rgba(27, 58, 45, 0.15);
  color: #1B3A2D;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.area-chip:hover {
  background: rgba(27, 58, 45, 0.14);
  border-color: rgba(27, 58, 45, 0.3);
}

/* ---------- MOBILE STICKY CTA ---------- */
#mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: #1B3A2D;
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  gap: 0.75rem;
}
@media (max-width: 767px) {
  #mobile-sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
}

#mobile-sticky-cta .sticky-call-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: #1B3A2D;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

#mobile-sticky-cta .sticky-quote-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #C85A1A;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

/* ---------- FOOTER ---------- */
.footer-bg { background-color: #0E1F17; }

.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.6rem;
}
.footer-link:hover { color: #fff; }

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

/* ---------- BREADCRUMBS ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #1B3A2D 0%, #2A5440 100%);
  padding: 7rem 0 4rem;
  margin-top: 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.8); }

/* ---------- INLINE FORM SECTION ---------- */
.section-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

/* ---------- RELATED SERVICES ---------- */
.related-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #FAF9F7;
  border: 1px solid #E8E4DC;
  border-radius: 10px;
  text-decoration: none;
  color: #1C1C1C;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.related-link:hover {
  border-color: #1B3A2D;
  background: #F0EDE6;
}
.related-link svg { color: #C85A1A; flex-shrink: 0; }

/* ---------- REVIEW BADGE ---------- */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- SECTION LABELS ---------- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C85A1A;
  margin-bottom: 0.75rem;
}

/* ---------- COMPARISON TABLE ---------- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  background: #1B3A2D;
  color: #fff;
  padding: 0.875rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child { border-radius: 0 8px 0 0; }
.compare-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #E8E4DC;
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: #FAF9F7; }
.compare-table tr:hover td { background: #F0EDE6; }
