/* ===========================================================
 * Global Styles (Single CSS file for the whole site)
 * Header + Full-Width Dark Mega Menu + Mobile Menu + Footer
 * Fonts: Playfair Display, Montserrat, Lato, Source Sans Pro
 * All comments in English (as requested)
 *
 * QUICK CUSTOMIZATION:
 * - Header size (ALL screens):  --header-height
 * - Logo sizes:                 --logo-width (desktop), @media <=640px override
 * - Container max width:        --container-max
 * - Brand colors (OW-inspired): --ink, --brand, etc.
 * - Main content offset:        --main-offset (auto = header height + safe pad)
 * - Page top/bottom balance:    --page-gap (affects About page)
 * - Footer social icons (PNG):  .footer-social .social-icon { width/height }
 * =========================================================== */

/* Load Google Fonts (keep a single @import for performance) */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@700&family=Montserrat:wght@400;600&family=Playfair+Display:wght@600;700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* ---------------- CSS Variables (OW-inspired palette) ---------------- */
:root{
  /* Layout */
  --header-height: 160px;            /* Header height for ALL screens. Adjust if needed. */
  --container-max: 1440px;
  --main-offset: calc(var(--header-height) + 10px); /* ensures content is not hidden under sticky header */
  --page-gap: 60px;                  /* unified page gap (used to balance top lift & footer spacing) */

  /* Logo */
  --logo-width: 180px;               /* Desktop logo width */
  --logo-offset-x: 0px;

  /* Brand & Colors (Oliver Wyman inspired) */
  --header-bg: #ffffff;
  --header-text: #002b49;            /* Deep blue for headings/text */
  --header-shadow: 0 6px 18px rgba(0,0,0,.06);

  --link: #0b0f16;
  --link-hover: #0b0f16;

  --mega-bg: #0b0f16;
  --mega-text: #e6e8ee;
  --mega-heading: #ffffff;
  --mega-divider: rgba(255,255,255,.12);
  --mega-hover: rgba(255,255,255,.06);

  /* Content tokens */
  --ink: #002b49;        /* Primary text (deep blue) */
  --ink-2: #334155;      /* Secondary text (slate) */
  --muted: #64748b;      /* Muted text */
  --line: #e5e7eb;       /* Soft borders */
  --bg-soft: #f8fafc;    /* Subtle panels */
  --brand: #009fdb;      /* Accent turquoise for CTAs */

  /* Spacing & radii */
  --gap-xl: 36px;
  --gap-lg: 26px;
  --gap-md: 20px;
  --gap-sm: 12px;
  --radius-md: 10px;

  /* Animation */
  --anim-fast: .18s ease;
  --anim-med: .28s ease;
}

/* ---------------- Reset & Safety ---------------- */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; overflow-x: hidden; } /* prevent horizontal scroll globally */
body{
  font-family: "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--header-text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video{ max-width: 100%; height: auto; display: block; } /* media never overflow */

/* ===========================================================
 * Generic container gutters (side paddings)
 * =========================================================== */
.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gap-md);
  padding-right: var(--gap-md);
}

/* ===========================================================
 * Main wrapper offset (prevents content from hiding under header)
 * =========================================================== */
.site-main{
  padding-top: var(--main-offset); /* ties to header height */
}

/* ===========================================================
 * Header (sticky)
 * =========================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height) !important;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
}
.header-inner{
  min-height: var(--header-height) !important;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}
.site-logo{
  display: inline-flex;
  align-items: center;
  transform: translateX(var(--logo-offset-x));
}
.site-logo img{
  width: var(--logo-width);
  height: auto;
  display: block;
}

/* ===========================================================
 * Desktop Navigation
 * =========================================================== */
.main-nav{ height: 100%; }
.nav-level-1{
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  padding: 0;
  margin: 0;
}
.nav-top-link{
  display: inline-flex;
  align-items: center;
  height: var(--header-height) !important;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--link);
  font-size: 16px;
  letter-spacing: .2px;
  padding: 0 2px;
  position: relative;
  transition: color var(--anim-fast);
}
.nav-top-link:hover,
.nav-top-link:focus{ color: var(--link-hover); }
.nav-top-link::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--anim-fast);
}
.nav-top-link:hover::after,
.nav-top-link:focus::after{ transform: scaleX(1); }

/* ===========================================================
 * Mega Panel (full-width without 100vw overflow)
 * =========================================================== */
.has-mega{ position: static; }
.has-mega .mega-panel{
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-height) !important;
  width: auto; /* avoids horizontal scroll caused by 100vw */
  background: var(--mega-bg);
  color: var(--mega-text);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 30px 0;
  border-top: 1px solid var(--mega-divider);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  transform: translateY(8px); /* only Y to simplify */
  transition: opacity var(--anim-med), transform var(--anim-med), visibility 0s linear .28s;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.mega-inner{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap-md);
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 28px;
}
.mega-inner.single-col{ grid-template-columns: 1fr; }

