/* =========
   Base
   ========= */
:root{
  --bg: #0b0c10;
  --bg2: #10121a;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.55);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --radius: 18px;
  --max: 1100px;
  --accent: #7c3aed; /* purple */
  --accent2: #22c55e; /* green */
}

:root[data-theme="light"]{
  --bg: #f6f7fb;
  --bg2: #eef1f8;
  --card: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.10);
  --text: rgba(0,0,0,0.88);
  --muted: rgba(0,0,0,0.65);
  --muted2: rgba(0,0,0,0.50);
  --shadow: 0 18px 50px rgba(0,0,0,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(124,58,237,0.25), transparent 55%),
              radial-gradient(1100px 700px at 80% 10%, rgba(34,197,94,0.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; text-underline-offset: 4px; }
a:hover{ opacity: 0.92; }

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.skip{
  position:absolute; left:-999px; top:0;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  border-radius: 12px;
  z-index: 999;
}
.skip:focus{ left: 1rem; top: 1rem; }

/* =========
   Nav
   ========= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: .75rem 0;
}

.brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.nav__menu{
  display:flex;
  gap: .85rem;
  align-items:center;
}

.nav__menu a{
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: .55rem .65rem;
  border-radius: 12px;
}
.nav__menu a:hover, .nav__menu a.active{
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
}

.nav__toggle{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.nav__toggle span{
  display:block;
  height: 2px;
  background: var(--text);
  margin: 6px 10px;
  opacity: 0.85;
}

/* =========
   Components
   ========= */
.section{ padding: 4.5rem 0; }
.section--alt{ background: color-mix(in srgb, var(--bg2) 55%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section__head h2{ margin: 0; letter-spacing: -0.02em; }
.muted{ color: var(--muted); margin: .25rem 0 0 0; }

.grid{ display:grid; gap: 1rem; }
.grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

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

.list{ margin: .75rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.list--compact{ margin-top: .5rem; }
.tags{
  list-style:none;
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 0;
  padding: 0;
}
.tags li{
  font-size: .9rem;
  color: var(--muted);
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 75%, transparent);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent2) 55%, var(--accent)));
  color: white;
  font-weight: 600;
  text-decoration:none;
  cursor:pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover{ transform: translateY(-1px); opacity: .95; }
.btn:active{ transform: translateY(0px); }

.btn--ghost{
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--small{ padding: .5rem .75rem; border-radius: 12px; font-weight: 600; }

/* =========
   Hero
   ========= */
.hero{
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: clip;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1.25rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.eyebrow{
  margin: 0 0 .35rem 0;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}

.hero h1{
  margin: 0 0 .75rem 0;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.lead{
  margin: 0 0 1.25rem 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__cta{
  display:flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.15rem 0 1.1rem;
}

.hero__links{
  list-style:none;
  display:flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  padding:0;
  margin: 0.25rem 0 0;
  color: var(--muted2);
}
.hero__links a{ text-decoration: none; padding: .15rem 0; border-bottom: 1px dashed var(--border); }

.hero__card .card__header{ margin-bottom: .85rem; }
.card__kicker{ color: var(--muted2); margin: 0; font-size: .9rem; }
.card__value{ margin: .2rem 0 0; font-weight: 600; }

.stat{ display:flex; justify-content: space-between; gap: .75rem; }
.stat__label{ margin: .4rem 0; color: var(--muted); }
.stat__value{ margin: .4rem 0; font-weight: 600; }

.hero__bg{
  position:absolute; inset: -150px -150px auto -150px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(124,58,237,0.26), transparent 70%),
              radial-gradient(closest-side, rgba(34,197,94,0.18), transparent 70%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

/* =========
   Timeline
   ========= */
.timeline{ display:flex; flex-direction: column; gap: 1rem; }
.timeline__item{ display:grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
.timeline__meta{
  padding: 1rem 0 0;
  color: var(--muted);
}
.timeline__date{ margin: 0; font-weight: 600; }
.timeline__place{ margin: .2rem 0 0; color: var(--muted2); }

/* =========
   Projects
   ========= */
.project__links{ display:flex; gap: .5rem; margin-top: 1rem; }
.project a[aria-disabled="true"]{ pointer-events: none; opacity: .55; }

/* =========
   Form
   ========= */
.form__row{ display:flex; flex-direction: column; gap: .4rem; margin-bottom: .85rem; }
label{ font-weight: 600; color: var(--muted); }
input, textarea{
  padding: .75rem .9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg2) 55%, transparent);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{ border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.form__error{ margin: 0; color: #fca5a5; font-size: .9rem; min-height: 1.1rem; }

/* =========
   Footer
   ========= */
.footer{
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg2) 55%, transparent);
}
.footer__grid{
  display:flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

/* =========
   Responsive
   ========= */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .timeline__item{ grid-template-columns: 1fr; }
  .timeline__meta{ padding: 0; }
}

@media (max-width: 860px){
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }

  .nav__toggle{ display:inline-flex; flex-direction: column; justify-content:center; }
  .nav__menu{
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    padding: .75rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg2) 85%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav__menu.open{ display:flex; }
}


/* =========
   Services add-ons
   ========= */
.note{
  margin: 1rem 0 0;
  color: var(--muted2);
  font-size: .92rem;
  max-width: 70ch;
}
.hero--services .hero__grid{ align-items: start; }
.service h3, .resource h3{ margin-top: 0; }
.pitch{ margin-top: 1rem; }
hr{
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}


/* Floating WhatsApp */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  display:block;
  z-index: 9999;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  border: none;
}
.wa-float img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
/* =========
   Service cards media + spacing
   ========= */
.grid{ gap: 1.25rem; }
.grid--3{ gap: 1.25rem; }

.service__media{
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: .85rem;
}
.service__media img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  display:block;
}
@media (max-width: 980px){
  .service__media img{ height: 160px; }
}

/* FAQ/cards spacing */
.section__head{ margin-bottom: 1.25rem; }
