/* main.css (refactored) */

/* ================= TOKENS ================= */
:root{
  --ink:#0b1220;
  --ink-2:#15223a;
  --muted:#55627a;

  --navy:#0b2a5b;
  --navy-2:#0a224a;

  --border:#e7ebf3;
  --soft:#f5f7fc;

  --shadow: 0 18px 40px rgba(11,18,32,.08);
  --shadow-2: 0 22px 60px rgba(11,18,32,.10);

  --radius: 20px;
  --max: 1200px;
}

/* ================= RESET / BASE ================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: 92px; } /* offsets sticky header */
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--ink);
  line-height:1.6;
  background:#fff;
}

/* ================= LAYOUT ================= */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* subtle divider */
.section-divider{
  height: 1px;
  background: rgba(231,235,243,.9);
}

/* ================= HEADER / NAV ================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 0;
  gap: 22px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color:inherit;
  flex: 0 0 auto;
  min-width: 0; /* prevents overflow at tighter widths */
}

/* Optional stacked brand (only if you add class="brand brand--stacked") */
.brand--stacked{
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Brand logo image */
.brand__logo{
  display:block;
  width: clamp(220px, 20vw, 340px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

/* Optional brand text (if you use it) */
.brand__primary{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -.2px;
  color: var(--ink);
}

.brand__sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .8px;
}

/* Links */
.nav__links{
  display:flex;
  align-items:center;
  gap: 16px;                 /* was 26 */
  font-weight: 800;
  color: var(--ink-2);
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav__links a{
  text-decoration:none;
  color:inherit;
  padding:8px 10px;          /* was 10px 12px */
  border-radius: 14px;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
}

.nav__links a:hover{
  background: rgba(11,42,91,.06);
  transform: translateY(-1px);
}

.nav__links a.active{
  pointer-events: none;
  cursor: default;
  opacity: 0.75;
  font-weight: 800;
}

/* Actions */
.nav__actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex: 0 0 auto;
}

/* Buttons */
.btn{
  padding:12px 18px;
  border-radius:16px;
  font-weight:900;
  text-decoration:none;
  border:1px solid var(--border);
  color:inherit;
  background:#fff;
  white-space:nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11,18,32,.10);
}

.btn--primary{
  background: var(--navy);
  color:#fff;
  border-color: var(--navy);
  box-shadow: 0 14px 34px rgba(11,42,91,.18);
}

.btn--primary:hover{
  background: var(--navy-2);
  box-shadow: 0 18px 44px rgba(11,42,91,.24);
}

.btn--ghost{
  background:#fff;
}

/* ================= PAGE HERO (Reusable system for ALL pages) ================= */
/*
  Use:
  <main class="page-hero [optional modifier]">
    <div class="container">
      <div class="page-hero__grid">
        <section class="page-hero__left">...</section>
        <aside class="page-hero__right">...</aside>
      </div>
    </div>
  </main>
*/
.page-hero{
  padding: 24px 0 24px;
  background:
    radial-gradient(1000px 560px at 10% 20%, rgba(16,24,40,.08), transparent 60%),
    radial-gradient(1000px 560px at 90% 20%, rgba(255,80,100,.12), transparent 60%);
}

.page-hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0px 52px;
  margin-top: 0px;
  align-items: start;
}

.page-hero--home .page-hero__head{
  grid-column: 1 / -1;
  margin: 0;
}

.page-hero__left{
  align-self: start;
}

.page-hero__title{
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 950;
  color: var(--ink);
}

.page-hero__lead{
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 70ch;
}

.page-hero__cta{
  display:flex;
  gap:16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.page-hero__checks{
  display:flex;
  gap:22px;
  margin-top: 18px;
  flex-wrap:wrap;
  font-weight:800;
  color: var(--ink-2);
}

/* ===== HOME HERO: title spans both columns ===== */
.page-hero--home .page-hero__head{
  grid-column: 1 / -1;
  max-width: 100%;
  margin: 0;
}


.checkline{
  display:flex;
  align-items:center;
  gap:10px;
}

.checkline__icon{
  color:#5a3fd6;
  font-weight: 900;
}

/* ================= HERO SUBTITLE ================= */

.page-hero__subtitle{
  margin: 8px 0 4px;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);   /* strong brand color */
  letter-spacing: .2px;
  line-height: 1.35;
}


