/* 
========================================================================
   GTZ PLUMBING SERVICE - DESIGN SYSTEM & LAYOUT STYLES
========================================================================
*/

/* ---------------------------------------------------------------------
   1. Design Variables & Base Setup
   --------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary: #015491;          /* Deep Royal Blue */
  --primary-light: #23a5d9;    /* Sky Blue Accent */
  --primary-dark: #003a66;     /* Darker Ocean Blue */
  
  --secondary: #e34205;        /* Safety Orange */
  --secondary-light: #ff6022;  /* Bright Orange Highlight */
  --secondary-dark: #b83300;   /* Rust Orange */
  
  --dark-indigo: #071727;      /* Deep Rich Dark Blue */
  --dark-slate: #1e293b;       /* Charcoal Slate */
  
  --light-bg: #f8fafc;         /* Slate Light Gray */
  --light-gray: #e2e8f0;       /* Border/Divider Gray */
  --text-dark: #0f172a;        /* Core Headings / Text */
  --text-body: #475569;        /* Descriptive Body Text */
  --text-muted: #64748b;       /* Muted Text */
  
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.95);
  
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(1, 84, 145, 0.08), 0 8px 10px -6px rgba(1, 84, 145, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(7, 23, 39, 0.12);
  --shadow-orange: 0 12px 20px -8px rgba(227, 66, 5, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Layout constraints */
  --max-width: 1200px;
}

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 24px -6px rgba(227, 66, 5, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-phone {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 4px 10px rgba(1, 84, 145, 0.2);
}

.btn-phone:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 66, 5, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(227, 66, 5, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 66, 5, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Utility styles */
.text-center { text-align: center; }
.text-left { text-align: left; }
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-anim.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------
   2. Top Bar Styles
   --------------------------------------------------------------------- */
.top-bar {
  background-color: var(--dark-indigo);
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left a {
  font-weight: 700;
  color: var(--secondary-light);
}

.top-bar-left a:hover {
  color: var(--white);
}

.top-bar-right {
  display: flex;
  gap: 1.5rem;
}

.top-bar-right span i,
.top-bar-left span i {
  color: var(--primary-light);
  margin-right: 0.4rem;
}

/* ---------------------------------------------------------------------
   3. Header Navigation (with sticky transitions)
   --------------------------------------------------------------------- */
.header {
  position: absolute;
  top: 34px; /* below top-bar */
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

/* Sticky Navbar Class */
.header.sticky {
  position: fixed;
  top: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header.sticky .logo-text .brand-name {
  color: var(--primary);
}

.header.sticky .logo-text .brand-sub {
  color: var(--text-dark);
}

.header.sticky .nav-link {
  color: var(--text-dark);
}

.header.sticky .nav-link.active,
.header.sticky .nav-link:hover {
  color: var(--primary);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Design */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition-normal);
}

.header.sticky .logo-img {
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
  margin-top: 2px;
}

/* Main Nav Desktop */
.nav-list {
  display: flex;
  gap: 1.5rem; /* adjusted for more links */
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-light);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: var(--white);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.header.sticky .mobile-nav-toggle .bar {
  background-color: var(--text-dark);
}

/* ---------------------------------------------------------------------
   Subpage Header Overrides
   Ensure non-sticky, space-preserving header on article/service pages
   --------------------------------------------------------------------- */
body.subpage .top-bar {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.78rem;
}

body.subpage .header {
  position: relative;
  top: 0;
  width: 100%;
  padding: 0.45rem 0;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(7,23,39,0.03);
  border-bottom: 1px solid rgba(14, 30, 37, 0.03);
  z-index: 60;
}

/* When JS toggles .sticky, keep subpages relative instead of fixed */
body.subpage .header.sticky {
  position: relative;
  background: var(--white);
  backdrop-filter: blur(6px);
}

/* Constrain logo on subpages to avoid overlapping content */
body.subpage .logo-img {
  height: 36px;
  max-width: 120px;
}

body.subpage .brand-name {
  font-size: 1.2rem;
}

body.subpage .brand-sub {
  font-size: 0.6rem;
}

body.subpage .header-container {
  align-items: center;
  gap: 1rem;
}

/* Compact phone CTA */
body.subpage .header-cta .btn-phone {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 28px;
  box-shadow: 0 8px 18px rgba(1,84,145,0.06);
}

/* Make nav links visible on subpages (header background is light) */
body.subpage .nav-link {
  color: var(--text-dark);
}

body.subpage .nav-link:hover,
body.subpage .nav-link.active {
  color: var(--primary);
}

/* Brand text contrast on subpages */
body.subpage .brand-name {
  color: var(--primary);
}

body.subpage .brand-sub {
  color: var(--text-muted);
}

/* Give article content breathing room under the header */
main.article, .article {
  padding-top: 2rem;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------
   4. Hero Section Styles (Left content, Right Unsplash image)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  background-image: url('https://irp.cdn-website.com/cd0b8edf/dms3rep/multi/opt/Untitled+design+-+2025-01-17T050244.637-1920w.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 140px; /* clear top and nav bar */
  padding-bottom: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 23, 39, 0.95) 0%, rgba(1, 84, 145, 0.85) 60%, rgba(227, 66, 5, 0.2) 100%);
  z-index: 1;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  color: var(--white);
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.trust-item i {
  color: var(--secondary-light);
  font-size: 1.1rem;
}

/* Hero Side Image (Replacing form) */
.hero-side-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(1, 84, 145, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.hero-side-img-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-side-img {
  width: 100%;
  object-fit: cover;
  min-height: 420px;
  display: block;
}

/* ---------------------------------------------------------------------
   5. Trust Statistics Banner
   --------------------------------------------------------------------- */
.trust-banner {
  background-color: var(--white);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
  margin-top: -40px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-lg);
}

.trust-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 60px;
  background-color: var(--light-gray);
}

/* ---------------------------------------------------------------------
   6. Subpage Inner Hero Banner
   --------------------------------------------------------------------- */
.sub-hero {
  position: relative;
  background-color: var(--dark-indigo);
  background-image: linear-gradient(135deg, rgba(7, 23, 39, 0.95) 0%, rgba(1, 84, 145, 0.8) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.sub-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------------
   7. Primary Plumbing Solutions (Navy Card Deck - Image 3 Layout)
   --------------------------------------------------------------------- */
.primary-solutions-section {
  background-color: var(--white);
  padding: 7rem 0;
}

.solutions-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.solutions-header-wrap .section-header {
  margin: 0;
  text-align: left;
}

.primary-solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

.primary-solution-card {
  background-color: var(--dark-indigo);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.primary-solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-light);
  transition: var(--transition-fast);
}

.primary-solution-card:nth-child(even)::after {
  background-color: var(--secondary);
}

.primary-solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px rgba(7, 23, 39, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Card background image overlay using CSS variable set inline on the card */
.primary-solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  filter: brightness(0.95);
  z-index: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.primary-solution-card:hover::before {
  opacity: 0.50;
}

/* Ensure card content sits above the background image */
.primary-solution-card > * {
  position: relative;
  z-index: 1;
}

.solution-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.meta-category {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  color: var(--primary-light);
}

.primary-solution-card:nth-child(even) .meta-category {
  color: var(--secondary-light);
}

.meta-guarantee {
  color: #10b981; /* Green */
}

.solution-title {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.solution-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.solution-features li i {
  color: var(--secondary-light);
  font-size: 0.85rem;
}

.primary-solution-card:nth-child(even) .solution-features li i {
  color: var(--primary-light);
}

.solution-specs-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.primary-solution-card:nth-child(even) .solution-specs-link {
  color: var(--secondary-light);
}

.solution-specs-link:hover {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------
   8. Why Choose Us Section
   --------------------------------------------------------------------- */
.why-choose-section {
  background-color: var(--light-bg);
  padding: 7rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.why-choose-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
}

.why-choose-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(1, 84, 145, 0.15);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: rgba(227, 66, 5, 0.08);
  color: var(--secondary);
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.why-choose-card:nth-child(even) .why-icon {
  background-color: rgba(1, 84, 145, 0.08);
  color: var(--primary);
}

.why-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------
   9. Services We Provide Section (Images 4, 5, 6, 7 layout)
   --------------------------------------------------------------------- */
.provide-services-section {
  background-color: var(--white);
  padding: 7rem 0;
}

.provide-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.provide-service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.provide-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(1, 84, 145, 0.15);
}

.provide-img-wrapper {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.provide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.provide-service-card:hover .provide-img {
  transform: scale(1.08);
}

.provide-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.provide-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.provide-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------
   10. Locations Subpage Layout
   --------------------------------------------------------------------- */
.locations-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.locations-detail-card {
  background-color: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: 1px solid var(--light-gray);
}

.locations-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.location-item i {
  color: var(--secondary);
}

.stats-grid-boxed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-box {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-box-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-box-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   11. Gallery Subpage Layout
   --------------------------------------------------------------------- */
.gallery-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background-color: var(--light-bg);
  border: 1px solid var(--light-gray);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  transition: var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrapper {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}



/* ---------------------------------------------------------------------
   12. Blog Subpage Layout
   --------------------------------------------------------------------- */
.blog-section {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-img-wrapper {
  height: 220px;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-meta span i {
  margin-right: 0.3rem;
  color: var(--primary-light);
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-readmore {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-readmore:hover {
  color: var(--secondary);
}

/* ---------------------------------------------------------------------
   13. Timeline Layout (About Page)
   --------------------------------------------------------------------- */
.about-history {
  background-color: var(--light-bg);
  padding: 6rem 0;
}

.timeline {
  position: relative;
  max-width: 850px;
  margin: 4rem auto 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--light-gray);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 3rem;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--primary);
  top: 36px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-fast);
}

.timeline-item:nth-child(even)::after {
  border-color: var(--secondary);
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -10px;
}

.timeline-content {
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-item:nth-child(even) .timeline-year {
  color: var(--secondary);
}

.timeline-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0;
}

/* FAQ Accordion Styling (Services Page) */
.faq-section {
  background-color: var(--white);
  padding: 6rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 3.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--light-bg);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question i {
  color: var(--primary);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 2rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active {
  background-color: var(--white);
  border-color: rgba(1, 84, 145, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: 1.5rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--secondary);
}

/* Process Grid (Services Page) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 8px rgba(1, 84, 145, 0.1);
}

.process-step:nth-child(even) .step-num {
  background-color: var(--secondary);
  box-shadow: 0 0 0 8px rgba(227, 66, 5, 0.1);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--light-gray);
  z-index: -1;
}

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

.process-step p {
  font-size: 0.85rem;
  color: var(--text-body);
}

/* ---------------------------------------------------------------------
   14. Testimonials Section
   --------------------------------------------------------------------- */
.testimonials {
  background-color: var(--light-bg);
  padding: 7rem 0;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
  position: relative;
}

.testimonial-container {
  min-height: 220px;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.stars {
  color: #ffb800;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.author-location {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Testimonial slider controls */
.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  border-top: 1px solid var(--light-gray);
  padding-top: 1.5rem;
}

.slider-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  color: var(--primary);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 10px;
}

/* ---------------------------------------------------------------------
   15. Call to Action Banner Block
   --------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  border-radius: 0;
}

.cta-banner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.cta-banner-content h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.cta-banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------
   16. Contact / Callback Forms & Maps (Contact Page)
   --------------------------------------------------------------------- */
.contact {
  padding: 5rem 0 7rem;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background-color: var(--dark-indigo);
  color: var(--white);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card-intro {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-detail-item {
  display: flex;
  gap: 1.25rem;
}

.info-detail-item .item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--secondary-light);
  border-radius: 50%;
  font-size: 1.2rem;
}

.info-detail-item .item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.detail-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.detail-val.subtext {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* Social links in contact card */
.contact-social {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
}

.social-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Contact Form Formats */
.contact-form-card {
  background-color: var(--white);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.contact-form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-form-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--light-bg);
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(1, 84, 145, 0.1);
}

/* Status message style */
.form-status {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: block;
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* Mock Map Integration */
.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background-color: var(--light-bg);
  border: 1px solid var(--light-gray);
  position: relative;
  box-shadow: var(--shadow-md);
  margin-top: 4rem;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #e2eafc;
  background-image: radial-gradient(circle at 50% 50%, rgba(226, 234, 252, 0.5) 0%, rgba(193, 211, 254, 0.5) 100%);
  text-align: center;
  padding: 2rem;
}

.map-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.map-placeholder h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.map-placeholder p {
  font-size: 0.9rem;
  color: var(--text-body);
  max-width: 400px;
}

/* ---------------------------------------------------------------------
   17. Footer Structure
   --------------------------------------------------------------------- */
.footer {
  background-color: var(--dark-indigo);
  color: var(--white);
  padding: 5rem 0 0;
  border-top: 4px solid var(--primary-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}

.footer-brand .logo-area {
  margin-bottom: 1.5rem;
}

.footer-brand .brand-name {
  color: var(--white);
}

.font-light {
  font-weight: 400;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-services h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-services h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links ul a,
.footer-services ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-links ul a i,
.footer-services ul a i {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  background-color: #030d17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------
   18. Article & Content Page Styles
   --------------------------------------------------------------------- */
.article.container {
  max-width: 900px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.article h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.article .meta {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.article article {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

.article h2 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article img.feature {
  width: 220px;
  float: left;
  margin-right: 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.article .back-link {
  text-align: right;
  margin-bottom: 1rem;
}

/* Dev tag / credit styling */
.dev-tag {
  color: var(--secondary-light);
  font-weight: 700;
  opacity: 0.95;
}

/* Subpage header adjustments to keep header in normal flow on article/service pages */
body.subpage .header {
  position: relative;
  top: 0;
  padding: 1rem 0;
  background: transparent;
  box-shadow: none;
}

body.subpage .top-bar { display: block; }

/* Make logo a little larger on article pages while keeping it constrained */
body.subpage .logo-img {
  height: 64px;
}

/* Ensure article images don't overlap heading */
.article img.feature { float: right; margin-left: 1.25rem; }



.dev-tag {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
}

/* Service Area List Section Styles (About Page) */
.service-areas {
  padding: 6rem 0;
  background-color: var(--white);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.area-card {
  background-color: var(--light-bg);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.area-card::before {
  content: '\f3c5'; /* Location Dot FontAwesome icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--secondary);
  font-size: 1.1rem;
}

.area-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

/* Responsive Grid Helper Classes */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.section-padding {
  padding: 7rem 0;
}

.section-padding-sm {
  padding: 6rem 0;
}

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

/* ---------------------------------------------------------------------
   18. Responsive Media Queries
   --------------------------------------------------------------------- */

/* Large Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  
  .header {
    top: 0;
    background-color: var(--dark-indigo);
    padding: 0.8rem 0;
  }
  
  .top-bar {
    display: none; /* Hide top bar for space */
  }
  
  .logo-img { height: 44px; }
  .brand-name { font-size: 1.5rem; }
  
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--dark-indigo);
    transition: var(--transition-normal);
    z-index: 99;
    padding: 3rem 1.5rem;
    overflow-y: auto;
  }
  
  .nav.open {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.25rem;
    color: var(--white);
  }
  
  .header.sticky .nav-link {
    color: var(--white);
  }
  
  .header.sticky .nav-link:hover,
  .header.sticky .nav-link.active {
    color: var(--primary-light);
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  /* Hamburger to X trigger states */
  .mobile-nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
  
  .header-cta .btn-phone {
    display: none; /* hide phone btn in nav on mobile to prevent squishing */
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-side-img-wrapper {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }
  
  .about-grid,
  .locations-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image-wrapper {
    order: 2;
  }
  
  .about-img {
    min-height: 380px;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .solutions-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .section-padding-sm {
    padding: 3.5rem 0;
  }
  
  .areas-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
  }
  
  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Compress section heights on all mobile pages */
  .primary-solutions-section,
  .why-choose-section,
  .provide-services-section,
  .testimonials,
  .faq-section,
  .service-areas,
  .about-story,
  .core-values,
  .about-history,
  .locations-section,
  .gallery-section,
  .blog-section,
  .contact {
    padding: 3rem 0 !important;
  }

  .trust-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .trust-divider {
    display: none;
  }
  
  .trust-stat {
    width: auto;
  }

  /* Compact 2x2 grid for core reasons on mobile */
  .why-choose-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .why-choose-card {
    padding: 1.5rem 1rem;
  }

  .why-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .why-title {
    font-size: 1rem;
  }

  .why-desc {
    font-size: 0.8rem;
  }
  
  /* Revert back to vertical column stacking grids */
  .primary-solutions-grid,
  .provide-services-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-right {
    width: 100% !important;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-item::after,
  .timeline-right::after {
    left: 10px !important;
    right: auto !important;
  }
  
  .timeline-left {
    text-align: left;
  }
  
  .testimonials-slider {
    padding: 2rem;
  }
  
  .testimonial-quote {
    font-size: 1rem;
  }
  
  .cta-banner {
    text-align: center;
  }
  
  .cta-banner-container {
    justify-content: center;
  }
  
  .cta-banner-actions {
    width: 100%;
  }
  
  .cta-banner-actions .btn {
    width: 100%;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Specificity fix for card padding and horizontal scrolls on small mobile screens */
.primary-solutions-section,
.provide-services-section {
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .contact-info-card,
  .contact-form-card {
    padding: 1.75rem 1.25rem !important;
  }
}
