/* =========================
   Global / Base Styles
   ========================= */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Brand colors (reference)
   Orange: #ef8201
   Blue:   #0086cc
*/

/* =========================
   Top Promo Bar
   ========================= */

.top-bar {
  background: #ef8201;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 2.5rem; /* Reserve space so adding rating badges doesn’t move layout */
}

/* Reserve space for the promo bar to avoid CLS */
#top-promo {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Rating badges in the TOP BAR */
.top-bar-ratings {
  display: inline-flex;
  gap: 0.75rem;
  margin-left: 0;
  align-items: center;
  justify-content: center;
}

.top-bar-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #000000;
}

.top-bar-rating-stars {
  color: #facc15; /* gold stars */
}

/* =========================
   Header / Navigation
   ========================= */

.header {
  background: #ffffff; /* logo area white */
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px; /* Reserve space so nothing jumps when fonts / logo render */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo {
  height: 50px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
}

/* Nav base */
.nav {
  display: flex;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
  align-items: center;
}

.nav a,
.dropdown-toggle {
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem; /* bigger touch target */
  color: #374151;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a.active,
.dropdown-toggle:hover {
  color: #ef8201;
  border-bottom-color: #ef8201;
}

.nav-phone {
  font-weight: 700;
  color: #0086cc; /* blue for phone to pop */
}

/* Dropdown base */
.has-dropdown {
  position: relative; /* keeps the menu under the Services/Gallery button */
}

/* Let .dropdown itself control layout */
.has-dropdown ul.dropdown {
  display: block;
}

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* Flyout menu container */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border-radius: 0.5rem;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: all 0.15s ease-out;
  z-index: 40;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0.25rem);
}

/* Simple dropdown items */
.dropdown li {
  width: 100%;
}

.dropdown li a {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  color: #111827;
  white-space: nowrap; /* prevents wrapping */
}

.dropdown li a:hover {
  background-color: #fff3e5; /* soft orange tint */
  color: #ef8201;
}

/* ===== Two-column Services / Gallery mega menu ===== */

.dropdown.dropdown-grid {
  padding: 0.5rem 0 0.75rem;
  min-width: 420px; /* wider so 2 columns fit side by side */
}

.dropdown-all a {
  font-weight: 600;
  padding: 0.6rem 1rem 0.4rem;
  display: block;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-columns {
  padding: 0.5rem 1rem 0.75rem;
  display: flex; /* two columns side by side */
  gap: 2.5rem;   /* extra spacing between columns for touch targets */
  align-items: flex-start;
}

.dropdown-columns .dropdown-col {
  flex: 1;
  min-width: 160px;
}

.dropdown-heading {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

/* Links inside mega-menu columns (larger touch area) */
.dropdown-col a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #111827;
  border-bottom: none;
}

.dropdown-col a:hover {
  background-color: #fff3e5;
  color: #ef8201;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 0.3rem;
  padding: 0.3rem 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* =========================
   Hero / Sub-hero
   ========================= */

.hero,
.sub-hero {
  position: relative;
  background: url('tde-logo.png') center -40% / 400px no-repeat;
  background-color: #000000;
  padding: 8rem 0 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 500px;      /* fixed height to prevent layout shift */
  min-height: 500px;  /* extra safety */
}

.hero::before,
.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-inner,
.sub-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transform: translateY(120px);
}

/* Shared heading, text, and CTA spacing for ALL hero sections */
.hero h1,
.sub-hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero p,
.sub-hero p {
  font-size: 0.9rem;
  margin: 0 auto 1.5rem;
  color: #ffffff;
  max-width: 650px;
}

.hero-actions,
.sub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  text-align: center;
  margin-top: 1.5rem;
}

.hero-text,
.sub-hero-text {
  text-align: center;
  padding-bottom: 2.5rem;
}

/* =========================
   Buttons
   ========================= */

.btn {
  position: relative;  /* keep above hero overlay */
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

/* Main CTA: ORANGE */
.btn.primary {
  background-color: #ef8201;
  color: #000000;
  border-color: #ef8201;
  box-shadow: 0 8px 18px rgba(239, 130, 1, 0.35);
}

.btn.primary:hover {
  background-color: #d66f00;
  border-color: #d66f00;
  transform: translateY(-1px);
}

/* Secondary button: outline BLUE */
.btn.outline {
  background-color: #ffffff;
  color: #0086cc;
  border-color: #0086cc;
}

.btn.outline:hover {
  background-color: #e6f5fc;
}

/* =========================
   Sections / Cards / Grids
   ========================= */

.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: #f9fafb;
}

.section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.section p {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: #4b5563;
}

