/* ============================================================
   KAMMERZELL CONTRACTING - RESPONSIVE STYLESHEET
   Mobile-first responsive design for premium contractor website

   Breakpoints:
   - Mobile:  0 - 639px      (base styles)
   - Tablet:  640px - 1023px  (@media min-width: 640px)
   - Desktop: 1024px+         (@media min-width: 1024px)
   - Large:   1280px+         (@media min-width: 1280px)
   - XL:      1536px+         (@media min-width: 1536px)
   ============================================================ */


/* ============================================================
   0. BASE / MOBILE-FIRST DEFAULTS (0 - 639px)
   ============================================================ */

/* --- Layout Container --- */
.container {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Typography Scaling (Mobile Base) --- */
h1, .h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3, .h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

h4, .h4 {
  font-size: 1.125rem;
  line-height: 1.35;
}

h5, .h5 {
  font-size: 1rem;
  line-height: 1.4;
}

h6, .h6 {
  font-size: 0.875rem;
  line-height: 1.45;
}

p, .body-text {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.text-lg {
  font-size: 1rem;
}

.text-xl {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.8125rem;
}

.section-label,
.pre-headline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.75rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 100%;
}


/* --- Section Spacing (Mobile) --- */
section,
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}


/* =============================================================
   1. NAVIGATION - MOBILE
   ============================================================= */

/* Header / Navbar */
.header,
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.header.scrolled,
.navbar.scrolled {
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

/* Logo */
.nav-logo {
  max-height: 2.5rem;
  width: auto;
  position: relative;
  z-index: 1001;
}

.nav-logo img {
  max-height: 2.5rem;
  width: auto;
}

/* Desktop nav hidden on mobile */
.nav-menu,
.nav-links {
  display: none;
}

/* Hamburger Toggle */
.nav-toggle,
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span,
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  position: absolute;
}

.nav-toggle span:nth-child(1),
.hamburger span:nth-child(1) {
  transform: translateY(-8px);
}

.nav-toggle span:nth-child(3),
.hamburger span:nth-child(3) {
  transform: translateY(8px);
}

/* Hamburger active (X morph) */
.nav-toggle.active span:nth-child(1),
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2),
.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3),
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Full-screen Mobile Overlay Navigation */
.mobile-nav,
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-primary, #1A1A1A);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active,
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Stacked Links */
.mobile-nav-links,
.nav-overlay-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}

