/*
  UBC — Global Apparel Manufacturing
  base.css (shared styles across the site)
  ------------------------------------------------------
  • Bootstrap-friendly overrides
  • Brand variables, typography, layout helpers
  • Shared components: header, hero, CTA, footer, utilities
*/

/* =====================
   1) CSS Variables
   ===================== */
:root {
  /* Brand Colors */
  --ubc-black: #0b0b0b;          /* Primary brand */
  --ubc-navy: #0b0b0b;           /* Legacy alias */
  --ubc-ink: #121212;
  --ubc-ink-700: #1b1b1b;
  --ubc-gold: #d1a23f;           /* Primary accent */
  --ubc-gold-700: #b48a2e;
  --ubc-blue: #d1a23f;           /* Legacy alias for accent */
  --ubc-gray-900: #1f2a37;
  --ubc-gray-700: #3f3f46;
  --ubc-gray-500: #6b7280;
  --ubc-gray-300: #d4d4d8;
  --ubc-gray-100: #f6f4f1;
  --white: #ffffff;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Layout */
  --container-max: 1200px;
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.5rem;

  /* Shadows */
  --shadow-sm: 0 6px 16px rgba(15, 15, 15, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 15, 15, 0.16);
  --shadow-lg: 0 26px 60px rgba(15, 15, 15, 0.25);

  /* Nav overrides */
  --nav-logo-h: 45px;
}

/* =====================
   2) Base
   ===================== */
html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--ubc-ink);
  background-color: #fff;
  padding-top: 72px;
}

@media (min-width: 992px) {
  body { padding-top: 84px; }
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ubc-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.display-4 { letter-spacing: -0.03em; }

/* =====================
   3) Utilities
   ===================== */
.text-muted-700 { color: var(--ubc-gray-700); }
.text-muted-500 { color: var(--ubc-gray-500); }
.text-gold { color: var(--ubc-gold); }
.bg-ubc-navy { background-color: var(--ubc-navy); }
.bg-ubc-ink { background-color: var(--ubc-ink); }
.bg-ubc-light { background-color: var(--ubc-gray-100); }
.bg-light { background-color: var(--ubc-gray-100) !important; }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-md { border-radius: var(--radius-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ubc-gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--ubc-gray-700);
  font-size: 1.05rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--ubc-gold);
  border-color: var(--ubc-gold);
  color: var(--ubc-ink);
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-outline-primary {
  color: var(--ubc-ink);
  border-color: var(--ubc-gold);
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: var(--ubc-gold);
  color: var(--ubc-ink);
}

.btn-light {
  color: var(--ubc-ink);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Links */
.a-underline-none a { text-decoration: none; }

/* =====================
   4) Header / Nav
   ===================== */
.site-header {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.bg-white {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.site-header .navbar-brand img {
  height: var(--nav-logo-h) !important;
  width: auto;
  display: block;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--ubc-ink);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--ubc-gold);
}

@media (max-width: 575.98px) {
  :root { --nav-logo-h: 42px; }
}

/* =====================
   5) Hero
   ===================== */
.hero { 
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.75) 0%, rgba(8, 8, 8, 0.7) 40%, rgba(8, 8, 8, 0.5) 100%);
  z-index: 1;
}

.hero > .container { position: relative; z-index: 2; }
.hero h1,
.hero p { color: #fff; }
.hero .btn { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); }
.hero .section-eyebrow { color: var(--ubc-gold); }

.hero-video .hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  filter: brightness(0.9);
}

/* =====================
   6) CTA Section
   ===================== */
.cta {
  background: radial-gradient(circle at top left, rgba(209, 162, 63, 0.2), transparent 45%), var(--ubc-black);
  color: #fff;
}

.cta h2 {
  color: var(--ubc-gold);
  font-weight: 700;
}
.cta .btn { font-weight: 600; }

/* =====================
   7) Footer
   ===================== */
footer { font-size: 0.95rem; }
footer p { margin-bottom: 0.25rem; }
footer .small { color: var(--ubc-gray-300); }

.bg-dark { background-color: var(--ubc-black) !important; }

.card {
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background-color: #fff;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.badge-primary {
  background-color: var(--ubc-gold);
  color: var(--ubc-ink);
}

.table thead th {
  border-bottom: 0;
  font-weight: 600;
  color: var(--ubc-ink);
}

.table .thead-light th {
  background-color: #f1eee8;
}

.form-control,
.custom-file-label {
  border-radius: 0.6rem;
}

/* =====================
   8) Responsive Tweaks
   ===================== */
@media (max-width: 991.98px) {
  .hero { min-height: 70vh; }
}

@media (max-width: 575.98px) {
  .section { padding: 3.5rem 0; }
  .hero .display-4 { font-size: 2rem; }
}

/* =====================
   9) Optional Reveal Animation
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
}
