/* styles.css */
:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,.12);
  --soft: rgba(31,79,216,.08);
  --primary: #1f4fd8;
  --container: 1120px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15,23,42,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height:1.55;
  letter-spacing:-0.01em;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:4px; }

.container{
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  background:var(--primary);
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
}
.skip-link:focus{ left:12px; z-index:999; }

.site-header{
  position:sticky;
  top:0;
  background:#0D3DA6;
  border-bottom:1px solid var(--line);
  z-index:50;
  overflow:visible;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  height:100px;
  padding:0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:-24px;
}

.logo{
  height:135px;
  width:auto;
  display:block;
  transform:scale(1.2);
  transform-origin:left center;
  margin-top:-20px;
  margin-bottom:-20px;
}

.brand-mark{
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--primary);
  display:inline-block;
}

.brand-name{
  font-weight:600;
  letter-spacing:-0.02em;
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.nav-link{
  color:#ffffff;
  font-size:16px;
  font-weight:600;
  padding:10px 16px;
  border-radius:999px;
}

.nav-link:hover{
  background:rgba(255,255,255,0.35);
  color:#ffffff;
  text-decoration:none;
}

.nav-link.is-active{
  background:rgba(255,255,255,0.25);
  color:#ffffff;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:transparent;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}

.site-header .btn-primary{
  background:#ffffff;
  color:#0D3DA6;
  font-size:16px;
  font-weight:700;
  padding:12px 22px;
}

.site-header .btn-primary:hover{
  background:#dfe8ff;
  color:#0D3DA6;
  opacity:1;
}

.btn-primary:hover{ opacity:.92; }

.btn-ghost{
  background:transparent;
  color:var(--text);
}

.hero{
  padding:64px 0 28px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  align-items:start;
}

.eyebrow{
  margin:0 0 10px;
  font-size:13px;
  color:var(--muted);
  letter-spacing:.06em;
  text-transform:uppercase;
}

.h1{
  margin:0 0 12px;
  font-size:44px;
  line-height:1.08;
  letter-spacing:-.03em;
}

.lead{
  margin:0 0 22px;
  color:var(--muted);
  font-size:18px;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0 24px;
}

.hero-proof{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.proof-item{
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.proof-title{
  margin:0 0 6px;
  font-weight:600;
  font-size:14px;
}

.proof-text{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.page-head{
  padding:56px 0 12px;
  border-bottom:1px solid var(--line);
}

.section{
  padding:56px 0;
}

.section-muted{
  background:#fafafa;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.h2{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:-.02em;
}

.h3{
  margin:0 0 10px;
  font-size:18px;
}

.subhead{
  margin:0;
  color:var(--muted);
  max-width:70ch;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
  padding:20px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.list{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
}

.list li{ margin:6px 0; }

.testimonials-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.testimonial{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
  padding:20px;
  text-align:left;
  display:flex;
  flex-direction:column;
  min-height:180px;
}

.testimonial blockquote{
  margin:0;
  color:var(--text);
  font-size:15px;
  line-height:1.5;
}

.testimonial figcaption{
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}

.site-footer{
  padding:34px 0;
  border-top:1px solid var(--line);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
}

/* ===== Responsive: Tablet & Mobile (≤ 920px) ===== */
@media (max-width:920px){

  /* --- Grids → single column --- */
  .hero-grid        { grid-template-columns:1fr; }
  .grid-3,.grid-2   { grid-template-columns:1fr; }
  .testimonials-grid{ grid-template-columns:1fr; }
  .hero-proof       { grid-template-columns:1fr; gap:10px; }

  /* --- Typography --- */
  .h1  { font-size:32px; }
  .lead{ font-size:16px; }

  /* --- Section spacing --- */
  .section  { padding:36px 0; }
  .page-head{ padding:36px 0 12px; }

  /* --- Header: stack logo / nav / button --- */
  .header-inner{
    height:auto;
    flex-wrap:wrap;
    padding:12px 0;
    gap:8px;
  }

  /* Nav: show wrapped (not hidden) */
  .nav{
    display:flex;
    flex-wrap:wrap;
    width:100%;
    gap:4px;
    order:3;
  }
  .nav-link{
    font-size:14px;
    padding:8px 10px;
  }

  /* Contact us button: right-aligned on same row as logo */
  .header-inner > a.btn{
    order:2;
    margin-left:auto;
    font-size:13px;
    padding:8px 14px;
  }

  /* --- Hero CTA buttons: stack vertically --- */
  .hero-cta{ flex-direction:column; align-items:flex-start; gap:10px; }

  /* --- Footer --- */
  .footer-inner{
    flex-direction:column;
    gap:12px;
    text-align:center;
  }
  .footer-nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:16px;
  }
  .footer-copy{ text-align:center; }
}

/* ===== CLEAN HEADER ALIGNMENT (FINAL) ===== */

.site-header .header-inner {
  height: 100px;
  padding: 0;
}

.logo {
  height: 135px;
  width: auto;
  display: block;

  transform: scale(1.2);
  transform-origin: left center;

  margin-top: -20px;
  margin-bottom: -20px;
}

/* ===== Latest Industry News Cards ===== */

.news-section {
  background: #f4f5f7;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.news-card {
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.news-overlay {
  position: absolute;
  inset: 0;
  padding: 22px 18px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.75)
  );
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.news-meta span {
  background: rgba(13, 61, 166, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.news-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.news-card p {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.news-pagination button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
}

.news-pagination button:first-child {
  background: #666666;
}

.news-pagination span {
  color: #475569;
  font-size: 14px;
}

@media (max-width: 920px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  display: block;
  text-decoration: none;
  color: #ffffff;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-page-button {
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
}

.news-page-button.muted {
  background: #666666;
}

/* ===== CLEAN WHITE FOOTER ===== */

.site-footer {
  background: #ffffff;
  color: #6b7280; /* soft grey text */
  margin-top: 40px;

  /* separation line from content above */
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  text-align: center;

  /* reduce thick spacing */
  padding: 18px 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-nav a {
  color: #374151; /* darker grey for links */
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.footer-nav a:hover {
  color: #0D3DA6; /* brand blue on hover */
}

.footer-copy {
  font-size: 13px;
  color: #9ca3af; /* lighter grey */
  margin: 0;
}

/* ===== Partners Logos Fix ===== */

.partners-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 60px;
  align-items: center;
  justify-items: center;
  margin-top: 28px;
}

.partners-logos img {
  max-width: 180px;
  max-height: 95px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.news-page-button:disabled {
  background: #777777;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.65;
}

.news-page-button:disabled:hover {
  background: #777777;
  transform: none;
}

/* ===== Services Page Cards ===== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.service-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

.service-subtitle {
  margin: 0 0 12px;
  color: #1f4fd8;
  font-weight: 700;
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.service-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.service-card li {
  margin: 12px 0;
  padding-left: 26px;
  position: relative;
  color: #0f172a;
  line-height: 1.55;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0D3DA6;
  font-weight: 700;
}

@media (max-width: 920px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== About Team Section Premium Layout ===== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  justify-content: center;
  gap: 36px;
  margin-top: 28px;
}

.team-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(15,23,42,.08);
  text-align: left;
}

.team-image {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 22px;
}

.team-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.team-role {
  margin: 0 0 18px;
  color: #0D3DA6;
  font-weight: 700;
  font-style: normal;
}

.team-card p {
  color: #334155;
  line-height: 1.75;
  font-size: 16px;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
}

@media (max-width: 920px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-image img {
    height: auto;
  }
}

/* Center only Leadership Team title */
.section .container h2.h2 {
  text-align: center;
}

/* ===== Careers Page ===== */

.careers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.career-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.career-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.career-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact Page ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.contact-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,.12);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Tools Page ===== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.tool-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  transition: all 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15,23,42,.12);
}

.tool-card h3 {
  margin: 0 0 10px;
}

.tool-card p {
  margin: 0;
  color: #475569;
}

@media (max-width: 920px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== OLD STYLE TOOLS BUTTON (FINAL) ===== */

.tools-simple {
  margin-top: 10px;
}

.tools-simple h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

/* exact old-school button */
.tools-button {
  display: inline-block;

  padding: 3px 10px;
  border: 1px solid #000;
  border-radius: 0;

  background: #ffffff;
  color: #000;

  font-size: 13px;
  font-weight: normal;

  text-decoration: none;
  cursor: pointer;
}

.tools-button:hover {
  background: #f0f0f0;
  text-decoration: none;
}

/* ===== Active Contact Button (STRONG VERSION) ===== */

.btn-primary.is-active {
  background: #ffffff;              /* flips to white */
  color: #1e3a8a;                   /* your brand blue text */
  border: 2px solid #1e3a8a;        /* visible blue outline */

  box-shadow: 0 0 0 3px rgba(30,58,138,0.15); /* soft glow */
  font-weight: 600;                 /* slightly stronger text */

  cursor: default;
}

.btn-primary.is-active:hover {
  background: #ffffff;
  color: #1e3a8a;
}

/* ===== Team Image Frame Final ===== */

.team-card > img {
  display: none;
}

.team-image {
  width: 50%;                 /* 👈 THIS halves the size */
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  margin: 0 auto 18px;        /* 👈 centers the image */
}

.team-image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-primary.is-active {
  background: #ffffff;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
  font-weight: 600;
  cursor: default;
}

/* ===== Strong Active Contact Button ===== */

.site-header .btn-primary.is-contact-active {
  background: #0b245f !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25) !important;
}

.site-header .btn-primary.is-contact-active:hover {
  background: #0b245f !important;
  color: #ffffff !important;
}

/* ===== MOBILE PARTNER LOGOS FIX ===== */

@media (max-width: 768px) {

  html {
    overflow-x: hidden;
  }
  body {
    width: 100%;
    max-width: 100%;
  }

  .container {
    width: calc(100% - 32px);
  }

  .partners-logos {
    display: grid !important;
    grid-template-columns: 1fr !important;

    gap: 28px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-top: 28px !important;

    justify-items: center !important;
    align-items: center !important;
  }

  .partners-logos img {
    display: block !important;

    width: auto !important;
    max-width: 220px !important;
    max-height: 110px !important;
    height: auto !important;

    object-fit: contain !important;

    margin: 0 auto !important;
  }

}

/* ===== Footer nav: wrap on mobile (placed last to win cascade) ===== */
@media (max-width: 920px) {
  .footer-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
  }
}
