@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-text-primary: #1C1C1C;
  --color-text-secondary: #5C5C5C;
  --color-primary-light: #ABC8F9; /* Send Inquiry, CTA background */
  --color-primary-light-hover: #98B8F0;
  --color-primary-dark: #2A2A2A; /* Book a call, Email me */
  --color-primary-dark-hover: #1A1A1A;
  --color-tag-bg: #F0F6FF;
  --color-tag-text: #4A88E8;
  --color-border: #E8E8E8;
  --color-card-bg: #FFFFFF;
  --color-shadow: rgba(0, 0, 0, 0.04);
  
  /* Spacing */
  --container-width: 1280px;
  --container-padding: clamp(2rem, 6vw, 3rem);
  --section-padding: 6rem 0;
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 60px;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 6rem var(--container-padding);
}

/* Typography */
h1, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-weight: bold;
  line-height: 1.2;
}

.text-muted {
  color: var(--color-text-secondary);
}

/* Header */
.page-header {
  display: none !important;
}

.header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows mobile menu to drop down */
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span {
  color: #4A88E8;
}

.header .nav ul {
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header .nav ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  position: relative; /* For sub-menus */
}

.header .nav ul a {
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  color: var(--color-text-primary) !important;
  text-decoration: none !important;
  transition: opacity 0.2s;
  display: block !important;
}

.header .nav ul a:hover {
  opacity: 0.7 !important;
}

/* Sub-menus */
.header .nav ul .sub-menu,
.header .nav ul ul.children {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  box-shadow: 0 4px 12px var(--color-shadow);
  border-radius: var(--radius-sm);
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 250px;
  padding: 0.5rem 0 !important;
  text-align: left !important;
  z-index: 999;
}

.header .nav ul li:hover > .sub-menu,
.header .nav ul li:hover > ul.children {
  display: flex !important;
}

.header .nav ul .sub-menu a,
.header .nav ul ul.children a {
  padding: 0.8rem 1.2rem !important;
  font-size: 0.9rem !important;
}

.header .nav ul .sub-menu a:hover,
.header .nav ul ul.children a:hover {
  background: var(--color-tag-bg);
  opacity: 1 !important;
}

/* Sub-menu Chevron */
.header .nav ul li.menu-item-has-children > a,
.header .nav ul li.page_item_has_children > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.header .nav ul li.menu-item-has-children > a::after,
.header .nav ul li.page_item_has_children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Buttons */
.header-actions {
  display: flex;
  gap: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1;
  text-align: center;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background: var(--color-text-primary);
  color: var(--color-bg);
}

.btn-primary {
  background: var(--color-primary-light);
  color: var(--color-text-primary);
}

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

.btn-dark {
  background: var(--color-primary-dark);
  color: var(--color-bg);
}

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

/* Hero Section */
.hero {
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 670px;
}

.hero h1 span {
  color: #7098D3;
}

.hero-top-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-left {
  max-width: 670px;
}

.hero-left h1 {
  margin-bottom: 1.5rem;
  max-width: none;
}

.availability-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.availability-active {
  background-color: #f1fcc6;
  border: 1px solid #cbde4a;
  border-radius: 2rem;
  padding: 0.6rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 500;
}

.availability-active .dot {
  width: 12px;
  height: 12px;
  background-color: #a8cd36;
  border-radius: 50%;
}

.availability-inactive {
  color: #d3d3d3;
  font-size: 0.85rem;
  font-weight: 500;
  padding-left: calc(2rem + 12px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #6A8BB5;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 670px;
}

/* Ticker Marquee */
.ticker-wrapper {
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: inline-flex;
  gap: 2rem;
  animation: scrollTicker 45s linear infinite;
  padding-left: 2rem;
}

.track-reverse {
  animation-direction: reverse;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: white;
  padding: 0.5rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  flex-shrink: 0;
  width: max-content;
  max-width: none;
}

.ticker-icon {
  width: 16px;
  height: 16px;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Headings */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-tag-text);
  margin-bottom: 1rem;
}

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

.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

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

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--color-card-bg);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 325px;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: 0 10px 30px var(--color-shadow);
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 2rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-tag-text);
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.btn-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
  color: var(--color-text-primary);
  transition: opacity 0.2s;
}

.btn-pill.tilted-pill {
  background: var(--color-primary-light);
  border: 1px solid #1C1C1C;
  transform: rotate(-5deg);
  margin-top: 20px;
}

.btn-pill:hover {
  opacity: 0.8;
}

/* Works Section */
.works-section {
  text-align: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  background-image: url('./public/icons/grid\ lines\ background.png');
  background-size: cover;
  background-position: center;
}

.works-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.works-section h2 {
  font-size: clamp(1.75rem, 5vw, 40px);
  font-weight: 800;
}

.works-section p {
  margin-bottom: 3rem;
}

