/* =========================
   index.css (home page)
   Based on your consolidated CSS + aligned H2 headings
   ========================= */

/* ---- Tokens ---- */
:root{
  --max: 1100px;
  --content-max: 1030px;
  --nav-h: 64px;
  --pad: 20px;
  --brand: #3794dc;
}

/* ---- Global safety / base ---- */
*{ box-sizing: border-box; }
html, body{
  width: 100%;
  overflow-x: hidden;
}
img, svg, video, iframe{ max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }

body{
  font-family: "Segoe UI","Helvetica Neue",Arial,sans-serif;
  line-height: 1.55;
  color:#0f172a;
  padding-top: var(--nav-h);
}

.page{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px var(--pad);
}

/* ---- Typography ---- */
h1,h2,h3{ color: var(--brand); text-align:left; }
h1{ font-weight:600; font-size:2.1rem; letter-spacing:.3px; line-height:1.15; margin: 0 0 .25rem; }
h2{ font-weight:500; font-size:1.6rem; letter-spacing:.5px; line-height:1.25; margin: 0 0 16px; }
h3{ font-weight:500; font-size:1.2rem; letter-spacing:.3px; line-height:1.3; }
p{ font-weight:400; font-size:1.05rem; line-height:1.6; color:#111; }

.block-text{ font-size:1rem; text-align:center; list-style-position:inside; }
.strapline{ color:#000; }

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

/* =========================
   HOME PAGE: H2 alignment rules
   - Keep all section H2 left-aligned and consistent
   - Keep hero overlay headings centered
   ========================= */
body.home h2{
  text-align:left;
  margin-top:0;
  margin-bottom:16px;
}

/* Force left alignment in key home sections (prevents inherited center styles) */
body.home .intro-box h2,
body.home #comparison h2,
body.home #solutions h2,
body.home #competencies h2,
body.home section h2,
body.home header h2{
  text-align:left;
}

/* Hero overlay stays centered */
body.home .hero-overlay h1,
body.home .hero-overlay h2{
  text-align:center;
  margin-bottom:6px;
}
body.inner-page .hero-overlay{ inset:auto 0 20% 0; }
/* ---- Shared section width + gutters ---- */
.intro-box,
#features,
#competencies,
#solutions,
#value,
.button-section,
.features-wrapper,
.case-study .container,
footer .wrap{
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Panel behind competencies & features */
#competencies .icons-wrapper,
#features .icons-wrapper{
  background:#f5f7fa;
  border-radius:16px;
  padding:32px 28px;
  border:1px solid rgba(15,23,42,0.05);
}

/* =========================
   NAV
   ========================= */
.nav{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background:#ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom:1px solid #e5e7eb;
}

.nav .wrap{
  margin: 0 auto;
  min-height: var(--nav-h);
  display:flex;
  align-items:center;
  gap:24px;
  padding: 0 var(--pad);
  width: 100%;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 0;
  font-weight:800;
}

.brand-text h1{
  margin:0;
  font-size:1.3rem;
  line-height:1.2;
  color: var(--brand);
}

.brand-text .strapline{
  margin:2px 0 0;
  font-size:1.1rem;
  font-weight:500;
  letter-spacing:.04em;
  opacity:.9;
  text-align:left;
}

/* Desktop full-width menu */
.menu{
  display:flex;
  flex:1;
  justify-content: space-between;
  align-items:center;
  gap:20px;
  margin-left:24px;
}

/* Buttons */
.cta{
  margin-left:16px;
  padding:15px 16px;
  border-radius:999px;
  background: var(--brand);
  color:#fff;
  font-weight:600;
  display:inline-block;
}

.case{
  display:block;
  margin:1rem auto;
  padding:10px 18px;
  border-radius:999px;
  background:#000;
  color:#fff;
  font-weight:400;
  text-align:center;
  width: fit-content;
}

/* Burger (hidden on desktop) */
.nav-toggle{
  display:none;
  margin-left:auto;
  background:transparent;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 12px;
}

.burger{
  display:inline-block;
  width:22px; height:2px;
  background:#0f172a;
  position:relative;
}
.burger::before,.burger::after{
  content:"";
  position:absolute; left:0;
  width:22px; height:2px;
  background:#0f172a;
}
.burger::before{ top:-7px; }
.burger::after{ top: 7px; }

/* Anchor offsets below fixed nav */
#solutions{ scroll-margin-top: calc(var(--nav-h) + 22px); }
#competencies{ scroll-margin-top: calc(var(--nav-h) + 42px); }
.case-study-card{ scroll-margin-top: calc(var(--nav-h) + 22px); }

/* =========================
   HERO
   ========================= */
.hero{
  position:relative;
  width:100%;
  padding:30px var(--pad);
  overflow:visible;
  background:#fff;
  box-sizing:border-box;
   margin-bottom: 32px;   /* try 24–48px to taste */
}

.hero-img{
  display:block;
  width:100%;
  max-width: var(--content-max);
  margin: 0 auto;
  height:400px;
  object-fit: cover;
  opacity:.40;
  filter: saturate(.40) brightness(1.05);
  border:1px solid rgba(15,23,42,0.12);
  border-radius:12px;
 
}

/* Inner pages: fill hero (prevents letterboxing) */
body.inner-page .hero-img{
  opacity:.50;
  filter: saturate(.50) brightness(1.05);
  
}

.hero-overlay{
  position:absolute;
  inset:auto 0 120px 0;
  display:grid;
  place-content:center;
  justify-items:center;
  text-align:center;
  color:#000;
  padding:0 16px;
}

.hero-caption,
.hero-strapline{ margin:0; color:#000; }
.hero-strapline{ margin-top:-5px; }
.hero-overlay .cta{ margin-left:0; margin-top:10px; }

body.home .hero-overlay{ inset:auto 0 15% 0; }

/* Desktop-only: if the page starts with a hero, cancel body padding ONLY for the hero */
@media (min-width: 769px){
  main > .hero:first-child,
  body > .hero:first-child{
    margin-top: calc(-1 * var(--nav-h));
    padding-top: calc(30px + var(--nav-h));
  }
}

/* =========================
   INTRO BOX
   ========================= */
.intro-box{
  width:100%;
  background: linear-gradient(to bottom, rgba(55,148,220,0.06), rgba(55,148,220,0.02));
  border:1px solid rgba(55,148,220,0.15);
  border-radius:14px;
  padding: 5px var(--pad) 28px;
}
.intro-box p{ margin:0; text-align:left; }

/* =========================
   SOLUTIONS (buttons)
   ========================= */
.button-section{ margin:2rem auto; text-align:center; }
.button-heading{ font-size:2.2rem; margin:0; line-height:1.2; text-align:center; }
.button-subtext{ font-size:1.1rem; color:#555; margin:0; line-height:1.2; text-align:center; }
.button-grid{ margin-top:2rem; }

.button-row{
  display:flex;
  justify-content:center;
  gap:1rem;
  margin-bottom:1rem;
  flex-wrap:wrap;
}
.button-row .btn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  padding:1rem 2.5rem;
  min-height:66px;
  flex:1 1 165px;
  max-width:320px;

  background:#fff;
  color: var(--brand);
  border:2px solid var(--brand);
  border-radius:12px;

  font-weight:500;
  font-size:1.2rem;
  line-height:1.2;

  transition: all .3s ease;
}
.button-row .btn:hover{ background: var(--brand); color:#fff; }

/* =========================
   SVDB comparison
   ========================= */
.svdb-wrap{ max-width: var(--content-max);  margin:30px auto 40px; padding-inline: var(--pad); }
.svdb-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  overflow:hidden;
}
.svdb-header{
  display:grid;
  grid-template-columns: 1fr 120px 1fr;
  background: var(--brand);
  color:#fff;
  font-weight:500;
  font-size:20px;
  padding:16px;
}
.svdb-header-left{ text-align:right; }
.svdb-header-right{ text-align:left; }

.svdb-body{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 120px 1fr;
  padding:56px 0 64px;
}
.svdb-divider{
  position:absolute;
  top:18px; bottom:18px;
  left:50%;
  width:2px;
  background:#e5e7eb;
  transform:translateX(-50%);
  z-index:1;
}
.svdb-badge{
  position:absolute;
  top:50%; left:50%;
  transform: translate(-50%, -50%);
  width:86px; height:86px;
  border-radius:999px;
  background:#fff;
  border:4px solid var(--brand);
  color: var(--brand);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  z-index:3;
  display:grid;
  place-items:center;
}
.svdb-badge-text{
  display:inline-block;
  line-height:1;
  font-weight:800;
  font-size:20px;
  letter-spacing:1px;
  position:relative;
}

.svdb-body .svdb-col{ padding:0; }
.svdb-body .svdb-left{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  padding:0 16px 0 56px;
}
.svdb-body .svdb-right{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:0 56px 0 16px;
}
.svdb-col .column-icon{ width:96px; height:auto; display:block; margin-bottom:22px; }
.svdb-col ul{
  list-style:none;
  padding:0;
  margin:0;
  font-size:18px;
  line-height:1.9;
  color:#0f172a;
  width:max-content;
  max-width:100%;
}
.svdb-left ul li{ text-align:right; }
.svdb-right ul li{ text-align:left; }
.svdb-mid{ position:relative; z-index:2; }

.svdb-mobile-title{
  display:none;
  margin:0 0 12px;
  font-size:1.1rem;
  font-weight:700;
}

/* =========================
   ICONS (mobile-first)
   ========================= */
.icons-wrapper{
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.icons-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.icons-item{
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 14px;
  align-items: start;
  text-align: left;
}

.icons-item img{
  width: 56px;
  height: auto;
  margin: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.icons-item > p{
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.icons-note{
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  line-height: 1.45;
}

/* =========================
   CASE STUDY rows
   ========================= */

@media (min-width: 900px){
  .case-study h2{ text-align:left; }
.case-row{
  display:grid;
  grid-template-columns:180px 1fr;
  column-gap:1.5rem;
  margin-bottom:1rem;
  align-items:start;
}
.case-row h2{
  margin: 0;
}
.case-row h3,
.case-row p{ margin:0; text-align:left; text-decoration:none; }
.case-row p, .case-row ul{ grid-column:2; }
.about-page .case-study{ margin-top:32px; }
}


/* DESKTOP: 3-up grid, stacked content */
@media (min-width: 900px){
  .icons-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .icons-item{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .icons-item img{
    width: 64px;
    margin: 0 0 12px;
  }

  .icons-note{
    margin-top: 6px;
  }
}

/* =========================
   FOOTER
   ========================= */
.footer{
  background:#0b1220;
  color:#cbd5e1;
  padding:32px 0 16px;
  font-size:.95rem;
  line-height:1.6;
  text-align:left;
}
.footer .wrap{ display:block; text-align:left; }

.footer :where(p,li,address,a,small,h4){
  font:inherit;
  line-height:inherit;
  margin:0;
}

.footer a{ color:#e2e8f0; text-decoration:none; }
.footer a:hover{ text-decoration:underline; }

.footer-cols{
  display:grid;
  gap:24px;
  justify-items:start;
}
.footer-heading{
  font-weight:600;
  margin:0 0 12px;
  color:#e2e8f0;
}
.footer-list{ list-style:none; padding:0; margin:0; }
.footer-list li + li{ margin-top:8px; }
.footer-address{ font-style:normal; }
.footer-social{ margin:8px 0; }
.footer-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  border-radius:4px;
  background:#0a66c2;
  color:#fff;
}
.footer-social-link:hover{ background:#004182; }
.footer-note{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid rgba(203,213,225,0.18);
  color:#94a3b8;
}
.footer-note small{ display:block; }
.footer-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  align-items:flex-start;
}
.footer-text a{ display:block; line-height:1.4; }

/* =========================
   Responsive
   ========================= */
@media (min-width: 900px){
  .footer-cols{ grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: nav wrap full width but keep inner spacing */
@media (min-width: 769px){
  .nav .wrap{ max-width:none; }
}

/* Mobile: NAV + HERO + TYPE + LAYOUT */
@media (max-width: 768px){
  :root{
  --pad: 16px;
  --nav-h: 76px;
}
   
  body{ padding-top: var(--nav-h); }

  .nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }


  h2{ font-size:1.35rem; }
  h3{ font-size:1.1rem; }

  .nav .wrap{
    flex-wrap:wrap;
    gap:10px;
    padding:10px var(--pad);
  }

  .brand{ flex:1 1 auto; min-width:0; }
  .brand img{ width:46px; height:46px; }
  .brand-text h1{ font-size:1.05rem; line-height:1.15; }
  .brand-text .strapline{ font-size:.95rem; }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
  }

  .menu{
    flex-basis:100%;
    width:100%;
    margin-left:0;
    display:none;
    flex-direction:column;
    gap:10px;
    padding:12px 0 8px;
    border-top:1px solid #e5e7eb;
  }
  .nav.is-open .menu{ display:flex; }

  .nav .menu a{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:44px;
    padding:12px;
    border-radius:12px;
    background: rgba(55,148,220,0.08);
  }
  .menu a.cta{ margin-left:0; background: var(--brand); color:#fff; }

  /* hero */
  .hero{
    padding:16px var(--pad) 0;
    max-width:none !important;
    width:100% !important;
    margin-inline:0 !important;
     
  }
  .hero-img{
    max-width: var(--content-max);
     background:#f8fafc;
    border-radius:8px 8px 0 0;
    border:1px solid rgba(69,84,163,0.45);
     height:300px;
    
 
  }
  
  .hero-overlay{ inset:auto 0 40% 0; }
  .hero-overlay h1{ font-size:1.50rem; line-height:1.10; }
  .hero-overlay h2{ font-size:1.10rem; line-height:1.25; }
  .hero-overlay .cta{ padding:10px 16px; font-size:.95rem; }

  /* intro */
  .intro-box{
    margin-top:5px;
    margin-bottom:1rem;
    background-color:#fff;
    padding-inline: var(--pad);
  }
  .intro-box p{ line-height:1.5; }

  /* keep H2 alignment on mobile too */
  body.home h2{ text-align:left; }
  body.home .hero-overlay h2{ text-align:center; }
 
.button-row .btn{
  min-height:62px;
}
}

/* Small phones: solution buttons stack */
@media (max-width: 480px){
  .button-row{
    flex-direction:column;
    align-items:center;
    gap:18px;
  }
 

  /* iPhone: true edge-to-edge hero + intro */
  .hero{ padding:0 !important; }
  .hero-img{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    border-radius:0 !important;
    border-left:none !important;
    border-right:none !important;
     
  }
  .intro-box{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    border-radius:0 !important;
    border-left:none !important;
    border-right:none !important;
  }
}

/* SVDB: mobile layout */
@media (max-width: 900px){
  .svdb-header, .svdb-divider, .svdb-badge{ display:none; }
  .svdb-body{ grid-template-columns:1fr; padding:36px 0 48px; }

  .svdb-mobile-title{ display:block; text-align:center; margin:0 0 5px; }

  .svdb-body .svdb-left,
  .svdb-body .svdb-right{
    align-items:center;
    padding:18px 22px 28px;
  }

  .svdb-col ul{ width:auto; text-align:center; }
  .svdb-left ul li,
  .svdb-right ul li{ text-align:center; }

  .svdb-col .column-icon{ margin:0 auto 18px; }
}

/* SVDB: iPad-ish override */
@media (min-width: 768px) and (max-width: 1024px){
  #comparison .svdb-header{
    display:grid !important;
    grid-template-columns:1fr 120px 1fr !important;
  }
  #comparison .svdb-body{
    display:grid !important;
    grid-template-columns:1fr 120px 1fr !important;
    padding:44px 0 52px;
  }
  #comparison .svdb-divider{ display:block !important; }
  #comparison .svdb-badge{
    display:grid !important;
    place-items:center !important;
  }

  /* Keep your letter nudge (either method works; choose one) */
  #comparison .svdb-badge-text{
    top: 5px;
    left: 7px;
    line-height:1;
  }

  #comparison .svdb-body .svdb-left{
    align-items:flex-end;
    padding:0 16px 0 36px;
  }
  #comparison .svdb-body .svdb-right{
    align-items:flex-start;
    padding:0 36px 0 16px;
  }
  #comparison .svdb-col ul{
    width:max-content;
    max-width:100%;
    text-align:inherit;
    font-size:16px;
    line-height:1.75;
  }
  #comparison .svdb-left ul li{ text-align:right; }
  #comparison .svdb-right ul li{ text-align:left; }
  #comparison .svdb-col .column-icon{ width:84px; margin-bottom:16px; }
}

/* Desktop: wider, centered solution buttons */
@media (min-width: 769px){
  .button-row{ gap:2rem; }
  .button-row .btn{
    flex:0 1 280px;
    max-width:320px;
    padding:1rem 2.5rem;
    font-size:1.25rem;
  }
}

/* =========================
   CONTACT FORM
   ========================= */
.contact-form{ margin-top:1.5rem; }
 
.form-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:20px 28px;
}