/* ================= CARD (Reusable) ================= */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-2);
}

.card__title{
  font-size:14px;
  font-weight:950;
  letter-spacing:.6px;
  margin-bottom:14px;
  color: var(--ink-2);
}

.card__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
}

.card__list li{
  display:grid;
  grid-template-columns: 28px 1fr;
  gap:12px;
  font-weight:800;
  color: var(--ink-2);
}

.card__check{
  background: rgba(11,42,91,.10);
  color: var(--navy);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-weight: 950;
}

/* ================= FROM THE PRINCIPAL ================= */
.principal{
  padding: 36px 0 44px;
  background: #fff;
}

.principal-head{
  text-align:center;
  margin: 0 auto 26px;
}

.principal-head h2{
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.4px;
  text-transform: uppercase;
  color: var(--ink);
}

.principal-rule{
  width: 64px;
  height: 3px;
  background: #c81f3a;
  margin: 0 auto;
  border-radius: 3px;
}

.principal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 18px;
}

.principal-card{
  background:#fff;
  border: 1px solid rgba(231,235,243,.95);
  border-radius: 20px;
  padding: 34px 34px 28px;
  box-shadow: 0 14px 34px rgba(11,18,32,.06);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.principal-avatar{
  width: 86px;
  height: 86px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(231,235,243,.95);
  box-shadow: 0 10px 26px rgba(11,18,32,.08);
  margin-bottom: 18px;
  background:#fff;
}

.principal-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.principal-quote{
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 800;
  max-width: 52ch;
}

.principal-who strong{
  display:block;
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
  margin-bottom: 4px;
}

.principal-who span{
  font-size: 14px;
  color: var(--muted);
}

.principal-photo{
  border-radius: 20px;
  overflow:hidden;
  border: 1px solid rgba(231,235,243,.95);
  box-shadow: var(--shadow-2);
  background:#fff;
  min-height: 360px;
}

.principal-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* ================= HOW WE THINK ================= */
.how-we-think{
  padding: 24px 12px;
  background: #fff;
}

.hwt-head{
  text-align: center;
  max-width: 900px;
  margin: 0 auto 26px;
}

.hwt-head h2{
  margin: 0;
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.hwt-rule{
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: var(--navy);
  margin: 12px auto 14px;
  opacity: .95;
}

.hwt-head p{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hwt-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.hwt-card{
  background: #fff;
  border: 1px solid rgba(231,235,243,.95);
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 14px 34px rgba(11,18,32,.06);
}

.hwt-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hwt-badge{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(16,27,65,.10);
  border: 1px solid rgba(16,27,65,.18);
  color: var(--navy);
  font-weight: 950;
}

.hwt-top h3{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
}

.hwt-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hwt-list li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.hwt-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(221,175,36,.95);
  margin-top: 5px;
  flex: 0 0 auto;
}

.hwt-cta{
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================= BANNER ================= */
.banner{
  background: var(--navy);
  color:#fff;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

.banner-grid{
  display:grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items:center;
}

.banner-left h3{
  margin:0;
  font-size: 40px;
  font-weight: 950;
  letter-spacing: -0.6px;
  line-height: 1.05;
}

.badges{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.badge{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 18px 18px;
  display:flex;
  gap: 14px;
  align-items:flex-start;
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.badge:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.25);
}

.badge .icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 950;
}

.badge-copy strong{
  font-size: 16px;
  font-weight: 950;
}

.badge-copy span{
  font-size: 14px;
  opacity: .92;
}

/* ================= SERVICES (Shared card styles used by multiple pages) ================= */
.services{
  padding: 24px 0 36px;
  background: var(--soft);
  border-top: 1px solid rgba(231,235,243,.9);
}

.services-head{
  text-align:center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.services-head h2{
  margin:0 0 10px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.services-head p{
  margin:0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.service-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.svc{
  background:#fff;
  border: 1px solid rgba(231,235,243,.95);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 14px 34px rgba(11,18,32,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.svc:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(11,18,32,.10);
  border-color: rgba(11,42,91,.16);
}

.svc-top{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items:start;
  margin-bottom: 14px;
}

.svc-icon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight: 950;
  color: #c81f3a;
  background: rgba(200,31,58,.10);
  border: 1px solid rgba(200,31,58,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.svc-copy h3{
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ink);
}

.svc-copy p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.svc-list{
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  color: #2a3a55;
  font-weight: 750;
}

.svc-list li{
  margin: 11px 0;
  line-height: 1.45;
}

/* ================= FOOTER ================= */
footer{
  padding: 30px 0;
  background:#fff;
  border-top:1px solid var(--border);
}

.foot{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px;
  font-size:14px;
  color:var(--muted);
  align-items:flex-start;
}

.foot-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.foot-right{
  max-width: 550px;
  text-align:right;
}

.foot-disclaimer{
  display:block;
  line-height: 1.55;
}

/* ================= RESPONSIVE ================= */


/* Ultra-wide */
@media (min-width:1922px){
  .container{ max-width:1400px; }
  .page-hero__grid{ gap: 0px42px; }

  /* header can breathe on true ultra-wide */
  .nav__links{ gap: 26px; }
  .nav__links a{ padding:10px 12px; }
}


/* Header: prevent overflow around ~1400px */
@media (max-width:1500px){
  .nav__links{ gap: 16px; }
  .nav__links a{ padding: 8px 10px; }
  .nav__actions .btn{ padding: 8px 14px; }
}

/* ~1360 */
@media (max-width:1360px){
  .nav__links{ gap: 14px; }
  .nav__links a{ font-size: 14px; }
  .nav__actions .btn{ padding: 7px 12px; font-size: 14px; }
}

/* Tablet / small screens */
@media (max-width:1279px){
  .nav{ flex-wrap: wrap; }

  .nav__links{
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
  }

  .container{ padding: 0 28px; }
  
  .hero__subtitle{
    font-size: 16px;
  }

  .page-hero{ 
    padding: 28px 0 28px; 
  }
  
  .page-hero__title{
    font-size: 32px;
    line-height: 1.10;
    margin-top: 0;
  }

  .page-hero__grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-grid{ grid-template-columns: 1fr; }

  .banner-grid{ grid-template-columns: 1fr; }
  .badges{ grid-template-columns: 1fr; }
  .banner-left h3{ font-size: 34px; }

  .principal-grid{ grid-template-columns: 1fr; gap: 18px; }
  .principal-photo{ min-height: 280px; }

  .foot-right{ text-align:left; max-width: none; }
}

/* Tight tablet */
@media (max-width:1024px){
  .nav{
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
    padding: 12px 0;
  }

  .nav__actions{
    margin-left: auto;
    order: 2;
  }

  .nav__links{
    width:100%;
    margin-top: 0;
    order: 3;
    justify-content:center;
    gap: 14px;
  }

  .nav__links a{ padding: 8px 10px; }

  .nav__actions .btn{
    padding: 8px 12px;
    font-size: 14px;
    max-width: 100%;
  }

  .brand__logo{
    width: clamp(200px, 38vw, 320px);
    max-height: 50px;
  }

  .hwt-grid{ grid-template-columns: 1fr; }
  .hwt-head h2{ font-size: 32px; }
}

/* Mobile */
@media (max-width:768px){
  .container{ padding:0 20px; }

  .page-hero{ padding: 44px 0 56px; }
  .page-hero__title{
    font-size: 24px;
    line-height: 1.15;
  }

  .hero__subtitle{
    font-size: 15px;
    margin-bottom: 14px;
  }

  .page-hero__lead{ font-size: 16px; }

  .page-hero__cta{
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero__checks{
    flex-direction: column;
    gap: 10px;
  }

  .services-head h2{ font-size: 28px; }
  .services-head p{ font-size: 16px; }

  .svc{ padding: 22px 20px 18px; }
  .svc-top{ grid-template-columns: 52px 1fr; }
  .svc-icon{ width: 48px; height: 48px; border-radius: 14px; }

  .banner-left h3{ font-size: 30px; }
  .badge{ padding: 16px; }

  .nav{ padding: 14px 0; gap: 14px; }

  .brand__logo{
    width: clamp(190px, 56vw, 280px);
    max-height: 46px;
  }

  .btn{
    padding: 10px 14px;
    border-radius: 14px;
  }
}
