
/* ===== ESPA Defence Consultancy — Master Stylesheet ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a1628;
  --navy-mid:   #101d32;
  --navy-light: #162340;
  --slate:      #1e2d47;
  --gold:       #c8a84e;
  --gold-light: #e0c76a;
  --accent:     #3b82f6;
  --accent2:    #22d3ee;
  --white:      #ffffff;
  --gray-100:   #f3f4f6;
  --gray-200:   #2d3748;
  --gray-300:   #4a5568;
  --gray-400:   #718096;
  --dark-bg:    #ffffff;
  --card-bg:    #f9fafb;
  --card-border:#e5e7eb;
  --glow:       rgba(200,168,78,.08);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: .3s ease;
  --max-width:  1240px;
  --font-main:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-head:  'Inter', 'Segoe UI', system-ui, sans-serif;
}

html, body { width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--gray-200);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }

/* ---------- Utility ---------- */
.text-gold   { color: var(--gold); }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--gray-300); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 32px;
  border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  letter-spacing: .3px; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8962f);
  color: var(--navy); border-color: var(--gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,168,78,.25);
}
.btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold); color: var(--navy);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--card-border);
  padding: 6px 0; font-size: .78rem; color: var(--gray-400);
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.topbar a { color: var(--gray-400); margin-left: 18px; }
.topbar a:hover { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.header {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0; min-height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { max-width: 200px; height: auto; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), #b8962f);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem; color: var(--navy);
}
.logo-text h1 { font-size: 1rem; color: var(--navy); letter-spacing: .5px; }
.logo-text span { font-size: .6rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-top: 1px; }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
  display: block; padding: 24px 16px; font-size: .85rem; font-weight: 500;
  color: var(--gray-300); text-transform: uppercase; letter-spacing: .8px;
  transition: color var(--transition);
}
.main-nav > li > a:hover,
.main-nav > li.active > a { color: var(--gold); }

/* Dropdown */
.main-nav .dropdown { position: relative; }
.main-nav .dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); min-width: 260px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease; z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}
.main-nav .dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
  display: block; padding: 10px 20px; font-size: .84rem;
  color: var(--gray-300); transition: all .2s;
}
.dropdown-menu li a:hover {
  background: var(--gray-100); color: var(--gold); padding-left: 26px;
}

/* Hamburger */
.nav-toggle { 
  display: none; background: none; border: none; cursor: pointer; padding: 8px; 
  flex-direction: column; gap: 5px; align-items: flex-end;
}
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; background: var(--navy);
  transition: all .3s ease; border-radius: 2px;
}
.nav-toggle span:first-child {
  width: 26px;
}
.nav-toggle span:nth-child(2) {
  width: 20px;
}
.nav-toggle span:last-child {
  width: 14px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  width: 26px;
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 26px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 100px;
  background: linear-gradient(160deg, var(--white) 0%, var(--gray-100) 60%, #f3f4f6 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,168,78,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(59,130,246,.05) 0%, transparent 50%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,168,78,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,78,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(200,168,78,.12); border: 1px solid rgba(200,168,78,.3);
  font-size: .75rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
  margin-bottom: 20px; line-height: 1.15; color: var(--navy);
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--gray-300); max-width: 640px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(200,168,78,.15);
}
.hero-stats .stat h3 { font-size: 1.8rem; color: var(--gold); }
.hero-stats .stat p  { font-size: .82rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; background: var(--white); }
.section-dark { background: var(--gray-100); }
.section-navy { background: var(--white); border-top: 1px solid var(--card-border); }
.section-mid  { background: var(--gray-100); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .overline {
  font-size: .75rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 12px; display: block;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; color: var(--navy); }
.section-header p  { max-width: 640px; margin: 0 auto; color: var(--gray-400); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(200,168,78,.12); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem; color: var(--gold);
}
.card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--navy); }
.card p  { font-size: .92rem; color: var(--gray-400); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: .85rem; font-weight: 600; color: var(--gold);
}
.card-link:hover { gap: 10px; }

