/*
Theme Name: Dynamic Surface Solutions
Theme URI: https://dynamic-surfacesolutions.com
Author: Dynamic Surface Solutions
Author URI: https://dynamic-surfacesolutions.com
Description: Custom WordPress theme for Dynamic Surface Solutions — Professional Pressure Washing & Soft Wash services in Durham Region, Ontario. Features organic flow design with teal-to-blue gradient accents, navy text, and mobile-responsive layout.
Version: 4.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dss-theme
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================================
   DSS Theme v4 — "Fresh Canvas" Organic Flow Aesthetic
   Colors: Off-white bg, teal-to-blue gradient accents, navy text
   Typography: Plus Jakarta Sans
   ============================================================ */

:root {
  --dss-teal: #3bbfa0;
  --dss-blue: #2563eb;
  --dss-navy: #1e3a5f;
  --dss-navy-light: #2a4a6b;
  --dss-grey: #6b7280;
  --dss-grey-light: #9ca3af;
  --dss-sage: #e8f0ec;
  --dss-sage-dark: #d1e0d8;
  --dss-white: #fafbfc;
  --dss-pure-white: #ffffff;
  --dss-gradient: linear-gradient(135deg, #3bbfa0 0%, #2563eb 100%);
  --dss-gradient-hover: linear-gradient(135deg, #34a88e 0%, #1d4ed8 100%);
  --dss-shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
  --dss-shadow-md: 0 4px 12px rgba(30, 58, 95, 0.1);
  --dss-shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.12);
  --dss-radius: 8px;
  --dss-radius-lg: 12px;
  --dss-radius-xl: 16px;
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dss-navy);
  background-color: var(--dss-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dss-blue); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--dss-teal); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dss-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--dss-grey); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section-padding { padding: 5rem 0; }
@media (max-width: 768px) { .section-padding { padding: 3rem 0; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--dss-radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--dss-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 191, 160, 0.3);
}
.btn-primary:hover {
  background: var(--dss-gradient-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 191, 160, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--dss-navy);
  border: 2px solid var(--dss-navy);
}
.btn-outline:hover {
  background: var(--dss-navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--dss-navy);
  box-shadow: var(--dss-shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--dss-shadow-lg);
  color: var(--dss-navy);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--dss-navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar a { color: rgba(255,255,255,0.85); white-space: nowrap; }
.top-bar a:hover { color: #fff; }
.top-bar .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .top-bar { font-size: 0.75rem; }
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar .top-bar-right { display: none; }
}

/* ---- Header / Navigation ---- */
.site-header {
  background: var(--dss-pure-white);
  box-shadow: var(--dss-shadow-sm);
  position: relative;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--dss-shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 2rem;
}

.site-logo img { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 1rem;
  color: var(--dss-navy);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--dss-radius);
  transition: all 0.3s ease;
  position: relative;
}
.main-nav a:hover,
.main-nav a.current-menu-item,
.main-nav .current-menu-item > a {
  color: var(--dss-teal);
  background: rgba(59, 191, 160, 0.06);
}

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dss-pure-white);
  box-shadow: var(--dss-shadow-lg);
  border-radius: var(--dss-radius);
  padding: 0.5rem 0;
  min-width: 240px;
  z-index: 100;
  list-style: none;
}
.main-nav li { position: relative; list-style: none; }
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0;
}
.main-nav .sub-menu a:hover { background: var(--dss-sage); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dss-navy);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9375rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--dss-teal); }

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dss-navy);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .mobile-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dss-pure-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--dss-shadow-lg);
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 1rem; width: 100%; }
  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }
  .main-nav li:hover > .sub-menu { display: block; }
  .header-cta .btn { display: none; }
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.6) 50%, rgba(30, 58, 95, 0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: #fff;
  padding: 2rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 191, 160, 0.2);
  border: 1px solid rgba(59, 191, 160, 0.4);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a7f3d0;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
}
.hero-trust-item svg { width: 20px; height: 20px; color: var(--dss-teal); }

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-trust { gap: 1rem; }
}