.mobile-nav-links li,
.nav-overlay-links li {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.active .mobile-nav-links li,
.nav-overlay.active .nav-overlay-links li {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.mobile-nav.active .mobile-nav-links li:nth-child(1),
.nav-overlay.active .nav-overlay-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-links li:nth-child(2),
.nav-overlay.active .nav-overlay-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-links li:nth-child(3),
.nav-overlay.active .nav-overlay-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links li:nth-child(4),
.nav-overlay.active .nav-overlay-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-links li:nth-child(5),
.nav-overlay.active .nav-overlay-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-links li:nth-child(6),
.nav-overlay.active .nav-overlay-links li:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.active .mobile-nav-links li:nth-child(7),
.nav-overlay.active .nav-overlay-links li:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-links a,
.nav-overlay-links a {
  display: block;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-accent, #FFFFFF);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  transition: color 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus,
.nav-overlay-links a:hover,
.nav-overlay-links a:focus {
  color: var(--color-secondary, #C9A962);
}

/* Mobile Nav CTA Button */
.mobile-nav-cta,
.nav-overlay-cta {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s;
}

.mobile-nav.active .mobile-nav-cta,
.nav-overlay.active .nav-overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav Contact Info */
.mobile-nav-contact {
  margin-top: 2.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
}

.mobile-nav.active .mobile-nav-contact {
  opacity: 1;
}

.mobile-nav-contact a {
  color: var(--color-secondary, #C9A962);
  font-size: 1.125rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Mobile Services Sub-menu Accordion */
.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-submenu.open {
  max-height: 600px;
}

.mobile-nav-submenu a {
  font-size: 1.125rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-weight: 400;
  padding: 0.5rem 1.5rem;
  color: var(--color-gray-300, #D4D4D4);
}

/* Dropdown arrow for services on mobile */
.mobile-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-dropdown-toggle .arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.mobile-nav-dropdown-toggle.open .arrow {
  transform: rotate(-135deg);
}

/* Nav Phone (mobile header) */
.nav-phone {
  display: none;
}


/* =============================================================
   2. HERO SECTION - MOBILE
   ============================================================= */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero .pre-headline,
.hero-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero h1,
.hero-title {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle,
.hero p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 100%;
}

/* CTA Buttons - Stacked on Mobile */
.hero-cta,
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
}

.hero-cta .btn,
.hero-buttons .btn {
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  font-size: 0.875rem;
  justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
  display: none;
}

/* Hero Badge */
.hero-badge {
  font-size: 0.6875rem;
  margin-top: 2rem;
}

/* Hero Background */
.hero-bg,
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


/* =============================================================
   3. BUTTONS & INTERACTIVE - MOBILE (Touch-Friendly)
   ============================================================= */

.btn,
button[type="submit"],
.button {
  min-height: 48px;
  min-width: 44px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--color-secondary, #C9A962);
  color: var(--color-primary, #1A1A1A);
  border: 2px solid var(--color-secondary, #C9A962);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent, #FFFFFF);
  color: var(--color-accent, #FFFFFF);
}

.btn-lg {
  min-height: 52px;
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

.btn-sm {
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

/* All links need to be touch-friendly */
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Ensure all interactive elements are at least 44px */
input,
select,
textarea,
.form-control {
  min-height: 48px;
  font-size: 16px; /* Prevents iOS zoom on focus */
  padding: 0.75rem 1rem;
  width: 100%;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

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

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23737373'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  display: block;
}


/* =============================================================
   4. SERVICE CARDS GRID - MOBILE (1 Column)
   ============================================================= */

.services-grid,
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.service-card-link {
  font-size: 0.8125rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* =============================================================
   5. ABOUT SECTION (Split Layout) - MOBILE (Stacked)
   ============================================================= */

.about-split,
.split-section,
.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-image,
.split-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  order: -1; /* Image on top */
}

.about-image img,
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text,
.split-content {
  width: 100%;
}

.about-text h2,
.split-content h2 {
  font-size: 1.625rem;
  margin-bottom: 1rem;
}

.about-text p,
.split-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
}


/* =============================================================
   6. STATS / COUNTERS - MOBILE (Stacked)
   ============================================================= */

.stats,
.stats-row,
.counters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
  padding: 2rem 0;
}

.stat-item,
.counter-item {
  padding: 1.25rem 0;
}

.stat-number,
.counter-number {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.375rem;
  color: var(--color-secondary, #C9A962);
}

.stat-label,
.counter-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =============================================================
   7. PROJECTS GALLERY - MOBILE (1 Column)
   ============================================================= */

.projects-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-card,
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay,
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  transition: opacity 0.4s ease;
}

.project-overlay h3,
.gallery-overlay h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.project-overlay span,
.gallery-overlay span,
.project-tag {
  font-size: 0.75rem;
}

/* Filter Bar - Mobile (Scrollable Horizontal) */
.filter-bar,
.project-filters {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar,
.project-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn,
.filter-button {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  border-radius: 100px;
  border: 1.5px solid var(--color-gray-300, #D4D4D4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn.active,
.filter-button.active {
  background: var(--color-secondary, #C9A962);
  border-color: var(--color-secondary, #C9A962);
  color: var(--color-primary, #1A1A1A);
}


/* =============================================================
   8. TESTIMONIALS - MOBILE
   ============================================================= */

.testimonials {
  padding: 3rem 0;
}

.testimonial-card,
.testimonial-item {
  padding: 1.75rem 1.25rem;
  border-radius: 8px;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2.5rem;
  line-height: 0;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-secondary, #C9A962);
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.75rem;
}

/* Testimonial Slider Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  position: relative;
}

.testimonial-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-400, #A3A3A3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-dot.active::after {
  background: var(--color-secondary, #C9A962);
  transform: translate(-50%, -50%) scale(1.3);
}

/* Decorative quote marks - hidden on mobile */
.testimonial-decoration,
.testimonial-quote-mark {
  display: none;
}


/* =============================================================
   9. FOOTER - MOBILE (Single Column)
   ============================================================= */

.footer {
  padding: 3rem 0 1.5rem;
}

.footer-grid,
.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-col,
.footer-column {
  text-align: center;
}

.footer-logo {
  max-height: 2.5rem;
  margin: 0 auto 1rem;
}

.footer-col h4,
.footer-column h4,
.footer-heading {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.8;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

.footer-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* =============================================================
   10. CONTACT PAGE - MOBILE (Stacked)
   ============================================================= */

.contact-layout,
.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info {
  width: 100%;
  order: -1; /* Info on top */
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-form-wrapper,
.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Contact Map */
.contact-map {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
}

/* Business Hours */
.business-hours {
  margin-top: 1.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}


/* =============================================================
   11. BLOG GRID - MOBILE (1 Column)
   ============================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card-category {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.blog-card h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.blog-card-meta {
  font-size: 0.75rem;
}

.blog-card-link,
.read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Featured Blog Post */
.blog-featured {
  margin-bottom: 2rem;
}

.blog-featured .blog-card-image {
  aspect-ratio: 16 / 10;
}

.blog-featured h3 {
  font-size: 1.375rem;
}

/* Blog Post Content */
.blog-post-content,
.article-content {
  max-width: 100%;
  padding: 0;
}

.blog-post-content h2 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post-content h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
}

.blog-post-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.blog-post-content li {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.375rem;
}


/* =============================================================
   12. SERVICE PAGE LAYOUT - MOBILE
   ============================================================= */

.service-page-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-page-main {
  width: 100%;
}

.service-page-sidebar {
  width: 100%;
}

/* Service Includes List */
.service-includes,
.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.service-includes li,
.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 0.5rem 0;
  min-height: 44px;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-step-number {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary, #C9A962);
  margin-bottom: 0.75rem;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Related Services */
.related-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Service Sidebar CTA */
.sidebar-cta {
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.sidebar-cta h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

/* Service Gallery */
.service-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.service-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}


/* =============================================================
   13. FAQ SECTION - MOBILE
   ============================================================= */

.faq-section {
  padding: 3rem 0;
}

.faq-list {
  max-width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200, #E5E5E5);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 48px;
  gap: 1rem;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.faq-question-icon,
.faq-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  /* Increase tap target */
  min-width: 44px;
  min-height: 44px;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.875rem;
  line-height: 1.7;
}


/* =============================================================
   14. PAGE HERO (Inner Pages) - MOBILE
   ============================================================= */

.page-hero,
.inner-hero {
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero h1,
.inner-hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-hero p,
.inner-hero p {
  font-size: 0.9375rem;
  max-width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* =============================================================
   15. WHY CHOOSE US / FEATURES - MOBILE
   ============================================================= */

.features-grid,
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-item,
.why-choose-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.feature-icon,
.why-choose-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.feature-item h3,
.why-choose-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.feature-item p,
.why-choose-item p {
  font-size: 0.875rem;
  line-height: 1.6;
}


/* =============================================================
   16. SERVICE AREAS - MOBILE
   ============================================================= */

.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.service-area-item {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =============================================================
   17. CTA BANNER - MOBILE
   ============================================================= */

.cta-banner,
.cta-section {
  padding: 3rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2,
.cta-section h2 {
  font-size: 1.625rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.cta-banner p,
.cta-section p {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.cta-phone {
  font-size: 1.125rem;
  margin-top: 1rem;
}

.cta-phone a {
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* =============================================================
   18. TEAM / ABOUT PAGE - MOBILE
   ============================================================= */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-member .team-role {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary, #C9A962);
}

.team-member p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.value-item {
  padding: 1.25rem;
  text-align: center;
}

/* Credentials */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.credential-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
}

.credential-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.credential-label {
  font-size: 0.75rem;
}


/* =============================================================
   19. ANIMATIONS - MOBILE (Simplified)
   ============================================================= */

/* Reduce motion for performance and accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .parallax,
  [data-parallax] {
    transform: none !important;
  }
}

/* Simplify animations on mobile for performance */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Reduce parallax on mobile */
.parallax,
[data-parallax] {
  transform: none !important;
  will-change: auto;
}

/* Disable complex transforms on mobile */
.reveal-scale {
  transform: none;
}

/* Ken Burns - simplified on mobile */
.ken-burns {
  animation: none;
}

/* Reduce stagger on mobile for faster perceived loading */
.stagger-item {
  transition-delay: 0s !important;
}

/* Decorative line animations - hidden or simplified */
.line-draw {
  opacity: 1;
  width: 100%;
  transition: none;
}


/* =============================================================
   20. IMAGE ADJUSTMENTS - MOBILE
   ============================================================= */

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

/* Lazy load placeholder */
img[loading="lazy"] {
  background-color: var(--color-gray-100, #F5F5F5);
}

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

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Full-bleed images on mobile */
.img-full-bleed {
  width: calc(100% + 2.5rem);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  border-radius: 0;
}


/* =============================================================
   21. UTILITY CLASSES - MOBILE
   ============================================================= */

/* Hide/Show utilities */
.hide-mobile {
  display: none !important;
}

.show-mobile {
  display: block !important;
}

.show-mobile-flex {
  display: flex !important;
}

/* Text alignment - mobile overrides */
.text-center-mobile {
  text-align: center;
}

/* Spacing utilities - mobile */
.mt-mobile-0 { margin-top: 0; }
.mb-mobile-0 { margin-bottom: 0; }
.pt-mobile-0 { padding-top: 0; }
.pb-mobile-0 { padding-bottom: 0; }

/* Prevent body scroll when mobile nav open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}


/* ============================================================
   ============================================================
   TABLET BREAKPOINT - 640px+
   ============================================================
   ============================================================ */

@media screen and (min-width: 640px) {

  /* --- Container --- */
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 640px;
  }

  /* --- Typography Scaling --- */
  h1, .h1 {
    font-size: 2.5rem;
  }

  h2, .h2 {
    font-size: 2rem;
  }

  h3, .h3 {
    font-size: 1.375rem;
  }

  p, .body-text {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.125rem;
  }

  .section-subtitle {
    font-size: 1rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-label,
  .pre-headline {
    font-size: 0.8125rem;
  }


  /* --- Section Spacing --- */
  section,
  .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }


  /* --- Navigation (Compact Tablet Nav) --- */
  .nav-logo {
    max-height: 2.75rem;
  }

  .nav-logo img {
    max-height: 2.75rem;
  }

  .mobile-nav-links a,
  .nav-overlay-links a {
    font-size: 2rem;
    padding: 1rem 1.5rem;
  }


  /* --- Hero --- */
  .hero {
    min-height: 90vh;
    padding: 7rem 2rem 4rem;
  }

  .hero h1,
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle,
  .hero p {
    font-size: 1.0625rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .hero-cta .btn,
  .hero-buttons .btn {
    width: auto;
    max-width: none;
  }

  .hero-badge {
    font-size: 0.75rem;
  }


  /* --- Service Cards (2 Columns) --- */
  .services-grid,
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }


  /* --- About Split --- */
  .about-image,
  .split-image {
    aspect-ratio: 16 / 10;
  }


  /* --- Stats (3 in a Row) --- */
  .stats,
  .stats-row,
  .counters {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number,
  .counter-number {
    font-size: 2.75rem;
  }

  .stat-label,
  .counter-label {
    font-size: 0.8125rem;
  }


  /* --- Projects Gallery (2 Columns) --- */
  .projects-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }


  /* --- Testimonials --- */
  .testimonial-card,
  .testimonial-item {
    padding: 2rem 1.75rem;
  }

  .testimonial-quote {
    font-size: 1.0625rem;
  }


  /* --- Footer (2 Columns) --- */
  .footer-grid,
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
  }

  .footer-col,
  .footer-column {
    text-align: left;
  }

  .footer-logo {
    margin: 0 0 1rem;
  }

  .footer-social {
    justify-content: flex-start;
  }


  /* --- Contact Page --- */
  .form-row {
    flex-direction: row;
    gap: 1rem;
  }

  .form-row .form-group {
    flex: 1;
  }

  .contact-map {
    height: 300px;
  }


  /* --- Blog Grid (2 Columns) --- */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .blog-featured h3 {
    font-size: 1.5rem;
  }

  .blog-post-content,
  .article-content {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }


  /* --- Service Page --- */
  .service-includes,
  .service-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .related-services {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .service-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }


  /* --- Page Hero --- */
  .page-hero,
  .inner-hero {
    min-height: 40vh;
    padding: 6rem 2rem 3rem;
  }

  .page-hero h1,
  .inner-hero h1 {
    font-size: 2.375rem;
  }


  /* --- Features / Why Choose --- */
  .features-grid,
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }


  /* --- Service Areas --- */
  .service-areas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
  }


  /* --- CTA Banner --- */
  .cta-banner,
  .cta-section {
    padding: 4rem 2rem;
  }

  .cta-banner h2,
  .cta-section h2 {
    font-size: 2rem;
  }


  /* --- Team --- */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .team-member-image {
    width: 220px;
    height: 220px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .credentials-grid {
    grid-template-columns: repeat(4, 1fr);
  }


  /* --- FAQ --- */
  .faq-question {
    font-size: 1rem;
    padding: 1.25rem 0;
  }

  .faq-answer p {
    font-size: 0.9375rem;
  }

  .faq-list {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }


  /* --- Filter Bar --- */
  .filter-bar,
  .project-filters {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }


  /* --- Animations (Tablet) --- */
  .fade-up {
    transform: translateY(25px);
  }

  /* Re-enable stagger on tablet */
  .stagger-item:nth-child(1) { transition-delay: 0.05s; }
  .stagger-item:nth-child(2) { transition-delay: 0.1s; }
  .stagger-item:nth-child(3) { transition-delay: 0.15s; }
  .stagger-item:nth-child(4) { transition-delay: 0.2s; }
  .stagger-item:nth-child(5) { transition-delay: 0.25s; }
  .stagger-item:nth-child(6) { transition-delay: 0.3s; }


  /* --- Images --- */
  .img-full-bleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }


  /* --- Utility --- */
  .hide-tablet {
    display: none !important;
  }

  .show-tablet {
    display: block !important;
  }

  .show-tablet-flex {
    display: flex !important;
  }
}


/* ============================================================
   ============================================================
   DESKTOP BREAKPOINT - 1024px+
   ============================================================
   ============================================================ */

@media screen and (min-width: 1024px) {

  /* --- Container --- */
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    max-width: 1024px;
  }

  /* --- Typography Scaling (Full Desktop) --- */
  h1, .h1 {
    font-size: 3.25rem;
    letter-spacing: -0.02em;
  }

  h2, .h2 {
    font-size: 2.5rem;
  }

  h3, .h3 {
    font-size: 1.5rem;
  }

  h4, .h4 {
    font-size: 1.25rem;
  }

  p, .body-text {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .text-lg {
    font-size: 1.125rem;
  }

  .text-xl {
    font-size: 1.25rem;
  }

  .section-label,
  .pre-headline {
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
  }

  .section-title {
    font-size: 2.75rem;
    line-height: 1.15;
  }

  .section-subtitle {
    font-size: 1.125rem;
    max-width: 620px;
  }


  /* --- Section Spacing --- */
  section,
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }


  /* --- Navigation (Full Desktop Horizontal) --- */
  .header,
  .navbar {
    padding: 1rem 0;
  }

  .header.scrolled,
  .navbar.scrolled {
    padding: 0.625rem 0;
  }

  .nav-container {
    padding: 0 2.5rem;
  }

  .nav-logo {
    max-height: 3rem;
  }

  .nav-logo img {
    max-height: 3rem;
  }

  /* Show desktop nav */
  .nav-menu,
  .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .nav-menu li,
  .nav-links li {
    position: relative;
  }

  .nav-menu a,
  .nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
  }

  /* Animated underline for nav links */
  .nav-menu a::after,
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-secondary, #C9A962);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu a:hover::after,
  .nav-links a:hover::after,
  .nav-menu a.active::after,
  .nav-links a.active::after {
    transform: scaleX(1);
  }

  /* Desktop Dropdown */
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-primary, #1A1A1A);
    border-radius: 0 0 8px 8px;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease,
                visibility 0.3s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    list-style: none;
    margin: 0;
  }

  .nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  .nav-menu li:hover .nav-dropdown,
  .nav-links li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown li {
    margin: 0;
  }

  .nav-dropdown a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.3s ease;
  }

  .nav-dropdown a::after {
    display: none;
  }

  .nav-dropdown a:hover {
    padding-left: 1.5rem;
    background-color: rgba(255,255,255,0.05);
    color: var(--color-secondary, #C9A962);
  }

  /* Nav CTA Button */
  .nav-cta {
    margin-left: 1rem;
  }

  .nav-cta .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  /* Hide hamburger on desktop */
  .nav-toggle,
  .hamburger {
    display: none;
  }

  /* Hide mobile overlay on desktop */
  .mobile-nav,
  .nav-overlay {
    display: none !important;
  }

  /* Show desktop phone in nav */
  .nav-phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.75rem;
  }


  /* --- Hero (Full Desktop) --- */
  .hero {
    min-height: 100vh;
    padding: 0 2.5rem;
  }

  .hero-content {
    max-width: 800px;
  }

  .hero .pre-headline,
  .hero-label {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }

  .hero h1,
  .hero-title {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle,
  .hero p {
    font-size: 1.1875rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
  }

  /* Side-by-side CTAs */
  .hero-cta,
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }

  .hero-cta .btn,
  .hero-buttons .btn {
    min-height: 52px;
    padding: 0.875rem 2.25rem;
    font-size: 0.9375rem;
  }

  /* Show scroll indicator on desktop */
  .scroll-indicator {
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-badge {
    font-size: 0.8125rem;
    margin-top: 2.5rem;
  }


  /* --- Service Cards (3 Columns) --- */
  .services-grid,
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .service-card {
    padding: 2.25rem 1.75rem;
  }

  .service-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.9375rem;
  }

  /* Card hover lift effect */
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1));
  }


  /* --- About (Side by Side) --- */
  .about-split,
  .split-section,
  .about-content-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .about-image,
  .split-image {
    width: 50%;
    aspect-ratio: auto;
    order: 0;
    flex-shrink: 0;
  }

  .about-text,
  .split-content {
    width: 50%;
  }

  .about-text h2,
  .split-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }

  /* Reverse layout for alternating sections */
  .split-section.reverse,
  .about-split.reverse {
    flex-direction: row-reverse;
  }


  /* --- Stats --- */
  .stat-number,
  .counter-number {
    font-size: 3.25rem;
  }

  .stat-label,
  .counter-label {
    font-size: 0.875rem;
  }


  /* --- Projects Gallery (3 Columns Masonry) --- */
  .projects-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* Masonry effect with varying heights */
  .projects-grid.masonry,
  .gallery-grid.masonry {
    grid-auto-rows: 10px;
  }

  .projects-grid.masonry .project-card,
  .gallery-grid.masonry .gallery-item {
    aspect-ratio: auto;
  }

  .projects-grid.masonry .project-card.tall,
  .gallery-grid.masonry .gallery-item.tall {
    grid-row: span 32;
  }

  .projects-grid.masonry .project-card.medium,
  .gallery-grid.masonry .gallery-item.medium {
    grid-row: span 26;
  }

  .projects-grid.masonry .project-card.short,
  .gallery-grid.masonry .gallery-item.short {
    grid-row: span 20;
  }

  /* Project card hover effects */
  .project-card:hover img,
  .gallery-item:hover img {
    transform: scale(1.05);
  }

  .project-overlay,
  .gallery-overlay {
    opacity: 0;
  }

  .project-card:hover .project-overlay,
  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }


  /* --- Filter Bar (Centered Flex) --- */
  .filter-bar,
  .project-filters {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.625rem;
    padding-bottom: 0;
    margin-bottom: 2.5rem;
  }

  .filter-btn,
  .filter-button {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    min-height: 40px;
    transition: all 0.3s ease;
  }

  .filter-btn:hover,
  .filter-button:hover {
    border-color: var(--color-secondary, #C9A962);
    color: var(--color-secondary, #C9A962);
  }


  /* --- Testimonials (Wider with Decorative Elements) --- */
  .testimonials {
    padding: 5rem 0;
  }

  .testimonial-card,
  .testimonial-item {
    padding: 3rem 3.5rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
  }

  .testimonial-quote::before {
    font-size: 4rem;
  }

  .testimonial-author {
    font-size: 1rem;
  }

  .testimonial-role {
    font-size: 0.8125rem;
  }

  /* Show decorative elements on desktop */
  .testimonial-decoration,
  .testimonial-quote-mark {
    display: block;
    position: absolute;
    font-size: 12rem;
    line-height: 1;
    opacity: 0.06;
    font-family: var(--font-heading, 'Playfair Display', serif);
    pointer-events: none;
    user-select: none;
  }

  .testimonial-decoration.left,
  .testimonial-quote-mark.left {
    top: -1rem;
    left: -2rem;
  }

  .testimonial-decoration.right,
  .testimonial-quote-mark.right {
    bottom: -3rem;
    right: -2rem;
  }


  /* --- Footer (4 Columns) --- */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-grid,
  .footer-columns {
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
    text-align: left;
  }

  .footer-col h4,
  .footer-column h4,
  .footer-heading {
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
  }

  .footer-links a {
    font-size: 0.9375rem;
    min-height: auto;
    padding: 0.25rem 0;
    display: inline-block;
  }

  .footer-links a:hover {
    color: var(--color-secondary, #C9A962);
    transform: translateX(3px);
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .footer-social a:hover {
    transform: translateY(-2px);
  }

  .footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-bottom a {
    min-height: auto;
    display: inline;
  }


  /* --- Contact (Side by Side) --- */
  .contact-layout,
  .contact-wrapper {
    flex-direction: row;
    gap: 3.5rem;
    align-items: flex-start;
  }

  .contact-info {
    width: 40%;
    order: 0;
    position: sticky;
    top: 6rem;
  }

  .contact-info h2 {
    font-size: 1.75rem;
  }

  .contact-form-wrapper,
  .contact-form {
    width: 60%;
  }

  .contact-map {
    height: 200px;
  }


  /* --- Blog Grid (3 Columns) --- */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .blog-featured {
    grid-column: span 3;
  }

  .blog-featured .blog-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
  }

  .blog-featured .blog-card-image {
    aspect-ratio: auto;
    height: 100%;
  }

  .blog-featured .blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .blog-featured h3 {
    font-size: 1.75rem;
  }

  .blog-card h3 {
    font-size: 1.125rem;
  }

  /* Blog card hover */
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1));
  }

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

  .blog-post-content,
  .article-content {
    max-width: 700px;
  }

  .blog-post-content h2 {
    font-size: 1.625rem;
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
  }


  /* --- Service Page Layout --- */
  .service-page-content {
    flex-direction: row;
    gap: 3rem;
  }

  .service-page-main {
    width: 65%;
  }

  .service-page-sidebar {
    width: 35%;
    position: sticky;
    top: 5.5rem;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-services {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-gallery {
    grid-template-columns: repeat(3, 1fr);
  }


  /* --- Page Hero (Full Desktop) --- */
  .page-hero,
  .inner-hero {
    min-height: 45vh;
    padding: 8rem 2.5rem 4rem;
  }

  .page-hero h1,
  .inner-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .page-hero p,
  .inner-hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }

  .breadcrumb a {
    min-height: auto;
    display: inline;
  }


  /* --- Features / Why Choose (3 Columns) --- */
  .features-grid,
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .feature-icon,
  .why-choose-icon {
    width: 64px;
    height: 64px;
  }

  .feature-item h3,
  .why-choose-item h3 {
    font-size: 1.125rem;
  }


  /* --- Service Areas --- */
  .service-areas-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .service-area-item {
    font-size: 0.875rem;
    min-height: auto;
    padding: 0.875rem 1rem;
  }


  /* --- CTA Banner --- */
  .cta-banner,
  .cta-section {
    padding: 5rem 2.5rem;
  }

  .cta-banner h2,
  .cta-section h2 {
    font-size: 2.5rem;
  }

  .cta-banner p,
  .cta-section p {
    font-size: 1.125rem;
  }

  .cta-phone {
    font-size: 1.25rem;
  }


  /* --- Team --- */
  .team-member-image {
    width: 240px;
    height: 240px;
  }

  .team-member h3 {
    font-size: 1.375rem;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }


  /* --- FAQ --- */
  .faq-list {
    max-width: 720px;
  }

  .faq-question {
    font-size: 1.0625rem;
    padding: 1.375rem 0;
  }

  .faq-answer p {
    font-size: 1rem;
    line-height: 1.75;
  }


  /* --- Animations (Desktop - Full Effects) --- */
  .fade-up {
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Re-enable parallax on desktop */
  .parallax,
  [data-parallax] {
    transform: translateZ(0);
    will-change: transform;
  }

  /* Re-enable Ken Burns on desktop */
  .ken-burns {
    animation: kenBurns 25s ease-in-out infinite alternate;
  }

  @keyframes kenBurns {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.08);
    }
  }

  /* Reveal scale for images */
  .reveal-scale {
    transform: scale(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-scale.visible,
  .reveal-scale.in-view {
    transform: scale(1);
  }

  /* Line draw animation */
  .line-draw {
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  }

  .line-draw.visible,
  .line-draw.in-view {
    width: 100%;
  }

  /* Stagger delays */
  .stagger-item:nth-child(1) { transition-delay: 0.05s; }
  .stagger-item:nth-child(2) { transition-delay: 0.1s; }
  .stagger-item:nth-child(3) { transition-delay: 0.15s; }
  .stagger-item:nth-child(4) { transition-delay: 0.2s; }
  .stagger-item:nth-child(5) { transition-delay: 0.25s; }
  .stagger-item:nth-child(6) { transition-delay: 0.3s; }
  .stagger-item:nth-child(7) { transition-delay: 0.35s; }
  .stagger-item:nth-child(8) { transition-delay: 0.4s; }
  .stagger-item:nth-child(9) { transition-delay: 0.45s; }


  /* --- Buttons --- */
  .btn,
  button[type="submit"],
  .button {
    min-height: 44px;
    font-size: 0.9375rem;
  }

  .btn:hover {
    transform: scale(1.02);
  }

  .btn-lg {
    min-height: 48px;
    padding: 1rem 2.25rem;
    font-size: 1rem;
  }


  /* --- Utility --- */
  .hide-desktop {
    display: none !important;
  }

  .show-desktop {
    display: block !important;
  }

  .show-desktop-flex {
    display: flex !important;
  }

  .hide-mobile {
    display: block !important;
  }

  .show-mobile {
    display: none !important;
  }

  .show-mobile-flex {
    display: none !important;
  }

  /* Prevent sticky nav from hiding on scroll up (overrides JS) */
  body.nav-open {
    overflow: auto;
    position: static;
  }
}


/* ============================================================
   ============================================================
   LARGE BREAKPOINT - 1280px+
   ============================================================
   ============================================================ */

@media screen and (min-width: 1280px) {

  /* --- Container --- */
  .container {
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* --- Typography --- */
  h1, .h1 {
    font-size: 3.75rem;
  }

  h2, .h2 {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1.1875rem;
    max-width: 680px;
  }


  /* --- Section Spacing --- */
  section,
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .section-header {
    margin-bottom: 4rem;
  }


  /* --- Navigation --- */
  .nav-container {
    padding: 0 2rem;
    max-width: 1280px;
    margin: 0 auto;
  }

  .nav-menu a,
  .nav-links a {
    padding: 0.5rem 1.125rem;
    font-size: 0.9375rem;
  }


  /* --- Hero --- */
  .hero h1,
  .hero-title {
    font-size: 4.25rem;
  }

  .hero-subtitle,
  .hero p {
    font-size: 1.25rem;
    max-width: 650px;
  }

  .hero-content {
    max-width: 850px;
  }


  /* --- Service Cards --- */
  .services-grid,
  .service-cards {
    gap: 2rem;
  }

  .service-card {
    padding: 2.5rem 2rem;
  }

  .service-card h3 {
    font-size: 1.375rem;
  }

  .service-card p {
    font-size: 1rem;
  }


  /* --- About Split --- */
  .about-split,
  .split-section,
  .about-content-wrapper {
    gap: 4rem;
  }

  .about-text h2,
  .split-content h2 {
    font-size: 2.5rem;
  }


  /* --- Stats --- */
  .stat-number,
  .counter-number {
    font-size: 3.5rem;
  }

  .stat-label,
  .counter-label {
    font-size: 0.9375rem;
  }


  /* --- Projects --- */
  .projects-grid,
  .gallery-grid {
    gap: 1.75rem;
  }


  /* --- Testimonials --- */
  .testimonial-card,
  .testimonial-item {
    padding: 3.5rem 4rem;
    max-width: 860px;
  }

  .testimonial-quote {
    font-size: 1.3125rem;
  }


  /* --- Footer --- */
  .footer {
    padding: 5rem 0 2rem;
  }

  .footer-grid,
  .footer-columns {
    gap: 3rem;
  }


  /* --- Contact --- */
  .contact-layout,
  .contact-wrapper {
    gap: 4rem;
  }

  .contact-info h2 {
    font-size: 2rem;
  }


  /* --- Blog --- */
  .blog-grid {
    gap: 2.25rem;
  }


  /* --- Page Hero --- */
  .page-hero,
  .inner-hero {
    min-height: 50vh;
    padding: 9rem 2rem 4.5rem;
  }

  .page-hero h1,
  .inner-hero h1 {
    font-size: 3.5rem;
  }

  .page-hero p,
  .inner-hero p {
    font-size: 1.1875rem;
    max-width: 680px;
  }


  /* --- CTA Banner --- */
  .cta-banner h2,
  .cta-section h2 {
    font-size: 2.75rem;
  }

  .cta-banner p,
  .cta-section p {
    font-size: 1.1875rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }


  /* --- Service Areas --- */
  .service-areas-grid {
    grid-template-columns: repeat(5, 1fr);
  }


  /* --- Team --- */
  .team-member-image {
    width: 260px;
    height: 260px;
  }
}


/* ============================================================
   ============================================================
   XL BREAKPOINT - 1536px+
   ============================================================
   ============================================================ */

@media screen and (min-width: 1536px) {

  /* --- Container --- */
  .container {
    max-width: 1400px;
  }

  /* --- Typography --- */
  h1, .h1 {
    font-size: 4.25rem;
  }

  h2, .h2 {
    font-size: 3rem;
  }

  h3, .h3 {
    font-size: 1.625rem;
  }

  .section-title {
    font-size: 3.25rem;
  }

  .section-subtitle {
    font-size: 1.25rem;
    max-width: 740px;
  }


  /* --- Section Spacing --- */
  section,
  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .section-header {
    margin-bottom: 4.5rem;
  }


  /* --- Hero --- */
  .hero h1,
  .hero-title {
    font-size: 4.75rem;
  }

  .hero-subtitle,
  .hero p {
    font-size: 1.3125rem;
    max-width: 700px;
  }

  .hero-content {
    max-width: 920px;
  }

  .hero-cta .btn,
  .hero-buttons .btn {
    min-height: 56px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }


  /* --- Service Cards --- */
  .services-grid,
  .service-cards {
    gap: 2.25rem;
  }

  .service-card {
    padding: 2.75rem 2.25rem;
  }


  /* --- About Split --- */
  .about-split,
  .split-section,
  .about-content-wrapper {
    gap: 5rem;
  }

  .about-text h2,
  .split-content h2 {
    font-size: 2.75rem;
  }

  .about-text p,
  .split-content p {
    font-size: 1.125rem;
  }


  /* --- Stats --- */
  .stat-number,
  .counter-number {
    font-size: 4rem;
  }


  /* --- Testimonials --- */
  .testimonial-card,
  .testimonial-item {
    padding: 4rem 5rem;
    max-width: 940px;
  }

  .testimonial-quote {
    font-size: 1.4375rem;
  }


  /* --- Footer --- */
  .footer-grid,
  .footer-columns {
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
  }


  /* --- Contact --- */
  .contact-layout,
  .contact-wrapper {
    gap: 5rem;
  }


  /* --- Page Hero --- */
  .page-hero,
  .inner-hero {
    padding: 10rem 2rem 5rem;
  }

  .page-hero h1,
  .inner-hero h1 {
    font-size: 3.75rem;
  }


  /* --- CTA Banner --- */
  .cta-banner h2,
  .cta-section h2 {
    font-size: 3rem;
  }


  /* --- Blog --- */
  .blog-featured h3 {
    font-size: 2rem;
  }

  .blog-card h3 {
    font-size: 1.25rem;
  }


  /* --- Navigation --- */
  .nav-container {
    max-width: 1536px;
  }

  .nav-menu a,
  .nav-links a {
    padding: 0.5rem 1.25rem;
  }
}


/* ============================================================
   ============================================================
   SPECIAL MEDIA QUERIES
   ============================================================
   ============================================================ */

/* --- Landscape Mobile (Avoid hero overflow) --- */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 5rem 1.25rem 2.5rem;
  }

  .hero h1,
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle,
  .hero p {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .page-hero,
  .inner-hero {
    min-height: auto;
    padding: 5rem 1.25rem 2rem;
  }

  .mobile-nav,
  .nav-overlay {
    overflow-y: auto;
    padding: 4rem 1.25rem;
    justify-content: flex-start;
  }

  .mobile-nav-links a,
  .nav-overlay-links a {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
  }
}


/* --- High-resolution / Retina --- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-logo img,
  .footer-logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}


/* --- Hover-capable devices (no touch) --- */
@media (hover: hover) and (pointer: fine) {
  /* More refined hover effects for mouse users */
  .service-card {
    cursor: pointer;
  }

  .project-card,
  .gallery-item {
    cursor: pointer;
  }

  .blog-card {
    cursor: pointer;
  }

  /* Nav link hover underline animation */
  .footer-links a {
    transition: color 0.3s ease, transform 0.3s ease;
  }

  /* Button hover scale */
  .btn:hover,
  .button:hover {
    transform: scale(1.02);
  }

  .btn:active,
  .button:active {
    transform: scale(0.98);
  }

  /* Image zoom on hover */
  .project-card:hover img,
  .gallery-item:hover img {
    transform: scale(1.05);
  }

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

  .service-card:hover .service-card-icon {
    transform: scale(1.1);
  }
}


/* --- Touch devices --- */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects that don't work on touch */
  .project-overlay,
  .gallery-overlay {
    opacity: 1;
  }

  /* Ensure tap targets are large enough */
  .nav-menu a,
  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .footer-links a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Remove hover transforms on touch */
  .service-card:hover {
    transform: none;
  }

  .blog-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}


/* --- Print Styles --- */
@media print {
  .header,
  .navbar,
  .mobile-nav,
  .nav-overlay,
  .nav-toggle,
  .hamburger,
  .scroll-indicator,
  .cta-banner,
  .cta-section,
  .filter-bar,
  .project-filters,
  .testimonial-dots,
  .footer-social {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  section,
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero,
  .page-hero,
  .inner-hero {
    min-height: auto;
    padding: 1rem 0;
    background: none !important;
  }

  .footer {
    padding: 1rem 0;
  }

  .footer-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }
}


/* --- Focus styles for keyboard navigation --- */
@media screen {
  *:focus-visible {
    outline: 2px solid var(--color-secondary, #C9A962);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* Remove outline for mouse clicks */
  *:focus:not(:focus-visible) {
    outline: none;
  }
}


/* --- Safe area insets for notched devices --- */
@supports (padding: max(0px)) {
  .header,
  .navbar {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .mobile-nav,
  .nav-overlay {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .footer-bottom {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}


/* --- Container widths at specific breakpoints for fine control --- */
@media screen and (min-width: 640px) and (max-width: 767px) {
  .container {
    max-width: 600px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 720px;
  }

  /* 3-column service cards at wider tablet */
  .services-grid.tablet-3col,
  .service-cards.tablet-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* --- Very small screens (under 360px) --- */
@media screen and (max-width: 359px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1, .h1 {
    font-size: 1.75rem;
  }

  h2, .h2 {
    font-size: 1.375rem;
  }

  .hero h1,
  .hero-title {
    font-size: 1.875rem;
  }

  .hero-subtitle,
  .hero p {
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .mobile-nav-links a,
  .nav-overlay-links a {
    font-size: 1.375rem;
  }

  .stat-number,
  .counter-number {
    font-size: 2rem;
  }

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

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta .btn,
  .hero-buttons .btn {
    max-width: 100%;
    font-size: 0.8125rem;
    padding: 0.75rem 1.25rem;
  }
}


/* --- Height-based adjustments for short viewports --- */
@media screen and (max-height: 600px) {
  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .page-hero,
  .inner-hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .mobile-nav,
  .nav-overlay {
    padding-top: 4rem;
    justify-content: flex-start;
  }
}


/* ============================================================
   SMOOTH TRANSITIONS BETWEEN LAYOUTS
   All layout properties transition smoothly when viewport
   crosses breakpoints during window resizing.
   ============================================================ */

.container,
.services-grid,
.service-cards,
.projects-grid,
.gallery-grid,
.blog-grid,
.footer-grid,
.footer-columns,
.stats,
.stats-row,
.counters,
.features-grid,
.why-choose-grid,
.team-grid,
.values-grid,
.credentials-grid,
.service-areas-grid,
.process-steps,
.related-services,
.service-gallery,
.service-includes,
.service-features {
  transition: gap 0.4s ease;
}

section,
.section,
.hero,
.page-hero,
.inner-hero,
.cta-banner,
.cta-section {
  transition: padding 0.4s ease;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
.section-title,
.section-subtitle,
.hero-title,
.hero h1,
.testimonial-quote,
.stat-number,
.counter-number {
  transition: font-size 0.3s ease;
}
