:root {
  --navy: #0b1f3a;
  --navy-2: #122b4d;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.accent { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--navy); text-decoration: none; font-size: 1.2rem; }
.brand strong { font-weight: 800; }
.brand-logo { width: 32px; height: 32px; color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--teal-dark); }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.15), transparent 40%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #cbd5e1;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--teal); }
.hero-inner { max-width: 760px; margin-left: max(1.25rem, (100% - 1120px) / 2); }
.lead { font-size: 1.15rem; max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Services */
.cards,
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  padding: 2rem 1.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-grid > div p { color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.values li {
  padding: 1.3rem 1.5rem;
  background: #fff;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.values h3 { margin-bottom: 0.3em; }
.values p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding-top: 1.2rem; border-top: 2px solid var(--border); }
.steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--teal);
}
.step-num { display: block; font-size: 2rem; font-weight: 800; color: var(--teal); opacity: 0.35; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; }

/* Contact */
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #cbd5e1; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--teal); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list .label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--teal); }

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  color: var(--text);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.field label span { color: var(--teal-dark); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2); }
.field.invalid input,
.field.invalid textarea { border-color: #dc2626; }
.field-error { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: #dc2626; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-size: 0.95rem; min-height: 1.5em; }
.form-status.success { color: var(--teal-dark); font-weight: 600; }
.form-status.error { color: #dc2626; font-weight: 600; }

/* Footer */
.site-footer { background: #07162b; color: #94a3b8; padding: 1.8rem 0; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; }
.link-button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-button:hover { color: var(--teal); }

/* Cookie notice */
/* Deliberately not named "cookie-*": ad blockers and Brave Shields ship generic
   cosmetic filters (e.g. Fanboy Cookie Monster: ##.cookie-notice-inner) that hide
   the text and button but leave the white box, so the notice cannot be dismissed. */
.site-notice {
  visibility: hidden;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s linear 0.3s;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 100;
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.18);
}
.site-notice.show {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}
.site-notice-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.site-notice p { flex: 1 1 32ch; margin: 0; font-size: 0.9rem; color: var(--muted); }
.site-notice .btn { flex: 0 0 auto; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { margin-top: 2.6rem; font-size: 1.25rem; }
.legal p,
.legal li { color: var(--muted); }
.legal ul { margin: 0 0 1em; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal strong { color: var(--navy); }
.legal-updated { font-size: 0.9rem; margin-bottom: 2rem; }
.legal code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.9em;
}
.todo {
  padding: 0.1em 0.45em;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal-dark);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1000px) {
  .cards,
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards,
  .steps { grid-template-columns: 1fr; }
  .site-notice {
    bottom: 0;
    width: 100%;
    padding: 1.1rem 1.25rem;
    border-width: 1px 0 0;
    border-radius: 0;
  }
  .site-notice-inner { align-items: stretch; }
  .site-notice .btn { width: 100%; }
}

@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
}

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