/* ============================================================
   Gilbert Garage Door Pro — Main Stylesheet
   Mobile-first responsive design
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  --charcoal: #1a1a2e;
  --navy: #16213e;
  --orange: #e87a2e;
  --orange-hover: #d46a1e;
  --white: #ffffff;
  --body-text: #333333;
  --light-gray: #f0f2f5;
  --green: #22c55e;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-stack);
  color: var(--body-text);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-stack);
  cursor: pointer;
  border: none;
  background: none;
}

/* ------------------------------------------------------------
   3. Container
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------
   3b. General .btn-primary (orange CTA button)
   ------------------------------------------------------------ */
.btn-primary {
  display: inline-block;
  background-color: var(--orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-stack);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ------------------------------------------------------------
   4. Sticky Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--charcoal);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}

/* Logo — HTML uses <a class="logo"> */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  color: var(--orange);
}

/* Desktop nav — hidden on mobile, shown >=768px */
.nav-menu {
  display: none;
}

/* Phone — hidden on mobile, shown on desktop */
.header-phone {
  display: none;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Header CTA button — uses .btn-primary, override sizing for header */
.header-cta.btn-primary {
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Menu toggle — visible on mobile only */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* HTML uses <span> inside .menu-toggle (no .bar class) */
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate hamburger to X when nav-open */
body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------
   5. Mobile Nav
   HTML structure: <nav class="nav-menu"><a>...</a><a>...</a></nav>
   (bare anchor tags, no ul/li)
   ------------------------------------------------------------ */
.nav-menu {
  display: none;
  width: 100%;
  background-color: var(--navy);
}

.nav-menu.nav-open {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
}

.nav-menu a {
  display: block;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-menu a:last-child {
  border-bottom: none;
}

.nav-menu a:hover {
  color: var(--orange);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-stack);
  text-decoration: none;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  padding: 8px 0;
}

/* Mobile: dropdown items show inline when parent is open */
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  padding-left: 20px !important;
  font-size: 15px !important;
}

/* >=1024px: Show desktop nav, phone; hide menu toggle */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    width: auto;
    background: none;
    align-items: center;
    gap: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
  }

  .nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-bottom: none;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
  }

  .nav-menu a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown-toggle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 4px;
  }

  .nav-dropdown-toggle:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--charcoal);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    padding: 8px 0;
    z-index: 100;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    white-space: nowrap;
  }

  .nav-dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--white) !important;
  }

  .header-phone {
    display: none;
  }
}

/* Only show separate phone text on very wide screens */
@media (min-width: 1280px) {
  .header-phone {
    display: block;
  }
}

/* ------------------------------------------------------------
   6. Hero Section
   HTML: .hero > .hero-overlay > .container > h1 + .hero-subtitle + .btn-primary
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(26, 26, 46, 0.6);
  z-index: 1;
}

/* HTML uses .hero-overlay (not .hero-content) */
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 0;
}

.hero h1 {
  color: var(--white);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 16px;
}

/* HTML uses .hero-subtitle (not .hero-sub) */
.hero-subtitle {
  color: var(--white);
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Hero CTA uses .btn-primary — make it larger in hero context */
.hero .btn-primary {
  font-size: 18px;
  padding: 16px 32px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 48px;
  }
}

/* ------------------------------------------------------------
   7. Trust Bar
   HTML: .trust-bar > .container > .trust-item (text directly inside)
   The .container div IS the flex wrapper.
   ------------------------------------------------------------ */
.trust-bar {
  background-color: var(--white);
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 50%;
  padding: 24px 12px;
  gap: 10px;
}

.trust-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.trust-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .trust-item {
    width: 25%;
  }

  .trust-item img {
    width: 80px;
    height: 80px;
  }

  .trust-label {
    font-size: 14px;
  }
}

/* ------------------------------------------------------------
   8. Content Body / Content Section
   ------------------------------------------------------------ */
.content-section {
  background-color: var(--white);
  padding: 60px 0;
}

.content-section.alt-bg {
  background-color: var(--light-gray);
}

.content-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.25;
}

.content-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.content-section p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--body-text);
}

.content-section ul,
.content-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-section ul {
  list-style: disc;
}

.content-section ol {
  list-style: decimal;
}

.content-section ul li,
.content-section ol li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body-text);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .content-section h2 {
    font-size: 32px;
  }

  .content-section h3 {
    font-size: 24px;
  }

  .content-section p {
    font-size: 18px;
  }

  .content-section ul li,
  .content-section ol li {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------
   9. Services Grid
   ------------------------------------------------------------ */
.services-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.services-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  text-align: center;
}