/* ---- Wave Divider ---- */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; height: auto; }
.wave-divider.flip { transform: scaleY(-1); }

/* ---- Section Heading ---- */
.section-heading { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-heading .label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dss-teal);
  margin-bottom: 0.75rem;
}
.section-heading h2 { margin-bottom: 1rem; }
.section-heading p { color: var(--dss-grey); font-size: 1.0625rem; }

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--dss-pure-white);
  border-radius: var(--dss-radius-lg);
  overflow: hidden;
  box-shadow: var(--dss-shadow-sm);
  transition: all 0.4s ease;
  text-decoration: none;
  display: block;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dss-shadow-lg);
}
.service-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.08); }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dss-navy);
}
.service-card-body p {
  font-size: 0.9375rem;
  color: var(--dss-grey);
  margin-bottom: 1rem;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dss-teal);
}
.service-card-link:hover { gap: 0.75rem; }

/* ---- Trust Signals ---- */
.trust-section { background: var(--dss-sage); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.trust-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--dss-pure-white);
  border-radius: var(--dss-radius-lg);
  box-shadow: var(--dss-shadow-sm);
  transition: all 0.3s ease;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--dss-shadow-md); }
.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--dss-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 28px; height: 28px; color: #fff; }
.trust-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.9375rem; color: var(--dss-grey); margin-bottom: 0; }

/* ---- Why Choose Us ---- */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-choose-list { list-style: none; }
.why-choose-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--dss-sage-dark);
}
.why-choose-list li:last-child { border-bottom: none; }
.why-choose-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--dss-sage);
  border-radius: var(--dss-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-choose-icon svg { width: 24px; height: 24px; color: var(--dss-teal); }
.why-choose-text h4 { margin-bottom: 0.25rem; font-size: 1.0625rem; }
.why-choose-text p { font-size: 0.9375rem; margin-bottom: 0; }

@media (max-width: 768px) {
  .why-choose-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Testimonials ---- */
.testimonials-section { background: var(--dss-navy); color: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--dss-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
}
.testimonial-stars { color: #fbbf24; margin-bottom: 1rem; font-size: 1.125rem; }
.testimonial-card blockquote {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author { font-weight: 600; color: #fff; font-size: 0.9375rem; }
.testimonial-location { color: rgba(255,255,255,0.6); font-size: 0.8125rem; }

/* ---- Service Areas ---- */
.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.area-card {
  background: var(--dss-pure-white);
  border: 1px solid var(--dss-sage-dark);
  border-radius: var(--dss-radius);
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: var(--dss-navy);
  transition: all 0.3s ease;
}
.area-card:hover {
  border-color: var(--dss-teal);
  background: var(--dss-sage);
  transform: translateY(-2px);
}

/* ---- Quote / Contact Form ---- */
.quote-section { background: var(--dss-sage); }
.quote-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--dss-pure-white);
  border-radius: var(--dss-radius-xl);
  padding: 3rem;
  box-shadow: var(--dss-shadow-lg);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dss-navy);
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--dss-radius);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--dss-navy);
  background: var(--dss-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dss-teal);
  box-shadow: 0 0 0 3px rgba(59, 191, 160, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .quote-form-wrapper { padding: 2rem 1.5rem; }
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--dss-gradient);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.125rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: var(--dss-radius-lg);
  overflow: hidden;
  box-shadow: var(--dss-shadow-sm);
  transition: all 0.4s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--dss-shadow-lg); }
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.gallery-item-info { padding: 1.25rem; background: var(--dss-pure-white); }
.gallery-item-info h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.gallery-item-info p { font-size: 0.875rem; color: var(--dss-grey); margin-bottom: 0; }
.gallery-disclaimer {
  text-align: center;
  padding: 1.5rem;
  background: var(--dss-sage);
  border-radius: var(--dss-radius);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--dss-grey);
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--dss-pure-white);
  border-radius: var(--dss-radius-lg);
  overflow: hidden;
  box-shadow: var(--dss-shadow-sm);
  transition: all 0.4s ease;
  text-decoration: none;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--dss-shadow-lg); }
