/* Removes any default margin*/
*{
    margin: 0;
    padding: 0;
    font: sans-serif;
}
:root { --nav-h: 100px; }

/*always best to do the min height to any starting project, also for background-image
 the value must be in double quotes */
body{
    min-height: 100vh;
}

/* ---- HOME / INDEX ---- */
/* Mobile-first default: image fills the viewport */
#index_body{
  background-image: url("../images/final_background.png");
  background-repeat: no-repeat;
  background-size: cover;            /* full-bleed on mobile & tablets */
  background-position: center center;
  transition: background-size .25s ease, background-position .25s ease;
}

/* Desktop ≥1200px: show 10% left gutter (text column) */
@media (min-width: 1200px) {
  #index_body{
    background-size: 90% 100%;
    background-position: right 0;
  }
}

/* WEBP fallback examples (keep as body background, behind #index_body) */
@supports not (background-image: url("data:image/webp;base64,UklGRjIAAABXRUJQ")) {
    body { background-image: url("../images/miami_mkt_background_image.png"); }
}
@supports not (background-image: url("data:image/webp;base64,UklGRjIAAABXRUJQ")) {
    body { background-image: url("../images/background_image.png"); }
}

/* ---- NAVBAR ---- */
.navbarBody{
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav menu";
    align-items: center;
    height: var(--nav-h);
    position: relative;
    z-index: 10;
    font-size: 16px;
    font-family: Rubik Mono One, sans-serif;
    background-color: transparent;
}
.navbarMenu{ color: black; }
.navbarBody > ul { grid-area: nav; }
.navbarBody ul{
    list-style: none;
    display:flex;
    justify-content: flex-end;
    align-items: center;
    height: var(--nav-h);
    margin: 0;
    padding: 0;
}
.navbarBody li{ height: 100%;}
.navbarBody a{ height: 100%; padding: 0 30px; display:flex; align-items:center; color:black; text-decoration:none; }
.navbarBody a:hover{ text-decoration: underline; text-decoration-color:#2EC2E4; }

.socialsNav{
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 12px;
    min-width: max-content;   
}
.navbar_logo{
    position: relative;
    height: 60px;
    width: auto;
    display:block;
    left: -20px;
}
.navbarButtonHolder{
    grid-area: menu;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}
.navbarButton { fill: black; cursor: pointer; background: rgba(255,255,255,.1); border-radius:6px; }

.navbarButtonHolder .navbarButton{
  display: inline-block;
  width: 24px; height: 24px;
}
.navbarBody ul { display:none; }

/* Phones */
@media (max-width: 767.98px){
  :root { --nav-h: 56px; }
  .navbar_logo{ height: 48px; margin-top: 13%; }
  .navbarBody > ul { display:none !important; }
  .navbarButtonHolder .navbarButton { display:inline-block !important; }
}

/* Tablet & up: show menu, hide hamburger */
@media (min-width: 768px){
  .navbarBody > ul { display:flex !important; }
  .navbarButtonHolder .navbarButton { display:none !important; }
}

/* ---- SIDENAV ---- */
.sidenav {
  height: 100vh;
  background-color: lightgrey;
  color:black;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.5s;
  gap: 50px;
}
.sidenav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    height: 80px;
}
.sidenav-dropdown {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 8px;
}
.sidenav-dropdown a {
    height: auto;
    padding: 10px 12px;
    font-size: 14px;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    color: black;
}
.sidenav a:hover{ color: #fff; background-color: #222; }
.closebtn{ position: absolute; top: 10px; right: 25px; font-size: 36px; margin-left: 50px; }
.sidenav a:hover { color: #f1f1f1; }

/* ---- HERO CONTENT ---- */
.headerBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    margin-top: -250px;
    font-size: 55px;
    position: relative;
}
.homePageLogo{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
}
.homepage_slogo{
    width: 375px;
    height: auto;
    object-fit: contain;
}

/* Left gutter list (desktop layout) */
.categoryRow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    padding: 0;
    position: absolute;
    /* centered in the 10% gutter on the left */
    left: 5vw;
    top: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    align-items: center;
    width: 10vw;
    max-width: 10vw;
    text-align: center;
}
.categoryItem {
    color: white;
    font-size: 16px;
    font-family: Rubik Mono One, sans-serif;
    font-weight: 400;
    /* FIX: allow wrapping so it never bleeds onto the photo */
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.05;
    padding: 0;
}

/* -------- Desktop step-downs (no clamps/vars) -------- */
/* 1500–1351px */
@media (max-width: 1500px) and (min-width: 1351px){
  .categoryRow{ width: 9vw; max-width: 9vw; }
  .categoryItem{ font-size: 15px; }
  .homepage_slogo{ width: 520px; }
}
/* 1350–1200px */
@media (max-width: 1350px) and (min-width: 1200px){
  .categoryRow{ width: 8vw; max-width: 8vw; }
  .categoryItem{ font-size: 14px; }
  .homepage_slogo{ width: 480px; }
}

/* Phones */
@media (max-width: 767.98px) {
  #index_body{
    background-image: url("../images/updated_mkt_homepage.png");
    background-size: cover;
    background-position: center center;
  }
  .categoryRow{
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: min(88vw, 420px);
    margin: 12px auto 0;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  .categoryItem{
    font-size: 14px;
    line-height: 1.2;
  }
  .homepage_slogo{ width: min(72vw, 380px); }
}

