/* ============================================================
   Prestige Networks — main.css
   CSS Custom Properties, Reset, Base Styles
   ============================================================ */

/* --- Google Font Import (fallback if no internet) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --------------------------------- */
:root {
  /* Colors */
  --color-deep-blue:    #0D1B3E;
  --color-navy:         #1a2d5a;
  --color-sky-blue:     #1E6FD9;
  --color-sky-light:    #4A9FFF;
  --color-accent-blue:  #60B4FF;
  --color-soft-green:   #2ECC71;
  --color-green-dark:   #1aab58;
  --color-slate:        #546E7A;
  --color-dark-slate:   #2C3E50;
  --color-light-gray:   #F4F7FB;
  --color-mid-gray:     #DDE3EC;
  --color-border:       #E2E8F0;
  --color-text:         #1A2332;
  --color-text-muted:   #6B7A8D;
  --color-white:        #FFFFFF;

  /* Typography */
  --font-primary: "Inter", "Segoe UI", system-ui, Arial, sans-serif;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  80px;
  --space-10: 100px;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(13, 27, 62, 0.08);
  --shadow-sm:  0 2px 8px rgba(13, 27, 62, 0.10);
  --shadow-md:  0 4px 20px rgba(13, 27, 62, 0.12);
  --shadow-lg:  0 8px 40px rgba(13, 27, 62, 0.16);
  --shadow-xl:  0 16px 60px rgba(13, 27, 62, 0.20);
  --shadow-glow: 0 0 30px rgba(30, 111, 217, 0.25);

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition:        all 0.30s ease;
  --transition-slow:   all 0.50s ease;

  /* Nav height */
  --nav-height: 72px;

  /* Max widths */
  --max-width-sm:  640px;
  --max-width-md:  768px;
  --max-width-lg:  1024px;
  --max-width-xl:  1200px;
  --max-width-2xl: 1440px;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-sky-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-sky-light);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-deep-blue);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Focus styles for accessibility ------------------------- */
:focus-visible {
  outline: 3px solid var(--color-sky-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Utility: screen reader only ---------------------------- */
.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;
}

/* --- Scroll offset for sticky nav --------------------------- */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* --- Skip to main content ---------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-sky-blue);
  color: var(--color-white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-4);
}

/* --- Text utilities ----------------------------------------- */
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: var(--color-white); }
.text-blue      { color: var(--color-sky-blue); }
.text-green     { color: var(--color-soft-green); }
.font-light     { font-weight: 300; }
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* --- Gradient text ------------------------------------------ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-sky-blue) 0%, var(--color-soft-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section spacing ---------------------------------------- */
.section {
  padding: var(--space-9) 0;
}

.section-sm {
  padding: var(--space-7) 0;
}

.section-lg {
  padding: var(--space-10) 0;
}

/* --- Section heading group ---------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-7);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sky-blue);
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Background variants ------------------------------------ */
.bg-white      { background-color: var(--color-white); }
.bg-light      { background-color: var(--color-light-gray); }
.bg-dark       { background-color: var(--color-deep-blue); color: var(--color-white); }
.bg-navy       { background-color: var(--color-navy); color: var(--color-white); }
.bg-gradient   {
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-navy) 50%, #0f2d5a 100%);
  color: var(--color-white);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-gradient h1,
.bg-gradient h2,
.bg-gradient h3 {
  color: var(--color-white);
}
