/*
Theme Name: Bluehost Blueprint Child
Template: bluehost-blueprint
*/

:root {
	--wp--preset--font-size--huge: clamp(6rem, 10vw, 10rem);
}

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

select {
	min-height: 2.25em;
}

textarea, select, input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=reset], input[type=search], input[type=submit], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], .select2-container .select2-selection--single {
	border-radius: 2px;
	border: 1px solid;
	border-color: rgba(0,0,0,0.2);
	line-height: 1.7;
	padding: 0.3rem 1rem;
	display: block;
}

input[type="submit"] {
	background-color: var(--wp--preset--color--accent-1);
	border-width: 0;
	border-radius: 2px;
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	text-decoration: none;
	cursor: pointer;
}

[class*="is-style-block-overlap"] + *:not([style*="margin-top"]) {
	margin-top: 0;
}

[class*="is-style-text-wrap-balance"],
[class*="is-style-text-wrap-balance"] p {
	text-wrap-style: balance;
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--contrast-midtone);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0;
	margin-top: 8px;
	text-align: center;
}

div[class*="wp-block-"] .wp-block-image figcaption a {
	width: auto;
}

.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
	max-width: var(--wp--style--global--content-size);
}

/* Sticky Footer */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.admin-bar .wp-site-blocks {
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

.wp-site-blocks > main,
.wp-site-blocks > .entry-content {
    flex: 1;
}

/* Featured image: keep natural width (do not stretch to full content width). */
.wp-block-post-featured-image.bp-post-featured-image--intrinsic {
	width: fit-content;
	max-width: 100%;
}

.wp-block-post-featured-image.bp-post-featured-image--intrinsic img {
	width: 300 !important;
	max-width: 100%;
	height: auto;
}

:root{
  --logo-h: 34px;
  --logo-gap: 24px;
  --logo-pad-y: 20px;
  --logo-scale: 1.12;
  --marquee-speed: 35s;
}

.logo-marquee{
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  padding: var(--logo-pad-y) 0;
  display: flex;
  justify-content: center;
}

.logo-inner{
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-speed) linear infinite;
  will-change: transform;
}

.logo-track{
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  width: max-content;
  flex: 0 0 auto;
  padding-left: var(--logo-gap); /* start spacing for each set */
}

.logo-track > img{
  height: var(--logo-h);
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  display: block;
  filter: grayscale(1);
  transition: transform 450ms cubic-bezier(.2,.8,.2,1), filter 250ms ease;
  transform-origin: center;
}

.logo-track > img:hover{
  transform: scale(var(--logo-scale));
  filter: grayscale(0);
}

@keyframes marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === SCROLL SCRUB SECTION === */

.scroll-scrub-section{
  position: relative;
  height: 500vh;
}

.scroll-scrub-sticky{
  position: sticky;
  top: 8vh;
  height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === VIDEO FRAME (IMPORTANT WRAPPER) === */

.scroll-scrub-frame{
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 16;
}

/* === VIDEO === */

.scroll-scrub-video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}


/* === TEXT STYLE === */

