/* -------------------------------------------------------------
ROOT THEME VARIABLES
------------------------------------------------------------- */
:root {
  --accent: #e63946;
  --radius: 14px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* DARK MODE DEFAULTS */
  --bg: radial-gradient(circle at top, #111827 0, #020308 55%);
  --bg-alt: #0b0d14;
  --fg: #f5f5f7;
  --muted: #a0a4b8;
  --border: #25283a;
  --card: #0f111a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* LIGHT MODE OVERRIDES */
body.light-mode {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --fg: #111827;
  --muted: #4b5563;
  --border: rgba(15, 23, 42, 0.12);
  --card: #ffffff;
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------------
GENERAL BASE STYLES
------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* -------------------------------------------------------------
HEADER
------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5, 6, 10, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-name {
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

/* -------------------------------------------------------------
NAVIGATION
------------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

body.light-mode .main-nav a:hover,
body.light-mode .main-nav a.active {
  background: rgba(15, 23, 42, 0.08);
  color: var(--fg);
}

/* HAMBURGER MENU BUTTON */
.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

/* Light mode hamburger fix */
body.light-mode .nav-toggle {
  color: #111827;
  border-color: rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------------
BUTTONS
------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 57, 70, 0.6);
}

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

body.light-mode .btn-secondary {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #1f2937;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.light-mode .btn-outline {
  border-color: rgba(0, 0, 0, 0.25);
  color: #111827;
}

.btn-block {
  width: 100%;
}

/* -------------------------------------------------------------
HERO
------------------------------------------------------------- */
.hero {
  padding: 3.5rem 0;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
}

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

body.light-mode .hero-card {
  background: #ffffff;
}

/* -------------------------------------------------------------
SECTIONS + CARDS
------------------------------------------------------------- */
.section {
  padding: 3rem 0;
}

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

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

body.light-mode .card {
  background: #ffffff;
}

/* -------------------------------------------------------------
PRICING TAGS
------------------------------------------------------------- */
.price-tag {
  font-weight: 700;
  margin: 0.4rem 0 1rem;
  color: var(--accent);
}

/* -------------------------------------------------------------
FOOTER
------------------------------------------------------------- */
.site-footer {
  background: #020308;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

body.light-mode .site-footer {
  background: #0f172a;
  color: #9ca3af;
}

/* -------------------------------------------------------------
BACK TO TOP BUTTON
------------------------------------------------------------- */
#backToTop {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
}

#backToTop.visible {
  display: flex;
}

/* -------------------------------------------------------------
RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  body.light-mode .main-nav {
    background: #ffffff;
  }

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

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}
/* ================================
   COOKIE / CONSENT BANNER
   ================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-text {
  max-width: 640px;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.btn-cookie-secondary {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-cookie-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-cookie-primary {
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #e63946;
  background: #e63946;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
}

.btn-cookie-primary:hover {
  opacity: 0.9;
}

body.light-mode .cookie-banner {
  background: #0f172a;
  color: #e5e7eb;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.cookie-banner{display:none;position:fixed;bottom:0;left:0;right:0;padding:1rem;background:#111827;color:white;z-index:9999;text-align:center;}
.cookie-banner button{margin-left:1rem;padding:0.5rem 1rem;}

/* ---------- Global UI refinement ---------- */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent, #e63946);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.3), 0 14px 30px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: #f04955;
}

.btn-outline {
  background: transparent;
  color: var(--fg, #f5f5f7);
  border-color: rgba(160, 164, 184, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 17, 26, 0.85);
}

.btn-ghost {
  background: transparent;
  color: var(--muted, #a0a4b8);
}

.btn-ghost:hover {
  background: rgba(15, 17, 26, 0.7);
}

/* Cookie banner (bottom responsive bar) */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(200%);
  width: min(960px, 100% - 2.5rem);
  background: var(--card, #0f111a);
  color: var(--fg, #f5f5f7);
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(37, 40, 58, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  padding: 1.1rem 1.35rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  backdrop-filter: blur(14px);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-banner p {
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner a {
  color: var(--accent, #e63946);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(17, 24, 39, 0.96), rgba(2, 3, 8, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  padding: 1.25rem;
}

.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  width: min(640px, 100%);
  background: var(--bg-alt, #0b0d14);
  border-radius: 18px;
  border: 1px solid rgba(37, 40, 58, 0.9);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.85);
  padding: 1.25rem 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-modal-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--muted, #a0a4b8);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.cookie-modal-intro {
  font-size: 0.9rem;
  color: var(--muted, #a0a4b8);
  margin: 0 0 0.25rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.1rem;
  border-top: 1px solid rgba(37, 40, 58, 0.7);
}

.cookie-option h3 {
  font-size: 0.9rem;
  margin: 0 0 0.1rem;
}

.cookie-option p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--muted, #a0a4b8);
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* Switch toggles */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(55, 65, 81, 0.9);
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.4);
}

.switch input:checked + .slider {
  background-color: var(--accent, #e63946);
}

.switch input:checked + .slider:before {
  transform: translateX(16px);
}

/* Floating Authorized Partner badge */
.partner-floating-badge {
  position: fixed;
  right: 1.4rem;
  bottom: 1.6rem;
  z-index: 9900;
  pointer-events: none;
}

.partner-floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.9), rgba(15, 17, 26, 0.96));
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(248, 250, 252, 0.13);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85);
  font-size: 0.78rem;
  color: #f9fafb;
  pointer-events: auto;
}

.partner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

.partner-label {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Responsive adjustments so badge doesn't fight the cookie banner */
@media (max-width: 640px) {
  .partner-floating-badge {
    right: 1rem;
    bottom: 0.9rem;
  }
  .cookie-banner {
    bottom: 0.75rem;
    padding: 0.95rem 1rem;
  }
  .cookie-banner p {
    font-size: 0.8rem;
  }
  .partner-floating-pill {
    font-size: 0.7rem;
  }
}

.partner-floating-badge {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.partner-floating-badge.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
/* -------------------------------------------------------------
Support email form (support.html)
------------------------------------------------------------- */

.support-email-form {
  margin-top: 1.25rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: var(--radius, 14px);
  background: var(--card, #0f111a);
  border: 1px solid var(--border, #25283a);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.support-email-intro {
  font-size: 0.9rem;
  color: var(--muted, #a0a4b8);
  margin: 0 0 0.9rem;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
}

.support-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.support-form-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #a0a4b8);
}

.support-form-field label span {
  font-weight: 600;
  color: var(--accent, #e63946);
}

.support-form-field label .optional {
  font-weight: 400;
  color: var(--muted, #a0a4b8);
}

.support-form-field input,
.support-form-field textarea,
.support-form-field select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border, #25283a);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  background: #020308;
  color: var(--fg, #f5f5f7);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.support-form-field textarea {
  border-radius: 16px;
  min-height: 120px;
  resize: vertical;
}

.support-form-field select {
  border-radius: 999px;
  cursor: pointer;
}

.support-form-field input:focus,
.support-form-field textarea:focus,
.support-form-field select:focus {
  border-color: var(--accent, #e63946);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.4);
  background: #050814;
}

.support-submit-button {
  margin-top: 0.6rem;
}

.support-email-note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted, #a0a4b8);
  line-height: 1.6;
}
/* Light-mode overrides for support form fields */
body.light-mode .support-form-field input,
body.light-mode .support-form-field textarea,
body.light-mode .support-form-field select {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}

body.light-mode .support-form-field input:focus,
body.light-mode .support-form-field textarea:focus,
body.light-mode .support-form-field select:focus {
  background: #ffffff;
  color: #111827;
  border-color: var(--accent, #e63946);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.25);
}

/* Optional: lighter labels in light mode */
body.light-mode .support-form-field label {
  color: #4b5563;
}

/* Optional: placeholder color in both modes */
.support-form-field input::placeholder,
.support-form-field textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}
body.light-mode .support-form-field input::placeholder,
body.light-mode .support-form-field textarea::placeholder {
  color: #9ca3af;
}


/* Final override to ensure cookie banner can actually show */
.cookie-banner {
  display: flex !important;
}

.cookie-banner.show {
  display: flex !important;
}





/* Remove hover “dead gap” so touchpads can click items */
.nav-dropdown-content{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:240px;
  z-index:9999;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:10px;
  margin-top:6px;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}
.nav-dropdown:hover .nav-dropdown-content{ display:block; }

.nav-dropdown-content a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
}
.nav-dropdown-content a:hover{ background:var(--accent-soft); }

@media (max-width: 860px){
  .nav-dropdown{ width:100%; }
  .nav-dropdown-content{
    position:static;
    display:block;
    min-width:0;
    margin-top:8px;
  }
  .nav-dropbtn::after{ content:""; }
}





/* --- Nav Dropdown (Services) --- */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown:focus-within .nav-dropdown-content { display: block; }

.nav-dropbtn { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropbtn::after { content: "▾"; font-size: 0.9em; opacity: 0.85; }

/* Desktop hover + click support */
.nav-dropdown-content{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:240px;
  z-index:9999;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:10px;
  margin-top:6px;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}
.nav-dropdown:hover .nav-dropdown-content{ display:block; }
.nav-dropdown.open .nav-dropdown-content{ display:block; }

.nav-dropdown-content a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
}
.nav-dropdown-content a:hover{ background:var(--accent-soft); }

/* Mobile: do NOT force the dropdown open; allow click to toggle */
@media (max-width: 860px){
  .nav-dropdown{ width:100%; display:block; }
  .nav-dropdown-content{
    position:static;
    min-width:0;
    margin-top:8px;
    display:none; /* critical: prevent auto-open */
  }
  .nav-dropdown.open .nav-dropdown-content,
  .nav-dropdown:focus-within .nav-dropdown-content{ display:block; }

  .nav-dropbtn::after{ content:""; }
}


/* --- mobile nav dropdown alignment fix --- */
@media (max-width: 860px){
  /* Make Services dropdown behave like other nav links */
  .nav-dropdown { width: 100%; text-align: center; }
  .nav-dropbtn { width: 100%; justify-content: center; }
  .nav-dropdown-content a { text-align: center; }
}
