/* =========================================================
   Garibaldi Strategy — site styles
   Dark Glow theme: black, navy, teal, Garibaldi orange
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #030507;
  --surface: #070d12;
  --navy-deep: #06121b;
  --navy: #0b3d5c;
  --teal: #0e7c7b;
  --teal-glow: #3fc1bf;
  --orange: #f26b1f;
  --orange-hover: #ff7c30;
  --text: #e8eef1;
  --text-soft: #a9b8c1;
  --text-muted: #8a9ba6;
  --white: #ffffff;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(63, 193, 191, 0.35);
  --glass: rgba(255, 255, 255, 0.03);

  --font-display: "Sora", "Avenir Next", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: 24px;
  --section-pad: 104px;

  --shadow-orange: 0 0 0 1px rgba(242, 107, 31, 0.4), 0 10px 36px rgba(242, 107, 31, 0.28);

  color-scheme: dark;
}

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

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

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

/* Subtle film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/bg/grain.svg");
  z-index: 100;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--teal-glow); }
a:hover { color: var(--text); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal-glow);
  outline-offset: 3px;
}

.container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head--center { align-items: center; text-align: center; }

.h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
}

.lead { color: var(--text-soft); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- Labels (eyebrows) ---------- */
.eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--teal-glow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-head--center .eyebrow { align-self: center; }
.eyebrow--right { align-self: flex-end; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { flex: none; }

.btn-primary {
  border: 0;
  background: var(--orange);
  color: var(--bg);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-hover); color: var(--bg); }

.btn-ghost {
  border: 1px solid var(--border-glow);
  background: var(--glass);
  color: var(--text);
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--teal-glow); color: var(--white); }

.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Glass card ---------- */
.glass {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.glass::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-glow), transparent);
  opacity: 0.6;
}

/* ---------- Background helpers ---------- */
.bg-section { background: var(--bg) url("../assets/bg/section-glow.svg") center / cover no-repeat; }
.bg-cta { background: var(--bg) url("../assets/bg/cta-band.svg") center / cover no-repeat; }

.decor {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
}
.decor-edge-left {
  top: 0; bottom: 0; left: 0; width: 50%;
  background: url("../assets/bg/edge-glow-left.svg") left center / contain no-repeat;
}
.decor-orb-teal { background: url("../assets/bg/orb-teal.svg") center / contain no-repeat; }
.decor-orb-orange { background: url("../assets/bg/orb-orange.svg") center / contain no-repeat; }
.decor-arcs {
  inset: 0;
  background: url("../assets/bg/arc-lines.svg") center bottom / cover no-repeat;
  opacity: 0.7;
}

.divider-glow {
  height: 40px;
  background: var(--bg) url("../assets/bg/divider-glow.svg") center / 100% 100% no-repeat;
}

.border-top { border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* =========================================================
   1. Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 9, 14, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 14px;
}

.nav-logo { display: flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 42px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-link { color: var(--text-soft); text-decoration: none; }
.nav-link:hover { color: var(--white); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-logo img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) 20px;
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { display: flex; align-items: center; min-height: 48px; font-size: 17px; }
  .nav-menu .btn { margin-top: 8px; }
}

/* =========================================================
   2. Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg) url("../assets/bg/hero-water-rays.svg") center bottom / cover no-repeat;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding-block: 150px 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(63, 193, 191, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(3, 9, 14, 0.5);
  color: var(--teal-glow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(180deg, var(--white) 30%, var(--teal-glow) 135%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 13ch;
}

.hero-sub {
  max-width: 54ch;
  font-size: 19px;
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero .btn { margin-top: 10px; }

@media (max-width: 640px) {
  .hero-inner { padding-block: 96px 160px; }
  .hero-sub { font-size: 17px; }
}

/* =========================================================
   3. Services
   ========================================================= */
.services .decor-orb-teal {
  left: 50%;
  top: 58%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

.services-inner { display: flex; flex-direction: column; gap: 52px; }

.services-intro { max-width: 90ch; text-wrap: balance; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.service-card--wide { grid-column: span 3; }
.service-card h3 { font-size: 20px; }
.service-card p { color: var(--text-soft); }

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: rgba(14, 124, 123, 0.2);
  border: 1px solid rgba(63, 193, 191, 0.3);
}

.services-closing {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  color: var(--orange);
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card,
  .service-card--wide { grid-column: auto; }
}

/* =========================================================
   4. The problem
   ========================================================= */
.problem-inner { display: flex; flex-direction: column; gap: 72px; }

.problem-top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: flex-start;
}

.problem-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.problem-copy .lead { max-width: 54ch; }

.problem-points {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pain-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(7, 13, 18, 0.75);
}
.pain-list svg { flex: none; margin-top: 3px; }

.research { display: flex; flex-direction: column; gap: 24px; }

