/* =========================================================
   Helderis — styles.css
   Based on "Web Helderis Fine.pdf" (page 1) layout.
   Modular structure via @layer + section blocks + @media.
   ========================================================= */

@layer reset, base, layout, components, sections, utilities;

/* ------------------------------- */
/* RESET */
/* ------------------------------- */
@layer reset {
  *,
  *::before,
  *::after { box-sizing: border-box; }

  html, body { height: 100%; }

  body {
    margin: 0;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
  }

  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button, input, textarea, select { font: inherit; }
}

/* ------------------------------- */
/* BASE */
/* ------------------------------- */
@layer base {
  :root{
    /* Colors (picked to match PDF visually) */
    --c-navy: #0b3a4f;
    --c-navy-2: #092f41;
    --c-text: #0b2f3c;
    --c-muted: #5f6b74;
    --c-border: #d6dde3;
    --c-bg-soft: #f5f7fa;
    --c-card: #ffffff;

    --c-orange: #f07a00;
    --c-orange-2: #ff8a1a;

    /* Layout */
    --container: 1160px;
    --gutter: 24px;

    /* Radius + shadow */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 26px;

    --shadow-1: 0 10px 30px rgba(11, 47, 60, .12);
    --shadow-2: 0 8px 18px rgba(11, 47, 60, .10);

    --t-fast: 160ms ease;
  }

  body{
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--c-text);
    background: #fff;
  }

  main { overflow: hidden; }

  /* Slightly nicer default typography */
  h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
  p { margin: 0; color: var(--c-muted); line-height: 1.55; }

  /* Container helper (works even without .container in HTML) */
  .container{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
  }

  /* Your custom <hl/> tag in home.php (invalid HTML, but we can still style it) */
  hl{
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(11, 47, 60, .55);
    margin: 10px 0 14px;
    border-radius: 2px;
  }
}

/* ------------------------------- */
/* LAYOUT */
/* ------------------------------- */
@layer layout {
  /* “page root” in your markup: main > div (from home.php) */
  main > div{
    width: 100%;
  }
}

/* ------------------------------- */
/* COMPONENTS */
/* ------------------------------- */
@layer components {
  .btn,
  a.btn,
  main a[href="/#contact"]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 12px;
    background: var(--c-orange);
    color: #fff;
    font-weight: 650;
    box-shadow: 0 10px 24px rgba(240, 122, 0, .22);
    transition: transform var(--t-fast), filter var(--t-fast);
  }

  .btn:hover,
  main a[href="/#contact"]:hover{
    transform: translateY(-1px);
    filter: brightness(1.02);
  }

  .card{
    background: var(--c-card);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(214, 221, 227, .55);
  }

  .input{
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    background: #fff;
  }
  .input:focus{
    border-color: rgba(240, 122, 0, .55);
    box-shadow: 0 0 0 4px rgba(240, 122, 0, .14);
  }
}

