/**
 * AAPKA MANAGER DIGITAL - Core Stylesheet
 * Brand System: Royal Navy (#142B55), Premium Gold (#C6A45A), Yellow-Orange CTA (#F59E0B), Soft Cool BG (#F2F6FC)
 */

:root {
  /* Brand Primary Palette */
  --color-navy: #142B55;
  --color-navy-dark: #0B192F;
  --color-navy-deep: #07101E;
  --color-navy-light: #1E3A70;
  --color-navy-surface: #22437F;

  /* Brand Accents */
  --color-gold: #C6A45A;
  --color-gold-light: #DFCA8D;
  --color-gold-glow: #F5E7B8;
  --color-gold-dark: #9A7B32;

  --color-cta: #F59E0B;
  --color-cta-hover: #D97706;
  --color-cta-light: #FBBF24;
  --color-orange-deep: #EA580C;

  /* WhatsApp Green */
  --color-wa: #25D366;
  --color-wa-dark: #128C7E;
  --color-wa-deep: #075E54;

  /* Neutrals & Surfaces */
  --color-bg: #F2F6FC;
  --color-bg-alt: #E8F0FA;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-subtle: rgba(20, 43, 85, 0.08);

  /* Typography Colors */
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-text-light: #64748B;
  --color-text-inverse: #F8FAFC;

  /* Status Colors */
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;

  /* Typography Stacks */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 43, 85, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(20, 43, 85, 0.08), 0 4px 8px -2px rgba(20, 43, 85, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(20, 43, 85, 0.12), 0 8px 16px -4px rgba(20, 43, 85, 0.06);
  --shadow-glow-gold: 0 0 24px rgba(198, 164, 90, 0.25);
  --shadow-glow-cta: 0 0 24px rgba(245, 158, 11, 0.35);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Container */
  --container-max: 1200px;
  --container-narrow: 880px;
  --container-padding: 1.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-navy);
  color: var(--color-gold);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 99999;
  border: 2px solid var(--color-gold);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-cta);
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  background: rgba(198, 164, 90, 0.2);
  border: 1px solid rgba(198, 164, 90, 0.4);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Badges & Pills */
.badge-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-orange-deep);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-gold {
  background: rgba(198, 164, 90, 0.15);
  color: var(--color-gold-dark);
  border: 1px solid rgba(198, 164, 90, 0.35);
}

/* Common Section Padding */
.site-section {
  padding: 5.5rem 0;
  position: relative;
}

.site-section-sm {
  padding: 3.5rem 0;
}

.bg-light-tint {
  background-color: var(--color-bg);
}

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

.bg-navy-dark {
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
  color: var(--color-white);
}
.bg-navy-dark h1,
.bg-navy-dark h2,
.bg-navy-dark h3,
.bg-navy-dark .section-title {
  color: var(--color-white);
}
.bg-navy-dark .section-lead {
  color: #CBD5E1;
}

/* Subtle Scroll Reveal Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fade-in-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
