/* -----------------------------------
   Variables & Reset
----------------------------------- */
:root {
  --c-gold: #B08D57;
  --c-char: #2B2B2B;
  --c-ivory: #F3F2ED;
  --c-terra: #F94E3F;
  --c-sapph: #2A72D4;
  --c-header: rgb(16, 16, 13);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--c-ivory);
  color: var(--c-char);
  font-family: Carlito-regular, 'Merriweather', serif;
  line-height: 1.6;
  letter-spacing: 1.1px;
}

/*-----------------------
fonts
----------------------------*/
@font-face {
  font-family: Carlito-regular;
  src: url(./fonts/Carlito-Regular.ttf);
}

@font-face {
  font-family: constan;
  src: url(./fonts/constan.ttf);
}

/* -----------------------------------
   Layout Helpers
----------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* -----------------------------------
   Header & Navigation
----------------------------------- */
.site-header {
  width: 100vw;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-header);
  border-bottom: 1px solid #ddd;
  /* no margin, no max-width, fully stretches */
}

/* Centered, contained header content */
.header__inner,
.container.header__inner {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-ivory);
}

.logo {
  height: 100px;
}

.siteNavList {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.siteNavList a {
  position: relative;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--c-ivory);
  font-weight: 600;
  transition: color var(--transition);
}

.siteNavList a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.siteNavList a:hover {
  color: var(--c-gold);
}

.siteNavList a:hover::after {
  transform: scaleX(1);
}

/* --- NAVBAR HAMBURGER + SLIDE MENU --- */
.nav-hamburger {
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2002;
  margin-left: auto;
  margin-right: 0.2rem;
  padding: 0;
}

.nav-hamburger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 3px;
  background: var(--c-gold);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(.68, -0.55, .27, 1.55), opacity 0.18s;
}

.nav-hamburger span:nth-child(1) {
  transform: translate(-50%, -10px);
}

.nav-hamburger span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-hamburger span:nth-child(3) {
  transform: translate(-50%, 7px);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.27);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.23s;
}

/* -----------------------------------
   Hero Section
----------------------------------- */
.hero {
  position: relative;
  background: url('../images/hero_bg_comp.webp') center/cover no-repeat;
  padding: 10rem 0;
  color: #fff;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.hero__inner {
  position: relative;
  max-width: 600px;
}

.hero__inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  user-select: none;
  text-shadow: 2px 2px 0px #222;
}

.hero__inner p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0px #222;
}

.hero__shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
}

/* -----------------------------------
   Buttons
----------------------------------- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--c-sapph);
  color: var(--c-ivory);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background var(--transition);
  text-decoration: none;
  border-radius: 8px;
}

.btn:hover {
  background: var(--c-sapph);
}

.btn--center {
  display: block;
  margin: 2rem auto 0;
}

/* -----------------------------------
   Sections & Typography
----------------------------------- */
main {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  font-size: 2.75rem;
  color: var(--c-char);
  margin: 3rem 0 1.5rem;
  user-select: none;
}

.roboto-condensed-tvh {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

p {
  margin-bottom: 1.5rem;
}

/* -----------------------------------
   Events Grid & Cards
----------------------------------- */
.events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-left: 6px solid var(--c-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--c-char);
}

.card__dates {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.card__link {
  font-weight: 600;
  align-self: flex-start;
  text-decoration: none;
  color: var(--c-sapph);
  transition: color var(--transition);
}

.card__link:hover {
  color: var(--c-gold);
}

/* ----------------
brands
----------------------*/
#howItWorksSection {
  background-color: var(--c-header);
}

.brands {
  margin-top: 0px;
}

.brands p {
  margin-bottom: 1rem;
  color: var(--c-ivory);
}

/* Outer container centers the scrolling area */
.brands-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.brands-wrapper {
  overflow: hidden;
  width: 60%;
  margin-top: 8px;
}

#brandsScroll {
  display: flex;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  overflow-x: auto;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#brandsScroll::-webkit-scrollbar {
  display: none;
}