.research-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.stat-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
}
.stat-card--navy { background: linear-gradient(180deg, rgba(11, 61, 92, 0.35), rgba(7, 13, 18, 0.9)); }
.stat-card--teal { background: linear-gradient(180deg, rgba(14, 124, 123, 0.22), rgba(7, 13, 18, 0.9)); }

.stat-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  color: var(--teal-glow);
}
.stat-card blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.stat-card figcaption { font-size: 13px; color: var(--text-muted); }

.punchline {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  text-align: center;
  color: var(--white);
  text-wrap: balance;
}

@media (max-width: 640px) {
  .stat-card { padding: 28px 24px; }
  .stat-number { font-size: 52px; }
}

/* =========================================================
   5. Packages
   ========================================================= */
.packages .decor-orb-teal {
  left: 50%;
  top: 22%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -50%);
  opacity: 0.55;
}

.packages-inner { display: flex; flex-direction: column; gap: 56px; }
.packages .h2 { max-width: 20ch; }
.packages .lead { max-width: 62ch; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(7, 13, 18, 0.85));
}
.plan--featured {
  border-color: rgba(63, 193, 191, 0.45);
  background: linear-gradient(180deg, rgba(14, 124, 123, 0.28), rgba(7, 13, 18, 0.92));
  box-shadow: 0 0 0 1px rgba(63, 193, 191, 0.12), 0 24px 80px rgba(14, 124, 123, 0.25);
}
.plan--scale { background: linear-gradient(180deg, rgba(11, 61, 92, 0.32), rgba(7, 13, 18, 0.88)); }

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
}
.plan-head h3 { font-size: 22px; }

.badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--orange { background: var(--orange); color: var(--bg); }
.badge--outline { border: 1px solid rgba(63, 193, 191, 0.45); color: var(--teal-glow); font-weight: 600; }

.price { display: flex; align-items: baseline; gap: 6px; color: var(--text-muted); }
.price strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--white);
}

.plan-for { color: var(--text-soft); min-height: 52px; }

.feature-list {
  flex-grow: 1;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.plan--featured .feature-list { border-top-color: rgba(63, 193, 191, 0.2); }
.feature-list li { display: flex; gap: 12px; }
.feature-list svg { flex: none; margin-top: 4px; }

.projects { display: flex; flex-direction: column; gap: 20px; }
.projects h3 { font-size: 24px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(7, 13, 18, 0.88);
}
.project h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.project p { flex-grow: 1; font-size: 15px; color: var(--text-soft); }
.project .btn { margin-top: 8px; min-height: 48px; font-size: 15px; }

@media (max-width: 1000px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-for { min-height: 0; }
}

/* =========================================================
   6. Contact form
   ========================================================= */
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
}

.contact-copy {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-copy h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  max-width: 14ch;
}
.contact-copy .lead { font-size: 18px; max-width: 44ch; }

.contact-form-wrap { flex: 1 1 480px; min-width: 0; position: relative; }
.contact-form-wrap .decor-orb-orange {
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  opacity: 0.6;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  padding: 36px 32px;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 13, 18, 0.92));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field .optional { font-weight: 400; color: var(--text-muted); }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(3, 5, 7, 0.7);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field textarea.short { min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #6b7c87; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-glow);
  box-shadow: 0 0 0 3px rgba(63, 193, 191, 0.2);
}

/* Topic choices */
.topic { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.topic legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.topic-options { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-options input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.topic-options label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(3, 5, 7, 0.6);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.topic-options label:hover { border-color: rgba(63, 193, 191, 0.5); color: var(--text); }
.topic-options input:checked + label {
  background: rgba(14, 124, 123, 0.32);
  border-color: var(--teal-glow);
  color: var(--white);
}
.topic-options input:focus-visible + label { outline: 2px solid var(--teal-glow); outline-offset: 2px; }

/* Spam trap: hidden from people, visible to bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); text-align: center; }

.form-status {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  text-align: center;
}
.form-status:empty { display: none; }
.form-status.is-success { background: rgba(14, 124, 123, 0.22); border: 1px solid var(--border-glow); color: var(--white); }
.form-status.is-error { background: rgba(242, 107, 31, 0.12); border: 1px solid rgba(242, 107, 31, 0.5); color: var(--white); }

.contact-form button[type="submit"][disabled] { opacity: 0.7; cursor: wait; }

@media (max-width: 560px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; }
}

/* =========================================================
   7. Footer
   ========================================================= */
.site-footer { background: var(--bg); border-top: 1px solid rgba(255, 255, 255, 0.06); }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 56px 32px;
}

.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }

.footer-brand {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand img { height: 44px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14px; color: var(--text-muted); }

.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-col a { color: var(--text-soft); text-decoration: none; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* =========================================================
   Privacy page
   ========================================================= */
.legal { padding-block: 72px 96px; }
.legal-inner { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal h2 { margin-top: 20px; font-size: 22px; }
.legal p,
.legal li { color: var(--text-soft); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

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