/* Benefits Section */
.benefits-section {
  padding: clamp(3rem, 6vw, 6rem) var(--container-padding);
  text-align: center;
}

.benefits-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  margin-top: 4rem;
  text-align: left;
}

.benefit-item {
  display: flex;
  flex-direction: column;
}

.benefit-number {
  width: 32px;
  height: 32px;
  background: var(--color-primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.benefit-item h3 {
  color: var(--color-tag-text);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  min-height: 2.8rem;
}

.benefit-item p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Footer */
.cta-section {
  background-color: var(--color-primary-light);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 2rem) 1rem;
  text-align: center;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  margin-bottom: 3rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Footer Bottom */
.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  max-width: 1280px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

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

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

@media (max-width: 768px) {
  /* Header & Navigation */
  .mobile-menu-toggle {
    display: block;
  }
  .nav, .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .header .nav ul {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .header.menu-open .nav, 
  .header.menu-open .header-actions {
    display: flex !important;
  }
  .header.menu-open .nav {
    order: 3;
    padding-top: 2rem;
  }
  .header.menu-open .header-actions {
    order: 4;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .header-actions .btn {
    width: 100%;
  }

  /* BRUTE FORCE FIX: Ensure any mobile menu toggle is strictly on top */
  .mobile-menu-toggle,
  .elementor-menu-toggle {
    position: relative !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
  }


  /* Hero Section */
  .hero-top-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-tags {
    justify-content: center;
  }
  .availability-widget {
    align-items: center;
    margin-top: 3rem;
  }
  .availability-inactive {
    padding-left: 0;
  }

  /* Grids */
  .services-grid, .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cta-section h2 {
    margin-top: 3rem;
  }
}

/* --- ELEMENTOR WIDGET FIXES --- */

/* Fix: Prevent placeholder/logo images from blowing up */
.elementor-widget-image img, 
.elementor-widget-theme-site-logo img {
  max-width: 100%;
  height: auto;
}
.logo.elementor-widget-image img,
.logo.elementor-widget-theme-site-logo img,
.elementor-widget-theme-site-logo .elementor-widget-container {
  max-height: 40px;
  width: auto;
}

/* Fix: Buttons inside Elementor wrappers */
.btn.elementor-widget-button .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  text-align: center;
}

.btn.btn-outline.elementor-widget-button .elementor-button {
  background: transparent;
  border: 1px solid var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn.btn-outline.elementor-widget-button .elementor-button:hover {
  background: var(--color-text-primary);
  color: var(--color-bg);
}

.btn.btn-primary.elementor-widget-button .elementor-button {
  background: var(--color-primary-light);
  color: var(--color-text-primary);
  border: 1px solid transparent;
}

.btn.btn-primary.elementor-widget-button .elementor-button:hover {
  background: var(--color-primary-light-hover);
}

.btn.btn-dark.elementor-widget-button .elementor-button {
  background: var(--color-primary-dark);
  color: var(--color-bg);
  border: 1px solid transparent;
}

.btn.btn-dark.elementor-widget-button .elementor-button:hover {
  background: var(--color-primary-dark-hover);
}

/* Fix Nav Menu */
.nav.elementor-widget-nav-menu .elementor-nav-menu a,
.nav-link.elementor-widget-nav-menu .elementor-nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
  color: var(--color-text-primary);
  padding: 0 1rem;
}

.nav.elementor-widget-nav-menu .elementor-nav-menu a:hover,
.nav-link.elementor-widget-nav-menu .elementor-nav-menu a:hover {
  opacity: 0.7;
}

/* Force Flex Row on Header Containers */
.header.elementor-container,
.header.e-con {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

@media (max-width: 768px) {
  .header.e-con {
    flex-wrap: wrap !important;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
  width: 100%;
}

.features-grid .feature-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--color-card-bg);
  box-shadow: none;
}

.features-grid .feature-card h3 {
  font-size: 1.1rem !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.features-grid .feature-card p {
  font-size: 0.9rem !important;
  color: var(--color-text-secondary) !important;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
/* EMERGENCY MOBILE MENU FIX */
@media (max-width: 768px) {
  .header.menu-open .nav, 
  .header.menu-open .header-actions {
    display: flex !important;
  }
  .mobile-menu-toggle,
  .elementor-menu-toggle {
    position: relative !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
  }
}

/* Service Detail template fix: these Elementor containers render as
   display:contents, which drops their own box entirely and collapses the
   intended two-column layout (features/text + contact card sidebar) into a
   single full-width stacked column. Force them back into real flex boxes. */
.elementor-element-f32ea48 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
  max-width: var(--container-width);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.elementor-element-bb59c3d {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 60%;
  min-width: 0;
}

.elementor-element-3ebc71a {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 320px;
  max-width: 380px;
}

@media (max-width: 900px) {
  .elementor-element-f32ea48 {
    flex-direction: column !important;
  }
  .elementor-element-3ebc71a {
    max-width: 100%;
  }
}

