/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #FFFFFF;
  --color-dark-blue: #094BCC;
  --color-blue: #1A6AFF;
  --color-light-blue: #95B9FF;
  --color-black: #000000;
  --color-text: #1A1A2E;
  --color-gray: #F5F7FA;
  --font-regular: 'Poppins', sans-serif;
  --font-medium: 'Poppins', sans-serif;
  --font-bold: 'Poppins', sans-serif;
  /* Fluid container — matches Wix theme-spx-ratio (viewport / 1280) */
  /* Content fills viewport with proportional ~4% side padding (ref: x=73 at 1883px) */
  --pad-x: clamp(16px, 4vw, 56px);
  --nav-z: 100;
  --menu-z: 200;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-regular);
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: var(--font-regular);
}

/* ===== SITE CONTAINER ===== */
#site-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* ===== NAVIGATION ===== */
#nav-section {
  position: relative;
  z-index: var(--nav-z);
}

/* Top bar */
#top-bar {
  background: var(--color-dark-blue);
  padding: 10px 0;
}

.top-bar-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.contact-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  margin-left: 0;
  padding-left: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: clamp(14px, 1.05vw, 19px);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  fill: currentColor;
}

/* Main nav bar */
#nav-bar {
  padding: 0;
  margin-top: 20px;
}

.nav-bar-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-dark-blue);
  border-radius: 14px;
  padding: 34px 40px;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.logo-text {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.5px;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 48px);
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  padding: 8px 14px;
  position: relative;
  transition: opacity 0.2s;
  letter-spacing: 0.2px;
}

.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-link:hover {
  opacity: 0.85;
}

/* Get an Estimate button */
.btn-estimate {
  background: var(--color-white);
  color: var(--color-dark-blue);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 100px;
  border: 2px solid var(--color-white);
  transition: border-color 0.4s ease 0s, background-color 0.4s ease 0s, color 0.4s ease 0s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.btn-estimate:hover {
  background: var(--color-white);
  color: var(--color-dark-blue);
  border-color: var(--color-light-blue);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--menu-z);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-white);
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.open .mobile-menu-container {
  transform: translateX(0);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  background: none;
  border: none;
  color: var(--color-black);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.mobile-nav-link {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
  padding: 10px;
  transition: color 0.2s;
}

.mobile-nav-link.active {
  color: var(--color-dark-blue);
  text-decoration: underline;
}

.mobile-estimate {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  background: var(--color-white);
  padding: 3% var(--pad-x);
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
  padding: 0;
}

/* Hero left */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  max-width: 760px;
  text-align: left;
}

/* Fluid heading — Wix font_0 = 72 × viewport/1280 (≈106px at 1883px), left-aligned */
.hero-heading {
  font-family: var(--font-medium);
  font-weight: 700;
  font-size: clamp(34px, 5.625vw, 108px);
  line-height: 1.15;
  color: var(--color-black);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-text {
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: 1.6;
  color: var(--color-black);
  margin-bottom: 32px;
  max-width: 820px;
}

.brand-em {
  font-weight: 700;
  color: var(--color-dark-blue);
}

/* Primary button */
.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: border-color 0.4s ease 0s, background-color 0.4s ease 0s, color 0.4s ease 0s;
  display: inline-block;
  letter-spacing: 0.3px;
}

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

.btn-secondary:hover {
  box-shadow: 0 4px 15px rgba(26, 106, 255, 0.35);
}

.btn-estimate:hover {
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Hero right - image stack */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-stack {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.circle-bg {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
}

.circle-light {
  width: 75.4%;
  background: var(--color-light-blue);
}

.circle-dark {
  width: 69.07%;
  background: var(--color-dark-blue);
  margin-left: 2px;
  margin-top: 2px;
}

.circle-image {
  position: absolute;
  width: 60.72%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

/* ===== SERVICES SECTION ===== */
#services {
  background: var(--color-white);
  padding: 80px var(--pad-x) 100px;
  position: relative;
  z-index: 1;
}

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

/* Header row */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 30px;
}

.services-header-left {
  flex: 1;
}

.services-subtitle {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: clamp(18px, 2.19vw, 44px);
  color: var(--color-black);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.services-title {
  font-family: var(--font-medium);
  font-weight: 600;
  font-size: clamp(24px, 2.9vw, 56px);
  line-height: 1.2;
  color: var(--color-black);
}

.btn-secondary {
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: border-color 0.4s ease 0s, background-color 0.4s ease 0s, color 0.4s ease 0s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-secondary:hover {
  background: var(--color-light-blue);
  color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
  transform: translateY(-1px);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Service card */
.service-card {
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.2s ease-in-out;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  background: rgba(9, 75, 204, 0.4);
}

/* Card image area */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.9;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

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

/* Card icon badge */
.card-icon-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 21.4%;
  aspect-ratio: 1;
  z-index: 2;
}

.badge-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.badge-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Card text */
.card-title {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: clamp(20px, 2.34vw, 46px);
  color: var(--color-black);
  margin-top: 70px;
  margin-bottom: 12px;
  padding: 0 12px;
  line-height: 1.3;
}

/* ---- Card hover: blue tint (matches Wix variant: #094BCC @ 0.4) ---- */
.service-card .card-title,
.service-card .card-text {
  transition: color 0.2s ease-in-out;
}

.card-text {
  font-size: clamp(14px, 1.07vw, 22px);
  line-height: 1.7;
  color: var(--color-black);
  padding: 0 16px 30px;
  max-width: 340px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */

/* Tablet (≤1000px) */
@media (max-width: 1000px) {
  .nav-menu {
    display: none;
  }

  .nav-container .btn-estimate {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-container {
    padding: 16px 24px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-heading {
    font-size: clamp(32px, 5.9vw, 59px);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image-stack {
    max-width: 380px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .card-title {
    margin-top: 60px;
    font-size: 24px;
  }
}

/* Mobile (≤750px) */
@media (max-width: 750px) {
  #top-bar {
    padding: 8px 0;
  }

  .contact-info {
    justify-content: flex-start;
    gap: 16px;
    margin-left: 3%;
  }

  .contact-item {
    font-size: 14px;
  }

  .contact-icon {
    width: 26px;
    height: 26px;
  }

  .nav-container {
    padding: 8px 16px;
    border-radius: 10px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  #hero {
    min-height: auto;
    padding: 40px 16px 60px;
  }

  .hero-heading {
    font-size: clamp(24px, 5.36vw, 40px);
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-image-stack {
    max-width: 300px;
  }

  #services {
    padding: 50px 16px 70px;
  }

  .services-subtitle {
    font-size: 18px;
  }

  .services-title {
    font-size: clamp(20px, 4.6vw, 34px);
  }

  .card-title {
    font-size: 22px;
    margin-top: 50px;
  }

  .card-text {
    font-size: 15px;
    padding: 0 12px 24px;
  }

  .btn-primary, .btn-secondary {
    font-size: 15px;
    padding: 12px 28px;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .hero-heading {
    font-size: 26px;
  }

  .hero-image-stack {
    max-width: 240px;
  }

  .services-title {
    font-size: 22px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}