/* Grid layouts */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ---------- Who We Are ---------- */
.who-we-are { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.who-we-are-text h2 { font-size: 2rem; margin-bottom: 20px; color: var(--navy); }
.who-we-are-text p  { color: var(--gray-300); margin-bottom: 16px; }
.who-we-are-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--gray-100); border: 1px solid var(--card-border);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.who-we-are-visual .placeholder-visual {
  padding: 40px; text-align: center; color: var(--gray-400);
}

/* ---------- Steps ---------- */
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 40px; left: 60px; right: 60px;
  height: 2px; background: linear-gradient(90deg, var(--gold), rgba(200,168,78,.15));
}
.step {
  flex: 1; text-align: center; position: relative; padding: 0 20px;
}
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8962f);
  color: var(--navy); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 2;
  box-shadow: 0 0 30px rgba(200,168,78,.2);
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p  { font-size: .88rem; color: var(--gray-300); }

/* ---------- Partner Grid ---------- */
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
}
.partner-logo {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px; font-size: .85rem; color: var(--gray-400);
  transition: all var(--transition);
}
.partner-logo:hover { border-color: var(--gold); background: var(--gray-100); }

/* ---------- Compliance Highlight ---------- */
.compliance-highlight {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 48px;
}
.compliance-highlight ul { list-style: none; }
.compliance-highlight li {
  padding: 12px 0 12px 32px; position: relative;
  color: var(--gray-300); font-size: .95rem;
  border-bottom: 1px solid var(--card-border);
}
.compliance-highlight li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gray-100), var(--white));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 60px 48px; text-align: center;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 16px; color: var(--navy); }
.cta-banner p  { color: var(--gray-400); max-width: 600px; margin: 0 auto 32px; }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 100px 0 60px;
  background: linear-gradient(160deg, var(--gray-100) 0%, var(--white) 100%);
  position: relative; overflow: hidden;
}
.page-header::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 30% 60%, rgba(200,168,78,.08) 0%, transparent 60%);
}
.page-header .container { position:relative; z-index:2; }
.page-header .breadcrumb {
  font-size: .8rem; color: var(--gray-400); margin-bottom: 16px;
}
.page-header .breadcrumb a { color: var(--gray-400); }
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; color: var(--navy); }
.page-header p  { max-width: 700px; color: var(--gray-400); font-size: 1.05rem; }

/* ---------- Content Blocks ---------- */
.content-block { margin-bottom: 60px; }
.content-block h2 {
  font-size: 1.5rem; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--card-border);
  display: inline-block; color: var(--navy);
}
.content-block h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 10px; }
.content-block p  { color: var(--gray-400); margin-bottom: 14px; }
.content-block ul { margin: 12px 0 12px 24px; }
.content-block ul li { color: var(--gray-400); margin-bottom: 8px; }

/* Alert / Banner */
.alert-banner {
  background: rgba(200,168,78,.12); border: 1px solid rgba(200,168,78,.3);
  border-radius: var(--radius); padding: 20px 28px;
  font-size: .92rem; color: var(--gold); margin-bottom: 40px;
  display: flex; align-items: flex-start; gap: 14px;
}
.alert-banner .alert-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

/* ---------- Sector Cards ---------- */
.sector-card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 40px 32px;
  transition: all var(--transition);
}
.sector-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.sector-card h3 { font-size: 1.2rem; margin-bottom: 14px; color: var(--navy); }
.sector-card ul { list-style: none; }
.sector-card ul li {
  padding: 6px 0 6px 20px; position: relative;
  color: var(--gray-400); font-size: .9rem;
}
.sector-card ul li::before {
  content: '\25B8'; position: absolute; left: 0; color: var(--gold);
}

