:root {
  --bg: #0c0f14;
  --bg-elevated: #141922;
  --surface: #1a2130;
  --text: #e8ecf4;
  --text-muted: #9aa4b8;
  --accent: #6ee7c5;
  --accent-dim: #3d9a82;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(110, 231, 197, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(99, 102, 241, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #9af0d8;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav > ul > li > a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a[aria-current="page"] {
  color: var(--accent);
}

.nav-legal {
  position: relative;
}

.nav-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.nav-legal > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.nav-legal > ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-legal > ul a:hover,
.nav-legal > ul a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-legal > ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04221a;
  box-shadow: 0 12px 32px rgba(110, 231, 197, 0.25);
}

.btn-primary:hover {
  color: #04221a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

#services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(110, 231, 197, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 70ch;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  margin-top: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.1fr;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0.25rem 0 0;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  margin-bottom: 1rem;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.alert-success {
  background: rgba(110, 231, 197, 0.12);
  border: 1px solid rgba(110, 231, 197, 0.35);
  color: var(--text);
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-meta {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-meta a {
  color: var(--text);
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
/* ── Legal Dropdown ── */
.nav-dropdown { position: relative; }

.nav-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    padding: 0.35rem 0;
}

.nav-dropdown__toggle:hover { color: var(--accent); }

.nav-dropdown__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__chevron {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 12rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.4rem 0;
    list-style: none;
    margin: 0;
    z-index: 100;
}

/* Bridge the gap so pointer path from toggle to menu keeps :hover on .nav-dropdown */
.nav-dropdown__menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.5rem;
}

.nav-dropdown__menu li a {
    display: block;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown__menu li a:hover,
.nav-dropdown__menu li a[aria-current="page"] {
    color: var(--accent);
    background: rgba(110, 231, 197, 0.06);
}

.nav-dropdown.is-open .nav-dropdown__menu { display: block; }

@media (hover: hover) {
    .nav-dropdown:hover .nav-dropdown__menu { display: block; }
}

/* Mobile: flatten back to a list inside the open nav */
@media (max-width: 900px) {
    .nav-dropdown__menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 0.75rem;
        display: block; /* always visible on mobile, no hover needed */
    }

    .nav-dropdown__toggle { display: none; } /* heading not needed on mobile */

    .nav-dropdown__menu li a { padding: 0.35rem 0; }
}