/* ==========================================================================
   HAWK MEDIA — CORE GLOBAL STYLES (MAIN.CSS)
   Apple-Inspired Black & Gold Elegance Aesthetic
   Strict Palette: #000000 | #14213D | #FCA311 | #E5E5E5 | #FFFFFF
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

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

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-apple), opacity var(--dur-fast) var(--ease-apple);
}

/* --- Accessible Focus & Skip Link --- */
:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--c-amber);
  color: var(--c-black);
  padding: var(--space-2) var(--space-4);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--dur-fast) var(--ease-apple);
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* --- Typography Primitives --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.display-title {
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1, .h1 { font-size: var(--text-h1); }
h2, .h2 { font-size: var(--text-h2); }
h3, .h3 { font-size: var(--text-h3); }
h4, .h4 { font-size: var(--text-h4); font-weight: 700; }
h5, .h5 { font-size: var(--text-h5); font-weight: 700; }

p {
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

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

.lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--c-navy);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--c-amber);
  border-radius: var(--radius-pill);
}

.eyebrow-dark {
  color: var(--c-amber);
}

.eyebrow-dark::before {
  background-color: var(--c-amber);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(252, 163, 17, 0.15);
  color: var(--c-black);
  border: 1px solid rgba(252, 163, 17, 0.4);
}

.badge-dark {
  background: rgba(252, 163, 17, 0.15);
  color: var(--c-amber);
  border: 1px solid rgba(252, 163, 17, 0.35);
}

.badge-navy {
  background: var(--c-navy);
  color: var(--c-white);
  border: 1px solid var(--c-navy);
}

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

.container-sm {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-editorial {
  width: 100%;
  max-width: var(--container-editorial);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* --- Universal Section Padding --- */
.section {
  padding-top: clamp(3.5rem, 6.5vw, 6.0rem);
  padding-bottom: clamp(3.5rem, 6.5vw, 6.0rem);
  position: relative;
  width: 100%;
}

.section-hero-sub {
  padding-top: clamp(2.5rem, 4.5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 6.5vw, 6.0rem);
}

.section-silver {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--text-on-dark);
}

.section-dark p {
  color: var(--text-muted-dark);
}

.section-black {
  background-color: var(--bg-black);
  color: var(--text-on-dark);
}

.section-black h1,
.section-black h2,
.section-black h3,
.section-black h4,
.section-black h5,
.section-black h6 {
  color: var(--text-on-dark);
}

.section-black p {
  color: var(--text-muted-dark);
}

.section-header {
  margin-bottom: clamp(2.0rem, 4.0vw, 3.5rem);
}

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

.text-left {
  text-align: left;
}

/* --- Responsive Grid System --- */
.grid {
  display: grid;
  gap: var(--space-6);
  width: 100%;
}

.grid > * {
  min-width: 0;
}

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

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

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

.grid-1-13 {
  grid-template-columns: 1fr 1.3fr;
}

.grid-13-1 {
  grid-template-columns: 1.3fr 1fr;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-1-13,
  .grid-13-1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-1-13,
  .grid-13-1 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding-top: clamp(3.25rem, 7.5vw, 4.75rem);
    padding-bottom: clamp(3.25rem, 7.5vw, 4.75rem);
  }
}

/* --- Utility Flex --- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
