/* ==========================================================================
   Río Nord Group — Brand: navy #0C0F26 · greens #85E01D/#69CC02/#028A3A
   · blues #0050FC/#00CCFF/#2491EB · white #FFFFFF
   Display: Sora · Body: Manrope
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root{
  --navy: #0C0F26;
  --navy-soft: #14183a;
  --navy-line: #232849;
  --white: #FFFFFF;
  --off-white: #F6F7FB;
  --ink: #12142b;
  --ink-soft: #565b7a;

  --green-light: #85E01D;
  --green-mid: #69CC02;
  --green-dark: #028A3A;
  --blue-deep: #0050FC;
  --cyan: #00CCFF;
  --blue-sky: #2491EB;

  --gradient-brand: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-sky) 28%, var(--cyan) 52%, var(--green-mid) 78%, var(--green-light) 100%);
  --gradient-brand-soft: linear-gradient(90deg, rgba(0,80,252,.14) 0%, rgba(0,204,255,.14) 45%, rgba(105,204,2,.14) 100%);

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-card: 0 1px 2px rgba(12,15,38,.04), 0 12px 32px -12px rgba(12,15,38,.14);
  --shadow-card-hover: 0 4px 10px rgba(12,15,38,.06), 0 24px 48px -16px rgba(12,15,38,.22);

  --max-width: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12,15,38,.07);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark{ width: 34px; height: auto; }
.brand-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav a{
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.site-nav a:hover{ color: var(--navy); }

.nav-cta{
  font-family: var(--font-body);
  font-size: .95rem;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 20px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(12,15,38,.45);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background .22s ease, color .22s ease;
}

.btn-primary{
  background: var(--gradient-brand);
  color: var(--navy);
  box-shadow: 0 14px 30px -12px rgba(0,80,252,.4);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0,80,252,.5);
}

.btn-ghost{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover{
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
}

.btn-submit{ width: 100%; justify-content: center; font-size: 1.02rem; padding: 17px 28px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero-glow{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 420px at 82% -8%, rgba(0,204,255,.28), transparent 60%),
    radial-gradient(480px 380px at 8% 108%, rgba(105,204,2,.22), transparent 60%),
    radial-gradient(700px 500px at 105% 60%, rgba(0,80,252,.18), transparent 60%);
  pointer-events: none;
}

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 18px;
}
.eyebrow.light{ color: var(--cyan); }

.hero h1{
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: .45em;
}

.hero-sub{
  font-size: 1.14rem;
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin-bottom: 2.1em;
}

.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stat-strip{
  background: var(--navy-soft);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
}
.stat-strip-inner{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 42px 28px;
}
.stat{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  border-left: 1px solid var(--navy-line);
  padding-left: 24px;
}
.stat:first-child{ border-left: none; padding-left: 0; }
.stat-number{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--cyan);
}
.stat-label{
  font-size: .84rem;
  color: rgba(255,255,255,.58);
  line-height: 1.4;
}

/* ==========================================================================
   Section shared
   ========================================================================== */
.section-head{
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.centered{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head h2.light{ color: var(--white); }
.section-sub{ font-size: 1.05rem; color: var(--ink-soft); }

/* ==========================================================================
   Services
   ========================================================================== */
.services{ padding: 120px 0; }

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card{
  position: relative;
  background: var(--off-white);
  border: 1px solid rgba(12,15,38,.06);
  border-radius: var(--radius-md);
  padding: 34px 30px 32px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(12,15,38,.1);
  background: var(--white);
}

.service-card.featured{
  background: var(--navy);
  border-color: var(--navy);
}
.service-card.featured h3,
.service-card.featured p{ color: var(--white); }
.service-card.featured p{ color: rgba(255,255,255,.68); }

.service-badge{
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--gradient-brand);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(0,80,252,.5);
}

.service-icon{
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}
.service-icon svg{ width: 100%; height: 100%; }

.service-card h3{
  font-size: 1.18rem;
  margin-bottom: .5em;
}
.service-card p{
  color: var(--ink-soft);
  font-size: .97rem;
  margin: 0;
}

/* ==========================================================================
   Who we serve
   ========================================================================== */
.who-we-serve{
  background: var(--navy);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.who-we-serve::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 420px at 15% 20%, rgba(0,204,255,.14), transparent 60%),
              radial-gradient(560px 420px at 90% 90%, rgba(105,204,2,.12), transparent 60%);
  pointer-events: none;
}

.industry-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.industry-chip{
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 22px 22px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.industry-chip:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
}
.industry-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0,204,255,.1);
  color: var(--cyan);
}
.industry-icon svg{ width: 24px; height: 24px; }

/* ==========================================================================
   About / Capabilities
   ========================================================================== */
.about{ padding: 120px 0; }

.about-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: start;
}

.about-copy p:not(.eyebrow){ color: var(--ink-soft); font-size: 1.03rem; }

.capability-list{
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.capability-list li{
  padding-left: 24px;
  border-left: 2.5px solid var(--blue-deep);
}
.capability-list strong{
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.03rem;
  margin-bottom: 4px;
}
.capability-list span{
  color: var(--ink-soft);
  font-size: .95rem;
}

.credential-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.badge{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--blue-deep);
  background: rgba(0,80,252,.07);
  border: 1px solid rgba(0,80,252,.22);
  padding: 8px 16px;
  border-radius: 999px;
}

