@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #1a237e;
  --color-primary-light: #283593;
  --color-primary-dark: #0d1452;
  --color-accent: #4caf50;
  --color-accent-hover: #43a047;
  --color-secondary: #ff9800;
  --color-secondary-hover: #f57c00;
  --color-white: #ffffff;
  --color-gray: #607d8b;
  --color-gray-light: #78909c;
  --color-gray-dark: #37474f;
  --color-bg: #f8f9fa;
  --color-bg-alt: #e8eaf6;
  --color-text: #2a2a2a;
  --color-text-light: #4a4a4a;
  --color-border: #e0e0e0;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--color-text);
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-accent-hover); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(26, 35, 126, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 35, 126, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1rem, 4vw, 2rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-white);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-white);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1rem 4rem;
  position: relative;
  background: linear-gradient(135deg, #0d1452 0%, #1a237e 40%, #283593 70%, #1a237e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"><rect fill="none"/><path fill="rgba(76,175,80,0.03)" d="M0,600 C360,400 720,800 1080,500 C1260,350 1440,600 1440,600 L1440,900 L0,900 Z"/><path fill="rgba(255,152,0,0.02)" d="M0,700 C240,500 600,900 960,600 C1140,450 1440,700 1440,700 L1440,900 L0,900 Z"/></svg>') no-repeat bottom / cover;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: rgba(255,255,255,0.88);
  max-width: 700px;
  margin: 1.5rem auto 2rem;
  line-height: 1.8;
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}

.btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(76,175,80,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ===== STATS ===== */
.stats {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  line-height: 1.2;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  margin-top: 0.25rem;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><circle cx="300" cy="300" r="250" fill="rgba(76,175,80,0.05)"/><circle cx="300" cy="300" r="150" fill="rgba(255,152,0,0.03)"/></svg>') center/cover;
  pointer-events: none;
}

.cta > * {
  position: relative;
  z-index: 2;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: calc(var(--header-height) + 3rem) 1rem 3rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-toc {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.legal-toc h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.legal-toc a {
  display: block;
  padding: 0.35rem 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-toc a:last-child {
  border-bottom: none;
}

.legal-toc a:hover {
  color: var(--color-accent);
  padding-left: 0.5rem;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-content .company-info h2 {
  margin-bottom: 1.5rem;
}

.about-content .company-info p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
}

.value-card .service-icon {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.value-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.88);
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  max-width: 300px;
  line-height: 1.7;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-grid a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  transition: var(--transition);
}

.footer-grid a:hover {
  color: var(--color-accent);
  padding-left: 0.25rem;
}

.footer-grid p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(13, 20, 82, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
}

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .hero .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ===== INHERITANCE FIX ===== */
.site-footer p,
.footer-bottom p,
.footer-brand p,
.hero p,
.page-hero p,
.stats p,
.cta p {
  color: inherit;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }