/* Palette aligned with http://dev.remotedba.in (Karla / #38B9D6 accent / #3F4446 nav) */
:root {
  --bg: #3e4445;
  --surface: #424147;
  --surface-soft: #f6f6f6;
  --text: #424147;
  --text-light: #f4f9f9;
  --primary: #38b9d6;
  --primary-dark: #2a9fb8;
  --accent: #38b9d6;
  --border: #e1e6ec;
  --nav-text: #3f4446;
  --nav-hover-bg: #3f4446;
  --page-bg: #ffffff;
  --card-bg: #ffffff;
  --header-bg: #f6f6f6;
  --header-nav-bg: #ffffff;
  --footer-bg: #414146;
  --footer-text: #ffffff;
  --muted-chip-bg: #f4f9f9;
  --muted-chip-text: #424147;
  --muted-chip-border: #38b9d6;
  --input-border: #c3c3c3;
  --focus-outline: #38b9d6;
  --focus-border: #316594;
  --hero-start: #2d3436;
  --hero-mid: #3e4445;
  --hero-end: #316594;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(62, 68, 69, 0.18);
}

[data-theme="dark"] {
  --surface-soft: #252528;
  --text: #f4f9f9;
  --text-light: #f4f9f9;
  --border: #4b5563;
  --nav-text: #e5e7eb;
  --nav-hover-bg: #38b9d6;
  --page-bg: #1a1a1d;
  --card-bg: #252528;
  --header-bg: rgba(26, 26, 29, 0.96);
  --header-nav-bg: #252528;
  --footer-bg: #252528;
  --footer-text: #e5e7eb;
  --muted-chip-bg: #2d3335;
  --muted-chip-text: #38b9d6;
  --muted-chip-border: #38b9d6;
  --input-border: #4b5563;
  --focus-outline: #38b9d6;
  --focus-border: #38b9d6;
  --hero-start: #1a1a1d;
  --hero-mid: #3e4445;
  --hero-end: #1e657a;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Karla, "Century Gothic", Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem 0;
}

.theme-toggle {
  margin-left: 0.4rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 0.45rem;
  margin-left: auto;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.22rem 0.34rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.92;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.7em;
  opacity: 0.85;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: #fff !important;
  background: var(--nav-hover-bg);
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background: var(--header-nav-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 40;
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: none;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.nav-dropdown-disabled {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--nav-text);
  opacity: 0.5;
  cursor: not-allowed;
  line-height: 1.35;
}

.site-nav a {
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.22rem 0.34rem;
  border-radius: 4px;
  opacity: 0.92;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-nav a:hover {
  color: var(--nav-text) !important;
  background: transparent;
  opacity: 1;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--nav-text) !important;
  background: transparent;
  opacity: 1;
}

.menu-btn {
  display: none;
  font-size: 1.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--nav-text);
}

.hero {
  background: linear-gradient(150deg, var(--hero-start), var(--hero-mid) 55%, var(--hero-end));
  color: var(--text-light);
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: min(760px, 100%);
}

.hero h1 {
  color: #ffffff;
  margin: 0.3rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-cta {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-secondary {
  border: 2px solid rgba(56, 185, 214, 0.65);
  color: var(--text-light);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.hero-points {
  margin: 1.2rem 0 0;
  padding-left: 1rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface-soft);
}

#about.section {
  padding-top: 1.2rem;
}

#products.section {
  padding-bottom: 1.6rem;
}

.center {
  text-align: center;
}

.section-title {
  text-align: center;
  margin-top: 0.4rem;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.card h3 {
  margin-top: 0;
}

.card ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.ha-card ul {
  margin-top: 0.8rem;
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0.2rem 0 0.9rem;
  border: 1px solid var(--input-border);
}

.ha-highlights {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ha-highlights span {
  background: var(--muted-chip-bg);
  color: var(--muted-chip-text);
  border: 1px solid var(--muted-chip-border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.product-card {
  border-top: 4px solid var(--primary);
}

.text-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

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

.coming-soon {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nav-text);
  opacity: 0.65;
  cursor: default;
}

.split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.check-list {
  padding-left: 1.1rem;
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}

.result {
  border-left: 4px solid var(--primary);
  padding-left: 0.8rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.3rem;
}

.portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-grid-single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.login-product-label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

.login-product-label strong {
  color: var(--primary);
}

.portal-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.portal-panel h3 {
  margin-top: 0;
}

.portal-form {
  display: grid;
  gap: 0.5rem;
}

.portal-form input,
.portal-form select {
  border: 1px solid var(--input-border);
  background: var(--page-bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
}

.portal-form input:focus,
.portal-form select:focus {
  outline: 2px solid var(--focus-outline);
  border-color: var(--focus-border);
}

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

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--input-border);
  background: var(--page-bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--focus-outline);
  border-color: var(--focus-border);
}

.form-message {
  min-height: 1.3em;
  margin: 0;
  font-weight: 500;
}

.contact-points {
  font-weight: 600;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 1rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .portal-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 740px) {
  .menu-btn {
    display: block;
  }

  .logo img {
    height: 40px;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 0.2rem;
  }

  .menu-btn {
    order: 3;
  }

  .site-nav {
    order: 4;
    position: absolute;
    right: 4%;
    top: 64px;
    width: min(260px, 92vw);
    background: var(--header-nav-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 0.7rem;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: none;
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

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

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