/* ============================================================
   HIBEX REVAMP — Base & Reset
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--col-text);
  background: var(--col-bg);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font: inherit;
}

/* --- Focus Styles (accessibility) --- */
:focus-visible {
  outline: 2px solid var(--col-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-24);
}

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

.section--alt {
  background: var(--col-grey-50);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-6);
}

.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: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

.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-gap-4 { gap: var(--space-4); }
.flex-gap-6 { gap: var(--space-6); }
.flex-wrap { flex-wrap: wrap; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 8vw, var(--text-7xl));
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-4xl));
  font-weight: 600;
  line-height: 1.1;
}

.heading-md {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}

.heading-sm {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
}

.body-lg { font-size: var(--text-lg); line-height: 1.7; }
.body-sm { font-size: var(--text-sm); line-height: 1.6; }

.text-muted  { color: var(--col-text-muted); }
.text-cyan   { color: var(--col-cyan); }
.text-orange { color: var(--col-orange); }
.text-white  { color: #fff; }
.text-center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--col-cyan);
}

.eyebrow--orange { color: var(--col-orange); }
.eyebrow--muted  { color: var(--col-text-muted); }

/* ============================================================
   COMPONENT: BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--col-cyan);
  color: var(--col-navy);
  border-color: var(--col-cyan);
}

.btn--primary:hover {
  background: var(--col-cyan-dark);
  border-color: var(--col-cyan-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--col-navy);
  border-color: var(--col-navy);
}

.btn--outline:hover {
  background: var(--col-navy);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn--ghost {
  color: var(--col-text-muted);
  border-color: transparent;
  padding-inline: var(--space-3);
}

.btn--ghost:hover {
  color: var(--col-text);
  background: var(--col-grey-100);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ============================================================
   COMPONENT: BADGE
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge--cyan {
  background: var(--col-cyan-pale);
  color: var(--col-cyan-dark);
}

.badge--orange {
  background: var(--col-orange-pale);
  color: var(--col-orange-dark);
}

.badge--navy {
  background: var(--col-navy);
  color: #fff;
}

/* ============================================================
   COMPONENT: DIVIDER
   ============================================================ */

.divider {
  width: 48px;
  height: 3px;
  background: var(--col-cyan);
  border-radius: var(--radius-full);
  margin-block: var(--space-4);
}

.divider--center { margin-inline: auto; }
.divider--orange { background: var(--col-orange); }

/* ============================================================
   COMPONENT: SECTION HEADER
   ============================================================ */

.section-header {
  margin-bottom: var(--space-12);
}

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

.section-header--center .divider {
  margin-inline: auto;
}

/* ============================================================
   COMPONENT: CARD BASE
   ============================================================ */

.card {
  background: var(--col-bg);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

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

.card__body {
  padding: var(--space-6);
}

.card__image {
  aspect-ratio: 16/9;
  background: var(--col-grey-100);
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.04);
}