/* 3-column grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: #111827;
}

.card p {
  margin: 0;
  text-align: left;
  color: #4b5563;
}

/* About Us images */
.about-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 0 auto 1rem;
}

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.partner-logo {
  padding: 1rem;
  border-radius: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 180px;
}

.partner-logo img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
}

/* Reviews */
.review-name {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #111827;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr; /* Make the about column wider */
  gap: 3rem;
}

.footer-column h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #ffffff;
}

.footer-about p {
  margin: 0 0 0.5rem;
}

.footer-ratings {
  margin-top: 0.75rem;
}

/* Quick links list */
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.5rem; /* larger spacing for touch targets */
}

/* Base footer link style */
.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

/* Larger touch targets for footer links */
.footer-links a,
.footer-connect a {
  display: inline-block;
  padding: 6px 0;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Connect With Us + brand colors */
.footer-connect a {
  margin-bottom: 0.35rem;
  font-weight: 500;
}

/* Facebook */
.footer-connect a[href*="facebook.com"] {
  color: #1877F2;
}

/* Instagram */
.footer-connect a[href*="instagram.com"] {
  color: #E4405F;
}

/* Yelp */
.footer-connect a[href*="yelp.com"] {
  color: #D32323;
}

/* HomeAdvisor */
.footer-connect a[href*="homeadvisor.com"] {
  color: #F88D2B;
}

/* Google Maps / Google Business */
.footer-connect a[href*="google.com"] {
  color: #4285F4;
}

/* Hover effect (slight brightening) */
.footer-connect a:hover {
  filter: brightness(1.2);
}

/* Reviews / misc */
.footer-bottom {
  border-top: 1px solid #374151;
  text-align: center;
  padding: 0.75rem 1rem 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* =========================
   Gallery
   ========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Optional: gallery tags if you enable the legend */
.gallery-legend {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.gallery-legend .tag {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
  background-color: #ffffff;
}

/* =========================
   Blog / Contact / Pricing helpers
   ========================= */

.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article h2,
.blog-article h3 {
  margin-top: 1.75rem;
}

.blog-article p,
.blog-article ul {
  line-height: 1.6;
}

.blog-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.contact-hours {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #f9fafb;
  border-left: 4px solid #ef8201;
  border-radius: 0.5rem;
}

.contact-hours h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #111827;
}

.contact-hours p {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #374151;
}

.pricing-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.pricing-cta .btn {
  display: inline-block;
}

/* Pricing TOC blocks */
.pricing-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.pricing-toc a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.pricing-toc a:hover {
  background: #fff3e5;
  color: #ef8201;
  border-color: #ef8201;
}

/* =========================
   Job galleries & sliders
   ========================= */

.service-gallery,
.job-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.job-gallery {
  background: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-title {
  margin: 0;
  font-size: 1.05rem;
  color: #111827;
}

/* Slider frame */
.job-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000000; /* black bars */
  width: 100%;
  aspect-ratio: 4 / 3; /* consistent shape */
}

/* Image track */
.slider-track {
  display: flex;
  transition: transform 0.35s ease;
}

.slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full image, no cropping */
}

/* Prev/next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.8);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.slider-btn.prev {
  left: 0.5rem;
}

.slider-btn.next {
  right: 0.5rem;
}

.slider-btn:hover {
  background: rgba(17, 24, 39, 0.95);
}

/* =========================
   Before & After strip
   ========================= */

.before-after-strip {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.before-after-strip h2 {
  margin-bottom: 0.5rem;
}

.before-after-strip p {
  margin-bottom: 1.5rem;
}

.before-after-viewport {
  overflow: hidden;
}

.before-after-track {
  display: flex;
  transition: transform 0.5s ease;
}

.before-after-item {
  flex: 0 0 20%; /* five items visible across on desktop */
  padding: 0 0.5rem;
}

.before-after-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* =========================
   Lists inside cards
   ========================= */

.service-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.service-list li + li {
  margin-top: 0.25rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
  .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-gallery,
  .job-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .before-after-item {
    flex: 0 0 33.333%; /* 3 wide on tablet */
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .nav-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
    gap: 0.5rem;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .hero-inner {
    transform: translateY(60px); /* smaller shift on mobile */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sub-hero {
    padding: 2.25rem 0 2.5rem; /* match home hero on mobile */
  }

  .sub-hero-inner {
    transform: translateY(60px); /* smaller shift on mobile, like home */
  }

  .before-after-item img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-img {
    height: 200px;
  }

  .service-gallery,
  .job-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .before-after-item {
    flex: 0 0 100%; /* 1 wide on mobile */
  }
}
