/* ==========================================================================
   Variables & base
   ========================================================================== */

:root {
  --primary-orange: #ff7c36;
  --dark-bg: #292929;
  --light-text: #f5f2eb;
  --black-bg: #010101;
  --gallery-gap: 1rem;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Suisse Intl", sans-serif;
  background-color: var(--dark-bg);
  margin: 0;
  padding: 1rem;
}

/* ==========================================================================
   Layout: Header (mobile base)
   ========================================================================== */

.header-top {
  background-color: var(--dark-bg);
  padding: 2rem 0;
}

.logo-img {
  width: 200px;
  /* height: 50px;*/
} 

.logo-text {
  width: 144px;
  height: 28px;
}

.nav-link-custom {
  font-family: "SF Pro", sans-serif;
  font-size: 1.25rem;
  color: var(--primary-orange);
  text-decoration: none;
  white-space: nowrap;
}

.contact-dot {
  width: 34px;
  height: 14px;
  background-color: var(--primary-orange);
  border-radius: 20px;
}

/* ==========================================================================
   Layout: Hero (mobile base)
   ========================================================================== */

.hero-section {
  background-color: var(--dark-bg);
  padding: 3rem 0;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  color: var(--light-text);
  letter-spacing: -0.03em;
  margin: 0;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  line-height: 1;
  border: 2.33px solid var(--light-text);
  border-radius: 117px;
  color: var(--light-text);
  text-transform: uppercase;
  font-size: 1.5rem;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.filter-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-sizing: border-box;
}

.filter-icon-wrap .filter-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: none;
}

.filter-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Layout: Gallery (mobile base)
   ========================================================================== */

.gallery-section {
  background-color: var(--dark-bg);
  padding: 1rem 0;
}

.project-card {
  position: relative;
  border-radius: 37px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.project-card-sm {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.project-img {
  width: 100%;
  height: auto;
  display: block;
}

.project-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--black-bg);
  border: 1.56px solid var(--primary-orange);
  border-radius: 156px;
  padding: 12px 19px;
  color: #ff6b1b;
  font-size: 1.17rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.project-label a {
  color: inherit;
  text-decoration: none;
}

.project-label:hover {
  background-color: var(--primary-orange);
  color: var(--black-bg);
}

/* Gallery row 1: mobile stack */
.gallery-row-1 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: var(--gallery-gap) 0;
  margin-bottom: var(--gallery-gap);
}

.gallery-row-1-left {
  min-height: 0;
  overflow: hidden;
}

.gallery-row-1-left .project-card {
  margin-bottom: 0;
}

.gallery-row-1-right {
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
}

.gallery-row-1-right .project-card-sm {
  margin-bottom: 0;
}

.gallery-row-1-right .project-card-sm .project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery row 2: mobile stack */
.gallery-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gallery-gap) 0;
  margin-bottom: var(--gallery-gap);
}

.gallery-row-2-left {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
}

.gallery-row-2-left .project-card-sm {
  margin-bottom: 0;
}

.gallery-row-2-left .project-card-sm .project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-row-2-right {
  min-height: 0;
  overflow: hidden;
}

.gallery-row-2-right .project-card {
  margin-bottom: 0;
}

.gallery-row-2-right .project-card .project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery row 3: mobile stack */
.gallery-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gallery-gap) 0;
  margin-bottom: 0;
}

.gallery-row-3-left {
  min-height: 0;
  overflow: hidden;
}

.gallery-row-3-left .project-card {
  margin-bottom: 0;
}

.gallery-row-3-right {
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
}

.gallery-row-3-right .project-card-sm {
  margin-bottom: 0;
}

.gallery-row-3-right .project-card-sm .project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.robo-emoji {
  font-size: 1.5em;
  vertical-align: top;
  line-height: 1;
}

/* Small screens: square aspect for stacked cards */
@media (max-width: 991px) {
  /* Mobile card order: Aireal before Notagolfcart/Ninja ZX6R */
  .gallery-row-2-right {
    order: -1;
  }

  .gallery-row-2-left {
    order: 0;
  }

  .gallery-row-1-left .project-card {
    aspect-ratio: 1;
    width: 100%;
    min-height: 200px;
  }

  .gallery-row-1-left .project-card .project-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-row-1-right .project-card-sm {
    aspect-ratio: 1;
  }

  .gallery-row-2-left .project-card-sm {
    aspect-ratio: 1;
  }

  .gallery-row-2-right .project-card {
    aspect-ratio: 1;
    width: 100%;
    min-height: 200px;
  }

  .gallery-row-3-left .project-card {
    aspect-ratio: 1;
    width: 100%;
    min-height: 200px;
  }

  .gallery-row-3-left .project-card .project-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-row-3-right .project-card-sm {
    aspect-ratio: 1;
  }
}

