:root {
  /* Modern Color Palette */
  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --charcoal: #2d2d2d;
  --white: #ffffff;
  --off-white: #f8f8f8;

  --accent-gold: #d4af37;
  --accent-gold-light: #e8d08a;
  --accent-gold-dark: #b8941f;

  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(0, 0, 0, 0.1);

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  /* Used to offset content when the updates bar is present */
  --updates-h: 0px;
  --header-h: 80px;
}

/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Main content offset (header + optional updates bar) */
main {
  min-height: calc(100vh - var(--header-h));
  margin-top: 0;
  padding-top: calc(var(--header-h) + var(--updates-h));
}

/* Sections */
.scroll-container { scroll-behavior: smooth; }

.scroll-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  position: relative;
}

/* Keep hero flush because main already offsets */
.scroll-section:first-child { padding-top: 0 !important; }

.section-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem;
  width: 100%;
}

/* Header */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-dark);
  z-index: 1000;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.custom-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
  opacity: 0.3;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 50px;
  filter: invert(1);
  transition: var(--transition-fast);
}

.brand-content img {
  filter: invert(1);
  transition: var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Navigation */
.nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  position: relative;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gold);
  opacity: 0;
  border-radius: 6px;
  transition: var(--transition-fast);
  z-index: -1;
}

.nav-btn:hover { color: var(--white); }
.nav-btn:hover::before { opacity: 1; }

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border-dark);
  padding: 1.5rem 3rem;
}

.mobile-menu.active { display: block; }

.mobile-nav-btn {
  display: block;
  padding: 1rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.mobile-nav-btn:last-child { border-bottom: none; }

/* Attached Updates Bar (sticky under nav) */
.header-updates {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}


.header-updates::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
  opacity: 0.25;
}

.header-updates-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 3rem;
}

.header-updates-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

/* Make updates look like a clean announcement bar item (not big cards) */
.header-updates .homepage-message {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  transform: none;
}

.header-updates .homepage-message:hover {
  transform: none;
  box-shadow: none;
}

.header-updates .homepage-message::after {
  opacity: 0.06;
}

.header-updates .homepage-message::before {
  width: 4px;
}

.header-message__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-message__text {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.header-message__date {
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Hero Section */
.header-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { position: relative; }

.hero-text-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(800px, 90vw, 1400px);
  opacity: 0.08;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-text h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  letter-spacing: -2px;
}

.hero-text h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-gold);
  margin-top: 1rem;
}

.hero-text p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  line-height: 1.6;
  max-width: 600px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--black);
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

/* About Section */
.about-section { background: var(--white); }

.section-text-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.content-with-side-image {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
}

.section-inline-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(100%);
  transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-inline-image:hover { filter: grayscale(0%); }

.content-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.who-are-we-image {
  width: 280px;
  margin-bottom: 0;
  opacity: 0.9;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

/* Dashboard and Content Pages */
.dashboard-page,
.dashboard-container,
.apply-page-wrapper {
  padding: 2rem 0 3rem 0;
  min-height: calc(100vh - var(--header-h));
}

.scroll-section.dashboard-page,
.scroll-section.apply-page-wrapper,
.scroll-section.about-section:not(.header-section) {
  padding-top: 2rem;
  min-height: auto;
  display: block;
  align-items: flex-start;
}

.dashboard-page .section-content,
.dashboard-container,
.apply-page-wrapper .section-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.status-page-wrapper,
.hiring-page-wrapper {
  padding: 2rem 0 3rem 0;
}

/* Messages Section (compact, styled cards) */
.messages-section.messages-compact {
  min-height: auto;
  display: block;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--white);
}

.messages-section.messages-compact .section-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.messages-header {
  max-width: 1100px;
  margin: 0 auto 1.25rem auto;
}

.messages-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

.messages-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.homepage-messages {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .homepage-messages {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.homepage-message {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 1.1rem 1.1rem 0.85rem 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--msg-border, rgba(0, 0, 0, 0.2));
}

.homepage-message::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--msg-bg, transparent);
  opacity: 0.12;
  pointer-events: none;
}