/* ---------- Partner Detail Cards ---------- */
.partner-card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
  transition: all var(--transition);
}
.partner-card:hover { border-color: var(--gold); }
.partner-card .partner-logo-lg {
  width: 80px; height: 80px; border-radius: 12px;
  background: rgba(200,168,78,.12); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gold); font-size: 1.1rem;
}
.partner-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.partner-card .partner-country { font-size: .8rem; color: var(--gray-400); margin-bottom: 8px; }
.partner-card .partner-segment {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(200,168,78,.12); font-size: .72rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.partner-card p { font-size: .85rem; color: var(--gray-400); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.team-card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px; text-align: center;
}
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border: 2px solid var(--gold); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--gold);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--navy); }
.team-card .role { color: var(--gold); font-size: .85rem; margin-bottom: 14px; }
.team-card p { font-size: .88rem; color: var(--gray-400); }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.value-item {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.value-item .value-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(200,168,78,.12); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gold);
}
.value-item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--navy); }
.value-item p  { font-size: .85rem; color: var(--gray-400); }

/* ---------- Media / Insights ---------- */
.filter-bar {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 1px solid var(--card-border);
  background: var(--white); color: var(--gray-400); font-size: .82rem;
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}

.article-card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.article-thumb {
  height: 180px; background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: .85rem; overflow: hidden;
}
.article-body { padding: 24px; }
.article-tag {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  background: rgba(200,168,78,.12); font-size: .7rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.article-body h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.article-body p  { font-size: .88rem; color: var(--gray-400); margin-bottom: 14px; }
.article-meta { font-size: .78rem; color: var(--gray-400); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info-card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--gold); }
.contact-item {
  display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start;
}
.contact-item .ci-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(200,168,78,.12); display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}
.contact-item .ci-text p { font-size: .9rem; color: var(--gray-300); }
.contact-item .ci-text small { color: var(--gray-400); font-size: .78rem; }

.contact-form {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 24px; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .82rem; color: var(--gray-400);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--card-border); background: var(--white);
  color: var(--gray-200); font-size: .92rem; font-family: var(--font-main);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--white); color: var(--gray-200); }

.form-check {
  display: flex; align-items: flex-start; gap: 10px; margin: 20px 0;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px;
}
.form-check label { font-size: .85rem; color: var(--gray-300); cursor: pointer; }

/* ---- Form Overlay: Loading / Success / Fail ---- */
.form-overlay {
  display: none;
  position: absolute; inset: 0; z-index: 50;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 30px;
}
.form-overlay.active { display: flex; }

/* Spinner */
.form-spinner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 4px solid rgba(200,168,78,.15);
  border-top-color: var(--gold);
  animation: formSpin 1s linear infinite;
  margin-bottom: 28px;
}
@keyframes formSpin {
  to { transform: rotate(360deg); }
}
.form-overlay .overlay-title {
  font-size: 1rem; font-weight: 600; color: var(--navy);
  margin-bottom: 6px; letter-spacing: .5px;
}
.form-overlay .overlay-sub {
  font-size: .84rem; color: var(--gray-400);
}

/* Dot pulse under spinner text */
.dot-pulse { display: inline-block; }
.dot-pulse::after {
  content: '';
  animation: dotPulse 1.4s infinite;
}
@keyframes dotPulse {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* Success state */
.form-overlay-success .overlay-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(34,197,94,.12); border: 3px solid #4ade80;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  animation: popIn .5s cubic-bezier(.175,.885,.32,1.275);
}
.form-overlay-success .overlay-icon svg {
  width: 40px; height: 40px; stroke: #4ade80; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.form-overlay-success .overlay-icon svg .check-path {
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: drawCheck .6s .3s forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.form-overlay-success .overlay-title {
  font-size: 1.3rem; color: #4ade80; font-weight: 700;
}
.form-overlay-success .overlay-sub {
  font-size: .92rem; color: var(--gray-300); max-width: 380px;
  margin: 0 auto; line-height: 1.6;
}
.form-overlay-success .overlay-detail {
  margin-top: 20px; padding: 14px 24px;
  background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--radius); font-size: .82rem; color: var(--gray-400);
}