.scrub-line{
  position: absolute;
  left: 50%;
  top: 44%;

  width: 80%;
  text-align: center;

  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 1.8vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.02em;

  opacity: 0;

  transform: translate(-50%, -50%);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* === MOBILE FIXES === */

@media (max-width: 768px){

  .scroll-scrub-section{
    height: 350vh;
  }

  .scroll-scrub-sticky{
    top: 6vh;
    height: 88vh;
  }

  .scroll-scrub-frame{
    max-width: 88vw;
  }

  .scroll-scrub-video{
    object-fit: contain;
  }

  .scrub-line{
    font-size: clamp(25px, 5vw, 28px);
    width: 85%;
  }
}

@media (max-width: 768px){

  .scroll-scrub-frame{
    position: relative !important;
    width: 88vw !important;
    max-width: 88vw !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
    margin: 0 auto !important;
  }

  .scroll-scrub-video{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  .scrub-text-overlay{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
  }

  .scrub-line{
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 80% !important;
    max-width: 80% !important;
    color: #fff !important;
    text-align: center !important;
  }
}

@media (max-width: 768px){
  .wp-site-blocks{
    padding-top: 300px;
  }
}



/* === TABLET FIXES === */

@media (max-width: 1180px), (hover: none) and (pointer: coarse){

.wp-site-blocks{
padding-top: 50px !important;
}

.logo-marquee{
margin-bottom: 65px !important;
}

.scroll-scrub-section{
margin-top: 2px !important;
}

.scroll-scrub-frame{
max-width: 70vw;
}

.scrub-line{
font-size: clamp(18px, 3vw, 28px);
}

}

/* === Custom burger menu === */

.fine-menu-toggle{
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
  color: #000;
}

.fine-menu-toggle span{
  display: block;
  width: 32px;
  height: 2px;
  background: currentColor;
  opacity: 1;
  transition: transform .3s ease, opacity .3s ease;
}

/* Hover animation */
.fine-menu-toggle:hover span{
  opacity: .65;
}

.fine-menu-toggle:hover span:first-child,
.fine-menu-toggle:hover span:last-child{
  transform: translateX(4px);
}

.fine-menu-toggle:hover span:nth-child(2){
  transform: translateX(-4px);
}

.fine-menu-toggle{
position: fixed !important;
top: 24px !important;
right: 24px !important;
z-index: 1000001 !important;
}

.fine-menu-overlay{
position: fixed !important;
inset: 0 !important;
width: 100vw !important;
height: 100vh !important;
min-height: 100dvh !important;
z-index: 1000000 !important;
background: rgba(255,255,255,0.98);
display: flex;
align-items: center;
justify-content: center;
transform: translateX(110vw);
transition: transform .5s cubic-bezier(.2,.8,.2,1);
pointer-events: none;
}

body.fine-menu-open .fine-menu-overlay{
transform: translateX(0);
pointer-events: auto;
}

.fine-menu-nav{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.fine-menu-nav a{
  color: #000;
  text-decoration: none;
  font-size: clamp(42px, 6vw, 90px);
  line-height: 1;
  letter-spacing: 5 em;
  font-weight: 600;
  opacity: 0.85;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}

.fine-menu-nav a:hover{
  opacity: 1;
  transform: scale(1.05) translateY(-2px);
    color: #666;
}

.fine-menu-nav{
  opacity: 0;
  transform: translateX(40px);
  transition: all .4s ease .15s;
}

body.fine-menu-open .fine-menu-nav{
  opacity: 1;
  transform: translateX(0);
}

.wp-block-html{
  margin: 0 !important;
  padding: 0 !important;
}

header,
.wp-site-blocks > header{
min-height: 0 !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
overflow: visible !important;
}

header.wp-block-template-part,
header.wp-block-template-part > header.wp-block-group{
height: 0 !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
overflow: visible !important;
}

.fine-menu-toggle{
position: fixed !important;
top: 24px !important;
right: 24px !important;
z-index: 1000001 !important;
}

.wp-site-blocks > header{
height: 0 !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
overflow: visible !important;
}

.wp-site-blocks{
  padding-top: 24px;
}

.wp-site-blocks{
padding-top: 50px;
}

@media (max-width: 768px){
.wp-site-blocks{
padding-top: 200px;
}
}


/* === PORTFOLIO PAGE === */


/* === REEL VIDEOS === */

.reel-feed{
height: 100vh;
overflow: hidden; /* THIS is key */
position: relative;
}

.reel-item{
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;

opacity: 0;
transform: translateY(100%);
transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease;
}

.reel-item video{
width: 100vw;
height: auto;
max-height: 100vh;
object-fit: contain;
display: block;
}

.reel-item.active{
opacity: 1;
transform: translateY(0);
z-index: 2;
}

.reel-item.prev{
transform: translateY(-100%);
opacity: 0;
}

