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


:root {
  --primary-color: #1e3a8a;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --text-dark: #f8fafc;
  --text-light: #cbd5e1;
  --text-heading: #1f2937;
  --text-secondary: #64748b;
  --white: #ffffff;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --card-bg: #1e293b;
  --bg-light: #e3e3e3;
  --border-color: #1e293b;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --filter-white: brightness(0) saturate(100%) invert(100%) sepia(0%)
    saturate(7500%) hue-rotate(34deg) brightness(104%) contrast(100%);
  --filter-primary: brightness(0) saturate(100%) invert(17%) sepia(90%)
    saturate(2547%) hue-rotate(214deg) brightness(92%) contrast(96%);
}

body {
  font-family: -webkit-system-ui, system-ui, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--dark-bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

/* Navigation */
.navbar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 30%, transparent);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.navbar::after {
  display: none;
}

.navbar.scrolled {
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.navbar.scrolled::before {
  opacity: 1;
  transform: translateY(0);
}

.navbar.scrolled::after {
  opacity: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 80px;
  width: auto;
  transition: height 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateX(-100%);
}

.navbar.scrolled .nav-logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin-top: 10px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-call-btn {
  background: var(--accent-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-call-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-call-btn img {
  filter: var(--filter-white);
}

/* Mobile right container - hidden by default */
.nav-mobile-right {
  display: none;
}

/* Step 1: At 960px, make call button icon-only (default - not scrolled) */
@media (max-width: 960px) {
  .navbar:not(.scrolled) .nav-call-btn {
    font-size: 0;
    padding: 12px 6px 12px 14px;
    min-width: auto;
  }

  .navbar:not(.scrolled) .nav-call-btn img {
    margin: 0;
  }
}

/* Step 2: At 830px, switch to mobile layout (default - not scrolled) */
@media (max-width: 830px) {
  .navbar:not(.scrolled) .nav-container {
    justify-content: space-between;
  }

  /* Show mobile right container */
  .navbar:not(.scrolled) .nav-mobile-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Setup mobile menu base styles for animation */
  .navbar:not(.scrolled) .nav-menu {
    position: fixed;
    left: 0;
    top: 100px;
    bottom: 0;
    flex-direction: column;
    background: transparent;
    width: 100%;
    text-align: center;
    transition: all 0.3s;
    padding: 0;
    justify-content: flex-start;
    pointer-events: none;
    gap: 0;
  }

  /* Hide the regular nav menu when not active */
  .navbar:not(.scrolled) .nav-menu:not(.active) {
    display: flex;
  }

  .navbar:not(.scrolled) .nav-menu.active {
    pointer-events: auto;
  }

  /* Mobile menu item initial state */
  .navbar:not(.scrolled) .nav-menu li {
    margin: 0;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s ease;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(248, 250, 252, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Mobile menu item active state with staggered delays */
  .navbar:not(.scrolled) .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar:not(.scrolled) .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .navbar:not(.scrolled) .nav-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .navbar:not(.scrolled) .nav-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .navbar:not(.scrolled) .nav-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .navbar:not(.scrolled) .nav-menu.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .navbar:not(.scrolled) .nav-menu.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  /* Last child (call button) - hide in mobile dropdown */
  .navbar:not(.scrolled) .nav-menu li:last-child {
    display: none;
  }

  /* Link styling */
  .navbar:not(.scrolled) .nav-menu .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .navbar:not(.scrolled) .nav-menu .nav-link:hover {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.1);
    padding: 0.5rem 1rem;
  }

  /* Show hamburger inside mobile right */
  .navbar:not(.scrolled) .nav-mobile-right .hamburger {
    display: flex;
    margin-top: 8px;
  }

  /* Style the mobile call button */
  .navbar:not(.scrolled) .nav-call-btn-mobile {
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    margin-top: 10px;
  }

  .navbar:not(.scrolled) .nav-call-btn-mobile:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }

  .navbar:not(.scrolled) .nav-call-btn-mobile img {
    filter: var(--filter-white);
  }
}

/* Step 3 (Default): At 520px, make mobile call button icon-only */
@media (max-width: 520px) {
  .navbar:not(.scrolled) .nav-call-btn-mobile {
    font-size: 0;
    padding: 12px 6px 12px 14px;
    min-width: auto;
  }

  .navbar:not(.scrolled) .nav-call-btn-mobile img {
    margin: 0;
  }
}

/* Scrolled navbar breakpoints - same features, different widths */

/* Step 1 (Scrolled): At 920px, make call button icon-only */
@media (max-width: 860px) {
  .navbar.scrolled .nav-call-btn {
    font-size: 0;
    padding: 12px 6px 12px 14px;
    min-width: auto;
  }

  .navbar.scrolled .nav-call-btn img {
    margin: 0;
  }
}

/* Step 2 (Scrolled): At 770px, switch to mobile layout */
@media (max-width: 730px) {
  .navbar.scrolled .nav-container {
    justify-content: space-between;
  }

  /* Show mobile right container */
  .navbar.scrolled .nav-mobile-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Setup mobile menu base styles for animation - scrolled state */
  .navbar.scrolled .nav-menu {
    position: fixed;
    left: 0;
    top: 65px;
    bottom: 0;
    flex-direction: column;
    background: transparent;
    width: 100%;
    text-align: center;
    transition: all 0.3s;
    padding: 0;
    justify-content: flex-start;
    pointer-events: none;
    gap: 0;
  }

  /* Hide the regular nav menu when not active */
  .navbar.scrolled .nav-menu:not(.active) {
    display: flex;
  }

  .navbar.scrolled .nav-menu.active {
    pointer-events: auto;
  }

  /* Mobile menu item initial state - scrolled */
  .navbar.scrolled .nav-menu li {
    margin: 0;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s ease;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(248, 250, 252, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Mobile menu item active state with staggered delays - scrolled */
  .navbar.scrolled .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar.scrolled .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .navbar.scrolled .nav-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .navbar.scrolled .nav-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .navbar.scrolled .nav-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .navbar.scrolled .nav-menu.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .navbar.scrolled .nav-menu.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  /* Last child (call button) - hide in mobile dropdown - scrolled */
  .navbar.scrolled .nav-menu li:last-child {
    display: none;
  }

  /* Link styling - scrolled */
  .navbar.scrolled .nav-menu .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .navbar.scrolled .nav-menu .nav-link:hover {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.1);
    padding: 0.5rem 1rem;
  }

  /* Show hamburger inside mobile right */
  .navbar.scrolled .nav-mobile-right .hamburger {
    display: flex;
    margin-top: 8px;
  }

  /* Style the mobile call button */
  .navbar.scrolled .nav-call-btn-mobile {
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    margin-top: 10px;
  }

  .navbar.scrolled .nav-call-btn-mobile:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }

  .navbar.scrolled .nav-call-btn-mobile img {
    filter: var(--filter-white);
  }
}

/* Step 3 (Scrolled): At 420px, make mobile call button icon-only */
@media (max-width: 420px) {
  .navbar.scrolled .nav-call-btn-mobile {
    font-size: 0;
    padding: 12px 6px 12px 14px;
    min-width: auto;
  }

  .navbar.scrolled .nav-call-btn-mobile img {
    margin: 0;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hamburger icon animations - apply globally */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fixed hamburger position at 390px and below */
@media (max-width: 390px) {
  .hamburger {
    position: fixed;
    top: 31px;
    right: 15px;
    z-index: 1001;
    transition: top 0.3s ease;
  }

  .navbar.scrolled .hamburger {
    top: 16px;
    right: 15px;
  }

  /* Hide call button completely on non-scrolled */
  .navbar:not(.scrolled) .nav-call-btn {
    display: none;
  }

  .navbar:not(.scrolled) .nav-call-btn-mobile {
    display: none;
  }

  /* Animate call button appearance when scrolled and add margin for hamburger */
  .navbar.scrolled .nav-call-btn {
    animation: scaleIn 0.3s ease-out;
    margin-right: 40px; /* Space for fixed hamburger button */
  }

  .navbar.scrolled .nav-call-btn-mobile {
    animation: scaleIn 0.3s ease-out;
    margin-right: 40px; /* Space for fixed hamburger button */
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--darker-bg) 0%,
    var(--primary-color) 100%
  );
  color: var(--white);
  padding: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(30, 58, 138, 0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  height: 100vh;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}

.hero-text {
  text-align: center;
  max-width: 100%;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  opacity: 0;
  transform: translateX(-100%);
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(-100%);
}

.hero-cta {
  position: relative;
  z-index: 10;
  display: block;
}

.btn-call {
  background: var(--accent-color);
  color: var(--white);
  padding: 16px 32px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.btn-call:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-call img {
  filter: var(--filter-white);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15rem;
  opacity: 0.3;
}

/* Services scroll anchor */
#services {
  position: relative;
  top: 10px; /* Adjust this value to position exactly where you want */
  visibility: hidden;
}

/* Services Section */
.services {
  background: var(--white);
}

.services h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

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

.service-card {
  background: #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.service-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
}

.service-content p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  flex: 1;
  font-size: 1rem;
}

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

.service-list li {
  color: #374151;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1rem;
}

.service-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Features Section */
.features {
  padding: 0 0 20px 0;
  background: linear-gradient(to bottom, var(--white) 31%, var(--bg-light) 31%);
  position: relative;
  overflow: hidden;
}

.features .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.feature {
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, var(--white) 41%, var(--bg-light) 31%);
  transition: transform 0.3s ease;
  border: none;
}

.pipe-svg {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 70px;
  opacity: 0.4;
  z-index: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.feature:hover {
  transform: translateY(-2px);
}

.feature > * {
  position: relative;
  z-index: 1;
}

/* Mobile - Show pipe segments with larger height */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipe-svg {
    top: 60px;
    transform: none;
  }

  /* First feature keeps gradient, rest get consistent background */
  .feature {
    background: var(--bg-light);
  }

  .feature:first-child {
    background: linear-gradient(
      to bottom,
      var(--white) 41%,
      var(--bg-light) 31%
    );
  }

  .contact h2 {
    margin-bottom: 0;
  }
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
}

.feature p {
  color: var(--text-secondary);
  line-height: normal;
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-light);
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  padding: 0 20px;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

/* Review Widgets Container */
.review-widgets {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Widget Base Styles */
.review-widget {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.review-widget:hover {
  transform: translateY(-2px);
}

/* Widget Header */
.widget-header {
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-text {
  font-size: 16px;
  font-weight: 500;
  color: #5f6368;
}

.widget-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-rating .stars {
  display: flex;
  gap: 2px;
}

.widget-rating .stars i {
  color: #fbbf24;
  font-size: 14px;
}

.rating-text {
  font-size: 16px;
  color: rgba(45, 46, 47, 1);
  font-weight: 600;
}

/* Widget Reviews */
.widget-reviews {
  padding: 16px;
}

.review-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.review-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.review-stars i {
  color: #fbbf24;
  font-size: 12px;
}

.review-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.author-name {
  font-weight: 500;
  color: var(--text-heading);
}

.review-date {
  color: #6b7280;
}

/* Widget Footer */
.widget-footer {
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.view-all-link {
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Review Widgets - Responsive Layout */

/* Google Widget Specific Styles */
.google-reviews-widget,
.yelp-reviews-widget {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 auto;
}

/* Desktop layout - Yelp 2/3, Google 1/3 */
.yelp-reviews-widget {
  flex: 2;
  max-width: none;
}

.google-reviews-widget {
  flex: 1;
  max-width: 340px;
  min-width: 340px;
}

.header {
  padding: 20px 24px;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
}

.yelp-reviews-widget .header {
  padding: 20px 12px 0px 22px;
}

.yelp-reviews-widget .header-content {
  align-items: center;
}

/* Desktop only - Yelp header with logo on right */
@media (min-width: 769px) {
  .yelp-reviews-widget .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .yelp-business-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 250px;
  }

  .yelp-reviews-widget .yelp-logo {
    order: 2;
    margin: 0;
    flex-shrink: 0;
    margin-left: 16px;
  }
}

/* When there's not enough space, fall back to vertical layout */
@media (max-width: 850px) {
  .yelp-reviews-widget .header-content {
    flex-direction: column;
    align-items: center;
  }

  .yelp-reviews-widget .yelp-logo {
    order: -1;
  }

  .yelp-business-info {
    align-items: center;
    text-align: center;
  }
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.google-logo svg {
  width: 100px;
  height: auto;
}

.yelp-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.yelp-logo img {
  width: 70px;
  height: auto;
  margin: 0;
  padding: 0;
}

.business-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yelp-verified-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.yelp-reviews-widget .rating-summary {
  justify-content: flex-start;
}

.yelp-reviews-widget .rating-summary .stars {
  gap: 3.8px;
}

.rating-number {
  font-size: 26px;
  font-weight: 700;
  color: #3c4043;
  font-family: -webkit-system-ui, system-ui, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 0;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.review-count {
  color: rgba(17, 17, 17, 0.5);
  font-size: 12px;
  display: flex;
  line-height: 0;
  align-items: center;
}

.mobile-google-text {
  display: none;
}

.write-review-btn {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  margin-top: 20px;
}

.write-review-btn:hover {
  background: #1557b0;
}

.yelp-write-review-btn {
  background: rgba(215, 22, 22, 1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  margin-top: 10px;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  display: flex;
  align-items: center;
}

.yelp-write-review-btn:hover {
  background: rgba(190, 20, 20, 1);
}

.yelp-write-review-btn .icon_svg {
  fill: white;
  flex-shrink: 0;
}

.reviews-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
}

.yelp-reviews-widget .reviews-container {
  width: 100%;
}

.google-reviews-widget .reviews-container {
  width: 340px;
  padding: 4px 0 16px;
}

.reviews-carousel {
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  height: auto;
  transition: height 0.3s ease;
}

.google-reviews-widget .reviews-carousel {
  width: 300px;
}

.reviews-track {
  display: flex;
  transition: transform 0.3s ease;
  transform: translateX(0);
  align-items: flex-start;
}

.review-card {
  width: 100%;
  min-width: 280px;
  height: auto;
  flex-shrink: 0;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
}

.google-reviews-widget .review-card {
  width: 300px;
  min-width: 300px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e8eaed;
}

.yelp-reviews-widget .review-card {
  background: none;
  border-radius: 0;
  border: none;
  padding: 0 10px;
}

.yelp-reviews-widget .header .yelp-write-review-btn {
  align-self: flex-start;
}

.yelp-reviews-widget .rating-summary .stars .star {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .testimonials .container {
    padding: 10px 0;
  }

  .yelp-reviews-widget .business-name {
    font-size: 18px;
  }

  .yelp-reviews-widget .rating-text {
    font-size: 14px;
  }

  .yelp-reviews-widget .reviews-container {
    width: 100%;
    margin: 0;
    padding: 16px 0;
  }

  .yelp-reviews-widget .review-card {
    padding: 0;
  }

  .contact .footer-content {
    margin-top: 15px;
    padding: 15px 0;
  }

  .contact .footer-content p {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .contact .footer-content .footer-logo {
    margin-bottom: 8px;
    font-size: 1.2rem;
  }
}

.yelp-write-review-btn .icon_svg {
  margin-right: 8px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 16px;
}

.yelp-reviews-widget .avatar {
  width: 50px;
  height: 50px;
  font-size: 18px;
}

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

.yelp-reviews-widget .avatar img {
  border-radius: 50%;
}

.review-info {
  flex: 1;
}

.reviewer-name {
  font-weight: 500;
  color: #3c4043;
  font-size: 14px;
  display: flex;
  line-height: normal;
  align-items: center;
  gap: 4px;
}

.yelp-reviews-widget .reviewer-name {
  font-weight: 700;
  font-size: 14px;
  color: #2c2c2c;
  letter-spacing: -0.2px;
}

.reviewer-location {
  font-size: 12px;
  color: #666;
}

.reviewer-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.badge-icon {
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(43%) sepia(6%) saturate(325%)
    hue-rotate(179deg) brightness(95%) contrast(93%);
}

.badge-count {
  font-size: 12px;
  color: #6b6d6f;
  font-weight: 600;
}

.yelp-reviews-widget .review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}

.yelp-reviews-widget .review-stars .review-date {
  font-size: 12px;
  color: #666;
  margin-left: 2px;
}

.verified-badge {
  width: 16px;
  height: 16px;
  background: #1a73e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
}

.yelp-reviews-widget .verified-badge {
  background: rgba(190, 20, 20, 1);
  width: 12px;
  height: 12px;
  font-size: 8px;
}

.review-date {
  color: #5f6368;
  font-size: 12px;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.review-stars .star {
  width: 14px;
  height: 14px;
}

.review-text {
  color: #3c4043;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
  margin-top: auto;
}

/* Google Carousel Buttons */
.google-reviews-widget .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #dadce0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.google-reviews-widget .carousel-btn:hover {
  background: #f8f9fa;
}

.google-reviews-widget .carousel-btn.prev {
  left: 0px;
}

.google-reviews-widget .carousel-btn.next {
  right: 0px;
}

.google-reviews-widget .carousel-btn svg,
.google-reviews-widget .carousel-btn img {
  width: 20px;
  height: 20px;
  fill: #5f6368;
}

.google-reviews-widget .carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Yelp Reviews Widget Font */
.yelp-reviews-widget,
.yelp-reviews-widget * {
  font-family: "Open Sans", -webkit-system-ui, system-ui, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* Yelp Carousel Buttons */
.yelp-reviews-widget .carousel-btn {
  position: absolute;
  top: 0;
  transform: none;
  background: transparent;
  border: none;
  width: auto;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  z-index: 10;
  padding: 0;
}

.yelp-reviews-widget .carousel-btn:hover {
  background: transparent;
}

.yelp-reviews-widget .carousel-btn.prev {
  left: 0px;
}

.yelp-reviews-widget .carousel-btn.next {
  right: 0px;
}

.yelp-reviews-widget .carousel-btn svg,
.yelp-reviews-widget .carousel-btn img {
  width: 20px;
  height: 20px;
  fill: #5f6368;
}

.yelp-reviews-widget .carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .reviews-carousel {
    overflow: hidden;
    position: relative;
    width: calc(100% - 40px);
  }

  .reviews-track {
    display: flex;
    transition: transform 0.3s ease;
    transform: translateX(0);
  }

  .review-card {
    width: 100%;
    max-width: 320px;
    min-width: 250px;
    height: auto;
    flex-shrink: 0;
  }

  .google-reviews-widget .carousel-btn,
  .yelp-reviews-widget .carousel-btn {
    display: flex;
  }

  .review-widgets {
    flex-direction: column;
    gap: 20px;
    max-width: 360px;
  }

  .yelp-reviews-widget {
    order: 1;
    flex: none;
    max-width: 340px;
  }

  .google-reviews-widget {
    order: 2;
    flex: none;
    max-width: 340px;
  }

  .reviews-container {
    width: 340px;
  }
}

/* About Section */
.about {
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.about-text p.first-paragraph {
  margin-bottom: 1.5rem;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary-color);
}

.stat p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
  background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
  position: relative;
  margin-top: 80px;
}

.contact .container {
  padding-top: 0;
}

.contact::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80px;
  background: var(--bg-light) url("assets/svg/wave-transition.svg") repeat-x;
  background-size: 1200px 80px;
  background-position: 0 center;
  z-index: 1;
  animation: wave-flow 6s linear infinite;
}

@keyframes wave-flow {
  from {
    background-position: 0 center;
  }
  to {
    background-position: -1200px center;
  }
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  line-height: 1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 0.25rem;
}

.contact-item img {
  color: var(--accent-color);
  filter: var(--filter-white);
  margin-top: 4px;
}

.contact-item h3 {
  font-size: 1.2rem;
  color: var(--white);
}

.contact-item p {
  color: var(--text-light);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  font-family: -webkit-system-ui, system-ui, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  transition: border-color 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-family: -webkit-system-ui, system-ui, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}


/* Footer Content within Contact Section */
.contact .footer-content {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
}

.contact .footer-content .footer-logo {
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo i {
  margin-right: 0.5rem;
}

.contact .footer-content p {
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  margin-top: 12px;
  text-align: center;
  color: var(--text-light);
}

/* Stats centering for medium screens */
@media (max-width: 789px) {
  .stats {
    justify-content: center;
  }
}

/* Responsive Design - Non-navbar styles for small screens */
@media (max-width: 768px) {
  .hero-content {
    max-width: 350px;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    font-size: 8rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

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

@media (max-width: 350px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0.8rem;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  .logo-main {
    font-size: 1.3rem;
  }

  .logo-sub {
    font-size: 0.8rem;
  }

  .hero-content {
    max-width: 320px;
    padding: 0 15px;
    gap: 1.2rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

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

  .hero-cta .btn.btn-call {
    padding: 0 !important;
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-width: 280px !important;
    width: auto !important;
    border-radius: 35px !important;
    font-weight: 600 !important;
    height: auto !important;
  }

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

  .google-reviews-widget {
    max-width: 280px;
  }

  .header {
    padding: 16px 16px;
  }

  .google-logo svg {
    width: 80px;
  }

  .star {
    width: 16px;
    height: 16px;
  }

  .write-review-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .review-card {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Loading animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.service-card:hover .service-icon {
  animation: pulse 0.6s ease-in-out;
}

/* Scroll to top button */
.scroll-to-top {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

.scroll-to-top img {
  filter: var(--filter-white);
}

/* reCAPTCHA badge visibility control */
.grecaptcha-badge {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

.grecaptcha-badge.show {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Scroll-to-top button positioning when at bottom */
.scroll-to-top.shifted {
  bottom: 80px !important;
}