/* Fail state */
.form-overlay-fail .overlay-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(239,68,68,.12); border: 3px solid #f87171;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  animation: popIn .5s cubic-bezier(.175,.885,.32,1.275);
}
.form-overlay-fail .overlay-icon svg {
  width: 36px; height: 36px; stroke: #f87171; fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}
.form-overlay-fail .overlay-title {
  font-size: 1.3rem; color: #f87171; font-weight: 700;
}
.form-overlay-fail .overlay-sub {
  font-size: .92rem; color: var(--gray-300); max-width: 400px;
  margin: 0 auto; line-height: 1.6;
}
.form-overlay-fail .overlay-sub a { color: #f87171; text-decoration: underline; }

/* Retry button */
.btn-retry {
  margin-top: 24px; padding: 12px 36px;
  background: transparent; border: 2px solid var(--gold);
  color: var(--gold); border-radius: var(--radius);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); text-transform: uppercase; letter-spacing: 1px;
}
.btn-retry:hover {
  background: var(--gold); color: var(--navy);
}

/* Submit button loading state */
.btn-submitting {
  opacity: .5; pointer-events: none; position: relative;
}

/* Contact form needs relative for overlay */
.contact-form { position: relative; overflow: hidden; }

/* Map */
.map-placeholder {
  width: 100%; height: 260px; border-radius: var(--radius-lg);
  background: var(--gray-100); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); margin-top: 40px;
}

/* ---------- Legal Pages ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.3rem; margin: 36px 0 14px;
  color: var(--gold);
}
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--navy); }
.legal-content p { color: var(--gray-400); margin-bottom: 12px; }
.legal-content ul { margin: 10px 0 16px 24px; }
.legal-content ul li { color: var(--gray-400); margin-bottom: 6px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(200,168,78,.12);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer h4 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 20px;
}
.footer-about p { color: var(--gray-300); font-size: .88rem; margin-bottom: 14px; }
.footer-about .legal-line { font-size: .75rem; color: var(--gray-400); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--gray-300); font-size: .88rem; }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(200,168,78,.08);
  padding: 20px 0; text-align: center;
  font-size: .78rem; color: var(--gray-400);
}

/* ---------- Layered Architecture Diagram ---------- */
.architecture-diagram {
  max-width: 700px; margin: 30px auto;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.arch-layer {
  width: 100%; padding: 22px 28px; text-align: center;
  border: 1px solid var(--card-border); position: relative;
  font-size: .9rem;
}
.arch-layer:nth-child(1) {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(200,168,78,.12);
  color: var(--gold);
}
.arch-layer:nth-child(2) {
  background: rgba(59,130,246,.12);
  color: var(--accent);
}
.arch-layer:nth-child(3) {
  background: rgba(34,211,238,.12);
  color: var(--accent2);
}
.arch-layer:nth-child(4) {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(200,168,78,.15);
  color: var(--gold-light); font-weight: 700;
}
.arch-layer .layer-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 2px;
  display: block; margin-bottom: 4px; opacity: .7;
}

/* ---------- Hero Image ---------- */
.hero-img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
  z-index: 1;
}
.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.5) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.5) 100%);
}

/* ---------- Card with image ---------- */
.card-img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -36px -30px 20px -30px;
  width: calc(100% + 60px);
}

/* ---------- Capability image cards ---------- */
.cap-card { overflow: hidden; padding-top: 0; }
.cap-card .cap-card-img {
  width: 100%; height: 180px; object-fit: cover;
  margin-bottom: 24px;
  transition: transform .5s ease;
}
.cap-card:hover .cap-card-img { transform: scale(1.05); }

/* ---------- Sector card images ---------- */
.sector-card { overflow: hidden; }
.sector-card-img {
  display: block; width: calc(100% + 64px); height: 200px; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -40px -32px 24px -32px;
}

/* ---------- Who We Are image ---------- */
.who-we-are-visual img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}

/* ---------- Page header with bg ---------- */
.page-header-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-header-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .15;
}

/* ---------- Article card thumb images ---------- */
.article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Step icons ---------- */
.step-img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
}

