/* ============================================================
   EDIFY EXTERNSHIP SERVICES — DESIGN SYSTEM
   Light institutional consultancy language.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,500;0,8..60,600;1,8..60,500;1,8..60,600&display=swap');

:root {
  /* Surfaces */
  --color-ivory: #F6F3EC;
  --color-off-white: #F6F3EC;
  --color-white: #ffffff;
  --color-mist: #EEF1F5;
  --color-paper: #FBFAF7;
  --color-warm-gray: #F3F0EA;

  /* Ink */
  --color-navy: #152033;
  --color-navy-mid: #1C2E4A;
  --color-navy-light: #2A4468;
  --color-slate: #5B6576;
  --color-silver: #8B96A8;
  --color-divider: rgba(21, 32, 51, 0.10);

  /* Brand — deep corporate blue (teal token kept for existing markup) */
  --color-blue: #1E4F8A;
  --color-blue-dark: #163E6D;
  --color-blue-soft: #E7EEF6;
  --color-teal: #1E4F8A;
  --color-teal-light: #3A6AA8;
  --color-teal-glow: rgba(30, 79, 138, 0.12);

  /* Prestige gold + restrained burgundy */
  --color-gold: #A4843A;
  --color-gold-light: #C4A45A;
  --color-gold-glow: rgba(164, 132, 58, 0.14);
  --color-burgundy: #7A3A42;
  --color-burgundy-light: #9A545C;

  --gradient-primary: linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  --gradient-accent: linear-gradient(180deg, var(--color-gold) 0%, #7E6528 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-navy) 0%, #0E1624 100%);
  --gradient-glow: radial-gradient(circle, var(--color-teal-glow) 0%, transparent 70%);

  /* Typography */

  --font-heading: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-serif: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'Manrope', 'Segoe UI', sans-serif;

  --text-hero: clamp(2.4rem, 5.2vw, 4.05rem);
  --text-h1: clamp(1.9rem, 3.2vw, 2.7rem);
  --text-h2: clamp(1.45rem, 2.3vw, 1.95rem);
  --text-h3: clamp(1.1rem, 1.6vw, 1.28rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(21, 32, 51, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(21, 32, 51, 0.07), 0 2px 4px -2px rgba(21, 32, 51, 0.04);
  --shadow-lg: 0 16px 32px -8px rgba(21, 32, 51, 0.10), 0 4px 10px -4px rgba(21, 32, 51, 0.05);
  --shadow-xl: 0 22px 44px -12px rgba(21, 32, 51, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.15s var(--ease);
  --transition-normal: 0.35s var(--ease);
  --transition-slow: 0.5s var(--ease);

  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
span,
a,
input,
button,
select,
textarea {
  font-family: var(--font-body);
}

body {
  font-size: var(--text-body);
  color: var(--color-slate);
  background: var(--color-ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

p {
  text-align: justify;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-blue);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.skip-nav:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--dark {
  background: var(--color-navy);
  color: white;
}

.section--navy-mid {
  background: var(--color-navy-mid);
  color: white;
}

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

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

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

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

.section--teal-gradient {
  background: var(--color-paper);
  border-top: 1px solid var(--color-divider);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition-normal), color var(--transition-normal),
    border-color var(--transition-normal), transform var(--transition-normal),
    box-shadow var(--transition-normal);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn::after {
  content: '';
  width: 14px;
  height: 10px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' d='M1 5h12M9 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' d='M1 5h12M9 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transition-normal);
}

.btn:hover::after {
  transform: translateX(3px);
}

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

.btn--primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: rgba(21, 32, 51, 0.22);
}

.btn--secondary:hover {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: white;
}

.btn--ghost-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: rgba(21, 32, 51, 0.22);
}

.btn--ghost-dark:hover {
  background: var(--color-navy);
  color: white;
  border-color: var(--color-navy);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  background: #ffffff;
  color: var(--color-navy);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--gold {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--gold:hover {
  background: linear-gradient(135deg, #B45309 0%, #92400E 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn--sm {
  padding: 9px 18px;
  font-size: var(--text-sm);
}

.btn--sm::after {
  width: 12px;
  height: 8px;
}

.btn--full {
  width: 100%;
}

.btn--text {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-blue);
  font-weight: 650;
  gap: 6px;
}

.btn--text:hover {
  color: var(--color-navy);
  gap: 10px;
}

.btn--text::after {
  width: 12px;
  height: 8px;
}

.grid {
  display: grid;
  gap: 28px;
}

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

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

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

@media (max-width: 1023px) {
  .section {
    padding: 72px 0;
  }

  .container {
    padding: 0 24px;
  }

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

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

@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 20px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .btn::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}