/* =========================================================
   Helderis — Modular CSS
   - Component-based (no nth-child layout hacks for content)
   - Reusable blocks: container, section, card, media, grid,
     timeline, banner, contact, partner bar, nav
   - Responsive with @media
   ========================================================= */

@layer reset, tokens, 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; }
  hr { border: 0; border-top: 1px solid rgba(214, 221, 227, .9); }
}

/* ------------------------------- */
/* TOKENS */
/* ------------------------------- */
@layer tokens {
  :root{
    /* Colors */
    --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;

    /* Layout */
    --container: 1160px;
    --gutter: 24px;

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 26px;

    /* Shadows */
    --shadow-1: 0 10px 30px rgba(11, 47, 60, .12);
    --shadow-2: 0 8px 18px rgba(11, 47, 60, .10);

    /* Motion */
    --t-fast: 160ms ease;

    /* Timeline */
    --timeline-col-gap: 44px;
    --timeline-pad: 34px;
    --timeline-line: 2px;
  }
}

/* ------------------------------- */
/* BASE */
/* ------------------------------- */
@layer base {
  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; }

  h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
  p { margin: 0; color: var(--c-muted); line-height: 1.55; }

  .mini-line{
    width: 18px;
    height: 2px;
    background: rgba(11, 47, 60, .55);
    border: 0;
    margin: 10px 0 14px;
    border-radius: 2px;
  }
}

/* ------------------------------- */
/* LAYOUT */
/* ------------------------------- */
@layer layout {
  .container{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
  }

  .section{
    padding: 56px var(--gutter);
  }

  .section--tight{ padding-top: 24px; padding-bottom: 24px; }
  .section--soft{ background: var(--c-bg-soft); }

  .stack{ display: grid; gap: 14px; }

  .split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
  }

  .split--wide-right{ grid-template-columns: 1fr 1.1fr; }
  .split--wide-left{ grid-template-columns: 1.2fr 1fr; }

  .grid{
    display: grid;
    gap: 16px;
  }

  .grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------- */