/* Tablets & small desktops (center content + full-bleed bg) */
@media (max-width: 1199.98px) and (min-width: 768px){
  #index_body{
    background-image: url("../images/updated_mkt_homepage.png");
    background-size: cover;
    background-position: center center;
  }
  .categoryRow{
    position: static;
    left: auto; top: auto; transform: none;
    width: auto; max-width: min(70vw, 520px);
    margin: 16px auto 0;
    gap: 10px;
    align-items: center; text-align: center;
  }
  .categoryItem{ font-size: 15px; }
  .homepage_slogo{ width: min(52vw, 520px); }
}

/* Animations & shared header bits */
@keyframes snapRoll { from { transform: translateY(0); } to { transform: translateY(-300px); } }
@keyframes fadeLoop { 0%, 88% { opacity: 1; } 88.001%, 100% { opacity: 0; } }

.socialsNav,
.navbarButtonHolder,
.navbarBody > ul{
  height: 100%;
  display:flex;
  align-items:center;
}

/* ---- DROPDOWN ---- */
.dropdown { float: left; overflow: hidden; position: relative; overflow: visible; }
.dropdown .dropbtn { 
  border: none; outline: none; padding: 0 30px; background-color: transparent;
  color: black; margin: 0; font-size: 16px; font-family: Rubik Mono One, sans-serif; cursor: pointer;
  transition: text-decoration 0.3s ease;
}
.dropdown .dropbtn:hover { text-decoration: underline; text-decoration-color: #2EC2E4; }
.dropdown-content {
  display: none; position: absolute; min-width: 160px; z-index: 1;
  background: rgba(10,10,10,.72); backdrop-filter: saturate(120%) blur(6px);
  border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
  color: #fff; top: calc(100% + 5px);
}
.dropdown-content a {
  float: none; text-decoration: none; display: block; text-align: center;
  color: #fff; font-family: inherit; font-size: 13px; padding: 10px 12px 10px;
}
.firstHeaderDropdownMenu{ padding-top: 12px; padding-bottom: 8px; }
.dropdown-content h5{ color: #fff; text-align: center; font-size: 14px; font-family: inherit; }
.dropdown-content a:hover{ background: rgba(255,192,106,.14); color: #fff; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a small { display:block; font-size:12px; opacity:.85; }
.dropdown-content a.disabled { pointer-events:none; opacity:.6; }
.dropdown-content::before{
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; pointer-events: none;
}

/* ---- ABOUT / SUPPORT ---- */
#about_body{ background-image: url("../images/about_light.png"); }
@supports not (background-image: url("data:image/webp;base64,UklGRjIAAABXRUJQ")) {
    #about_body { background-image: url("../images/about_light.png"); }
}
.about_header{
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 16px 18px; background: rgba(255,255,255,0.94);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    position: relative; z-index: 2;
}
.about_header h1{
    color: #000; font-family: sans-serif; font-size: 52px;
    padding: 0 0 12px 0; text-align: left;
}
.about_us_p{
  color: #000; font-family: sans-serif; font-size: 18px; text-align: left;
  max-width: 55ch; line-height: 1.6; margin: 0 0 12px 0;
}
.slideshow-container {
  max-width: 700px; width: 100%; position: relative; display: block;
  right: auto; bottom: auto; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
  overflow: hidden; justify-self: end; 
}
/* Next & previous buttons */
.prev, .next {
  cursor: pointer; position: absolute; top: 50%;
  width: auto; padding: 16px; margin-top: -22px; color: white;
  font-weight: bold; font-size: 18px; transition: 0.6s ease;
  border-radius: 0 3px 3px 0; user-select: none; z-index: 5;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 0 3px 3px 0; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }
.text { color: #f2f2f2; font-size: 15px; padding: 8px 12px; position: absolute; bottom: 8px; width: 100%; text-align: center; }
.numbertext { color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0; }
.dot { cursor: pointer; height: 15px; width: 15px; margin: 0 2px; background-color: #bbb; border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; }
.active, .dot:hover { background-color: #717171; }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }
@media only screen and (max-width: 300px) { .prev, .next, .text {font-size: 11px} }

#support_body{ background-image: url("../images/about_light.png"); }
@supports not (background-image: url("data:image/webp;base64,UklGRjIAAABXRUJQ")) {
    #support_body { background-image: url("../images/about_light.png"); }
}

.about_section{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.25fr);
  gap: 12px 36px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 48px;
}
@media (max-width: 900px){ .about_section{ grid-template-columns: 1fr; } }
.about_section > *{ min-width: 0; }

.about_values{
  grid-column: 1 / -1;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 15px;
}
@media (max-width: 900px){ .about_values{ grid-template-columns: 1fr; } }

#about_body .about_values h3{ color: #000; font-family: sans-serif; font-size: 20px; margin-bottom: 6px; }
#about_body .about_values{
 background: rgba(255,255,255,0.94);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 16px 18px;
  position: relative;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
#about_body .about_values p{ color: #000; font-size: 15px; line-height: 1.5; }

#support_body .about_values{ position: relative; z-index: 4; }
#support_body .about_values h3{ color: #fff; }
#support_body .about_values p{ color: #ddd; }

.card-wide { grid-column: 1 / -1; width: 100%; max-width: none; }
.about_right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.dd-card { width: 100%; max-width: 700px; }
@media (max-width: 900px){ .about_right { align-items: stretch; } }

.categoryRow > span{ color: black; }

@media (max-width: 1700px) and (min-width: 1400px) {
    .navbar_logo {
        height: 50px;
    }

  }


@media (max-width: 1400px) and (min-width: 1200px) {
    .navbar_logo {
        height: 45px;
    }

  }