/* ---------- CTA banner bg ---------- */
.cta-banner-bg {
  position: relative; overflow: hidden;
}
.cta-banner-bg .cta-bg-img {
  position: absolute; inset: 0; z-index: 0;
}
.cta-banner-bg .cta-bg-img img {
  width: 100%; height: 100%; object-fit: cover; opacity: .12;
}
.cta-banner-bg > *:not(.cta-bg-img) { position: relative; z-index: 2; }

/* ---------- Partner logo images ---------- */
.partner-logo img {
  max-height: 44px; width: auto; filter: brightness(0) invert(.7);
  transition: filter var(--transition);
}
.partner-logo:hover img { filter: brightness(0) invert(1); }

/* ---------- Team avatar image ---------- */
.team-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* ---------- Partner card logo image ---------- */
.partner-card .partner-logo-lg img {
  max-height: 50px; width: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero-img { display: none; }
  /* Nav */
  .main-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    width: 100vw; max-width: 100vw;
    height: calc(100vh - 70px);
    box-sizing: border-box;
    background: rgba(255,255,255,.98);
    flex-direction: column;
    padding: 24px 20px 20px;
    gap: 0;
    z-index: 999;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    will-change: transform;
  }
  .main-nav.open {
    transform: translateX(0) !important;
  }
  .main-nav > li {
    border-bottom: 1px solid var(--card-border);
  }
  .main-nav > li > a {
    padding: 16px 18px !important;
    color: var(--navy) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    display: block !important;
    border-radius: 10px;
    background: var(--gray-100);
    margin: 8px 0;
    transition: all .2s ease !important;
  }
  .main-nav > li > a:hover {
    color: var(--gold) !important;
    background: #f3f4f6 !important;
  }
  .main-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    display: none;
    border-radius: 0;
    margin: 0;
  }
  .main-nav .dropdown-menu li {
    border: none;
    list-style: none;
  }
  .main-nav .dropdown-menu li a {
    padding: 14px 18px 14px 36px !important;
    color: var(--navy) !important;
    font-size: .95rem !important;
    display: block !important;
    background: transparent;
    margin: 0;
  }
  .main-nav .dropdown-menu li a:hover {
    color: var(--gold) !important;
    background: rgba(200,168,78,.1) !important;
  }
  .main-nav .dropdown.open .dropdown-menu {
    display: block;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav > li > a,
  .main-nav .dropdown-menu li a {
    line-height: 1.4;
  }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .who-we-are { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Steps */
  .steps { flex-direction: column; gap: 28px; }
  .steps::before { display: none; }

  /* Hero */
  .hero { padding: 80px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  /* Section */
  .section { padding: 60px 0; }
  .cta-banner { padding: 40px 24px; }
  .compliance-highlight { padding: 28px; }
  
  /* Header padding on mobile */
  .header .container { padding: 0 12px; }
  
  /* Typography adjustments */
  .hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
  .section-header h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
  .page-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
  
  /* Card padding */
  .card { padding: 24px 18px; }
  .contact-form { padding: 28px 20px; }
  .contact-info-card { padding: 24px; }
  
  /* Buttons */
  .hero-btns { gap: 12px; }
  .btn { padding: 12px 24px; font-size: .9rem; }
  
  /* Partner grid */
  .partner-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero-btns { flex-direction: column; }
  .btn { 
    text-align: center;
    width: 100%;
    padding: 14px 20px;
  }
  .topbar .container { 
    justify-content: center; 
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
  .topbar a { margin-left: 0; }
  
  /* Hero stats */
  .hero-stats { flex-direction: column; gap: 16px; border-top: none; }
  .hero-stats .stat { text-align: center; }
  
  /* Sections */
  .section { padding: 40px 0; }
  .hero { padding: 60px 0 40px; }
  
  /* Contact grid */
  .contact-form { padding: 20px 16px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Cards */
  .card { padding: 20px 16px; }
  .cta-banner { padding: 28px 20px; }
  
  /* Text sizing */
  .hero h1 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
  .section-header h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
  
  /* Partner grid */
  .partner-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
  
  /* Team and values grid */
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  
  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