/* COMPONENTS */
/* ------------------------------- */
@layer components {
  /* Typography helpers */
  .kicker{
    font-size: 13px;
    font-weight: 650;
    color: rgba(11, 47, 60, .65);
  }

  .display{
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
  }
  .display__accent{ color: var(--c-orange); font-weight: 900; }
  .display__strong{ font-weight: 850; }

  .lead{
    font-size: 12.8px;
    color: rgba(95, 107, 116, .95);
  }

  /* Buttons */
  .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 750;
    transition: transform var(--t-fast), filter var(--t-fast), background var(--t-fast);
    user-select: none;
    white-space: nowrap;
  }

  .btn--primary{
    background: var(--c-orange);
    color: #fff;
    box-shadow: 0 10px 24px rgba(240, 122, 0, .22);
  }

  .btn--dark{
    background: var(--c-navy-2);
    color: #fff;
  }

  .btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }

  /* Card */
  .card{
    background: var(--c-card);
    border-radius: var(--r-md);
    border: 1px solid rgba(214, 221, 227, .6);
    box-shadow: var(--shadow-2);
  }

  .card--soft{
    background: var(--c-bg-soft);
    border-color: rgba(214, 221, 227, .95);
  }

  .card__pad{ padding: 18px; }
  .card__pad--lg{ padding: 34px 38px; }

  /* Media (icon/badge + title + text) */
  .media{
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  .media--icon{ grid-template-columns: 24px minmax(0, 1fr); }

  .media__badge,
  .media__icon{
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 2px;
  }

  .media__badge{
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--c-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: grid;
    place-items: center;
  }

  .media__icon{
    width: 18px;
    height: 18px;
  }

  .media__title{
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 850;
    color: rgba(11, 47, 60, .92);
  }

  .media__text{
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    font-size: 12.2px;
    color: rgba(95, 107, 116, .95);
  }

  /* Form */
  .input{
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    background: #fff;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
  }
  .input:focus{
    border-color: rgba(240, 122, 0, .55);
    box-shadow: 0 0 0 4px rgba(240, 122, 0, .14);
  }

  .checkbox{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(95, 107, 116, .95);
  }
  .checkbox input{ width: 14px; height: 14px; margin-top: 2px; }

  .link{
    color: var(--c-orange);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* Nav */
  .site-header{
    position: sticky;
    top: 14px;
    z-index: 50;
    padding: 0 var(--gutter);
  }

  .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;
    flex-wrap: wrap;
  }

  .nav__brand img{ height: 26px; width: auto; }

  .nav__links{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav__link{
    font-size: 13px;
    color: rgba(11, 47, 60, .78);
    padding: 8px 10px;
    border-radius: 10px;
    transition: background var(--t-fast), color var(--t-fast);
  }
  .nav__link:hover{
    background: rgba(11, 47, 60, .06);
    color: rgba(11, 47, 60, 1);
  }

  .nav__link.btn{
    color: #fff;
  }

  .nav__link.btn:hover{
    color: #000;
  }

  .nav__lang{
    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;
  }
}

/* ------------------------------- */
/* SECTIONS */
/* ------------------------------- */
@layer sections {
  /* HERO */
  .hero{
    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%);
  }

  .hero__inner{
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
  }

  .hero__title{
    color: #fff;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.05;
    font-weight: 900;
  }

  .hero__subtitle{
    color: rgba(255,255,255,.82);
    max-width: 720px;
    font-size: 13px;
  }

  .hero__stats{
    position: absolute;
    left: 50%;
    bottom: -44px;
    transform: translateX(-50%);
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  }

  .stats{
    display: flex;
    gap: 18px;
    align-items: stretch;
    justify-content: space-between;
    padding: 22px 26px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
  }

  .stats__item{
    flex: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 6px 10px;
  }

  .stats__item + .stats__item{
    border-left: 1px solid rgba(214, 221, 227, .8);
  }

  .stats__value{
    font-size: 28px;
    font-weight: 900;
    color: var(--c-text);
    letter-spacing: -0.03em;
  }

  .stats__label{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(95, 107, 116, .92);
    text-align: center;
  }

  /* ABOUT */
  .about{ padding-top: 110px; }
  .about__image{
    margin-top: 36px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
  }

  /* MISSION */
  .mission .grid--3{ gap: 36px; }
  .mission__heading .display{ font-weight: 900; }
  .mission__block h3{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(11, 47, 60, .88);
    margin-bottom: 8px;
  }
  .mission__block p{ font-size: 12.5px; }

  /* VALUES */
  .values__box{ border-radius: var(--r-lg); }
  .values__grid{ margin-top: 18px; gap: 18px 30px; }

  .values__title{
    font-size: 34px;
    font-weight: 850;
    color: var(--c-text);
  }
  .values__title .display__accent{ font-weight: 900; }

  /* SERVICES */
  .services__top{ align-items: center; }
  .services__image{
    border-radius: var(--r-lg);
    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);
  }

  .services__title{
    font-size: 34px;
    font-weight: 900;
    color: var(--c-text);
  }

  .services__note{
    margin-top: 16px;
    font-size: 14px;
    color: rgba(11, 47, 60, .92);
    font-weight: 800;
  }
  .services__note span{ color: var(--c-orange); }

  .feature-card h2{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(11, 47, 60, .9);
    margin-bottom: 8px;
  }
  .feature-card p{ font-size: 12.2px; }

  /* TIMELINE */
  .how{
    padding: 56px var(--gutter) 44px;
  }

  .how__title{
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 900;
    color: var(--c-text);
  }

  .timeline{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr var(--timeline-col-gap) 1fr;
    row-gap: 34px;
    align-items: start;
    position: relative;
    padding: 8px 0 10px;
  }

  .timeline::before{
    content: "";
    grid-column: 2;
    grid-row: 1 / -1;
    justify-self: center;
    width: var(--timeline-line);
    background: rgba(214, 221, 227, .95);
    border-radius: 2px;
  }

  .timeline__item{
    position: relative;
    max-width: 420px;
  }

  .timeline__item--left{
    grid-column: 1;
    justify-self: end;
    padding-right: var(--timeline-pad);
  }

  .timeline__item--right{
    grid-column: 3;
    justify-self: start;
    padding-left: var(--timeline-pad);
  }

  .timeline__item::after{
    content: "";
    position: absolute;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid rgba(11, 47, 60, .35);
    border-radius: 999px;
  }

  .timeline__item--left::after{ right: calc(-1 * (var(--timeline-pad) - 12px)); }
  .timeline__item--right::after{ left: calc(-1 * (var(--timeline-pad) - 12px)); }

  /* BANNER */
  .banner{
    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;
    align-items: center;
    padding: 18px 22px;
    gap: 16px;
  }

  .banner__image{
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
  }

  .banner__text{
    color: #fff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.12;
    text-align: right;
  }

  /* CONTACT */
  .contact{
    padding: 56px var(--gutter) 18px;
  }

  .contact__grid{
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    column-gap: 56px;
    row-gap: 18px;
    align-items: start;
  }

  .contact__title{
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    color: var(--c-text);
  }

  .contact__accent{
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 950;
    color: var(--c-orange);
    margin-top: -6px;
  }

  .contact__list{
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .contact__row{
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(11, 47, 60, .86);
    font-size: 13px;
  }

  .contact__row img{ width: 18px; height: 18px; }

  .contact__form .card__pad{ display: grid; gap: 10px; }

  /* PARTNER */
  .partner{
    margin: 18px auto 26px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border-radius: var(--r-lg);
  }

  .partner__logo{ height: 42px; width: auto; }

  .partner__divider{
    width: 1px;
    height: 34px;
    background: rgba(214, 221, 227, .9);
  }

  .partner__kicker{
    color: var(--c-orange);
    font-size: 18px;
    font-weight: 950;
  }

  .partner__title{
    color: rgba(11, 47, 60, .9);
    font-size: 18px;
    font-weight: 800;
  }

  /* FOOTER */
  .site-footer{
    background: #fff;
    border-top: 1px solid rgba(214, 221, 227, .85);
    padding: 14px var(--gutter) 18px;
  }

  .site-footer__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }

  .site-footer__inner p{
    font-size: 12px;
    color: rgba(95, 107, 116, .95);
  }

  .site-footer__inner a{
    font-size: 12px;
    color: rgba(11, 47, 60, .85);
    padding: 6px 8px;
    border-radius: 10px;
  }
  .site-footer__inner a:hover{
    background: rgba(11, 47, 60, .06);
  }
}

