/* ============================================
   BASE — Reset, Typography, Utilities
   Aligned to NV mockup design
   ============================================ */

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  color: var(--navy);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--gold-dark);
}

p {
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  line-height: 1.7;
  color: var(--gray-500);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.section {
  padding: var(--space-section) var(--container-pad);
}

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

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--color-white);
}

.section--navy h2 em {
  color: var(--gold);
}

.section--gray {
  background: var(--gray-100);
}

/* ── Section Label (mockup style: line + text) ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label__line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-label__text {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold-dark);
}

.section--navy .section-label__text {
  color: var(--gold);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 540px;
}

.section--navy .section-desc {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Buttons (mockup style) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--dur-normal);
  text-decoration: none;
}

.btn svg {
  transition: transform var(--dur-normal);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--navy);
  color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 128, 0.2);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(231, 185, 40, 0.3);
}

.btn--outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
}

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

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 11px;
}

.btn--lg {
  padding: 18px 42px;
  font-size: 13px;
}

/* ── Cards (sharp, no radius) ── */
.card {
  background: var(--color-white);
  overflow: hidden;
  transition: transform var(--dur-slow), box-shadow var(--dur-slow);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  transition: border-color var(--dur-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --container-pad: 32px;
    --space-section: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 24px;
    --space-section: 60px;
  }
}
