:root {
  --bg-color: #ffffff;
  --surface-color: #f7f7f7;
  --surface-color-hover: #ebebf0;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  /* --accent-color is dynamically set by theme.php */
  --accent-hover: #4d4dcc;
  --border-color: #d2d2d7;

  --max-width: 1200px;
  --section-padding: 40px 24px;

  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);

  /* Fallbacks in case theme.php is missing */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme='dark'] {
  --bg-color: #000000;
  --surface-color: #1c1c1e;
  --surface-color-hover: #2c2c2e;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --border-color: #38383a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

section[id] {
  scroll-margin-top: 75px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.gap-sm {
  gap: 1rem;
}

.gap-md {
  gap: 2rem;
}

.gap-lg {
  gap: 4rem;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  transform: scale(1.02);
  background-color: var(--accent-color);
  color: #fff !important;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff !important;
}

.btn-accent {
  background-color: var(--accent-color);
  color: #fff !important;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: scale(1.02);
}

/* Card */
.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 100;
  background-color: rgba(245, 245, 245, 0.8);
  /* Compensated to visually look like #f7f7f7 over white */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all var(--transition-normal);
}

[data-theme='dark'] .navbar {
  background-color: rgba(28, 28, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.navbar.nav-scrolled {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] .navbar.nav-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  width: 100%;
}

.navbar-container>.logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-container>.logo span {
  color: var(--accent-color);
  margin-left: 2px;
}

.navbar-container>.nav-links {
  flex: 0 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link-guidelines {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-micro-icon {
  opacity: 0.65;
  transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
  vertical-align: middle;
}

.nav-link:hover .nav-micro-icon,
.nav-link.active .nav-micro-icon {
  opacity: 1;
  color: var(--accent-color);
  transform: translateY(-1px);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--accent-color);
}

.nav-chevron {
  opacity: 0.55;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron,
.nav-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent-color);
}

.nav-dropdown:hover .nav-micro-icon,
.nav-dropdown.is-open .nav-micro-icon,
.nav-dropdown-toggle.active .nav-micro-icon {
  opacity: 1;
  color: var(--accent-color);
  transform: translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 310px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

[data-theme='dark'] .nav-dropdown-menu {
  background-color: #161618;
  border-color: #2c2c2e;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Invisible bridge so mouse hover doesn't drop off between toggle and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--surface-color);
  color: var(--text-primary);
}

.dropdown-item.active {
  background-color: rgba(0, 169, 157, 0.08);
}

[data-theme='dark'] .dropdown-item:hover {
  background-color: #242426;
}

[data-theme='dark'] .dropdown-item.active {
  background-color: rgba(0, 169, 157, 0.15);
}

.dropdown-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

[data-theme='dark'] .dropdown-item-icon {
  background-color: #202022;
  border-color: #333336;
}

.dropdown-item:hover .dropdown-item-icon,
.dropdown-item.active .dropdown-item-icon {
  background-color: rgba(0, 169, 157, 0.12);
  border-color: rgba(0, 169, 157, 0.35);
  color: var(--accent-color);
}

.dropdown-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dropdown-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  transition: color var(--transition-fast);
}

.dropdown-item:hover .dropdown-item-title,
.dropdown-item.active .dropdown-item-title {
  color: var(--accent-color);
}

.dropdown-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(0, 169, 157, 0.12);
  color: var(--accent-color);
  line-height: 1;
  white-space: nowrap;
}

.dropdown-item-desc {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.25;
  white-space: normal;
}

.navbar-container>.nav-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  margin-left: 0;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  transition: transform var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.d-none-sm {
  display: inline-flex;
}

.mobile-nav {
  display: none;
}

@media (max-width: 992px) {

  .nav-links,
  .d-none-sm {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 1rem 24px 2rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-nav.active,
  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav-link {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    display: block;
    color: var(--text-primary);
  }

  .mobile-nav-group {
    margin: 0.25rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-nav-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.25rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-nav-sublink {
    padding: 0.65rem 0 0.65rem 0.5rem !important;
    font-size: 1.02rem !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border-bottom: none !important;
    color: var(--text-primary);
    text-decoration: none;
  }

  .mobile-nav-sublink:hover,
  .mobile-nav-sublink.active {
    color: var(--accent-color);
  }
}

/* Hero */
.hero {
  padding-top: 160px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}

.hero-title {
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.hero-image-wrapper {
  position: relative;
  width: auto;
  height: 650px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: var(--hero-aspect-ratio, 4/5);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  background-color: var(--surface-color);
  cursor: pointer;
  touch-action: pan-y;
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-after,
.hero-img-before {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: inherit;
}

.hero-img-after {
  z-index: 1;
}

.hero-img-before {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  opacity: 1;
  will-change: clip-path, opacity;
}

/* Add the physical slider line */
.hero-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 100%;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  will-change: transform, opacity;
}

/* Animations (Slow & Pro) */
.hero-img-before.anim-fade {
  transition: opacity var(--hero-anim-speed, 2.5s) cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-img-before.anim-fade.hide {
  opacity: 0;
}

.hero-img-before.anim-wipe-h {
  transition: clip-path var(--hero-anim-speed, 2.5s) cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-img-before.anim-wipe-h.hide {
  clip-path: inset(0 100% 0 0);
}

.hero-slider-line.anim-wipe-h {
  transition: transform var(--hero-anim-speed, 2.5s) cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s;
  opacity: 1;
  transform: translateX(100%);
}

.hero-slider-line.anim-wipe-h.hide {
  transform: translateX(0%);
  opacity: 0;
}

.hero-img-before.anim-wipe-v {
  transition: clip-path var(--hero-anim-speed, 2.5s) cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-img-before.anim-wipe-v.hide {
  clip-path: inset(100% 0 0 0);
}

.hero-img-before.anim-circle {
  transition: clip-path var(--hero-anim-speed, 2.5s) cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-img-before.anim-circle.hide {
  clip-path: circle(0% at center);
}

/* Smooth recovery class for mouse tracking */
.hero-img-before.smooth-return,
.hero-slider-line.smooth-return {
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.hero-img-before.smooth-return.hide {
  clip-path: inset(0 100% 0 0) !important;
  opacity: 0 !important;
}

.hero-slider-line.smooth-return.hide {
  transform: translateX(0%) !important;
  opacity: 0 !important;
}

.hero-img-before.tracking,
.hero-slider-line.tracking {
  transition: none !important;
  opacity: 1 !important;
}

.hero-slider-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes slide-in {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes drop-in {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  60% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-nav-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.hero-nav-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-50%);
  /* ensure it doesn't move */
}

.hero-prev {
  left: -50px;
}

.hero-next {
  right: -50px;
}

.hero-slider-text {
  position: absolute;
  bottom: 16px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-lg {
    width: 100%;
  }
}

/* Services */
.bg-surface {
  background-color: var(--surface-color);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.section-header p {
  margin-top: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius-md);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  background: rgba(51, 51, 153, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Other Sections (Process, Testimonials, Pricing, FAQ, Contact, Footer) - Simplified for brevity but retaining structure */
/* See process.css in original for details, adding basic structure here */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  background-color: var(--bg-color);
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: #fff !important;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-form-wrapper {
  padding: 3rem 2.5rem;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Contact Form Specific Overrides (to handle dark theme footer conflicts) */
.contact-form-wrapper {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
}

.contact-form-wrapper label {
  color: var(--text-primary) !important;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  background-color: var(--bg-color) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  padding: 16px 20px !important;
  font-size: 1.05rem !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) inset !important;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15) !important;
  outline: none !important;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 400px;
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Footer */
.footer {
  background-color: #000;
  color: #f5f5f7;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

[data-theme='dark'] .footer {
  background-color: #111;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.link-group h4 {
  color: #fff !important;
  margin-bottom: 1.5rem;
}

.link-group ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-group a {
  color: #a1a1a6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #a1a1a6;
  font-size: 0.875rem;
}

/* Floating Actions */
.floating-actions-container {
  position: fixed;
  bottom: 168px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-whatsapp,
.floating-contact {
  position: fixed;
  right: 24px;
  width: 50px;
  height: 50px;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform var(--transition-fast);
}

.floating-whatsapp {
  bottom: 96px;
  background-color: #25D366;
}

.floating-contact {
  bottom: 24px;
  background-color: var(--accent-color);
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .contact-container .contact-info p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Mobile Layout Fixes --- */
@media (max-width: 768px) {

  /* Navbar Height & Gap Fix */
  .navbar {
    padding: 8px 0 !important;
  }

  .navbar-container {
    height: 55px !important;
  }

  .hero {
    padding-top: 85px !important;
  }

  .hero-container {
    gap: 1.5rem !important;
  }

  /* Logo Resize */
  .navbar-container .logo img {
    max-width: 143px !important;
    height: auto !important;
  }

  /* Hero Fix */
  .hero-image-parent {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .hero-image-wrapper {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    aspect-ratio: 4/5;
    margin: 0 auto !important;
  }

  /* Hero Text Overrides */
  .hero-title {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
  }

  /* Hide hero nav buttons on mobile */
  .hero-slider-ui .hero-nav-btn {
    display: none !important;
  }

  /* Form Fix */
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }

  #hanging-price-tag-wrapper {
    transform: scale(0.75);
    right: 15px !important;
    top: -15px !important;
  }
}

.btn-outline-dark {
  background-color: transparent;
  border: none;
  box-shadow: inset 0 0 0 1px #9ca3af;
  color: var(--text-color, #333);
}

.btn-outline-dark:hover {
  background-color: var(--accent-color);
  box-shadow: inset 0 0 0 1px var(--accent-color);
  color: #fff !important;
}

/* Ensure Waterfall badge text remains crystal-clear and prominent on button hover */
.btn-outline-dark:hover #waterfallKeyBadge,
.btn-outline-primary:hover #waterfallKeyBadge,
.btn:hover #waterfallKeyBadge,
#btnWaterfallApisModal:hover #waterfallKeyBadge,
button[onclick*="openApiWaterfallModal"]:hover #waterfallKeyBadge,
.btn:hover .waterfall-badge-indicator,
button:hover .waterfall-badge-indicator {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}