.blog-card-image { height: 220px; overflow: hidden; }
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--dss-grey-light);
  margin-bottom: 0.75rem;
}
.blog-card-category {
  display: inline-block;
  background: var(--dss-sage);
  color: var(--dss-teal);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.blog-card-body h3 { font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--dss-navy); }
.blog-card-body p { font-size: 0.9375rem; color: var(--dss-grey); }

/* Blog Single */
.blog-single { max-width: 800px; margin: 0 auto; }
.blog-single-header { margin-bottom: 2rem; }
.blog-single-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.blog-single-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }
.blog-single-content p { font-size: 1.0625rem; line-height: 1.8; color: var(--dss-grey); }
.blog-single-content ul, .blog-single-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--dss-grey);
}
.blog-single-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.blog-single-content strong { color: var(--dss-navy); }

/* ---- About Page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image { border-radius: var(--dss-radius-xl); overflow: hidden; box-shadow: var(--dss-shadow-lg); }
.about-image img { width: 100%; height: auto; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.value-card {
  padding: 2rem;
  background: var(--dss-pure-white);
  border-radius: var(--dss-radius-lg);
  box-shadow: var(--dss-shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--dss-shadow-md); }
.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--dss-sage);
  border-radius: var(--dss-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 28px; height: 28px; color: var(--dss-teal); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(30, 58, 95, 0.7) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* ---- Service Detail ---- */
.service-detail-content { max-width: 900px; margin: 0 auto; }
.service-detail-content h2 { margin: 2rem 0 1rem; }
.service-detail-content p { font-size: 1.0625rem; line-height: 1.8; }
.service-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--dss-sage);
  border-radius: var(--dss-radius-lg);
}
.process-step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--dss-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}
.service-faq { margin: 3rem 0; }
.faq-item {
  border-bottom: 1px solid var(--dss-sage-dark);
  padding: 1.25rem 0;
}
.faq-question {
  font-weight: 600;
  color: var(--dss-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 0;
}
.faq-answer {
  padding-top: 0.75rem;
  color: var(--dss-grey);
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-toggle { transition: transform 0.3s ease; font-size: 1.5rem; color: var(--dss-teal); }

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--dss-sage);
  border-radius: var(--dss-radius);
  margin-bottom: 1rem;
}
.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--dss-gradient);
  border-radius: var(--dss-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg { width: 22px; height: 22px; color: #fff; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dss-navy);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9375rem; line-height: 1.7; }
.footer-brand img { height: 48px; margin-bottom: 1rem; }

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--dss-teal); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--dss-teal); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-teal { color: var(--dss-teal); }
.text-navy { color: var(--dss-navy); }
.text-white { color: #fff; }
.bg-sage { background: var(--dss-sage); }
.bg-navy { background: var(--dss-navy); }
.bg-white { background: var(--dss-pure-white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 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);
}

/* ---- Gallery Card (page-gallery.php) ---- */
.gallery-note {
  text-align: center;
  padding: 1.5rem;
  background: var(--dss-sage);
  border-radius: var(--dss-radius);
  margin-bottom: 2rem;
}
.gallery-note p { font-size: 0.9375rem; color: var(--dss-grey); margin-bottom: 0; }

.gallery-card {
  background: var(--dss-pure-white);
  border-radius: var(--dss-radius-lg);
  overflow: hidden;
  box-shadow: var(--dss-shadow-sm);
  transition: all 0.4s ease;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--dss-shadow-lg); }
.gallery-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-card-image img { transform: scale(1.05); }
.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--dss-gradient);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.gallery-card-body { padding: 1.25rem; }
.gallery-card-body h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.gallery-card-body p { font-size: 0.875rem; color: var(--dss-grey); margin-bottom: 0; }

