/* SpiceSoup Security. Single stylesheet, no build step.
   Brand palette: navy ink base (security), chili red for action (the spice)
   and purple for highlights. Theme follows the OS preference and can be
   overridden with the header switch (data-theme on <html>). */

:root {
  --bg: #f7f7fa;
  --surface: #ffffff;
  --ink: #171425;
  --muted: #575267;
  --accent: #c8102e;          /* chili red: CTAs and action */
  --accent-hover: #a30d25;
  --accent-ink: #ffffff;
  --accent2: #5b2a86;         /* purple: highlights and links */
  --accent2-soft: #f1eaf8;
  --blue: #0b5fa8;            /* security blue: kept for supporting details */
  --surface-alt: #ffffff;
  --border: #e3e1ec;
  --shadow: 0 1px 3px rgb(23 20 37 / 0.08);
  --radius: 10px;
  --container: 76rem;
}

/* Dark palette, applied by OS preference unless the user forced light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131020;
    --surface: #1c1830;
    --ink: #eeecf5;
    --muted: #a49fb8;
    --accent: #ff4d63;
    --accent-hover: #ff7182;
    --accent-ink: #24070d;
    --accent2: #b794e6;
    --accent2-soft: #262040;
    --blue: #58a6e8;
    --surface-alt: #17132a;
    --border: #2e2947;
    --shadow: none;
  }
}
/* Dark palette, forced by the switch. */
:root[data-theme="dark"] {
  --bg: #131020;
  --surface: #1c1830;
  --ink: #eeecf5;
  --muted: #a49fb8;
  --accent: #ff4d63;
  --accent-hover: #ff7182;
  --accent-ink: #24070d;
  --accent2: #b794e6;
  --accent2-soft: #262040;
  --blue: #58a6e8;
  --surface-alt: #17132a;
  --border: #2e2947;
  --shadow: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

a { color: var(--accent2); }
a:hover { color: var(--accent); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: 0 0 6px 6px;
  z-index: 100; transition: top 0.15s;
}
.skip-link:focus { top: 0; color: var(--accent-ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.95rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.7rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
}
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-name strong { color: var(--accent); font-weight: 700; }

.nav-menu {
  display: flex; align-items: center; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem;
}
.nav-menu a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; }

/* Theme switch */
.theme-toggle {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; color: var(--ink); padding: 0;
}
.theme-toggle:hover { border-color: var(--accent2); color: var(--accent2); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
/* When dark is active (by OS or by switch), show the sun. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Services dropdown */
.has-dropdown { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 0.98rem;
  color: var(--ink); padding: 0;
}
.nav-drop-btn:hover { color: var(--accent); }
.nav-drop-btn::after {
  content: ""; width: 0.45em; height: 0.45em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
}
.dropdown {
  display: none;
  position: absolute; left: 0; top: calc(100% + 0.75rem);
  min-width: 19rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.14);
  list-style: none; margin: 0; padding: 0.45rem;
  z-index: 60;
}
.has-dropdown[data-open="true"] .dropdown { display: block; }
.dropdown a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-size: 0.95rem;
}
.dropdown a:hover { background: var(--bg); color: var(--accent); }
.dropdown .dropdown-all {
  border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.75rem;
  font-weight: 600; color: var(--accent2);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem;
    background: none; border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; content: "";
    width: 1.15rem; height: 2px; background: currentColor; border-radius: 2px;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }

  .nav-menu {
    display: none;
    position: absolute; right: 1rem; top: calc(100% + 0.4rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
    padding: 0.5rem; min-width: 14rem;
  }
  .site-nav[data-open="true"] .nav-menu { display: flex; }
  .nav-menu li { padding: 0.15rem; }
  .nav-menu a:not(.btn) { display: block; padding: 0.55rem 0.75rem; border-radius: 6px; }
  .nav-menu a:not(.btn):hover { background: var(--bg); }
  .nav-menu .btn { display: block; text-align: center; margin-top: 0.35rem; }

  /* In the mobile menu the dropdown opens in place, not floating. */
  .nav-drop-btn { width: 100%; padding: 0.55rem 0.75rem; justify-content: space-between; }
  .dropdown {
    position: static; box-shadow: none; border: 0;
    border-left: 2px solid var(--border); border-radius: 0;
    margin-left: 0.75rem; min-width: 0;
  }
}
.site-nav { position: relative; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 1rem;
}
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem;
  list-style: none; margin: 2.25rem 0 0; padding: 0;
  color: var(--muted); font-size: 0.95rem;
}
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--ink);
  color: var(--bg);
  padding: 2.25rem 0 1.5rem;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  text-align: center;
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 1rem; } }
.stat-num {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--accent); margin: 0 0 0.15rem;
}
.stat-label { margin: 0; opacity: 0.85; font-size: 0.98rem; }
.stats-note {
  text-align: center; opacity: 0.55; font-size: 0.8rem;
  margin: 1.5rem 0 0;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 52rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.75rem;
  padding: 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 600;
  padding: 1rem 1.25rem;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--accent2);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 1.25rem 1rem; margin: 0; color: var(--muted); }

