:root{
  --blue: rgba(5, 172, 203, 1);
  --orange: rgba(249, 150, 29, 1);
  --ln-blue: #0077b5;
  --text: #333333;
  --ink: #212121;
  --muted: #6a6a6a;
  --bg: #f3f3f3;
  --card-radius: 14px;

  --process-card-w: 260px;
  --process-card-w-sm: 340px;
}
*, *::before, *::after { box-sizing: border-box; }
/* -------- PAGE / SCROLL CONTROL -------- */
html{
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior: none;
}
body{
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
  overflow-x: hidden;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.45;

  background: linear-gradient(to bottom, #212121 0%, #f3f3f3 70%);
  background-repeat: no-repeat;
}

#hero, #mission, #contact{
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-top: 2rem;
}

#hero > *:last-child,
#mission > *:last-child,
#contact > *:last-child{
  margin-bottom: 0;
}

/* -------- LAYOUT BASICS -------- */
h1, h2, h3, p, a, li, span{ color: inherit; }
a{ text-decoration: none; }
.container{ max-width: 1100px; margin: 0 auto; padding: 0 0; }
section, header{ position: relative; }

/* -------- HERO -------- */
.hero{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.hero .logo{
  width: clamp(320px, 30vw, 500px);
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}
.hero h1{
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  margin: .5rem 0 1.2rem;
  font-weight: 900;
  letter-spacing: .5px;
  color: #ebebeb;
}
.hero .tagline{
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #ebebeb;
  max-width: 860px;
  margin: 0 auto 1.5rem;
}
.hero .cta{
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* -------- BUTTONS -------- */
.btn{
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: .9rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}
.btn-primary{ color: #fff; background: var(--blue); }
.btn-primary:hover{ background: var(--orange); }
.btn-ghost{ color: inherit; background: #fff; border: 2px solid #ddd; }
.btn-ghost:hover{ border-color: var(--orange); background: var(--orange); }

/* -------- PROCESS + VALUES -------- */
#mission .section-title,
.section-header{
  text-align: center;
  margin: 0 auto 1.2rem;             
  max-width: 800px;                      
}
#mission .section-title{
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 300;
}
.section-header{
  font-size: clamp(2.3rem, 2.2vw, 2rem);
  font-weight: 900;
}

.process-wrap{ padding: 2rem 0 2.5rem; }
.process-line{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  padding: 1rem;
}

.process-card{
  flex: 0 0 var(--process-card-w);
  padding: 1.2rem;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  border-radius: 20px;
  border: 2px solid #f0f0f0;
}
.process-arrow{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  user-select: none;
}

/* desktop gradients (unchanged) */
.process-card:nth-child(1){
  background: linear-gradient(to right, var(--blue), var(--blue));
}
.process-card:nth-child(3){
  background: linear-gradient(to right, var(--blue), var(--orange));
}
.process-card:nth-child(5){
  background: linear-gradient(to right, var(--orange), var(--orange));
}

/* Values grid */
.values{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.value-card{
  border: 2px solid;
  border-radius: var(--card-radius);
  padding: 1rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #f0f0f0;
  transition: background .2s ease, color .2s ease;
}
.value-card:nth-child(odd){ border-color: var(--blue); }
.value-card:nth-child(even){ border-color: var(--orange); }
.value-card h3{
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 900;
}
.value-card p{ margin: 0; font-size: .85rem; }
.value-card:nth-child(odd):hover{ background: var(--blue); color:#fff; }
.value-card:nth-child(even):hover{ background: var(--orange); color:#111; }

/* -------- CONTACT -------- */
#contact{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact{
  text-align: center;
  padding: 3.5rem 0 0; /* no bottom padding */
}
.contact h2{
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 .35rem;
  font-weight: 900;
}
.contact .lead{
  margin: 0 0 1.4rem;
  color: var(--ink);
  font-size: 1.05rem;
}
.contact-primary{
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.contact-primary a{
  color: var(--orange);
  display: block;
  margin: .35rem 0;
}
.contact-primary p{ margin: .35rem 0; }
.contact-secondary{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  font-size: 1rem;
}
.contact-secondary a{
  color: var(--ln-blue);
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  font-weight: 700;
}
.linkedin-icon{ width: 18px; height: 18px; fill: currentColor; }
hr.divider{ border: 0; border-top: 1px solid #6a6a6a; margin: 1.75rem 0; }
.brand-mark{ width: 70px; height: auto; display: block; margin: .75rem auto 0; }

/* -------- RESPONSIVE -------- */
@media (max-width: 1000px){
  .values{
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .process-line{
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  .process-card{
    flex: none;
    width: 100%;
    max-width: var(--process-card-w-sm);
    margin: 0 auto;
    font-size: .95rem;
    padding: .9rem 1.1rem;
  }
  .process-card:nth-child(3){
    background: linear-gradient(to bottom, var(--blue), var(--orange));
  }
  .process-arrow{
    width: auto;
    height: auto;
    font-size: 1rem;
    transform: rotate(90deg);
  }
}

@media (max-width: 400px){
  .values{
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
  .value-card{ padding: .85rem; }
  .value-card h3{ font-size: 1.1rem; }
  .value-card p{ font-size: .8rem; }
}

@media (max-width: 480px){
  .contact-primary{ font-size: 1.15rem; }
  .contact-secondary{
    flex-direction: column;
    gap: .5rem;
  }
  .contact-secondary a,
  .contact-secondary p{
    justify-content: center;
  }
}

/* ==== ULTRA-SMALL PHONES (≤ 350px) ==== */
@media (max-width: 350px){
  html{ scroll-snap-type: y proximity; }

  .container{ padding: 0 12px; }
  section, header{ 
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right)); 
  }

  .hero{ padding: 2rem .75rem; }
  .hero .logo{ width: min(68vw, 260px); }
  .hero h1{ font-size: 1.4rem; letter-spacing: .2px; }
  .hero .tagline{ font-size: .95rem; }

  .process-wrap{ padding: 1.25rem 0 1.5rem; }
  .process-line{
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    padding: .5rem 0;
  }
  .process-card{
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    font-size: .9rem;
    padding: .8rem 1rem;
    border-radius: 14px;
  }
  .process-arrow{
    font-size: .9rem;
    width: auto; height: auto;
    transform: rotate(90deg);
  }

  .values{
    grid-template-columns: 1fr; /* single column */
    gap: .5rem;
  }
  .value-card{ padding: .75rem; }
  .value-card h3{ font-size: 1rem; }
  .value-card p{ font-size: .75rem; }

  .contact h2{ font-size: 1.3rem; }
  .contact .lead{ font-size: .95rem; }
}