.homepage-message__top,
.homepage-message__meta {
  position: relative;
  z-index: 1;
}

.homepage-message__top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.homepage-message__text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.homepage-message__meta {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: flex-end;
}

.homepage-message__date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.homepage-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

/* Brands Section */
.brands-section {
  background: var(--off-white);
  position: relative;
}

.brands-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
  opacity: 0.3;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4rem;
  text-align: left;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--accent-gold);
}

.brands-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.brand-logo {
  display: block;
  max-width: 260px;
  margin-bottom: 0.4rem;
}


.brand-block {
  background: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: 0;
  padding: 0;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.brand-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.brand-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-gold);
}

.brand-block:hover::before { transform: scaleX(1); }

.brand-with-image {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.brand-inline-image {
  width: 100%;
  height: 220px;          /* adjust if you want taller/shorter */
  object-fit: cover;      /* fills the box, no empty space */
  display: block;
  margin: 0;
}

.brand-block:hover .brand-inline-image { filter: grayscale(0%); }

.brand-content {
  padding: 1.6rem 2.2rem 2.2rem;
  flex: 1;
}

.brand-content img {
  margin-left: -1.5rem;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 0;
  letter-spacing: -0.5px;
}

.brand-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.brand-content p:last-child { margin-bottom: 0; }

.brand-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.scroll-dots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
}

.dot.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.3);
}

.dot:hover {
  background-color: var(--accent-gold);
  transform: scale(1.2);
}

/* Down Arrow */
.down-arrow {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--white);
  background: rgba(212, 175, 55, 0.9);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 1100;
  cursor: pointer;
}

.down-arrow:hover {
  transform: translateX(-50%) translateY(-5px);
  background: var(--accent-gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.down-arrow.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

/* Footer */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

footer .section-content { padding: 0; }

/* Images: auto-ungrayscale when visible */
.section-inline-image.is-visible,
.brand-inline-image.is-visible {
  filter: grayscale(0%);
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: all;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(400px);
  opacity: 0;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-success .toast-icon {
  background: #10b981;
  color: white;
}

.toast-error .toast-icon {
  background: #ef4444;
  color: white;
}

.toast-warning .toast-icon {
  background: #f59e0b;
  color: white;
}

.toast-info .toast-icon {
  background: #3b82f6;
  color: white;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toast-close:hover { color: var(--text-primary); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 12px 12px;
  transition: width linear;
}

.toast-success .toast-progress { background: #10b981; }
.toast-error .toast-progress { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-info .toast-progress { background: #3b82f6; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1::after { margin: 1rem auto 0; }

  .content-with-side-image {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-inline-image { height: 400px; }

  .brands-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-container { padding: 0 1.5rem; }
  .nav-buttons { display: none; }
  .mobile-menu-toggle { display: flex; }

  .section-content { padding: 3rem 1.5rem; }

  .dashboard-page,
  .dashboard-container,
  .apply-page-wrapper {
    padding: 1.5rem 0 2rem 0;
  }

  .dashboard-page .section-content,
  .dashboard-container,
  .apply-page-wrapper .section-content {
    padding: 0 1.5rem;
  }

  .hero-text h1 { font-size: 2.5rem; }
  .hero-text p { font-size: 1rem; }

  .content-with-side-image { gap: 2rem; }
  .section-inline-image { height: 300px; }
  .who-are-we-image { width: 200px; }

  .brands-container { gap: 2rem; }
  .brand-content { padding: 2rem; }

  .scroll-indicator { right: 1rem; }
  .dot { width: 8px; height: 8px; }

  .toast-container {
    top: 80px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }

  .header-updates-inner {
    padding: 0.8rem 1.5rem;
  }

  .header-message__date {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-container { padding: 0 1rem; }
  .section-content { padding: 2rem 1rem; }

  .hero-text h1 { font-size: 2rem; }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }

  .brand-content { padding: 1.5rem; }

  .header-updates-inner {
    padding: 0.8rem 1rem;
  }
}