.cta-note { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }

.brand-story {
  margin-top: 1.5rem;
  background: var(--accent2-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.brand-story h3 { color: var(--accent2); margin-bottom: 0.4rem; }
.brand-story p { margin: 0; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}
.section-lead { color: var(--muted); max-width: 42rem; margin-bottom: 2.25rem; font-size: 1.1rem; }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.25rem; }

.service-card { border-top: 3px solid var(--accent2); }

/* ---------- Steps ---------- */

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 0.25rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem; margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700;
}
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Packages ---------- */

/* Extra gap so the floating "Most chosen" badge never touches the card above. */
.packages { gap: 1.6rem; }
.package-card { display: flex; flex-direction: column; position: relative; }
.package-card ul { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--muted); font-size: 0.98rem; }
.package-card li { margin-bottom: 0.35rem; }
.package-tag { font-weight: 600; color: var(--accent2); font-size: 0.95rem; margin-bottom: 0.75rem; }
.package-fit { margin-top: auto; font-size: 0.9rem; color: var(--muted); font-style: italic; }
.package-featured { border-color: var(--accent2); border-width: 2px; }
.package-card p.package-badge {
  display: inline-block; align-self: flex-start;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  margin: 0 0 0.8rem;
}

/* ---------- Trust ---------- */

.trust-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-side h3 { font-size: 1rem; margin-top: 1.5rem; }
.trust-side h3:first-child { margin-top: 0; }
.cert-list, .plain-list {
  list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.98rem;
}
.cert-list li, .plain-list li { padding: 0.3rem 0; border-bottom: 1px dashed var(--border); }
.placeholder-note {
  color: var(--muted); font-style: italic;
  border-left: 3px solid var(--border); padding-left: 0.9rem;
}

/* ---------- Contact ---------- */

.section-cta {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}
.contact-grid { max-width: 44rem; }
.contact-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

/* Honeypot: visually removed, still in the DOM for bots. */
.hp-field { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

.form-status { margin-top: 0.9rem; font-weight: 600; min-height: 1.4em; }
.form-status[data-state="ok"] { color: #2e7d32; }
.form-status[data-state="error"] { color: #c62828; }
@media (prefers-color-scheme: dark) {
  .form-status[data-state="ok"] { color: #81c784; }
  .form-status[data-state="error"] { color: #ef9a9a; }
}
.form-fallback { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* ---------- Services detail page ---------- */

.page-hero { padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.service-detail {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}
.service-detail > .container > p { max-width: 68ch; }
.service-detail h2 { color: var(--accent2); }
.service-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-top: 1.25rem; max-width: 62rem;
}
@media (max-width: 640px) { .service-meta { grid-template-columns: 1fr; } }
.service-meta h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.service-meta ul { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.service-meta li { margin-bottom: 0.3rem; }
.service-fit {
  margin-top: 1.25rem; padding: 0.8rem 1rem;
  background: var(--accent2-soft); border-left: 3px solid var(--accent2);
  border-radius: 0 8px 8px 0; color: var(--muted); font-size: 0.98rem;
}
.card-more { font-weight: 600; font-size: 0.92rem; text-decoration: none; }

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid; grid-template-columns: 3fr 2fr; gap: 3rem;
  align-items: start;
}
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside .card { margin-bottom: 1rem; }
.contact-aside h3 { margin-bottom: 0.4rem; }
.contact-aside p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem;
  padding-bottom: 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand p { color: var(--muted); margin-top: 0.75rem; max-width: 28rem; }
.footer-title {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem;
}
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.45rem; }
.footer-nav a { text-decoration: none; color: var(--ink); }
.footer-nav a:hover { color: var(--accent); }
.footer-contact a { color: var(--accent2); }
.social-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem;
  padding: 0; list-style: none;
}
.social-row a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); background: var(--surface);
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); }
.social-row svg { display: block; width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.muted { color: var(--muted); }