.services-section .section-sub {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* Service card sub-elements: HTML uses bare h3, p, a */
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.service-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-card a:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-section h2 {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------
   10. Service Area
   HTML uses .area-tags / .area-tag (not .area-pills / .area-pill)
   ------------------------------------------------------------ */
.service-area {
  background-color: var(--light-gray);
  padding: 60px 0;
}

.service-area h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.service-area h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-area p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  margin-top: 16px;
}

.service-area .section-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.area-tag {
  display: inline-block;
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--body-text);
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.area-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.area-tag a {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 768px) {
  .service-area h2 {
    font-size: 32px;
  }
}

/* ------------------------------------------------------------
   11. FAQ
   HTML: .faq-section.content-section > .container > h2 + .faq-item*
   .faq-item > button.faq-question + .faq-answer > p
   No .faq-list wrapper. No .faq-chevron. No .faq-answer-inner.
   ------------------------------------------------------------ */
.faq-section {
  background-color: var(--white);
  padding: 60px 0;
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  max-width: 800px;
}

.faq-item:first-of-type {
  border-top: 1px solid #e5e5e5;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  font-family: var(--font-stack);
  transition: color 0.2s ease;
}

.faq-question span {
  flex: 1;
  text-align: left;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--orange);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-question:hover {
  color: var(--orange);
}

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

.faq-answer p {
  padding-bottom: 20px;
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

@media (min-width: 768px) {
  .faq-section h2 {
    font-size: 32px;
  }
}

/* ------------------------------------------------------------
   12. CTA Band
   HTML: .cta-band > .container > h2 + p > a + a.btn-primary
   ------------------------------------------------------------ */
.cta-band {
  background-color: var(--charcoal);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto;
}

.cta-band p {
  color: var(--white);
  font-size: 20px;
  margin-top: 16px;
}

.cta-band p a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-band p a:hover {
  color: var(--orange);
}

/* CTA button in the band uses .btn-primary — make it larger */
.cta-band .btn-primary {
  font-size: 18px;
  padding: 16px 40px;
  margin-top: 24px;
}

.cta-band .cta-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .cta-band h2 {
    font-size: 32px;
  }

  .cta-band p {
    font-size: 24px;
  }
}

/* ------------------------------------------------------------
   13. Contact Form
   HTML: form.contact-form inside .content-section
   Form fields are in bare <div> wrappers (no .form-group class)
   Submit button uses .btn-primary
   ------------------------------------------------------------ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px 32px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.contact-form > div {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-stack);
  color: var(--body-text);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

/* Submit button uses .btn-primary — make it full-width in forms */
.contact-form .btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  text-align: center;
}

/* Embedded form wrappers (e.g. JotForm, Gravity Forms) */
.form-embed {
  max-width: 600px;
  margin: 0 auto;
}

.form-embed iframe {
  width: 100%;
  border: none;
}

/* ------------------------------------------------------------
   14. Footer
   HTML: .site-footer > .container > .footer-grid > .footer-col*3
   .footer-bottom > p + p (bare p tags, no special classes)
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 0;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-col p a {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col p a:hover {
  color: var(--orange);
}

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

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--orange);
  opacity: 1;
}

.footer-legal {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  opacity: 0.6;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------
   15. Mobile Fixed CTA Bar
   ------------------------------------------------------------ */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--orange);
  padding: 12px 20px;
  text-align: center;
  display: block;
}