/* ---- Blog Archive Extras ---- */
.blog-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--dss-gradient);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.blog-card-image { position: relative; display: block; }
.blog-card-image img { display: block; }
.blog-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--dss-grey-light);
  margin-bottom: 0.5rem;
}
.blog-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dss-teal);
}
.blog-read-more:hover { color: var(--dss-blue); }

.pagination { text-align: center; margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--dss-radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.pagination a {
  background: var(--dss-pure-white);
  color: var(--dss-navy);
  border: 1px solid var(--dss-sage-dark);
}
.pagination a:hover {
  background: var(--dss-teal);
  color: #fff;
  border-color: var(--dss-teal);
}
.pagination .current {
  background: var(--dss-gradient);
  color: #fff;
  border: none;
}

/* ---- Blog Single Post Layout ---- */
/* Ensure post content is always visible (no fade-in dependency) */
.post-content,
.post-sidebar {
  opacity: 1 !important;
  transform: none !important;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.post-content { min-width: 0; }
.post-featured-image {
  border-radius: var(--dss-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.post-featured-image img { width: 100%; height: auto; }
.post-meta-hero {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.prose h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.prose h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }
.prose p { font-size: 1.0625rem; line-height: 1.8; color: var(--dss-grey); }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; color: var(--dss-grey); }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose strong { color: var(--dss-navy); }
.prose img { border-radius: var(--dss-radius); margin: 1.5rem 0; }
.prose blockquote {
  border-left: 4px solid var(--dss-teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--dss-sage);
  border-radius: 0 var(--dss-radius) var(--dss-radius) 0;
  font-style: italic;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dss-sage-dark);
}
.post-nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dss-grey-light);
  margin-bottom: 0.25rem;
}
.post-nav-next { text-align: right; }

/* Post Sidebar */
.post-sidebar { position: sticky; top: 100px; }
.sidebar-cta,
.sidebar-trust,
.sidebar-services,
.sidebar-recent {
  background: var(--dss-pure-white);
  border: 1px solid var(--dss-sage-dark);
  border-radius: var(--dss-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-cta { background: var(--dss-sage); border-color: transparent; }
.sidebar-cta h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 0.875rem; margin-bottom: 1rem; }
.sidebar-trust h4,
.sidebar-services h4,
.sidebar-recent h4 { font-size: 1rem; margin-bottom: 0.75rem; }
.sidebar-trust ul,
.sidebar-services ul,
.sidebar-recent ul { list-style: none; padding: 0; margin: 0; }
.sidebar-trust li,
.sidebar-services li,
.sidebar-recent li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--dss-sage);
  font-size: 0.875rem;
}
.sidebar-trust li:last-child,
.sidebar-services li:last-child,
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-trust li { color: var(--dss-navy); font-weight: 500; }
.sidebar-services li a,
.sidebar-recent li a { color: var(--dss-grey); }
.sidebar-services li a:hover,
.sidebar-recent li a:hover { color: var(--dss-teal); }
.sidebar-services li.active a { color: var(--dss-teal); font-weight: 600; }

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

/* ---- Service Detail Grid Layout ---- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.service-detail-content { min-width: 0; }
.service-detail-content h2 { margin: 2rem 0 1rem; }
.service-detail-content p { font-size: 1.0625rem; line-height: 1.8; }
.service-detail-content ul { margin: 1rem 0 1rem 1.5rem; color: var(--dss-grey); }
.service-detail-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.service-detail-sidebar { position: sticky; top: 100px; }
.service-detail-image {
  border-radius: var(--dss-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.service-detail-image img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-sidebar { position: static; }
}

/* ---- Residential / Commercial Grid ---- */
.res-comm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.res-comm-card {
  background: var(--dss-pure-white);
  border-radius: var(--dss-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--dss-shadow-sm);
}
.res-comm-card h3 { margin-bottom: 1rem; }
.res-comm-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.res-comm-card li {
  padding: 0.375rem 0 0.375rem 1.5rem;
  position: relative;
  color: var(--dss-grey);
  font-size: 0.9375rem;
}
.res-comm-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dss-teal);
  font-weight: 700;
}