/* ------------------------------- */
/* SECTIONS */
/* ------------------------------- */
@layer sections {
  /* ===== Header / Nav (white pill) ===== */
  header{
    position: sticky;
    top: 14px;
    z-index: 50;
    padding: 0 var(--gutter);
  }

  header nav{
    width: min(980px, 100%);
    margin: 0 auto;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  #logo{
    height: 26px;
    width: auto;
    display: block;
  }

  header nav > div{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
  }

  header nav > div a{
    font-size: 13px;
    color: rgba(11, 47, 60, .78);
    padding: 8px 10px;
    border-radius: 10px;
    transition: background var(--t-fast), color var(--t-fast);
  }

  header nav > div a:hover{
    background: rgba(11, 47, 60, .06);
    color: rgba(11, 47, 60, 1);
  }

  /* Turn the last nav link ("Contact Us") into the dark button like in PDF */
  header nav > div a:last-child{
    background: var(--c-navy-2);
    color: #fff;
    padding: 10px 14px;
    font-weight: 650;
  }
  header nav > div a:last-child:hover{
    background: var(--c-navy);
  }

  /* Language switch pill */
  header nav > a{
    margin-left: 10px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(11, 47, 60, .18);
    color: rgba(11, 47, 60, .85);
    background: #fff;
    white-space: nowrap;
  }

  /* ===== HERO (top section) =====
     In your HTML: main > div > div:first-child
  */
  :is(#hero, main > div > div:first-child){
    position: relative;
    padding: 120px var(--gutter) 150px;
    background:
      radial-gradient(600px 420px at 78% 40%, rgba(240, 122, 0, .55), transparent 62%),
      linear-gradient(110deg, var(--c-navy) 0% 62%, #6a3a06 100%);
  }

  :is(#hero, main > div > div:first-child) > div:first-child{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
  }

  #slogan{
    color: #fff;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.05;
    font-weight: 800;
  }
  #slogan b{ font-weight: 800; }

  :is(#hero, main > div > div:first-child) > div:first-child p{
    color: rgba(255,255,255,.82);
    max-width: 720px;
    font-size: 13px;
  }

  /* “Let's talk” */
  :is(#hero, main > div > div:first-child) > div:first-child a{
    margin-top: 10px;
  }
  /* apply button look */
  :is(#hero, main > div > div:first-child) > div:first-child a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    background: var(--c-orange);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(240, 122, 0, .22);
    transition: transform var(--t-fast), filter var(--t-fast);
  }
  :is(#hero, main > div > div:first-child) > div:first-child a:hover{
    transform: translateY(-1px);
    filter: brightness(1.02);
  }

  /* ===== Stats floating card =====
     In your HTML: hero > div:nth-child(2)
  */
  :is(#hero, main > div > div:first-child) > div:nth-child(2){
    position: absolute;
    left: 50%;
    bottom: -44px;
    transform: translateX(-50%);
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    padding: 22px 26px;
    display: flex;
    gap: 18px;
    align-items: stretch;
    justify-content: space-between;
  }

  :is(#hero, main > div > div:first-child) > div:nth-child(2) > div{
    flex: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 6px 10px;
  }

  :is(#hero, main > div > div:first-child) > div:nth-child(2) > div + div{
    border-left: 1px solid rgba(214, 221, 227, .8);
  }

  :is(#hero, main > div > div:first-child) > div:nth-child(2) h2{
    font-size: 28px;
    font-weight: 850;
    color: var(--c-text);
    letter-spacing: -0.03em;
  }
  :is(#hero, main > div > div:first-child) > div:nth-child(2) p{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(95, 107, 116, .92);
    text-align: center;
  }

  /* ===== About Us ===== */
  #about-us{
    padding: 110px var(--gutter) 56px;
    background: #fff;
  }

  #about-us > div{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 44px;
    align-items: start;
  }

  #about-us > div > div:first-child p{
    color: rgba(11, 47, 60, .65);
    font-weight: 650;
    font-size: 13px;
  }

  #about-us h1{
    color: var(--c-orange);
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 850;
    margin-top: 6px;
  }

  #about-us h2{
    color: var(--c-text);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 500;
    margin-top: 2px;
  }

  #about-us > div > div:last-child p{
    font-size: 12.5px;
  }
  #about-us > div > div:last-child p + p{
    margin-top: 10px;
  }

  #about-us > img{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 36px auto 0;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
  }

  /* ===== Mission ===== */
  #our-mission{
    padding: 14px var(--gutter) 40px;
    background: #fff;
  }

  #our-mission > div{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    align-items: start;
  }

  #our-mission > div > div:first-child h1{
    color: var(--c-orange);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 850;
  }
  #our-mission > div > div:first-child h2{
    color: var(--c-text);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 600;
    margin-top: 6px;
  }

  #our-mission h3{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(11, 47, 60, .88);
    margin-bottom: 8px;
  }
  #our-mission p{ font-size: 12.5px; }

  /* ===== Values (boxed) ===== */
  #our-values{
    padding: 18px var(--gutter) 54px;
    background: #fff;
  }

  #our-values > div:first-child{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    border: 1px solid rgba(214, 221, 227, .95);
    border-radius: var(--r-lg);
    background: var(--c-bg-soft);
    padding: 34px 38px;
  }

  #our-values > div:first-child h1{
    font-size: 34px;
    font-weight: 750;
    color: var(--c-text);
  }
  #our-values > div:first-child h1 span{
    color: var(--c-orange);
  }

  #our-values > div:first-child > div{
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 30px;
  }

  #our-values > div:first-child > div > div{
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  /* the number box (1..4) */
  #our-values > div:first-child > div > div > div{
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--c-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-top: 2px;
  }

  #our-values h3{
    color: rgba(11, 47, 60, .92);
    font-size: 13px;
    font-weight: 800;
    margin-top: 0;
  }

  #our-values p{
    font-size: 12.2px;
    margin-top: -2px;
  }

  /* ===== Services block (title + image) ===== */
  #our-services{
    padding-top: 48px;
  }

  #our-services > div:first-child{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
    align-items: center;
  }

  #our-services h1{
    font-size: 34px;
    font-weight: 800;
    color: var(--c-text);
  }
  #our-services h1 span{ color: var(--c-orange); }
  #our-services > div:first-child p{
    font-size: 12.5px;
    max-width: 520px;
    margin-top: 10px;
  }

  #our-services > div:first-child h3{
    margin-top: 16px;
    font-size: 14px;
    color: rgba(11, 47, 60, .92);
  }
  #our-services > div:first-child h3 span{
    color: var(--c-orange);
    font-weight: 850;
  }

  #our-services img{
    border-radius: var(--r-lg);
  }

  /* glow frame like in PDF */
  #our-services > div:first-child > div:last-child img{
    box-shadow:
      0 0 0 1px rgba(214, 221, 227, .55),
      0 14px 40px rgba(11, 47, 60, .14),
      0 0 0 10px rgba(240, 122, 0, .08);
  }

  /* 4 info cards */
  #our-services > div:nth-child(2){
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #our-services > div:nth-child(2) > div{
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(214, 221, 227, .6);
    padding: 18px 18px 16px;
  }

  #our-services > div:nth-child(2) h2{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(11, 47, 60, .9);
    margin-bottom: 8px;
  }

  #our-services > div:nth-child(2) p{
    font-size: 12.2px;
  }

  /* ===== How we work ===== */
  #how-we-work{
    padding: 56px var(--gutter) 44px;
    background: #fff;
  }

  #how-we-work > div:first-child{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto 22px;
  }

  #how-we-work > div:first-child h1{
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 850;
    color: var(--c-text);
  }

  /* timeline grid:
     item 1,3,5 -> left column
     item 2,4,6 -> right column
  */
  #how-we-work > div:nth-child(2){
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    row-gap: 34px;
    align-items: start;
    position: relative;
    padding: 8px 0 10px;
  }

  /* center line */
  #how-we-work > div:nth-child(2)::before{
    content: "";
    grid-column: 2;
    grid-row: 1 / -1;
    justify-self: center;
    width: 2px;
    background: rgba(214, 221, 227, .95);
    border-radius: 2px;
  }

  #how-we-work > div:nth-child(2) > div{
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    max-width: 420px;
    position: relative;
  }

  #how-we-work > div:nth-child(2) > div img{
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  #how-we-work > div:nth-child(2) > div h3{
    font-size: 13px;
    font-weight: 850;
    color: rgba(11, 47, 60, .92);
  }

  #how-we-work > div:nth-child(2) > div p{
    font-size: 12.2px;
  }

  /* left side (odd) */
  #how-we-work > div:nth-child(2) > div:nth-child(odd){
    grid-column: 1;
    justify-self: end;
    padding-right: 34px;
  }

  /* right side (even) */
  #how-we-work > div:nth-child(2) > div:nth-child(even){
    grid-column: 3;
    justify-self: start;
    padding-left: 34px;
  }

  /* node circle */
  #how-we-work > div:nth-child(2) > div::after{
    content: "";
    position: absolute;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid rgba(11, 47, 60, .35);
    border-radius: 999px;
  }

  #how-we-work > div:nth-child(2) > div:nth-child(odd)::after{
    right: -22px;
  }
  #how-we-work > div:nth-child(2) > div:nth-child(even)::after{
    left: -22px;
  }

  /* ===== Dark banner block ===== */
  #how-we-work > div:nth-child(3){
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 52px auto 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    background:
      radial-gradient(520px 340px at 18% 55%, rgba(240, 122, 0, .44), transparent 60%),
      linear-gradient(110deg, var(--c-navy) 0% 65%, #6a3a06 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    padding: 18px 22px;
  }

  #how-we-work > div:nth-child(3) img{
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
  }

  #how-we-work > div:nth-child(3) h2{
    color: #fff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 650;
    line-height: 1.12;
    text-align: right;
    padding-left: 18px;
  }

  /* ===== Contact section (footer.php first big block) =====
     In your HTML right now it's: main > div:nth-child(2)
     (Better: add id="contact" to that wrapper — see note below.)
  */
  :is(#contact, main > div:nth-child(2)){
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: 56px 0 18px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    column-gap: 56px;
    row-gap: 18px;
    align-items: start;
  }

  :is(#contact, main > div:nth-child(2)) > h2{
    grid-column: 1;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 850;
    color: var(--c-text);
  }

  :is(#contact, main > div:nth-child(2)) > h1{
    grid-column: 1;
    margin-top: -6px;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 900;
    color: var(--c-orange);
  }

  /* contact links list */
  :is(#contact, main > div:nth-child(2)) > div:nth-of-type(1){
    grid-column: 1;
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  :is(#contact, main > div:nth-child(2)) > div:nth-of-type(1) > div{
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(11, 47, 60, .86);
    font-size: 13px;
  }

  /* form wrapper */
  :is(#contact, main > div:nth-child(2)) > div:nth-of-type(2){
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  :is(#contact, main > div:nth-child(2)) form{
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(214, 221, 227, .6);
    padding: 18px;
    display: grid;
    gap: 10px;
  }

  :is(#contact, main > div:nth-child(2)) input[type="text"]{
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
  }

  :is(#contact, main > div:nth-child(2)) input[type="text"]:focus{
    border-color: rgba(240, 122, 0, .55);
    box-shadow: 0 0 0 4px rgba(240, 122, 0, .14);
  }

  :is(#contact, main > div:nth-child(2)) input[type="checkbox"]{
    width: 14px;
    height: 14px;
    margin: 0;
  }

  :is(#contact, main > div:nth-child(2)) label{
    font-size: 11px;
    line-height: 1.35;
    color: rgba(95, 107, 116, .95);
  }

  :is(#contact, main > div:nth-child(2)) label a{
    color: var(--c-orange);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  :is(#contact, main > div:nth-child(2)) button{
    margin-top: 6px;
    border: 0;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--c-orange);
    color: #fff;
    font-weight: 800;
    transition: transform var(--t-fast), filter var(--t-fast);
  }
  :is(#contact, main > div:nth-child(2)) button:hover{
    transform: translateY(-1px);
    filter: brightness(1.02);
  }

  /* ===== Partner strip (footer.php second block) =====
     In your HTML: main > div:nth-child(3)
  */
  :is(#partner, main > div:nth-child(3)){
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 18px auto 26px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(214, 221, 227, .6);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
  }

  :is(#partner, main > div:nth-child(3)) img{
    height: 42px;
    width: auto;
  }

  :is(#partner, main > div:nth-child(3)) h1{
    color: var(--c-orange);
    font-size: 18px;
    font-weight: 900;
  }
  :is(#partner, main > div:nth-child(3)) h2{
    color: rgba(11, 47, 60, .9);
    font-size: 18px;
    font-weight: 750;
  }

  /* divider line look (like in PDF) */
  :is(#partner, main > div:nth-child(3))::before{
    content: "";
    width: 1px;
    height: 34px;
    background: rgba(214, 221, 227, .9);
    order: 2;
  }
  :is(#partner, main > div:nth-child(3)) img{ order: 1; }
  :is(#partner, main > div:nth-child(3)) h1{ order: 3; }
  :is(#partner, main > div:nth-child(3)) h2{ order: 4; }

  /* ===== Bottom footer bar ===== */
  footer{
    background: #fff;
    border-top: 1px solid rgba(214, 221, 227, .85);
    padding: 14px var(--gutter) 18px;
  }

  footer > div{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }

  footer p{
    font-size: 12px;
    color: rgba(95, 107, 116, .95);
  }

  footer a{
    font-size: 12px;
    color: rgba(11, 47, 60, .85);
    padding: 6px 8px;
    border-radius: 10px;
  }
  footer a:hover{
    background: rgba(11, 47, 60, .06);
  }
}

/* ------------------------------- */
/* UTILITIES + RESPONSIVE */
/* ------------------------------- */
@layer utilities {
  @media (max-width: 1024px){
    :is(#hero, main > div > div:first-child){
      padding: 112px var(--gutter) 160px;
    }

    #about-us > div{
      grid-template-columns: 1fr;
      gap: 22px;
    }

    #our-mission > div{
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }

  @media (max-width: 860px){
    header nav{
      width: 100%;
    }

    header nav{
      flex-wrap: wrap;
      gap: 10px;
    }

    header nav > div{
      width: 100%;
      justify-content: center;
      margin-left: 0;
      order: 3;
      flex-wrap: wrap;
    }

    header nav > a{
      order: 2;
      margin-left: auto;
    }

    :is(#hero, main > div > div:first-child) > div:nth-child(2){
      position: static;
      transform: none;
      width: min(var(--container), calc(100% - (var(--gutter) * 2)));
      margin: 22px auto 0;
    }

    :is(#hero, main > div > div:first-child){
      padding-bottom: 46px;
    }

    :is(#hero, main > div > div:first-child) > div:nth-child(2){
      flex-direction: column;
      gap: 10px;
    }
    :is(#hero, main > div > div:first-child) > div:nth-child(2) > div + div{
      border-left: 0;
      border-top: 1px solid rgba(214, 221, 227, .8);
      padding-top: 12px;
    }

    #our-values > div:first-child > div{
      grid-template-columns: 1fr;
    }

    #our-services > div:first-child{
      grid-template-columns: 1fr;
      gap: 18px;
    }

    #our-services > div:nth-child(2){
      grid-template-columns: 1fr;
    }

    #how-we-work > div:nth-child(3){
      grid-template-columns: 1fr;
      gap: 16px;
    }
    #how-we-work > div:nth-child(3) h2{
      text-align: left;
      padding-left: 0;
    }

    :is(#contact, main > div:nth-child(2)){
      grid-template-columns: 1fr;
      row-gap: 16px;
    }
    :is(#contact, main > div:nth-child(2)) > div:nth-of-type(2){
      grid-column: 1;
      grid-row: auto;
    }

    :is(#partner, main > div:nth-child(3)){
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
    :is(#partner, main > div:nth-child(3))::before{
      width: 60%;
      height: 1px;
      order: 2;
    }
  }

  @media (max-width: 720px){
    /* timeline becomes single column with line on the left */
    #how-we-work > div:nth-child(2){
      grid-template-columns: 28px 1fr;
      row-gap: 18px;
    }

    #how-we-work > div:nth-child(2)::before{
      grid-column: 1;
      justify-self: center;
    }

    #how-we-work > div:nth-child(2) > div{
      grid-column: 2 !important;
      justify-self: start !important;
      padding: 0 0 0 12px !important;
      max-width: 100%;
    }

    #how-we-work > div:nth-child(2) > div::after{
      left: -22px !important;
      right: auto !important;
    }
  }

  @media (max-width: 520px){
    :is(#hero, main > div > div:first-child){
      padding: 96px 16px 36px;
    }

    header{ padding: 0 16px; }
    #about-us, #our-mission, #our-values, #how-we-work{ padding-left: 16px; padding-right: 16px; }

    #our-values > div:first-child{
      padding: 22px 18px;
    }

    :is(#contact, main > div:nth-child(2)){
      width: min(var(--container), calc(100% - 32px));
      padding-top: 34px;
    }
  }

  @media (prefers-reduced-motion: reduce){
    *{ transition: none !important; scroll-behavior: auto !important; }
  }
}
