/*
 * Bridge Consulting — Base Styles
 * ================================
 * Reset, document defaults, type hierarchy, utilities.
 * Loaded after variables.css.
 */

/* =============================================
 * MODERN CSS RESET
 * ============================================= */

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

/* Remove list styles on ul/ol used in nav/lists */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Core root defaults */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Offset for fixed header when jumping to anchors */
  scroll-padding-top: var(--header-height, 72px);
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-body-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* =============================================
 * TYPOGRAPHY — HEADINGS
 * ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--color-dark-text);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-5xl);   /* 48px */
}

h2 {
  font-size: var(--text-4xl);   /* 36px */
}

h3 {
  font-size: var(--text-3xl);   /* 30px */
}

h4 {
  font-size: var(--text-2xl);   /* 24px */
}

h5 {
  font-size: var(--text-xl);    /* 20px */
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
}

h6 {
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Subheading utility — used frequently in section headers */
.subheading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Lead paragraph — slightly larger intro copy */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-mid-gray);
}

/* =============================================
 * TYPOGRAPHY — BODY & INLINE
 * ============================================= */

p {
  line-height: var(--leading-normal);
  color: var(--color-body-text);
}

p + p {
  margin-top: var(--space-4);
}

strong, b {
  font-weight: var(--weight-semibold);
  color: var(--color-dark-text);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--color-mid-gray);
}

/* =============================================
 * LINKS
 * ============================================= */

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

a:hover {
  color: var(--color-gold-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* =============================================
 * LISTS
 * ============================================= */

ul:not([class]),
ol:not([class]) {
  padding-left: var(--space-6);
}

li + li {
  margin-top: var(--space-2);
}

/* =============================================
 * IMAGES & MEDIA
 * ============================================= */

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

img {
  height: auto;
}

/* =============================================
 * FORM ELEMENTS (baseline)
 * ============================================= */

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

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

/* =============================================
 * HORIZONTAL RULES
 * ============================================= */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

hr.gold {
  border-top: 2px solid var(--color-gold);
  opacity: 0.4;
  width: 60px;
  margin: var(--space-6) auto;
}

/* =============================================
 * BLOCKQUOTES
 * ============================================= */

blockquote {
  border-left: 3px solid var(--color-gold);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--color-gold-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-dark-text);
}

/* =============================================
 * CODE
 * ============================================= */

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: var(--color-section-bg);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

/* =============================================
 * UTILITY CLASSES
 * ============================================= */

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

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

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

/* Section — vertical rhythm unit */
.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--lg {
  padding-top: calc(var(--section-padding-y) * 1.33);
  padding-bottom: calc(var(--section-padding-y) * 1.33);
}

/* Screen reader only — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Color utilities */
.text-gold    { color: var(--color-gold); }
.text-navy    { color: var(--color-primary); }
.text-muted   { color: var(--color-mid-gray); }
.text-white   { color: var(--color-white); }

/* Spacing utilities */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

/* Display */
.hidden         { display: none; }
.block          { display: block; }
.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.items-center   { align-items: center; }
.justify-center { justify-content: center; }
.gap-4          { gap: var(--space-4); }
.gap-6          { gap: var(--space-6); }
.gap-8          { gap: var(--space-8); }

/* Font families */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

/* Background utilities */
.bg-white       { background-color: var(--color-white); }
.bg-navy        { background-color: var(--color-primary); }
.bg-light       { background-color: var(--color-light-gray); }
.bg-section     { background-color: var(--color-section-bg); }

/* Aspect ratios */
.aspect-video    { aspect-ratio: 16 / 9; }
.aspect-square   { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 3 / 4; }

/* Object fit */
.object-cover  { object-fit: cover; }
.object-center { object-position: center; }

/* Border radius */
.rounded     { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* =============================================
 * FOCUS MANAGEMENT
 * ============================================= */

/* Remove default focus ring for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* =============================================
 * SELECTION
 * ============================================= */

::selection {
  background-color: var(--color-gold-glow);
  color: var(--color-primary);
}

/* =============================================
 * SCROLLBAR (WebKit)
 * ============================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}