.brands-list {
  display: inline-flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.brands-list li {
  flex: 0 0 auto;
  margin: 0;
}

.brands-list li img {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.brands-list li img:hover {
  opacity: 1;
}

.brands-wrapper img,
.brands-scroll img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* -----------------------------------
   Footer
----------------------------------- */
.site-footer {
  background: var(--c-ivory);
  border-top: 1px solid var(--c-char);
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/*-------------------------*/
.signup-form-wrapper {
  max-width: 1020px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  overflow-x: hidden;
}

#SFctr {
  margin: 0 auto;
}

/* ----------------------- */
.pageHeader {
  margin-top: 2em;
}

.job-board-header {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#postJobBtn,
#editJobBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.05rem;
  min-width: 110px;
  padding: 0 0.95rem;
  font-size: 0.97rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(32, 32, 32, 0.08);
}

/* Blue gradient for Post a Job */
#postJobBtn {
  background: linear-gradient(135deg, #3176ea 0%, #57a0ee 100%);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(49, 118, 234, 0.09);
}

#postJobBtn:hover,
#postJobBtn:focus {
  background: linear-gradient(135deg, #225ba8 0%, #4690d5 100%);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(49, 118, 234, 0.16);
}

#postJobBtn:active {
  background: linear-gradient(135deg, #1a4173 0%, #327dcf 100%);
  color: #e7eefe;
  box-shadow: 0 1px 3px 0 rgba(49, 118, 234, 0.08);
}

/* Subtle blue-gray for Edit Post */
#editJobBtn.btn--secondary {
  background: linear-gradient(135deg, #f5f7fa 0%, #dbeafd 100%);
  color: #2661a6;
  border: 1px solid #b9c9e7;
  box-shadow: 0 2px 8px 0 rgba(49, 118, 234, 0.07);
}

#editJobBtn.btn--secondary:hover,
#editJobBtn.btn--secondary:focus {
  background: linear-gradient(135deg, #e8f0fa 0%, #b4cdf2 100%);
  color: #18457a;
  border-color: #8bb4e4;
}

#editJobBtn.btn--secondary:active {
  background: linear-gradient(135deg, #d3e2f7 0%, #a2bfe0 100%);
  color: #133358;
  border-color: #6893bb;
}

/* Responsive adjustments */
@media (max-width: 900px) {

  #postJobBtn,
  #editJobBtn {
    font-size: 0.94rem;
    height: 1.82rem;
    padding: 0 0.6rem;
    min-width: 94px;
    border-radius: 5px;
  }
}

@media (max-width: 600px) {

  #postJobBtn,
  #editJobBtn {
    font-size: 0.91rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    min-width: 86px;
    border-radius: 4px;
  }
}

/* TAB NAVIGATION */
.modern-tabs {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 2px solid #e2e2e2;
  margin-bottom: 2rem;
  position: relative;
}

.modern-tab {
  padding: 0.7rem 2.1rem 0.7rem 1.5rem;
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--c-char);
  outline: none;
  transition: color 0.19s, border 0.22s;
  cursor: pointer;
  letter-spacing: 0.01em;
  position: relative;
  text-decoration: none;
}

.modern-tab.active,
.modern-tab[aria-current="page"] {
  color: var(--c-sapph);
  border-bottom: 2.5px solid var(--c-sapph);
  background: none;
  pointer-events: none;
  cursor: default;
}

.modern-tab:not(.active):hover {
  color: var(--c-gold);
}

/* Event Buttons Row */
.event-btn-header {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#manageEventBtn,
#addEventBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  padding: 0 1.1rem;
  font-size: 0.98rem;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(32, 32, 32, 0.08);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  text-decoration: none;
}

#addEventBtn {
  background: var(--c-gold);
  color: var(--c-char);
  transition: background 0.2s, color 0.2s;
}

#addEventBtn:hover {
  background: var(--c-sapph);
  color: var(--c-ivory);
}

