@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; }

:root {
  --navy:    #272661;
  --navy-dk: #1a1940;
  --maroon:  #8D1A1D;
  --maroon-l:#a82022;
  --grey:    #555555;
  --grey-lt: #f4f5f8;
  --border:  #dde1ea;
  --muted:   #64748b;
  --text:    #1e1d3f;
  --white:   #ffffff;
  --max-w:   1240px;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 1rem;        /* 20px */
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--navy); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; color: var(--navy); }
h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
p  { font-size: 1rem; line-height: 1.8; color: var(--muted); }
a  { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── ANNOUNCE BAR ── */
.announce-bar {
  background: var(--maroon);
  color: white;
  text-align: center;
  padding: 11px 52px;
  font-size: 0.875rem;
  font-weight: 700;
  position: relative;
  letter-spacing: 0.01em;
  z-index: 100;
}
.announce-bar a {
  color: white; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  margin-left: 10px; transition: border-color 0.2s;
  font-weight: 700;
}
.announce-bar a:hover { border-color: white; }
.announce-close {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.65); font-size: 1.4rem;
  line-height: 1; padding: 4px 8px;
  transition: color 0.2s;
}
.announce-close:hover { color: white; }

/* ── NAV ── */
nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(39,38,97,0.1); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 36px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 92px;
}
.logo img { height: 64px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 10px 16px;
  font-size: 0.95rem; font-weight: 700;
  color: var(--grey); text-decoration: none;
  border-radius: 6px; letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--maroon); }
.nav-links > li > a.has-drop::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.55; }
.dropdown {
  display: none; position: absolute;
  top: 100%; left: 0;
  padding-top: 8px;
  z-index: 200;
}
.dropdown-inner {
  background: white; border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(39,38,97,0.14);
  min-width: 250px; padding: 8px;
}
.nav-links > li:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 16px;
  font-size: 0.9rem; color: var(--grey);
  text-decoration: none; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-weight: 400;
}
.dropdown a:hover { background: var(--grey-lt); color: var(--navy); }
.nav-cta {
  background: var(--maroon) !important;
  color: white !important;
  padding: 11px 24px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  margin-left: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--maroon-l) !important; }


/* Mobile */
.mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 10px; color: var(--navy);
}
.mobile-menu {
  display: none; background: white;
  border-top: 1px solid var(--border);
  padding: 20px 28px 28px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 13px 0;
  font-size: 1rem; font-weight: 700;
  color: var(--grey); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--maroon); }
.mobile-sub { padding-left: 18px; display: none; }
.mobile-sub.open { display: block; }
.mobile-sub a { font-size: 0.9rem; font-weight: 400; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 380px; display: flex; align-items: center;
  padding: 80px 36px;
}
.page-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: url('../images/hero-bg.jpg');
}
.page-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(26,25,64,0.95) 0%, rgba(26,25,64,0.82) 55%, rgba(26,25,64,0.65) 100%);
}
.page-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 2; width: 100%;
}
.page-hero h1 {
  color: white; max-width: 820px;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.75);
  max-width: 660px; font-weight: 300; line-height: 1.75;
}

/* ── LAYOUT ── */
section { padding: 96px 36px; }
.sec-sm  { padding: 64px 36px; }
.inner   { max-width: var(--max-w); margin: 0 auto; }
.inner-md { max-width: 900px; margin: 0 auto; }
.inner-sm { max-width: 700px; margin: 0 auto; }

/* ── EYEBROW ── */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px;
  background: var(--maroon); flex-shrink: 0;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.light { color: rgba(255,255,255,0.55); }
.eyebrow.light::before { background: rgba(255,255,255,0.35); }