/* Consulting Services — always 6 columns */
.mega-inner.wide{
  max-width: min(1700px, calc(100vw - 40px));
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 24px;
}
.mega-col{ min-width: 160px; }
.mega-heading{
  margin: 0 0 12px 0;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  color: var(--mega-heading);
  font-size: 17px;
  letter-spacing: .2px;
}
.mega-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mega-list a{
  text-decoration: none;
  color: var(--mega-text);
  font-size: 15px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  display: block;
  transition: background var(--anim-fast), transform var(--anim-fast);
}
.mega-list a:hover,
.mega-list a:focus{
  background: var(--mega-hover);
  transform: translateX(2px);
  text-decoration: none;
}

/* ===========================================================
 * Mobile Menu (CSS-only)
 * =========================================================== */
.nav-toggle{ display: none; }
.hamburger{
  display: none;
  width: 40px;
  height: 28px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.hamburger span{
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--link);
  left: 0;
  transition: transform var(--anim-fast), top var(--anim-fast), opacity var(--anim-fast);
}
.hamburger span:nth-child(1){ top: 4px; }
.hamburger span:nth-child(2){ top: 13px; }
.hamburger span:nth-child(3){ top: 22px; }

.mobile-panel{
  position: fixed;
  top: var(--header-height) !important;
  right: 0;
  bottom: 0;
  width: 86vw;
  max-width: 420px;
  background: #0b0f16;
  color: #e6e8ee;
  transform: translateX(100%);
  transition: transform var(--anim-med);
  z-index: 999;
  overflow-y: auto;
  padding: 18px 18px 40px;
  border-left: 1px solid var(--mega-divider);
}
.mobile-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--anim-med), visibility 0s linear .28s;
}
.nav-toggle:checked ~ .mobile-panel{ transform: translateX(0); }
.nav-toggle:checked ~ .mobile-backdrop{
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.nav-toggle:checked + .hamburger span:nth-child(1){ top: 13px; transform: rotate(45deg); }
.nav-toggle:checked + .hamburger span:nth-child(2){ opacity: 0; }
.nav-toggle:checked + .hamburger span:nth-child(3){ top: 13px; transform: rotate(-45deg); }

.mobile-level-1,
.mobile-sub{ list-style: none; padding: 0; margin: 0; }
.mobile-level-1 > li{ margin-bottom: 8px; }
.mobile-level-1 > li > a{
  display: block;
  padding: 12px 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: var(--radius-md);
}
.mobile-level-1 > li > a:hover{ background: rgba(255,255,255,.06); }
.mobile-group{ margin-bottom: 10px; }
.mobile-acc{ display: none; }
.mobile-acc-label{
  display: block;
  padding: 12px 10px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  position: relative;
}
.mobile-acc-label:hover{ background: rgba(255,255,255,.06); }
.mobile-acc-label::after{
  content: "▾";
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  opacity: .8;
}
.mobile-acc:checked + .mobile-acc-label::after{ content: "▴"; }
.mobile-sub{
  display: none;
  padding-left: 10px;
  border-left: 1px dashed rgba(255,255,255,.18);
  margin-left: 4px;
}
.mobile-acc:checked ~ .mobile-sub{ display: block; }
.mobile-sub a{
  display: block;
  padding: 10px 10px;
  color: #e6e8ee;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 15px;
}
.mobile-sub a:hover{ background: rgba(255,255,255,.06); }

/* ===========================================================
 * Footer (dark)
 * =========================================================== */
.site-footer{
  background: #0b0f16;
  color: #e6e8ee;
  padding: 60px 20px 20px;
  font-size: 15px;
}
.footer-inner{
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col{ line-height: 1.6; }
.footer-logo{
  width: 140px;
  margin-bottom: 16px;
}
.footer-heading{
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 14px;
  color: #fff;
}
.footer-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-list a{
  color: #e6e8ee;
  text-decoration: none;
}
.footer-list a:hover{ text-decoration: underline; }

/* ================= Footer Social Icons (White Square PNG) ================= */
/* NOTE:
 * - Place PNG icons at /img/linkedin.png and /img/x.png (white glyphs on transparent).
 * - Icons appear UNDER the email in the Contact column in HTML.
 */
.footer-social{
  display: flex;
  gap: 12px;
  margin-top: 14px;       /* spacing under email */
}
.footer-social .social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;            /* button size (square) */
  height: 36px;
  border-radius: 6px;     /* slight rounding; set 0 for sharp square */
  background: transparent;
  text-decoration: none;
}
.footer-social .social-link:hover{
  background: rgba(255,255,255,.12);
}
.footer-social .social-icon{
  width: 28px;            /* actual PNG icon size */
  height: 28px;
  display: block;
}

.footer-bottom{
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

/* ===========================================================
 * About – Elegant Layout (Keeps original text; adds modern structure)
 * =========================================================== */

/* Page wrapper width + balanced spacing (top lift & bottom gap) */
.about-elegant{
  max-width: 1120px;
  margin: 0 auto;
  /* Balanced top lift: pull page upward by page-gap but never into header */
  --page-lift: clamp(0px, var(--page-gap), calc(var(--main-offset) - 10px));
  margin-top: calc(-1 * var(--page-lift)); /* visually raise content */
  padding-top: var(--page-lift);           /* preserve breathing room under header */
  padding-bottom: var(--page-gap);         /* equal gap before footer */
}

/* Breadcrumbs – ensure they are visible */
.breadcrumbs { margin: 10px 0 16px; font-size: 0.95rem; color: var(--muted); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.bc-sep { margin: 0 6px; color: #94a3b8; }

/* Hero split – text + image */
.hero-split {
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 1.25fr 1fr;
  margin: 8px 0 24px;
}
.hero-copy { padding: 8px 0; }
.display-hero { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 10px; color: var(--ink); }
.lead-hero { font-size: clamp(16px, 2.2vw, 18px); color: var(--ink-2); margin: 0 0 12px; }
.key-points { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.key-points li { margin: 4px 0; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; border-radius: 12px; display: block; }
/* Placeholder background if image missing */
.hero-media:empty { min-height: 220px; background: linear-gradient(135deg,#f4f6f8,#eef2f6); border-radius: 12px; }

/* Value strip (3 compact highlights) */
.value-strip {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 8px 0 18px;
}
.value-strip .vs-item h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--ink); }
.value-strip .vs-item p { margin: 0; color: var(--ink-2); }

/* Section spacing + titles */
.section-tight { margin: 18px 0; }
.section-title { margin: 0 0 10px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; color: var(--ink); }
.h3-tight { margin: 12px 0 8px; font-size: 1.2rem; color: var(--ink); }

/* Cards for services (converted from UL items) */
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.06); transform: translateY(-2px); }
.card-title { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink); }

/* Checklist grid for 'Why Choose' */
.check-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.check-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.check-item h4 { margin: 0 0 6px; font-size: 1.02rem; color: var(--ink); }
.check-item p { margin: 0; color: var(--ink-2); }

/* CTA banner */
.cta-banner { margin: 22px 0 0; background: var(--bg-soft); border:1px solid var(--line); border-radius: 14px; }
.cta-inner { padding: 18px; display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: center; }
.cta-inner h2 { margin: 0 0 6px; font-size: clamp(18px, 2.4vw, 24px); color: var(--ink); }
.cta-inner p { margin: 0; color: var(--ink-2); }

/* Buttons (global) */
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff !important;         /* force white text as requested */
  transition: background .2s ease, transform .2s ease;
}
.btn-primary:hover {
  background: #007aa6;            /* darker turquoise on hover */
  transform: translateY(-1px);
}

/* Links inside content areas use brand color */
.about-elegant a { color: var(--brand); text-decoration: none; }
.about-elegant a:hover { text-decoration: underline; }

/* ===========================================================
 * Responsive
 * =========================================================== */
@media (max-width: 1024px){
  .main-nav{ display: none; }
  .hamburger{ display: inline-flex; }
  .has-mega .mega-panel{ display: none; }
}
@media (max-width: 900px){
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .hero-split { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  :root{ --logo-width: 140px; }  /* Mobile logo width */
  .container, .about-elegant{ padding-left: 16px; padding-right: 16px; } /* safe side gutters on small screens */
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-logo{ width: 120px; }
  .footer-social .social-link{ width: 32px; height: 32px; }
  .footer-social .social-icon{ width: 24px; height: 24px; }
}

/* ===========================================================
 * Accessibility
 * =========================================================== */
a:focus-visible,
button:focus-visible,
label:focus-visible{
  outline: 2px solid #5aa7ff;
  outline-offset: 2px;
}
/* ===========================================================
 * Application Form Styles (elegant & lightweight)
 * =========================================================== */
.app-form {
  display: grid;
  gap: 18px;
  margin: 20px 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-row .req {
  color: #e11d48; /* red asterisk */
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: "Source Sans Pro", sans-serif;
  transition: border-color var(--anim-fast), box-shadow var(--anim-fast);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0,159,219,0.2); /* subtle brand glow */
}

/* Multi-column grids */
.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

/* Checkbox line */
.form-row .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.form-row .check input {
  margin-top: 4px;
}

/* Small hints */
.hint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Form actions */
.form-actions {
  margin-top: 10px;
}
.form-actions .btn {
  min-width: 160px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