/* ==========================================================================
   Layout: Footer (mobile base)
   ========================================================================== */

.footer-section {
  padding: 1rem 0 4rem;
  position: relative;
}

.footer-container {
  width: 100%;
  max-width: 1400px;
  padding-left: var(--bs-gutter-x, 1rem);
  padding-right: var(--bs-gutter-x, 1rem);
}

.footer-padding {
  padding: 2rem 0;
  position: relative;
}

.footer-divider {
  height: 1px;
  background-color: #ddd;
  margin: 5rem 0;
}

.footer-info {
  margin-bottom: 10rem;
}

.footerTextHeader {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--light-text);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footerText {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.footerText a {
  color: var(--light-text);
  text-decoration: none;
}

.footerText a:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-col {
  flex: 0 0 auto;
}

.footer-col-style {
  font-size: 1rem;
  color: var(--light-text);
}

.footer-col-style a {
  color: var(--light-text);
  text-decoration: none;
}

.footer-col-style a:hover {
  color: var(--primary-orange);
}

.footer-col-left {
  flex: 1 1 0;
  min-width: 0;
}

.footer-col-center {
  flex: 0 0 auto;
  min-width: 0;
  text-align: center;
}

.footer-col-right {
  flex: 1 1 auto;
}

.footer-last-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.nowrap {
  white-space: nowrap;
}

.blurb {
  position: absolute;
  right: -4rem;
  top: 19%;
  z-index: 1;
  pointer-events: none;
}

.blurb-graphic {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
}

.fuse-logo-footer {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 4rem;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Mobile: max-width 768px
   ========================================================================== */

@media (max-width: 768px) {
  /* Header */
  .header-top {
    padding: 2rem 0;
  }

  .nav-link-custom {
    font-size: 1rem;
  }

  /* Hero */
  .hero-title {
    font-size: 3rem;
  }

  .hero-section {
    padding: 1rem 0;
  }

  .category-btn {
    height: 36px;
    font-size: 0.875rem;
    padding: 0 14px;
  }

  .filter-icon-wrap {
    width: 36px;
    height: 36px;
  }

  .filter-icon-wrap .filter-icon,
  .filter-icon {
    width: 36px;
    height: 36px;
  }
  
  .gallery-section {
    padding: 0;
  }

  .project-label {
    padding: 8px 14px;
    bottom: 12px;
    left: 12px;
  }

  /* Footer */
  .footer-section {
    padding: 0;
  }

  .footer-padding {
    padding: 0;
  }

  .footer-info {
    margin-bottom: 1rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col-center {
    text-align: left;
  }

  .footer-last-col {
    justify-content: flex-start;
  }

  .footer-divider {
    margin: 3rem 0;
  }

  .blurb {
    margin-top: -1rem;
    max-width: 170px;
    margin-left: auto;
  }

  .blurb-graphic {
    max-width: 260px;
  }
}

/* ==========================================================================
   Tablet: 769px–991px
   ========================================================================== */

@media (max-width: 991px) and (min-width: 769px) {
  .footer-info {
    margin-bottom: 4rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col-center {
    text-align: left;
  }

  .footer-last-col {
    justify-content: flex-start;
  }

  .blurb {
    top: 20%;
    right: -100px;
  }

  .fuse-logo-footer {
    margin-top: 3.5rem;
  }
}

/* ==========================================================================
   Tablet/Desktop: min-width 769px
   ========================================================================== */

@media (min-width: 769px) {
  .footer-last-col {
    min-width: min-content;
  }

  .footer-last-col a[href^="tel"] {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Desktop: min-width 992px (gallery layout only)
   ========================================================================== */

@media (min-width: 992px) {
  .gallery-row-1 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 3 / 2;
    gap: var(--gallery-gap);
    align-items: stretch;
  }

  .gallery-row-1-left .project-card {
    height: 100%;
  }

  .gallery-row-1-left .project-card .project-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-row-1-right .project-card-sm {
    flex: 1 1 0;
    min-height: 0;
  }

  .gallery-row-2 {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr;
    aspect-ratio: 3 / 2;
    gap: var(--gallery-gap);
    align-items: stretch;
  }

  .gallery-row-2-left .project-card-sm {
    flex: 1 1 0;
    min-height: 0;
  }

  .gallery-row-2-right .project-card {
    height: 100%;
  }

  .gallery-row-2-right .project-card .project-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-row-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 3 / 2;
    gap: var(--gallery-gap);
    align-items: stretch;
  }

  .gallery-row-3-left .project-card {
    height: 100%;
  }

  .gallery-row-3-left .project-card .project-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-row-3-right .project-card-sm {
    flex: 1 1 0;
    min-height: 0;
  }
}