#manageEventBtn.btn--secondary {
  background: #eee;
  color: var(--c-char);
  border: 1px solid var(--c-gold);
  transition: background 0.2s, color 0.2s, border 0.2s;
}

#manageEventBtn.btn--secondary:hover {
  background: var(--c-gold);
  color: var(--c-char);
  border-color: var(--c-sapph);
}

/* ------------------- MOBILE RESPONSIVE REFACTOR ------------------- */
@media (max-width: 900px) {

  .container {
    width: 98%;
    padding: 0 1rem;
    max-width: 100vw;
  }

  .signup-form-wrapper {
    max-width: 100vw;
    padding: 1.2rem 0.5rem 2rem 0.5rem;
    border-radius: 0;
    box-shadow: none;
  }

  .pageHeader {
    margin-top: 1.5em;
  }

  h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
  }

  .hero {
    padding: 4.2rem 0 2.2rem 0;
    background-position: center;
    background-size: cover;
  }

  .hero__inner {
    max-width: 98vw;
    padding: 0 0.5rem;
  }

  .hero__inner h1 {
    font-size: 2.1rem;
    text-align: left;
  }

  .hero__inner p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 1rem;
    border-radius: 6px;
  }

  .btn--center {
    margin: 1.1rem auto 0;
  }

  .modern-tabs {
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modern-tab {
    padding: 0.55rem 1.2rem 0.55rem 0.8rem;
    font-size: 1rem;
    white-space: nowrap;
  }

  .job-board-header,
  .event-btn-header {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
    margin-bottom: 1.1rem;
  }

  #postJobBtn,
  #editJobBtn,
  #addEventBtn,
  #manageEventBtn {
    font-size: 0.97rem;
    padding: 0.7rem 0.9rem;
    width: 100%;
    justify-content: center;
    border-radius: 6px;
    height: 2.1rem;
  }

  .brands-wrapper {
    width: 98vw !important;
    min-width: 0 !important;
  }

  #brandsScroll {
    padding-bottom: 0.5rem;
  }

  .brands-list {
    gap: 1rem;
  }

  .brands-list li img {
    height: 36px;
    max-width: 76px;
  }

  .events__grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .card {
    padding: 1.1rem;
    border-left: 4px solid var(--c-gold);
    font-size: 1rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card__dates {
    font-size: 0.92rem;
  }

  .site-footer {
    padding: 1.4rem 0;
    margin-top: 2rem;
    font-size: 1rem;
  }

  .logo {
    height: 52px;
  }

  .header__inner {
    flex-direction: row;
    align-items: center;
    padding: 0.6rem 0;
    gap: 0.5rem;
  }

  .siteNavList {
    gap: 0.7rem;
  }

  /* Hamburger shows only at <=900px */
  .nav-hamburger {
    display: flex;
    width: 40px;
    height: 40px;
    margin-right: 1rem;
  }

  .nav-hamburger span {
    width: 25px;
    height: 3px;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -74vw;
    width: 70vw;
    max-width: 340px;
    height: 100vh;
    background: var(--c-header);
    box-shadow: -5px 0 28px rgba(0, 0, 0, 0.17);
    z-index: 2001;
    transition: right 0.37s cubic-bezier(.68, -0.55, .27, 1.55);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
  }

  .site-nav.active {
    right: 0;
  }

  .siteNavList {
    flex-direction: column;
    gap: 1.5rem;
    padding: 3.7rem 0 0 0;
    font-size: 1.1rem;
  }

  .siteNavList li a {
    color: var(--c-gold);
    font-size: 1.2rem;
    padding: 0.4rem 0 0.4rem 1.2rem;
    width: 100%;
    display: block;
    border-radius: 7px 0 0 7px;
    transition: background 0.19s, color 0.22s;
  }

  .siteNavList li a:hover,
  .siteNavList li a:focus {
    background: rgba(176, 141, 87, 0.10);
    color: var(--c-ivory);
    outline: none;
  }

  .nav-overlay {
    display: block;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  .container {
    width: 100vw;
    padding: 0 0.5rem;
    max-width: 100vw;
  }

  .signup-form-wrapper {
    max-width: 100vw;
    padding: 0.8rem 0.2rem 1.5rem 0.2rem;
    border-radius: 0;
  }

  .pageHeader {
    margin-top: 0.8em;
  }

  h2 {
    font-size: 1.4rem;
    margin: 1.3rem 0 0.7rem;
  }

  .hero {
    padding: 2.7rem 0 1.2rem 0;
  }

  .hero__inner {
    max-width: 100vw;
    padding: 0 0.1rem;
  }

  .hero__inner h1 {
    font-size: 1.28rem;
  }

  .hero__inner p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .btn {
    padding: 0.6rem 0.7rem;
    font-size: 0.97rem;
    border-radius: 5px;
  }

  .modern-tabs {
    font-size: 0.96rem;
    gap: 0.22rem;
    margin-bottom: 0.8rem;
  }

  .modern-tab {
    padding: 0.38rem 0.9rem 0.38rem 0.6rem;
    font-size: 0.93rem;
  }

  .job-board-header,
  .event-btn-header {
    gap: 0.5rem;
    margin-bottom: 0.7rem;
  }

  #postJobBtn,
  #editJobBtn,
  #addEventBtn,
  #manageEventBtn {
    font-size: 0.94rem;
    padding: 0.5rem 0.5rem;
    height: 2rem;
    border-radius: 5px;
  }

  .brands-list {
    gap: 0.6rem;
  }

  .brands-list li img {
    height: 26px;
    max-width: 52px;
  }

  .events__grid {
    gap: 0.5rem;
  }

  .card {
    padding: 0.7rem;
    border-left: 3px solid var(--c-gold);
    font-size: 0.97rem;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card__dates {
    font-size: 0.87rem;
  }

  .logo {
    height: 38px;
  }

  .header__inner {
    flex-direction: row;
    align-items: center;
    padding: 0.3rem 0;
    gap: 0.2rem;
  }

  .siteNavList {
    gap: 0.45rem;
    font-size: 0.96rem;
  }

  /* Hamburger tightens up for tiny screens */
  .nav-hamburger {
    width: 34px;
    height: 34px;
    margin-right: 1rem;
  }

  .nav-hamburger span {
    width: 20px;
    height: 2.5px;
  }
}

/* Mobile override for .container.header__inner */
@media (max-width: 900px) {

  .container.header__inner,
  .header__inner {
    padding-right: 0.7rem !important;
    padding-left: 0.7rem !important;
  }
}

@media (max-width: 600px) {

  .container.header__inner,
  .header__inner {
    padding-right: 0.3rem !important;
    padding-left: 0.3rem !important;
  }
}


/* 00000 */
.mw-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  /*min-height: 120px;*/
  width: 100%;
  font-size: 1.25rem;
  color: var(--c-sapph, #2A72D4);
  background: rgba(245, 245, 245, 0.65);
  animation: mwLoaderPulse 1s infinite alternate;
}

@keyframes mwLoaderPulse {
  0% {
    opacity: 0.68;
  }

  100% {
    opacity: 1;
  }
}

.mw-fade-in {
  opacity: 1 !important;
  transition: opacity 0.5s;
}

.mw-fade-out {
  opacity: 0 !important;
  transition: opacity 0.4s;
  pointer-events: none;
}

/*
CSS & Colors
Changing Button & Link Colors
The following CSS rules change the color and background of the buttons, in this case to a gray background (#666) with white (#f8f8f8) text:

body #SFctr button, body #SFctr a.SFbtn{color:#f8f8f8;background:#666}
body #SFctr button:hover, body #SFctr a.SFbtn:hover {color:#fff;background-color:#444;text-decoration:none}
The following changes the color of all links to red:

body #SFctr a,body #SFctr .SFlnk{color:#e73e46;text-decoration:none}
body #SFctr a:hover,body #SFctr .SFlnk:hover{color:#d20e17;text-decoration:underline}
*/

body #SFctr button,
body #SFctr a.SFbtn {
  border-radius: 6px;
}