@media (max-width: 768px) {
  .res-comm-grid { grid-template-columns: 1fr; }
}

/* ---- Contact Page Extras ---- */
.contact-card {
  background: var(--dss-pure-white);
  border: 1px solid var(--dss-sage-dark);
  border-radius: var(--dss-radius-lg);
  padding: 2rem;
}
.contact-card h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-item svg { flex-shrink: 0; color: var(--dss-teal); margin-top: 0.25rem; }
.contact-item strong { color: var(--dss-navy); display: block; margin-bottom: 0.125rem; }
.contact-item a { color: var(--dss-blue); }
.contact-item div { color: var(--dss-grey); font-size: 0.9375rem; line-height: 1.6; }

.contact-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-tag {
  display: inline-block;
  background: var(--dss-sage);
  color: var(--dss-navy);
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---- Page Hero Compact ---- */
.page-hero-compact { padding: 4rem 0 3rem; }

/* ---- Label (used in page heroes) ---- */
.label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* ---- Trust Section Background ---- */
.trust-section { background: var(--dss-sage); }

/* ---- Print Styles ---- */
@media print {
  .top-bar, .site-header, .site-footer, .mobile-toggle, .cta-banner { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   DSS Theme v4 — Mobile Responsiveness Fixes
   Addresses: viewport overflow, page-hero text visibility,
   blog card cut-off, form-row layout, credentials grid,
   hamburger animation, header phone sizing, CTA buttons,
   and all grid/card layouts on small screens.
   ============================================================ */

/* ---- Global: Prevent horizontal overflow ---- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ---- Page Hero: Ensure background colour when no image is set ---- */
/* When .page-hero has no .page-hero-bg child (e.g. blog archive),
   the overlay is absent and the white text becomes invisible.
   We add a navy fallback background so text is always readable. */
.page-hero {
  background-color: var(--dss-navy);
}
/* Ensure the container inside page-hero is always above the overlay */
.page-hero > .container,
.page-hero .page-hero-content {
  position: relative;
  z-index: 2;
}
/* Force white text on all page-hero headings and paragraphs */
.page-hero h1,
.page-hero h2,
.page-hero h3 {
  color: #fff !important;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.88) !important;
}
/* The .label inside page-hero (e.g. "BLOG") should be teal, not invisible */
.page-hero .label,
.page-hero span.label {
  color: var(--dss-teal) !important;
  opacity: 1;
}

/* ---- Form Row: Add missing CSS for .form-row used in quote-form.php ---- */
/* The template uses .form-row but the CSS only defines .form-grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Form Message & Note: Missing CSS ---- */
.form-message {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--dss-radius);
  font-size: 0.9375rem;
  font-weight: 500;
}
.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.form-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--dss-grey-light);
  text-align: center;
}
.required {
  color: #ef4444;
}