@media (min-width: 769px){
  .form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field-full{ grid-column:1 / -1; }

.field label{
  display:block;
  font-size:.95rem;
  font-weight:500;
  margin-bottom:6px;
  color:#1f2937;
}
.field input,
.field select,
.field textarea{
  width:100%;
  padding:10px 12px;
  font-size:1rem;
  font-family:inherit;
  line-height:1.4;
  border:1px solid rgba(15,23,42,0.15);
  border-radius:8px;
  background:#fff;
  transition: border .2s ease, box-shadow .2s ease;
}
.field :is(input,select,textarea):focus{
  outline:none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(55,148,220,0.15);
}
.field textarea{ resize:vertical; min-height:120px; }
.field label span{ color: var(--brand); }

.form-actions{ margin-top:1.5rem; }
.contact-form .cta{ margin-left:0; padding:12px 22px; font-size:1rem; }


/* iPad: nudge JUST the letters (circle does not move) */
@media (min-width: 768px) and (max-width: 1024px){
  #comparison .svdb-badge-text{
    top: 5px;   /* down */
    left: 7px;  /* right */
  }
}

@media (max-width: 480px){
  /* remove any gap between hero and intro */
  body.joined-hero .hero{ padding-bottom: 0 !important; margin-bottom: 0 !important; }
  body.joined-hero .intro-box{ margin-top: 0 !important; }

  /* kill the browser default top margin that creates the “strip” */
  body.joined-hero .intro-box h2{
    margin-top: 0 !important;
    padding-top: 16px; /* re-add spacing in a controlled way */
  }
}
