/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Body */
body { font-family: 'Space Grotesk', sans-serif; background: #fff; color: #000; }

/* Top nav */
.top-nav { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 2rem; border-bottom: 2px solid #000; position: relative; z-index: 1000; }

/* Logo */
.nav-left { font-weight: 700; font-size: 1.5rem; }

/* Center nav */
.nav-center { display: flex; gap: 1.5rem; }

/* Nav link */
.nav-item > a {
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  text-transform: uppercase;
  display: block;
}

/* Hover nav link */
.nav-item > a:hover { background: #000; color: #fff; border-radius: 0; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%; /* No gap, so mouse can move smoothly */
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  border: 2px solid #000;
  border-radius: 0.5rem;
  box-shadow: 4px 4px 0 #000;
  z-index: 1500;
  padding: 0; /* Remove padding from .dropdown itself */
  /* Remove border-top and box-shadow for spacing */
  left: 50%;
  transform: translateX(-50%);
  max-width: 95vw;
  min-width: 200px;
  width: auto;
}
@media (max-width: 700px) {
  .dropdown {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* Dropdown list */
.dropdown ul {
  list-style: none;
  padding: 1em 2em; /* Add padding to the dropdown content */  margin: 0; /* Remove top margin, handled by .dropdown top */
  padding-top: 12px; /* Visual separation from main nav */
  padding-bottom: 5.5rem;
  position: relative;
  z-index: 1;
  background: none !important;
}
.main-nav .nav-item > a {
    border-bottom: none;
}
.dropdown li + li { margin-top: 0.5rem; }
.dropdown a { color: #000; font-weight: 600; text-decoration: none; display: block; padding: 0.5rem; }

/* Dropdown hover effect */
.dropdown a:hover { background: rgba(0,0,0,0.1); text-decoration: none; }

/* Dropdown colors */
.yellow { background: #FCDE19; }
.blue { background: #2DAAE1; }
.green { background: #7BC797; }
.purple { background: #B6AFD7; }

/* Icons */
.nav-right { display: flex; gap: 1rem; align-items: center; }
.icon-btn { background: none; border: none; cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; stroke: #000; fill: none; }

/* Avatar */
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #000; }

/* Profile panel */
.profile-panel { position: fixed; top: 64px; right: -300px; width: 260px; background: #000; color: #fff; padding: 1rem; box-shadow: -4px 0 0 #000; transition: right 0.3s; z-index: 2000; }
.profile-panel.open { right: 0; }
.panel-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.panel-header .avatar { width: 32px; height: 32px; border: 2px solid #fff; }
.panel-info strong { font-size: 1rem; }
.panel-info .job-title { font-size: 0.875rem; margin: 0; color: #ccc; }

/* Panel menu */
.panel-menu { list-style: none; padding: 0; }
.panel-menu li + li { margin-top: 0.75rem; }
.panel-menu a { color: #FCDE19; text-decoration: none; font-weight: 600; }

/* Main content */
main {
  padding: 2rem;
  margin-top: 2rem; /* Push grid down below carousel */
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive font sizes for cards */
.card h1 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.card p {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.2rem);
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
}

/* Card */
.card {
  border: 2px solid #000;
  padding: 1.5rem;
  transition: box-shadow 0.3s;
  border-radius: 0.5rem;
  position: relative;
}
.card:hover { box-shadow: 4px 4px 0 #000; }
/* Content fonts */
.card h1 { font-size: 1.75rem; text-transform: uppercase; margin-bottom: 0.75rem; }
.card p { font-size: 1.1rem; }

/* Button */
.btn-primary {
  background: #C22032;
  color: #fff;
  border: none;
  padding: 0.9rem 2.2rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: box-shadow 0.2s;
  border-radius: 0.5rem;
}
.btn-primary:hover { box-shadow: 4px 4px 0 #000; }

/* Show dropdown when hovering over nav-item or dropdown itself */
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.dropdown:hover,
.dropdown:focus-within {
  display: block;
}

/* Keep parent nav link hover effect while subnav is active */
.nav-item:hover > a,
.nav-item:focus-within > a,
.nav-item:has(.dropdown:hover) > a {
  background: #000;
  color: #fff;
  border-radius: 6px;
}

.nav-item {
  position: relative;
}

/* Remove bullets from main nav and dropdown */
.main-nav,
.dropdown {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Import Spin Hamburger CSS from jonsuh.com */
@import url('https://cdnjs.cloudflare.com/ajax/libs/hamburgers/1.1.3/hamburgers.min.css');

/* All custom .hamburger, .hamburger-inner, .bar styles have been removed to avoid conflicts with the imported Spin hamburger CSS. */

/* Custom Hamburger Styles - Robust Absolute Positioning */
.custom-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 3000;
  padding: 0;
}
.custom-hamburger .bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(.77,0,.18,1);
}
.custom-hamburger .bar:nth-child(1) {
  top: 14px;
}
.custom-hamburger .bar:nth-child(2) {
  top: 21px;
}
.custom-hamburger .bar:nth-child(3) {
  top: 28px;
}
@media (max-width: 900px) {
  .custom-hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 1rem;
    width: 44px;
    height: 44px;
  }
}
/* Hamburger to X spin animation (clockwise, robust) */
.custom-hamburger.is-active .bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.custom-hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}
.custom-hamburger.is-active .bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Desktop nav centering */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2rem;
  border-bottom: 2px solid #000;
  position: relative;
  z-index: 1000;
}
.main-nav.nav-center {
  display: flex;
  gap: 1.5rem;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

/* Hamburger only visible on mobile */
.hamburger {
  display: none;
}

@media (max-width: 900px) {
  .main-nav.nav-center {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 1rem;
  }
  .nav-right {
    display: none;
  }
  .top-nav {
    position: relative;
  }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    border-bottom: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.77,0,.18,1);
    z-index: 2500;
    margin: 0;
    width: 100%;
  }
  .main-nav.open {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(.77,0,.18,1);
  }
  .main-nav .nav-item > a {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    border-radius: 0 !important;
  }
  .nav-center {
    gap: 0;
  }
  /* Mobile dropdowns: vertical, static, full width, no color/padding/margin when closed */
  .dropdown {
    position: static !important;
    left: 0 !important;
    top: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100%;
    box-shadow: none !important;
    border: none !important;
    display: block;
    padding: 0;
    margin: 0;
    border-radius: 0 !important;
    max-height: 0;
    overflow: hidden;
    background: none !important;
    transition: max-height 0.35s cubic-bezier(.77,0,.18,1), padding 0.2s, background 0.2s;
  }
  .nav-item.open .dropdown {
    max-height: 500px;
    padding: 0.5rem 2rem;
    /* Apply color only when open */
    padding-bottom: 3.5rem;
  }
  .nav-item.open .dropdown.yellow { background: #FCDE19 !important; }
  .nav-item.open .dropdown.blue { background: #2DAAE1 !important; }
  .nav-item.open .dropdown.green { background: #7BC797 !important; }
  .nav-item.open .dropdown.purple { background: #B6AFD7 !important; }
  .dropdown ul {
    padding: 0;
    margin: 0;
    border: none;
  }
  .dropdown li + li {
    margin-top: 0.5rem;
  }
  /* Remove all border-radius from nav-item, dropdown, and children */
  .dropdown, .dropdown ul, .dropdown li, .dropdown a, .nav-item {
    border-radius: 0 !important;
  }
  .nav-item {
    position: static;
  }
  .nav-item > a::after {
    content: '\25BC';
    float: right;
    font-size: 0.8em;
    margin-left: 0.5em;
    transition: transform 0.2s;
  }
  .nav-item.open > a::after {
    transform: rotate(180deg);
  }
}

/* Slick Carousel Styles */
.slick-carousel {
  width: 100%;
  max-width: none;
  margin: 2.5rem 0 10rem 0;
  padding-left: 0;
  padding-right: 0;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 42.85%; /* 21:9 aspect ratio for less tall image */
  overflow: visible;
}
.carousel-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
  /* Ensure image is visible */
  opacity: 1;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), filter 0.5s cubic-bezier(.77,0,.18,1);
}
.carousel-slide:hover img {
  transform: scale(1.06);
  /* Removed duotone: only a subtle brightness/contrast boost for pop */
  filter: contrast(1.08) brightness(1.04);
}
.carousel-caption {
  position: absolute;
  left: 62px;
  right: 62px;
  bottom: 0;
  opacity: 0;
  transform: translateY(70%);
  background: #fff;
  border: 2px solid #111;
  border-radius: 0.5rem;
  padding: 2rem 3rem;
  text-align: left;
  color: #111;
  transition: opacity 0.7s 0.2s, transform 0.7s 0.2s;
  will-change: opacity, transform;
}
.carousel-slide.active .carousel-caption {
  opacity: 1;
  transform: translateY(50%);
}
.carousel-caption h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.carousel-caption h3 {
  font-size: clamp(1.1rem, 1.2vw + 1rem, 1.3rem);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.carousel-caption p {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.2rem);
  margin-bottom: 1.25rem;
  color: #222;
}
.carousel-caption .btn-primary {
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 0.5rem;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  z-index: 2;
  /* Remove box-shadow */
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.10); */
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Make sure arrows are children of .carousel-track for correct centering */
}
.carousel-arrow.left { left: 18px; }
.carousel-arrow.right { right: 18px; }
.carousel-arrow:hover {
  background: #000;
  color: #fff;
}
.carousel-dots {
  display: none !important;
  position: static;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}
.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  cursor: pointer;
  opacity: 0.6;
  transition: background 0.2s, opacity 0.2s;
}
.carousel-dots .dot.active {
  background: #C22032;
  opacity: 1;
  border-color: #C22032;
}
@media (max-width: 700px) {
  .slick-carousel {
    max-width: 100%;
    border-radius: 0;
  }
  .carousel-slide img {
    border-radius: 0;
  }
  .carousel-caption {
    padding: 1rem;
    border-radius: 0.5rem;
    min-width: 0;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
@media (max-width: 900px) {
  .container {
    padding: 0 1rem;
    width: 100%;
  }
}
.slick-carousel, main {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.grid {
  max-width: none;
}

/* Keep .avatar and .carousel-arrow at 50% for circular shape */
.avatar { border-radius: 50%; }
.carousel-arrow { border-radius: 50%; }

/* --- Footer Styles --- */
.site-footer {
  background: #181818;
  color: #fff;
  padding: 2rem 0 0.5rem 0;
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 4rem;
}
.footer-top-nav {
  border-bottom: 1px solid #333;
  padding: 1.5rem 0 0.5rem 0;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.footer-nav a {
  color: #FCDE19;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem 2rem;
}
.footer-col {
  flex: 1 1 180px;
  min-width: 180px;
}
.footer-col h3 {
  color: #FCDE19;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.7rem;
}
.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #FCDE19;
}
.footer-search {
  flex: 2 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.footer-search-form {
  display: flex;
  margin-top: 1rem;
  background: #222;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid #333;
}
.footer-search-form input[type="text"] {
  flex: 1;
  padding: 1.1rem 1.5rem;
  font-size: 1.2rem;
  border: none;
  outline: none;
  background: #222;
  color: #fff;
}
.footer-search-form input[type="text"]::placeholder {
  color: #bbb;
  opacity: 1;
}
.footer-search-form button {
  background: #C22032;
  border: none;
  color: #fff;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.3rem;
  border-left: 1px solid #333;
}
.footer-search-form button:hover {
  background: #FCDE19;
  color: #C22032;
}
.footer-search-form svg {
  display: block;
}
.footer-bottom {
  text-align: center;
  color: #bbb;
  font-size: 1rem;
  padding: 1.2rem 0 0.2rem 0;
  border-top: 1px solid #333;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1rem 1rem 1rem;
  }
  .footer-col, .footer-search {
    min-width: 0;
    width: 100%;
  }
}
.site-footer .footer-col ul ul {
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
  margin-left: 1.2rem;
  padding-left: 0.5rem;
  list-style: none;
}
.site-footer .footer-col ul ul li {
  margin-bottom: 0.4rem;
}
.site-footer .footer-col ul ul li a {
  font-size: 0.97rem;
  color: #FCDE19;
  opacity: 0.95;
  font-weight: 500;
}
.site-footer .footer-col ul ul li a:hover {
  color: #fff;
  opacity: 1;
}
.footer-logo {
  text-align: center;
  margin-bottom: 0.5rem;
}
.footer-logo img {
  height: 70px;
  width: auto;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin-bottom: 0;
  /* Remove background, border, box-shadow, and padding */
  background: none;
  border: none;
  box-shadow: none;
  width: 48px;
  height: 48px;
  padding: 0;
  z-index: 2;
}
.card-icon svg {
  transition: stroke-dashoffset 1.5s ease;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.card:hover .card-icon svg {
  transition: stroke-dashoffset 1.5s ease;
  stroke-dashoffset: 0;
}
.card:not(:hover) .card-icon svg {
  transition: stroke-dashoffset 0.5s ease;
}

.icon-animate {
  will-change: transform;
}
.icon-wrench {
  animation: wrench-wiggle 1.2s infinite cubic-bezier(.77,0,.18,1);
}
@keyframes wrench-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-18deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}
.icon-palm {
  animation: palm-bounce 1.8s infinite cubic-bezier(.77,0,.18,1);
}
@keyframes palm-bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-8px); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(-4px); }
  80% { transform: translateY(2px); }
}
.icon-wallet {
  animation: wallet-pop 1.5s infinite cubic-bezier(.77,0,.18,1);
}
@keyframes wallet-pop {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(0.96); }
  60% { transform: scale(1.08); }
  80% { transform: scale(1.02); }
}
.icon-megaphone {
  animation: megaphone-shake 1.3s infinite cubic-bezier(.77,0,.18,1);
}
@keyframes megaphone-shake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-8deg); }
  30% { transform: rotate(8deg); }
  45% { transform: rotate(-6deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-4deg); }
  90% { transform: rotate(4deg); }
}
.icon-cap {
  animation: cap-swing 1.7s infinite cubic-bezier(.77,0,.18,1);
}
@keyframes cap-swing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-6deg); }
}
.icon-user {
  animation: user-float 2s infinite cubic-bezier(.77,0,.18,1);
}
@keyframes user-float {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-6px); }
  40% { transform: translateY(3px); }
  60% { transform: translateY(-3px); }
  80% { transform: translateY(2px); }
}

.dropdown-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  pointer-events: none;
}
.dropdown-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Remove .dropdown-freak-* and related ::after styles */
.dropdown ul {
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  background: none !important;
}

@keyframes freak-bounce {
  0%, 100% { transform: scale(1) translateY(0); }
  20% { transform: scale(1.08, 0.92) translateY(-8px); }
  40% { transform: scale(0.96, 1.04) translateY(4px); }
  60% { transform: scale(1.04, 0.98) translateY(-4px); }
  80% { transform: scale(0.98, 1.02) translateY(2px); }
}
.nav-item.open .dropdown-freak-anim {
  animation: freak-bounce 1.2s cubic-bezier(.77,0,.18,1) infinite;
}
.dropdown-freak-anim {
  filter: brightness(0) saturate(100%);
  mix-blend-mode: multiply;
  opacity: 0.95;
}

