/*
Theme Name: Perfect Company
Theme URI: https://perfectcompany.com.au
Author: Your Name
Author URI: https://perfectcompany.com.au
Description: Custom theme for Perfect Company - horizontal scrolling carousel with overlay info page
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: perfect-company
*/

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scroll Container ─── */
.scroll-container {
  width: 100%;
  position: relative;
  z-index: 0;
}

/* ─── Fixed Viewport ─── */
.sticky-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* ─── Carousel Track ─── */
.carousel {
  display: flex;
  height: 100vh;
  will-change: transform;
}

/* ─── Each Panel ─── */
.panel {
  flex-shrink: 0;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.panel img {
  width: auto;
  height: 100vh;
  max-width: none;
  object-fit: contain;
  display: block;
  filter: saturate(0.88);
}

.panel video {
  width: auto;
  height: 100vh;
  max-width: none;
  object-fit: contain;
  display: block;
  filter: saturate(0.88);
}


@media (max-width: 430px) {
  .panel {
    width: 100vw;
    flex-basis: 100vw;
  }

  .panel img,
  .panel video {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* ─── Logo / CTA ─── */
.dot-cta {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 9999;
  width:  clamp(48px, 43.63px + 1.061vw, 64px);
  height: clamp(48px, 43.63px + 1.061vw, 64px);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease;
}


/* ─── Panel separator ─── */
.panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

/* ═══ INFO OVERLAY ═══ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 100;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.overlay.open {
  transform: translateY(0);
}

.overlay__content {
  position: absolute;
  inset: 0;
  padding: 120px 8vw 60px;
  overflow-y: auto;
  overflow-x: hidden;
}

.overlay__intro,
.overlay__heading,
.overlay__subheading,
.overlay__list {
  color: #0047AB;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

.overlay__intro {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 72px;
}


.overlay__columns {
  display: flex;
  justify-content: space-between;
}

.overlay__col--services {
  max-width: 340px;
}

.overlay__col--right {
  text-align: right;
}

.overlay__heading {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.overlay__col--services .overlay__heading {
  margin-bottom: 8px;
}

.overlay__heading--contact {
  margin-top: 40px;
}

.overlay__subheading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 4px;
}

.overlay__subheading:first-of-type {
  margin-top: 0;
}

.overlay__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.overlay__list li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.overlay__list--right {
  text-align: right;
}

.overlay__list a {
  color: #0047AB;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .overlay__columns {
    flex-direction: column;
  }

  .overlay__col--services {
    max-width: none;
    margin-bottom: 40px;
  }

  .overlay__col--right {
    text-align: left;
  }

  .overlay__list--right {
    text-align: left;
  }
}

/* ─── Mobile: horizontal swipe + overlay slides in from right ─── */
@media (max-width: 819px) {
  html, body {
    overflow: hidden;
    height: 100%;
  }

  .overlay {
    transform: translateX(100%);
  }

  .overlay.open {
    transform: translateX(0);
  }

  .overlay__content {
    -webkit-overflow-scrolling: touch;
  }
}