.about-visual{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.visual-card{
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(12,15,38,.06);
}
.visual-number{
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 6px;
}
.visual-label{
  display: block;
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.visual-card-1{ background: var(--off-white); }
.visual-card-1 .visual-number{ color: var(--blue-deep); }
.visual-card-2{ background: var(--navy); margin-left: 30px; }
.visual-card-2 .visual-number{ color: var(--cyan); }
.visual-card-2 .visual-label{ color: rgba(255,255,255,.62); }
.visual-card-3{ background: var(--off-white); }
.visual-card-3 .visual-number{ color: var(--blue-deep); }

/* ==========================================================================
   Contact / Intake
   ========================================================================== */
.contact{
  background: var(--navy);
  padding: 120px 0 130px;
  position: relative;
  overflow: hidden;
}
.contact::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 460px at 90% 0%, rgba(0,80,252,.2), transparent 60%);
  pointer-events: none;
}

.contact-cta{
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.contact-cta h2{ margin-bottom: .4em; }
.contact-sub{ color: rgba(255,255,255,.68); font-size: 1.05rem; margin-bottom: 2em; }
.contact-cta .eyebrow.light{ justify-content: center; }
.contact-cta .btn{ margin: 0 auto; }

/* ---------- Intake modal ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px;
  background: rgba(6,7,20,.72);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal-overlay[hidden]{ display: none; }

.modal{
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.55);
  animation: modal-in .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes modal-in{
  from{ opacity: 0; transform: translateY(14px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.modal h2{ font-size: 1.6rem; margin-bottom: .3em; }
.modal-sub{ color: var(--ink-soft); margin-bottom: 1.8em; }

.modal-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--off-white);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover{ background: rgba(0,80,252,.1); color: var(--blue-deep); }

/* Form (now lives inside .modal) */
.intake-form{ margin: 0; }

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field{
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

label, legend{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .86rem;
  color: var(--navy);
  margin-bottom: 8px;
  padding: 0;
}
.req{ color: var(--blue-deep); }
.optional{ color: var(--ink-soft); font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--ink);
  background: var(--off-white);
  border: 1.5px solid rgba(12,15,38,.1);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--blue-sky);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(36,145,235,.14);
}
textarea{ resize: vertical; min-height: 110px; }

select{
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23565b7a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}

.checkbox-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .89rem;
  color: var(--ink);
  background: var(--off-white);
  border: 1.5px solid rgba(12,15,38,.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.checkbox-item:hover{ border-color: rgba(0,80,252,.35); }
.checkbox-item input{ margin-top: 3px; accent-color: var(--blue-deep); }

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

.form-status{
  margin: 18px 0 0;
  font-size: .92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success{ color: var(--green-dark); }
.form-status.error{ color: #c0273a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  padding: 34px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand-footer .brand-text{ color: var(--white); font-size: 1.05rem; }
.footer-copy{ color: rgba(255,255,255,.5); font-size: .85rem; margin: 0; }
.footer-email{ color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; }
.footer-email:hover{ color: var(--cyan); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .industry-grid{ grid-template-columns: repeat(2, 1fr); }
  .about-grid{ grid-template-columns: 1fr; gap: 48px; }
  .about-visual{ flex-direction: row; flex-wrap: wrap; }
  .visual-card{ flex: 1 1 220px; }
  .visual-card-2{ margin-left: 0; }
  .modal{ padding: 34px 26px; }
  .stat-strip-inner{ grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3){ border-left: none; padding-left: 0; }
}

@media (max-width: 760px){
  /* backdrop-filter would make the header the containing block for the fixed menu, collapsing it to the header's height */
  .site-header{
    backdrop-filter: none;
    background: var(--white);
  }
  .site-nav{
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 90;
    max-height: calc(100vh - 74px);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 6px 24px 20px;
    gap: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .site-nav a{
    color: var(--white);
    font-size: 1rem;
    padding: 13px 0;
    border-bottom: 1px solid var(--navy-line);
  }
  .site-nav a:hover{ color: var(--cyan); }
  .nav-toggle{ display: flex; }
  .nav-cta{
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 18px;
    font-size: .92rem;
    background: var(--gradient-brand);
    color: var(--navy) !important;
    font-weight: 700;
  }

  .hero{ padding: 90px 0 70px; }
  .hero h1{ font-size: clamp(1.6rem, 6.8vw, 1.9rem); line-height: 1.2; }
  .hero-sub{ font-size: 1rem; }
  .hero-actions{ gap: 10px; }
  .hero-actions .btn,
  .contact-cta .btn{ padding: 11px 20px; font-size: .88rem; }
  /* the outlined "Our services" button has a 1.5px border; give the gradient button an invisible one so both are the same thickness */
  .hero-actions .btn-primary{ border: 1.5px solid transparent; background-origin: border-box; }
  .services, .about, .who-we-serve, .contact{ padding: 80px 0; }

  .service-grid{ grid-template-columns: 1fr; }
  .industry-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .checkbox-grid{ grid-template-columns: 1fr; }
  .stat-strip-inner{ grid-template-columns: 1fr 1fr; }
  .modal{ padding: 28px 20px; }
  .modal-close{ top: 14px; right: 14px; }
  .footer-inner{ flex-direction: column; text-align: center; }
}

/* ---------- Submission confirmation toast ---------- */
.toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: min(92vw, 520px);
  padding: 16px 22px;
  background: var(--navy);
  color: var(--white);
  border-left: 4px solid var(--green-mid);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.5);
  font-weight: 600;
  font-size: .95rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .35s ease, transform .35s ease;
}
.toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }
