/* ============================================
   AML Consultancy Services Ltd — Shared Styles
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a3a6e;
  --navy-dark:  #112650;
  --blue:       #2196C4;
  --blue-light: #29ABE2;
  --white:      #ffffff;
  --off-white:  #f4f7fb;
  --gray-light: #e8ecf2;
  --gray:       #6b7a8d;
  --gray-dark:  #3d4a5c;
  --text:       #1c2b3a;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(26,58,110,0.10);
  --shadow-lg:  0 8px 40px rgba(26,58,110,0.16);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--gray-dark); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* ── Layout Helpers ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,150,196,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(17, 38, 80, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.nav.scrolled {
  background: var(--navy-dark);
  box-shadow: var(--shadow-lg);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(33,150,196,0.18);
}
.nav-links li.has-dropdown { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.nav-links li.has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.80);
  border-radius: 6px;
}
.nav-dropdown a:hover { background: rgba(33,150,196,0.18); color: var(--white); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--blue-light) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile a:hover { color: var(--blue-light); background: rgba(33,150,196,0.08); }
.nav-mobile .sub-label {
  padding: 10px 24px 4px 36px;
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-mobile .sub-link {
  padding: 10px 24px 10px 40px;
  font-size: 0.875rem;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e5080 100%);
  overflow: hidden;
  margin-top: 72px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232196C4' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.80); font-size: 1.1rem; max-width: 600px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--blue-light); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body { padding: 24px; flex: 1; }
.service-card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.4rem;
}
.service-card h3 { color: var(--navy); margin-bottom: 8px; }
.service-card p  { font-size: 0.9rem; line-height: 1.6; }
.service-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Icon boxes ── */
.icon-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.icon-box-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}
.icon-box h4 { color: var(--navy); margin-bottom: 4px; font-size: 1rem; }
.icon-box p  { font-size: 0.875rem; }

/* ── Stats bar ── */
.stat-item { text-align: center; padding: 32px 24px; }
.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.70);
  margin-top: 6px;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.testimonial-quote {
  font-size: 1.05rem;
  color: var(--gray-dark);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { font-weight: 600; color: var(--navy); }
.testimonial-role   { font-size: 0.85rem; color: var(--gray); }

/* ── Grids ── */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }

/* ── Dividers ── */
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
  margin: 16px 0 28px;
}

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(33,150,196,0.12);
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(33,150,196,0.08);
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 32px; }
.cta-band .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--blue); color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue-light); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 0.875rem;
}
.footer-contact-item i { color: var(--blue-light); margin-top: 2px; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.40);
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Accordion ── */
.accordion-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  gap: 12px;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--off-white); }
.accordion-header.open { background: var(--navy); color: var(--white); }
.accordion-icon { font-size: 1.1rem; transition: transform var(--transition); }
.accordion-header.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 20px 24px; background: var(--off-white); }
.accordion-body.open { display: block; }
.accordion-body p { font-size: 0.9rem; }

/* ── Content sections ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.split-img img { width: 100%; height: 420px; object-fit: cover; }
.split-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,110,0.15), transparent);
  z-index: 1;
  border-radius: 12px;
}

/* ── Checklist ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-dark);
}
.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ── Tag pills ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(33,150,196,0.1);
  color: var(--blue);
}

/* ── Back to top ── */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(33,150,196,0.4);
  z-index: 900;
  border: none;
  font-size: 1rem;
  transition: all var(--transition);
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--navy); transform: translateY(-3px); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section  { padding: 64px 0; }
  .grid-2, .grid-3, .grid-auto, .split-section { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }
  .split-img img { height: 280px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band .btn-group { flex-direction: column; align-items: center; }
  .stat-number { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
}