/* ── SECTION HEADER ── */
.section-hdr { margin-bottom: 56px; }
.section-hdr.centered { text-align: center; }
.section-hdr.centered .eyebrow { justify-content: center; }
.section-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 580px; line-height: 1.8; font-weight: 300;
  margin-top: 6px;
}
.section-hdr.centered .section-sub { margin: 6px auto 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--maroon); color: white; box-shadow: 0 4px 16px rgba(141,26,29,0.3); }
.btn-primary:hover { background: var(--maroon-l); box-shadow: 0 6px 22px rgba(141,26,29,0.4); }
.btn-navy { background: var(--navy); color: white; box-shadow: 0 4px 16px rgba(39,38,97,0.25); }
.btn-navy:hover { background: var(--navy-dk); }
.btn-ghost-white {
  border: 2px solid rgba(255,255,255,0.4); color: white; background: transparent;
}
.btn-ghost-white:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-outline { border: 2px solid var(--border); color: var(--navy); background: white; }
.btn-outline:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--maroon); color: var(--maroon); }

/* ── BULLET LIST ── */
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bullet-list li {
  display: flex; gap: 16px; align-items: flex-start;
  font-size: 1rem; color: var(--muted); line-height: 1.75;
}
.bullet-list li::before {
  content: ''; display: block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--maroon); flex-shrink: 0;
  margin-top: 0.5em;
}

/* ── CARDS ── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 30px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--maroon));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { border-color: transparent; box-shadow: 0 10px 40px rgba(39,38,97,0.12); transform: translateY(-3px); }
.card:hover::after { transform: scaleX(1); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p  { font-size: 0.95rem; line-height: 1.75; }

.card-link { text-decoration: none; display: flex; flex-direction: column; }
.card-link .learn-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 900; color: var(--maroon);
  margin-top: 18px; letter-spacing: 0.05em; text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  transition: gap 0.2s;
}
.card-link:hover .learn-more { gap: 12px; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--navy); padding: 88px 36px; text-align: center; }
.cta-banner h2 { color: white; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.68); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-banner .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: #0f0e28; color: rgba(255,255,255,0.55); padding: 72px 36px 32px; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.footer-logo { margin-bottom: 18px; }
.footer-logo img { height: 52px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; max-width: 290px; }
.footer-social { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.footer-social img { height: 32px; width: 32px; border-radius: 5px; opacity: 0.75; transition: opacity 0.2s; }
.footer-social img:hover { opacity: 1; }
.footer-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s; font-weight: 300;
}
.footer-col ul a:hover { color: white; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-contact span { font-size: 0.9rem; font-weight: 300; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 0.82rem; flex-wrap: wrap; gap: 14px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── INLINE LINK ── */
.link-accent { color: var(--maroon); text-decoration: none; border-bottom: 1px solid rgba(141,26,29,0.3); transition: border-color 0.2s; }
.link-accent:hover { border-color: var(--maroon); }

/* ── BLOCKQUOTE ── */
.pullquote {
  border-left: 4px solid var(--maroon);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
}
.pullquote p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem; color: var(--navy);
  font-style: italic; line-height: 1.7;
  margin-bottom: 10px;
}
.pullquote cite {
  font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-style: normal;
}

/* ── FADE-UP ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  html { font-size: 17px; }
  section { padding: 64px 24px; }
  .sec-sm { padding: 48px 24px; }
  .page-hero { padding: 64px 24px; min-height: 320px; }
  .nav-inner { padding: 0 24px; }
  .cta-banner { padding: 64px 24px; }

  /* index.html */
  .trust-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .trust-grid > div:first-child { order: -1; }
  .demands-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .pillars-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }

  /* risk-management.html */
  .risk-domains-grid { grid-template-columns: 1fr !important; }
  .risk-related-grid { grid-template-columns: 1fr !important; }

  /* compliance-as-a-service.html */
  .caas-3col-grid { grid-template-columns: 1fr !important; }
  .caas-2col-grid { grid-template-columns: 1fr !important; }

  /* iso-assurance.html */
  .iso-2col-grid { grid-template-columns: 1fr !important; }
  .iso-3col-grid { grid-template-columns: 1fr 1fr !important; }
  .iso-related-grid { grid-template-columns: 1fr !important; }

  /* privacy.html */
  .privacy-related-grid { grid-template-columns: 1fr !important; }

  /* process.html */
  .process-intro-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .process-steps-grid { grid-template-columns: 1fr !important; }

  /* about.html */
  .about-intro-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-team-grid { grid-template-columns: 1fr !important; }

  /* contact.html */
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 20px; }
}