/* ------------------------------- */
/* UTILITIES + RESPONSIVE */
/* ------------------------------- */
@layer utilities {
  .sr-only{
    position:absolute;
    width:1px;height:1px;
    padding:0;margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;border:0;
  }

  @media (max-width: 1024px){
    .split{ grid-template-columns: 1fr; gap: 22px; }
    .grid--3{ grid-template-columns: 1fr; }
    .mission .grid--3{ gap: 16px; }
  }

  @media (max-width: 860px){
    .hero{ padding: 112px var(--gutter) 46px; }
    .hero__stats{
      position: static;
      transform: none;
      margin-top: 22px;
      width: min(var(--container), calc(100% - (var(--gutter) * 2)));
      margin-inline: auto;
    }

    .stats{ flex-direction: column; gap: 10px; }
    .stats__item + .stats__item{
      border-left: 0;
      border-top: 1px solid rgba(214, 221, 227, .8);
      padding-top: 12px;
    }

    .values__grid{ grid-template-columns: 1fr; }

    .grid--2{ grid-template-columns: 1fr; }

    .banner{ grid-template-columns: 1fr; }
    .banner__text{ text-align: left; }

    .contact__grid{ grid-template-columns: 1fr; }
  }

  @media (max-width: 720px){
    .timeline{
      grid-template-columns: 28px 1fr;
      row-gap: 18px;
    }

    .timeline::before{
      grid-column: 1;
      justify-self: center;
    }

    .timeline__item{
      grid-column: 2 !important;
      justify-self: start !important;
      padding: 0 0 0 12px !important;
      max-width: 100%;
    }

    .timeline__item::after{
      left: -22px !important;
      right: auto !important;
    }

    .timeline__item--left::after,
    .timeline__item--right::after{
      left: -22px !important;
      right: auto !important;
    }
  }

  @media (max-width: 520px){
    :root{ --gutter: 16px; }
    .section{ padding-left: var(--gutter); padding-right: var(--gutter); }
    .card__pad--lg{ padding: 22px 18px; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ transition: none !important; scroll-behavior: auto !important; }
  }
}