.mobile-cta a {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.mobile-cta a:hover {
  opacity: 0.92;
}

/* Add bottom padding to body so fixed bar doesn't cover content */
body {
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ------------------------------------------------------------
   16. Price Table
   ------------------------------------------------------------ */
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.price-table thead th {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.price-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  color: var(--body-text);
  vertical-align: top;
}

.price-table tbody tr:nth-child(even) td {
  background-color: var(--light-gray);
}

.price-table tbody tr:hover td {
  background-color: #efefef;
}

.price-table tfoot td {
  padding: 12px 16px;
  font-size: 13px;
  color: #888;
  border-top: 2px solid #e5e5e5;
}

/* ------------------------------------------------------------
   17. Breadcrumb
   HTML: nav.breadcrumb > .container > span (home page)
   or nav.breadcrumb > .container > a + span (inner pages)
   ------------------------------------------------------------ */
.breadcrumb {
  font-size: 14px;
  color: #666;
  padding: 12px 0;
}

.breadcrumb a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.breadcrumb span {
  color: #666;
}

/* ------------------------------------------------------------
   18. Utility Classes
   ------------------------------------------------------------ */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ------------------------------------------------------------
   19. Section Helpers
   ------------------------------------------------------------ */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 40px 0;
}

/* bg-alt variant for alternating section backgrounds */
.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-charcoal {
  background-color: var(--charcoal);
}

.bg-navy {
  background-color: var(--navy);
}

/* ------------------------------------------------------------
   20. Responsive Images
   ------------------------------------------------------------ */
.img-fluid {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.img-hero {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .img-hero {
    height: 420px;
  }
}

/* ------------------------------------------------------------
   21. Review / Testimonial Cards
   ------------------------------------------------------------ */
.reviews-section {
  background-color: var(--light-gray);
  padding: 60px 0;
}

.reviews-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 8px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  background-color: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
}

.review-stars {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

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

.review-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.review-location {
  font-size: 13px;
  color: #888;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-section h2 {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------
   22. Page Hero (inner pages — shorter than homepage hero)
   ------------------------------------------------------------ */
.page-hero {
  background-color: var(--charcoal);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 64px 0;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .page-hero p {
    font-size: 18px;
  }
}

/* ------------------------------------------------------------
   23. Hero Split (form in hero)
   ------------------------------------------------------------ */
.hero-split {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.hero-text {
  flex: 1;
}

.hero-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
}

.hero-form h3 {
  color: var(--charcoal);
  font-size: 20px;
  margin-bottom: 16px;
}

.hero-form .contact-form input,
.hero-form .contact-form select,
.hero-form .contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: var(--font-stack);
}

.hero-form .contact-form textarea {
  resize: vertical;
}

.hero-form .contact-form .btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font-stack);
}

.hero-form .contact-form {
  max-width: none;
  padding: 0;
  box-shadow: none;
  background: none;
  border-radius: 0;
}

@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
    align-items: center;
  }

  .hero-text {
    flex: 1;
  }

  .hero-form {
    flex-shrink: 0;
  }
}

/* ------------------------------------------------------------
   24. Service Card Images
   ------------------------------------------------------------ */
.service-card img {
  width: calc(100% + 48px);
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: -24px -24px 16px -24px;
}

/* ------------------------------------------------------------
   25. Brands Bar
   ------------------------------------------------------------ */
.brands-bar {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1px solid #e5e5e5;
}

.brands-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 12px;
}

.brands-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.brands-logos a {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.brands-logos a:hover {
  opacity: 1;
}

.brands-logos img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* ------------------------------------------------------------
   26. Map Embed
   ------------------------------------------------------------ */
.map-embed {
  margin-top: 30px;
}

.map-embed iframe {
  width: 100%;
  border-radius: 12px;
}

/* ------------------------------------------------------------
   27. Disclaimer Box
   ------------------------------------------------------------ */
.disclaimer-box {
  background-color: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.disclaimer-box strong {
  color: var(--charcoal);
}

/* ------------------------------------------------------------
   28. Legal Pages & Thank You Page
   ------------------------------------------------------------ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.legal-content .effective-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--body-text);
  line-height: 1.7;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  line-height: 1.7;
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-content .marketing-disclosure {
  background-color: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.7;
}

.legal-content .marketing-disclosure strong {
  display: block;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 16px;
}

/* Thank You page */
.thankyou-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 0 100px;
  text-align: center;
}

.thankyou-content h1 {
  font-size: 2.5rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.thankyou-content .thankyou-intro {
  font-size: 1.1rem;
  color: var(--body-text);
  margin-bottom: 8px;
}

.thankyou-content .thankyou-response-time {
  font-size: 1rem;
  color: #555;
  margin-bottom: 36px;
}

.thankyou-content .call-cta {
  margin: 32px 0;
}

.thankyou-content .call-cta p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

.thankyou-steps {
  background-color: var(--light-gray);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: left;
}

.thankyou-steps h2 {
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 20px;
  text-align: center;
}

.thankyou-steps ol {
  padding-left: 20px;
}

.thankyou-steps ol li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--body-text);
}

.thankyou-back {
  margin-top: 32px;
  font-size: 14px;
}

.thankyou-back a {
  color: var(--orange);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Form Checkbox & Success Styles
   ------------------------------------------------------------ */
.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.form__checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.form__checkbox label {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.form__checkbox a {
  color: var(--orange);
  text-decoration: underline;
}

.form__success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--green);
  font-weight: 600;
  font-size: 16px;
}

.field--error {
  border-color: #ef4444 !important;
}

/* ------------------------------------------------------------
   End of stylesheet
   ------------------------------------------------------------ */
