/*
Theme Name: Masjid Carpets
Theme URI: http://example.com/masjid-carpets
Author: Antigravity
Author URI: http://example.com
Description: A premium, modern, and trustworthy theme for mosque carpet supply and installation.
Version: 2.0
Text Domain: masjid-carpets
*/

/* --- CSS Variables & Design System --- */
:root {
  --primary-green: #1B4235;
  /* Dark forest green used in buttons, header text, footer */
  --accent-gold: #BE995E;
  /* Gold/Tan color used in icons, text and dividers */
  --text-dark: #333333;
  --text-light: #666666;
  --bg-white: #FFFFFF;
  --bg-offwhite: #F8F9FA;
  --bg-lightgray: #F2F2F2;
  --border-light: #EAEAEA;
  --transition-speed: 0.3s;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-cursive: 'Great Vibes', cursive;
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-green);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-gold);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--accent-gold);
}

.text-green {
  color: var(--primary-green);
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

.gap-3 {
  gap: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--font-body);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--bg-white) !important;
}

.btn-primary:hover {
  background-color: var(--accent-gold);
}

.btn-outline {
  background-color: var(--bg-white);
  color: var(--primary-green) !important;
  border-color: var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: var(--bg-white) !important;
}

/* --- Header & Navigation --- */
.top-bar {
  background-color: var(--bg-white);
  padding: 0.5rem 0;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.top-bar i {
  margin-right: 0.5rem;
}

.site-header {
  background-color: var(--bg-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-green);
  cursor: pointer;
  padding: 0.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo img,
.custom-logo-link img,
#footer-logo img {
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
}

.site-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.main-navigation a:hover {
  color: var(--primary-green);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-section::before {
    background: linear-gradient(to top, rgba(13, 31, 25, 1) 0%, rgba(13, 31, 25, 0.7) 60%, rgba(13, 31, 25, 0) 100%);
  }
}

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

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

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-cursive {
  font-family: var(--font-cursive);
  font-size: 4.5rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  line-height: 0.8;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  gap: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.hero-feature i {
  color: var(--accent-gold);
  font-size: 1.5rem;
}

/* Removal of hero-right as hero-section now handles background */
.hero-right {
  display: none;
}

/* --- Services Section --- */
.services-section {
  padding: 5rem 0;
  text-align: center;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-label::before,
.section-label::after {
  content: '';
  height: 1px;
  width: 30px;
  background-color: var(--accent-gold);
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-green);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.services-slider-wrapper {
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
  width: 100%;
  padding: 0 40px;
  /* Reset vertical padding here */
  margin-bottom: 3rem;
}

.servicesSwiper {
  padding: 15px 5px !important;
  /* Added padding inside the swiper to prevent hover cutoff */
  margin: -15px -5px !important;
  /* Compensation margin */
}

.swiper-button-prev-svc {
  left: -10px;
}

.swiper-button-next-svc {
  right: -10px;
}

.service-card {
  background: var(--bg-white);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Why Choose Us --- */
.why-choose-us {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

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

.wcu-image img {
  border-radius: 12px;
  width: 100%;
}

.wcu-content .section-label {
  justify-content: flex-start;
}

.wcu-content .section-label::before {
  display: none;
}

.wcu-title {
  font-size: 2.2rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.wcu-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.wcu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wcu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.wcu-item i {
  color: var(--primary-green);
}

.wcu-btn-banner {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.wcu-btn-banner .btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(27, 66, 53, 0.15);
}

.wcu-btn-banner .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(27, 66, 53, 0.2);
}

/* --- Our Work Section --- */
.our-work {
  padding: 5rem 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  align-items: center;
}

.work-content .section-label {
  justify-content: flex-start;
}

.work-content .section-label::before,
.work-content .section-label::after {
  display: none;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-gallery img {
  border-radius: 8px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* --- Service Areas Section --- */
.service-areas-section {
  padding: 5rem 0;
  background-color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.service-areas-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/world-map.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.service-areas-section .container {
  position: relative;
  z-index: 1;
}

.sa-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  align-items: center;
}

.sa-content {
  position: relative;
}

.sa-content .section-label {
  justify-content: flex-start;
}

.sa-content .section-label::before,
.sa-content .section-label::after {
  display: none;
}

.sa-cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.sa-city {
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
  background: var(--bg-white);
}

/* --- Inner Page Content & Zigzag --- */
.service-zigzag-section,
.inner-page-content {
  padding: 5rem 0;
}

.inner-page-content h2,
.inner-page-content h3 {
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

.inner-page-content h2:first-child,
.inner-page-content h3:first-child,
.inner-page-content .container>h2:first-child,
.inner-page-content .container>h3:first-child,
.inner-page-content .content-wrapper>h2:first-child,
.inner-page-content .content-wrapper>h3:first-child {
  margin-top: 0;
}

/* --- Contact Section --- */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

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

.contact-content .section-label {
  justify-content: flex-start;
}

.contact-content .section-label::before,
.contact-content .section-label::after {
  display: none;
}

.contact-info {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-info-item .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary-green);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
  /* Prevent oval shape in flex containers */
}

.contact-info-item i {
  color: inherit;
}

/* --- Form Styles --- */
.contact-form-wrapper {
  /* empty for wrapper */
}

.wpcf7-form {
  background: white;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
  /* Increased vertical gap */
}

/* Handle CF7 wrappers that break grid */
.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form p {
  margin-bottom: 0;
}

.wpcf7-form br {
  display: none !important;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: white;
  margin-bottom: 0.2rem;
  /* Vertical spacing fallback */
}

.wpcf7-form-control-wrap textarea {
  min-height: 100px;
}

.wpcf7-submit,
.wpcf7-form input[type="submit"] {
  background-color: var(--primary-green) !important;
  color: white !important;
  border: none !important;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
  display: block;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover {
  background-color: var(--accent-gold) !important;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-green) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1.5fr 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #CCCCCC;
}

.footer-col a {
  color: #CCCCCC;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-social,
.social-menu-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social a,
.social-menu-list a {
  color: white;
  font-size: 1.2rem;
}

.footer-social a:hover,
.social-menu-list a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #999999;
}

/* Responsive */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wcu-grid,
  .work-grid,
  .sa-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    flex-direction: column;
  }

  .hero-right {
    min-height: 400px;
  }

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    grid-column: span 1 !important;
  }

  .footer-col div {
    justify-content: center !important;
    flex-direction: column;
    text-align: center;
  }

  .site-logo {
    justify-content: center;
  }

  .footer-social,
  .social-menu-list {
    justify-content: center;
  }

  .services-grid,
  .sa-cities,
  .form-row {
    grid-template-columns: 1fr;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
    /* Hide CTA on mobile header, maybe put in menu */
  }

  .site-logo-text {
    font-size: 1.2rem;
  }

  .site-logo-text span {
    font-size: 0.5rem;
  }

  .top-bar {
    text-align: center;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cursive {
    font-size: 3rem;
  }
}

/* --- Inner Page Title Bar --- */
.page-title-bar {
  background-color: var(--primary-green);
  background-size: cover;
  background-position: bottom center;
  padding: 6rem 0 4rem;
  position: relative;
  text-align: center;
  color: white;
}

.page-title-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 66, 53, 0.85);
  /* Dark green overlay */
  z-index: 1;
}

.page-title-bar .container {
  position: relative;
  z-index: 2;
}

.page-title-bar h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

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

.breadcrumbs span.separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Inner Page Content --- */
.inner-page-content {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.inner-page-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.inner-page-content h2,
.inner-page-content h3 {
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* --- Lightbox Gallery --- */
.lightbox-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lightbox-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
}

.lightbox-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lightbox-item:hover img {
  transform: scale(1.05);
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 66, 53, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
  font-size: 2rem;
}

.lightbox-item:hover .lightbox-overlay {
  opacity: 1;
}

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

  .page-title-bar h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .lightbox-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Zigzag Services Layout --- */
.service-zigzag-section {
  padding: 5rem 0;
}

.zigzag-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}

.zigzag-item:last-child {
  margin-bottom: 0;
}

.zigzag-item:nth-child(even) .zigzag-content {
  order: 2;
}

.zigzag-item:nth-child(even) .zigzag-image {
  order: 1;
}

.zigzag-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  height: 450px;
  object-fit: cover;
}

.zigzag-content h2 {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

.zigzag-content p,
.zigzag-desc p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .zigzag-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
  }

  .zigzag-item:nth-child(even) .zigzag-content {
    order: 1;
  }

  .zigzag-item:nth-child(even) .zigzag-image {
    order: 2;
  }

  .zigzag-image img {
    height: 350px;
  }
}

/* --- Swiper / Slider (moved from inline) --- */
.work-gallery-wrapper {
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
  width: 100%;
  padding: 0 40px;
}

.swiper {
  width: 100%;
  height: 100%;
}

.slider-image {
  width: 100%;
  object-fit: cover;
  height: 300px;
  border-radius: 8px;
  display: block;
}

.slider-arrow {
  background-color: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  position: absolute;
  top: calc(50% - 20px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.slider-arrow:hover {
  background-color: var(--accent-gold);
}

.swiper-button-prev-custom {
  left: -10px;
}

.swiper-button-next-custom {
  right: -10px;
}

/* --- Lightbox Modal (moved from inline) --- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  border: 4px solid white;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-gold);
}

/* --- Stats Section (About Page) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Global Overflow Fix --- */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* --- Comprehensive Mobile Responsive --- */
@media (max-width: 768px) {

  .swiper-button-prev-custom,
  .swiper-button-prev-svc {
    left: 0;
  }

  .swiper-button-next-custom,
  .swiper-button-next-svc {
    right: 0;
  }

  .work-gallery-wrapper,
  .services-slider-wrapper {
    padding: 0 30px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid textarea,
  .form-grid button {
    grid-column: span 1;
  }

  .hero-left {
    padding: 2rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }

  .zigzag-content h2 {
    font-size: 1.8rem;
  }

  .zigzag-image img {
    height: 250px;
  }

  .wcu-list {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    gap: 2rem;
  }

  .page-title-bar {
    padding: 4rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .sa-cities {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cursive {
    font-size: 2.5rem;
  }

  .wcu-title {
    font-size: 1.6rem;
  }

  .zigzag-content h2 {
    font-size: 1.5rem;
  }
}

/* --- Sticky Header & Header Elements Sizing --- */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  padding: 0.75rem 0 !important;
  /* Slightly reduced padding */
}

/* Header Logo: a bit smaller */
.site-header .site-logo img,
.site-header .custom-logo-link img {
  max-height: 48px !important;
}

.site-header .site-logo-text {
  font-size: 1.25rem !important;
}

.site-header .site-logo-text span {
  font-size: 0.5rem !important;
}

.site-header .site-logo i {
  font-size: 2rem !important;
}

/* Header Button: a bit smaller */
.header-cta .btn {
  padding: 0.45rem 1rem !important;
  font-size: 0.75rem !important;
}

/* Footer Logo: a bit bigger */
.site-footer .site-logo img,
.site-footer .custom-logo-link img {
  max-height: 75px !important;
}

.site-footer .site-logo-text {
  font-size: 1.45rem !important;
}

.site-footer .site-logo-text span {
  font-size: 0.65rem !important;
}

.site-footer .site-logo i {
  font-size: 2.8rem !important;
}

/* --- Intermediate screen navigation wrap to 2nd row --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .site-logo {
    flex: 1;
  }

  .header-cta {
    order: 2;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-light);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
  }

  .main-navigation ul {
    justify-content: center;
    gap: 1.5rem;
  }
}

/* --- Comprehensive Alternating Section Backgrounds --- */
section:nth-of-type(even) {
  background-color: var(--bg-offwhite) !important;
}

section:nth-of-type(odd) {
  background-color: var(--bg-white) !important;
}

/* Override for specific sections that should always be white or have their own bg */
.hero-section,
.page-title-bar,
section#media_image-2 {
  background-color: transparent !important;
}

/* --- Process Steps Arrows --- */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
}

.step-card .icon-circle {
  width: 60px;
  height: 60px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(13, 31, 25, 0.2);
}

@media (max-width: 992px) {
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Entrance Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Removed step-card arrows as per request */
.logo-textf {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
}

@media (max-width: 768px) {
  .logo-textf {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    border-left: 0;
    padding-left: 0;
  }

  .top-bar {
    display: none;
  }

  .sa-cities {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    flex-direction: column;
  }

  .footer-col:last-child div {
    flex-direction: row;
  }

  .hero-right::before {
    background: none;
  }

  .step-card:not(:last-child)::after {
    bottom: -38px;
  }

  .process-steps-grid {
    margin-top: 30px;
  }

  .services-section,
  .why-choose-us,
  .our-work,
  .service-areas-section,
  .service-zigzag-section,
  .inner-page-content,
  .contact-section {
    padding: 3rem 0;
  }

  .wcu-grid {
    gap: 2rem;
  }

  .sa-grid {
    gap: 0rem;
  }

  .site-footer {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .site-footer .site-logo img,
  .site-footer .custom-logo-link img {
    max-height: 60px !important;
  }


}


.home .contact-section,
.page-id-42 .contact-section {
  background: var(--bg-offwhite);
}

.wpcf7-form {
  background: transparent;
}

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