/* ============================================
   DESIGN TOKENS
   ============================================ */
:root{
  --navy-dark: #2E1065;
  --navy: #4C1D95;
  --blue: #7C3AED;
  --blue-light: #A78BFA;
  --cyan: #F472B6;
  --cyan-dark: #EC4899;
  --white: #FFFFFF;
  --off-white: #F4F6FB;
  --text-muted: #5B6478;
  --charcoal: #1A1F2E;

  --gradient-hero: linear-gradient(135deg, var(--navy-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);

  --display: 'Poppins', sans-serif;
  --body: 'Inter', sans-serif;

  --nav-height: 72px;
  --nav-height-scrolled: 60px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--body);
  background: var(--off-white);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }

/* ============================================
   NAV — fixed, transparent over the hero, turns
   solid navy with a shadow once the page scrolls.
   ============================================ */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  background: transparent;
  transition: background-color 360ms ease, height 280ms ease, box-shadow 360ms ease;
}

.site-nav.is-scrolled{
  background-color: var(--navy-dark);
  height: var(--nav-height-scrolled);
  box-shadow: 0 8px 24px -12px rgba(15, 30, 77, 0.4);
}

.nav-brand{
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a{
  position: relative;
  padding: 8px 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 260ms ease;
}

/* Hover interaction: underline sweeps in, color brightens to cyan */
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(.4,0,.2,1);
}

.nav-links a:hover,
.nav-links a:focus-visible{ color: var(--white); }

.nav-links a:hover::after,
.nav-links a:focus-visible::after{ transform: scaleX(1); }

.nav-links a.is-active{ color: var(--white); }
.nav-links a.is-active::after{ transform: scaleX(1); }

.nav-links a:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Hamburger toggle (mobile only) */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.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); }

@media (max-width: 768px){
  .nav-toggle{ display: flex; }

  .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 300px);
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(.4,0,.2,1);
  }

  .nav-links.is-open{ transform: translateX(0); }
  .nav-links a{ font-size: 16px; }
}

/* ============================================
   HERO — full-bleed navy-to-blue gradient,
   centered content, pill-shaped cyan CTA.
   ============================================ */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  padding: 0 clamp(24px, 6vw, 96px);
}

.hero-content{ max-width: 720px; }

h1{
  font-family: var(--display);
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 20px;
}

.lede{
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  max-width: 52ch;
  margin: 0 auto 36px;
}

.btn{
  display: inline-block;
  padding: 14px 34px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  font-family: var(--body);
}

.btn-cta{
  background: var(--cyan);
  color: var(--navy-dark);
}

.btn-cta:hover{
  background: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -8px rgba(236, 72, 153, 0.5);
}

/* ============================================
   SECTIONS
   ============================================ */
section{
  padding: 90px clamp(24px, 6vw, 96px);
}

section.alt{ background: var(--white); }

.tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 14px;
}

h2{
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 16px;
}

.section-lede{
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 65ch;
}

/* Service cards */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.card{
  background: var(--off-white);
  border: 1px solid rgba(15,30,77,0.08);
  border-radius: 12px;
  padding: 30px 26px;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px rgba(15,30,77,0.35);
}

.card-icon{ font-size: 26px; margin-bottom: 14px; }

.card h3{
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-dark);
  margin: 0 0 8px;
}

.card p{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Contact form */
.contact-form{
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.form-row{ display: flex; flex-direction: column; gap: 8px; }

.form-row label{
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
}

.form-row input,
.form-row textarea{
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(15,30,77,0.15);
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  resize: vertical;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.contact-form .btn{ align-self: flex-start; }

.form-status{
  font-size: 14px;
  color: var(--cyan-dark);
  min-height: 20px;
  margin: 0;
}

/* Footer */
footer{
  padding: 32px clamp(24px, 6vw, 96px);
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px){
  .card-grid{ grid-template-columns: 1fr; }
}

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