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

:root {
  --color-primary: #1B2A4A;
  --color-primary-light: #2A3F6A;
  --color-accent: #3C3C3C;
  --color-accent-light: #5A5A5A;
  --color-bg: #F5F0E8;
  --color-bg-alt: #EDE8DF;
  --color-text: #2A2A2A;
  --color-text-light: #4A4A4A;
  --color-white: #FFFFFF;
  --color-overlay: rgba(27, 42, 74, 0.85);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --container-max: 1200px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

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

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(27, 42, 74, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F1A30 100%);
  overflow: hidden;
  padding: 6rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1541888946425-d81bb48f9f2b?w=1600&q=80') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.hero p,
.page-hero p,
.stats p {
  color: inherit;
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F1A30 100%);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1600&q=80') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

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

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.95);
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

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

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

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

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

/* ===== STATS ===== */
.stats {
  background: var(--color-primary);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.78);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F1A30 100%);
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 2rem 0;
}

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

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

.cta .btn {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}

.cta .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== ABOUT ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.company-info {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.company-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.company-info p {
  color: var(--color-text-light);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

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

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

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

.legal-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-primary);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-accent);
}

.legal-content p {
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.9;
}

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

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-toc {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
}

.legal-toc h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.legal-toc a {
  color: var(--color-primary);
  font-weight: 500;
  transition: var(--transition);
}

.legal-toc a:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .brand {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-grid ul li {
  margin-bottom: 0.6rem;
}

.footer-grid a {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-grid a:hover {
  color: var(--color-white);
  padding-left: 3px;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: center;
}

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

.footer-bottom a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  transition: var(--transition);
}

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

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.45s; }

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

/* ===== RESPONSIVE ===== */
@media (min-width: 820px) {
  .container {
    padding: 0 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .section {
    padding: 6rem 0;
  }
}

@media (max-width: 819px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 80vh;
    padding: 4rem 0;
  }

  .stats-grid {
    gap: 2rem;
  }

  .cta {
    padding: 3rem 1.5rem;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
  }
}