/* ---- Credentials Grid: Missing CSS for page-about.php ---- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.credential-card {
  background: var(--dss-pure-white);
  border: 1px solid var(--dss-sage-dark);
  border-radius: var(--dss-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--dss-shadow-sm);
  transition: all 0.3s ease;
}
.credential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dss-shadow-md);
}
.credential-card svg {
  width: 40px;
  height: 40px;
  color: var(--dss-teal);
  margin: 0 auto 1rem;
  display: block;
}
.credential-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.credential-card p {
  font-size: 0.875rem;
  color: var(--dss-grey);
  margin-bottom: 0;
}

/* ---- Hamburger Menu: Active/open animation ---- */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Header: Mobile layout fixes ---- */
@media (max-width: 640px) {
  .header-inner {
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  .site-logo img {
    height: 44px;
  }
  .header-phone {
    font-size: 0.8125rem;
    gap: 0.25rem;
  }
  .header-phone svg {
    width: 15px;
    height: 15px;
  }
}

/* ---- Hero Section: Mobile improvements ---- */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  .hero-content {
    padding: 1.5rem 0;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-trust {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .hero-trust-item {
    font-size: 0.8125rem;
  }
}

/* ---- Page Hero: Mobile padding ---- */
@media (max-width: 768px) {
  .page-hero {
    padding: 4rem 0 3rem;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }
  .page-hero p {
    font-size: 1rem;
  }
}

/* ---- CTA Banner: Mobile button layout ---- */
@media (max-width: 640px) {
  .cta-banner {
    padding: 3rem 0;
  }
  .cta-banner h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .cta-banner p {
    font-size: 1rem;
  }
  .cta-banner .btn {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-bottom: 0.75rem;
  }
}

/* ---- Services Grid: Mobile ---- */
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card-image {
    height: 180px;
  }
}

/* ---- Trust Grid: Mobile ---- */
@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .trust-card {
    padding: 1.5rem 1rem;
  }
}
@media (max-width: 400px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Testimonials Grid: Mobile ---- */
@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Gallery Grid: Mobile — prevent minmax overflow ---- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .gallery-item img {
    height: 200px;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 220px;
  }
}

/* ---- Gallery Card Grid: Mobile ---- */
@media (max-width: 768px) {
  .gallery-card-image {
    height: 200px;
  }
}
@media (max-width: 480px) {
  .gallery-card-image {
    height: 180px;
  }
}

/* ---- Blog Grid: Mobile — prevent minmax(350px) overflow ---- */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .blog-card-image {
    height: 200px;
  }
}

/* ---- Blog Card: Fix left cut-off ---- */
.blog-card {
  min-width: 0;
  width: 100%;
}

/* ---- About Grid: Mobile ---- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- Values Grid: Mobile ---- */
@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Credentials Grid: Mobile ---- */
@media (max-width: 640px) {
  .credentials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
@media (max-width: 400px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Why Choose Grid: Mobile ---- */
@media (max-width: 768px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- Service Areas Grid: Mobile ---- */
@media (max-width: 480px) {
  .service-areas-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .area-card {
    padding: 0.875rem;
    font-size: 0.875rem;
  }
}

/* ---- Quote Form: Mobile ---- */
@media (max-width: 640px) {
  .quote-form-wrapper {
    padding: 1.5rem 1rem;
    border-radius: var(--dss-radius-lg);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact Grid: Mobile ---- */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- Res/Comm Grid: Mobile ---- */
@media (max-width: 640px) {
  .res-comm-grid {
    grid-template-columns: 1fr;
  }
  .res-comm-card {
    padding: 1.5rem;
  }
}

/* ---- Post Layout: Mobile ---- */
@media (max-width: 768px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
  }
  .post-nav {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .post-nav-next {
    text-align: left;
  }
}

/* ---- Service Detail Grid: Mobile ---- */
@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-sidebar {
    position: static;
  }
}

/* ---- Footer: Mobile ---- */
@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-brand img {
    height: 40px;
  }
}

/* ---- Section Headings: Mobile ---- */
@media (max-width: 640px) {
  .section-heading {
    margin-bottom: 2rem;
  }
  .section-heading h2 {
    font-size: clamp(1.375rem, 5vw, 2rem);
  }
}

/* ---- Container: Ensure proper padding on very small screens ---- */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* ---- Section Padding: Mobile ---- */
@media (max-width: 480px) {
  .section-padding {
    padding: 2.5rem 0;
  }
}

/* ---- Service Process Steps: Mobile ---- */
@media (max-width: 640px) {
  .service-process {
    grid-template-columns: 1fr;
  }
}

/* ---- Buttons: Sizing on very small screens ---- */
@media (max-width: 400px) {
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ---- Top Bar: Mobile ---- */
@media (max-width: 480px) {
  .top-bar {
    padding: 0.375rem 0;
  }
}
