/*
Theme Name:     TPNA Custom
Template:       twentytwentyfive
Version:        1.0.0
Author:         Esteban Laguna
Description:    A child theme of Twenty Twenty-Five for TPNA.
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* ANIMATIONS TO USE */
@-webkit-keyframes shine {
	100% {
		left: 125%;
	}
}
@keyframes shine {
	100% {
		left: 125%;
	}
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(400px)
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0px)
  }
}
@keyframes fade-in-left {
  0% {
    opacity: 0;
    transform: translateX(-400px)
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0px)
  }
}

@keyframes fade-in-right {
  0% {
    opacity: 0;
    transform: translateX(+400px)
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0px)
  }
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@keyframes scaleRotate90 {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.5) rotate(90deg);
  }
  100% {
    transform: scale(1) rotate(90deg);
  }
}

@keyframes shake-horizontal {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.icon-hover {
  transition: transform 0.6s ease; /* slower than default */
}
.icon-hover:hover {
  animation: shake-horizontal 0.5s ease-in-out; /* Adjust duration and timing function as needed */
}

/* custom cursor effect */

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid #ff3234;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
    /* New blur + transparency styles */
  background-color: rgba(255, 255, 255, 0.1); /* light transparent */
  backdrop-filter: blur(3px); /* applies blur to background behind the cursor */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  transition: background-color 0.2s, transform 0.1s ease;
}

#custom-cursor.shrink {
  width: 12px;
  height: 12px;
  transition: width 0.5s, height 0.5s, transform 0.2s ease;
}


.hero-overlay {
  padding-bottom: 1.5rem !important;
  background-attachment: fixed;
  min-width: 100%;
 /*width: 100vw;       
  margin-left: calc(-50vw + 50%) !important; */
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.hero-text-block {
  margin-left: 1.5rem !important;
}

.write-columns{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* nav link hover effect */
.mobile-crow {display: none;}
.wp-block-navigation-item__content:hover {
  text-decoration: none;
}
.custom-logo-link {
  transition: transform 0.6s ease; /* slower than default */
}
.custom-logo-link:hover {transform: scale(1.15);filter: drop-shadow(0 1px 2px #ff3234);}
.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ff3234, #f9f3e7);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

/* new shine animation for buttons */
.red-btn {
  background-color: #ff3234;
}

.wp-element-button {
	position: relative;
  transition: all 0.5s ease;
  overflow: hidden;
}
.wp-element-button::before {
	position: absolute;
	top: 0;
	left: -75%;
	z-index: 2;
	display: block;
	content: '';
	width: 50%;
	height: 100%;
	background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	-webkit-transform: skewX(-25deg);
	transform: skewX(-25deg);
}
.wp-element-button:hover::before {
	-webkit-animation: shine .95s infinite;
	animation: shine .95s infinite;
}

.wp-element-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #8896a3;
}

/* slow rotate animation */


.rotate-anim {
  animation: rotate 4s infinite linear; /* Name, Duration, Iteration Count, Timing Function */
}

/* text shimmer animation*/

.shimmer-text:before {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #dddddd 20%,
    #bbbbbb 40%,
    #dddddd 60%,
    #ffffff 80%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s infinite linear;
}

/* image fade in animation */


.fade-in {
  animation: fade-in 4s linear forwards;
  animation-timeline: view();
  animation-range: entry;
}
.fade-in-left {
  animation: fade-in-left 4s linear forwards;
  animation-timeline: view();
  animation-range: entry;
}
.fade-in-right {
  animation: fade-in-right 4s linear forwards;
  animation-timeline: view();
  animation-range: entry;
}

/* horizontal panel effect */

.full-width {min-width: 100%;}
.our-values {margin-right: 0 !important;padding-right: 4%;}

.accordion-wrapper {
  min-width: 100%;
}

.panel-accordion {
  display: flex;
  width: 100%;
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.panel {
  flex: 1 !important;
  height: 500px;
  padding: 15px;
  cursor: pointer;
  transition: flex 0.5s ease;
  overflow: hidden;
}
.panel h3 {
  transform: translateY(175px);
}
.panel p {display:none;}

.panel:hover {
  flex: 3 !important;
}
.panel:hover h3 {
  transform: translateY(-160%) translateX(10%);
  transition: 1s;
}
.panel:hover p {
  display: block;
  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 2s;
  padding: 0 20%;
}
.tune-in{background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/09/wood-grain-background-image-white-brown-tones-328949118.jpg');background-position: center; background-size: cover;}
.run{background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/09/6262ba12c5747c244d1fae0b.jpg'); background-position: center; background-size: cover;}
.exclusive{background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/09/1220e38c-276a-490e-8927-1223b08d3c12.jpeg'); background-position: center; background-size: cover;}
.half-measure{background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/09/eea31a51f0d301c0699747c909d04db1.jpg'); background-position: center; background-size: cover;}
.leave-legacy{background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/09/bergamot-sea-minerals-fragrance-oil-602157.jpg'); background-position: center; background-size: cover;}



/******************************************************************************************
********************************** PORTFOLIO GRID CSS ************************************* 
******************************************************************************************/

/* fix for the weird gap in between the featured image and the content on individual portfolio page */
.portfolio-template-default main {margin-top: 0;}
/* fix for black background not going all the way to bottom of page on portfolios */
.portfolio-template-default .wp-site-blocks {background-color: #2d2c2c;}

.portfolio-tags a {display: block; pointer-events: none;}
.portfolio-tags .wp-block-post-terms__separator {display: none;}

.portfolio-grid ul {
  grid-template-columns: 1fr 1fr 1fr;
}

.portfolio-grid li img {
	transition: transform 1s ease;
  -webkit-filter: grayscale(90%) blur(1.2px);
  filter: grayscale(90%) blur(1.2px);
}

.portfolio-grid li:hover img {
  transform: scale(1.1) translate(5px, -5px);
  -webkit-filter: blur(0) grayscale(0);
	filter: blur(0) grayscale(0);
}

.portfolio-grid ul figure {
  margin-bottom: 0px !important;
  overflow:hidden;
}

.page-id-15 .wp-block-query {margin: 6%;}

.left-col-cta {
  display: flex;
  align-items: left;
  flex-direction: column;
  justify-content: left;
}
.grid-column .is-layout-grid > div {
  aspect-ratio: 1 / 1;
}

.portfolio-grid li:hover .overlay-text {
  bottom: 0; /* Slide up into view on hover */
}

.portfolio-black-box {
  width: 125%;
  margin-left: -18% !important;
}

.has-link-color a {text-decoration: none !important;}
.copyright-row figure {
  position: absolute;
  bottom: 8px;
  right: 8px;
}
.copyright-row {margin-bottom: -50px !important;}

/* SERVICES PAGE COLLAGE */

.services-columns {min-width: 0 !important;}

.staggered-collage {
  padding: 60px 20px;
  overflow: visible;
}

.collage-inner {
  width: min(1200px, 96%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
}

/* Each item will sit inside the grid but be transformed to overlap neighbors */
.collage-item {
  grid-column: span 2; /* default item width */
  position: relative;
  transform-origin: center;
  transition: transform .35s ease, box-shadow .35s ease;
  z-index: 1;
  isolation: isolate;
}

/* image style */
.collage-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(12,12,12,0.12);
}

/* Staggered offsets using nth-child — tweak values to taste */
.collage-item:nth-child(1) { transform: translateY(1px) rotate(10deg); z-index:6; grid-column: 1 / span 2; }
.collage-item:nth-child(2) { transform: translateY(-16px) rotate(2.5deg); z-index:5; grid-column: 3 / span 2; }
.collage-item:nth-child(3) { transform: translateY(6px) rotate(-8deg); z-index:1; grid-column: 6 / span 1; }
.collage-item:nth-child(4) { transform: translateY(-8px) rotate(6deg); z-index:3; grid-column: 2 / span 2; }
.collage-item:nth-child(5) { transform: translateY(18px) rotate(-2deg); z-index:2; grid-column: 4 / span 2; }
.collage-item:nth-child(6) { transform: translateY(40px) rotate(-6deg); z-index:4; grid-column: 5 / span 2; }

/* hover bring-forward */
.collage-item:hover { transform: translateY(0) scale(1.03) rotate(0deg); z-index: 99; box-shadow: 0 18px 48px rgba(12,12,12,0.18); }

/* Responsive adjustments */
@media (max-width: 1000px) {
  .collage-inner { grid-template-columns: repeat(4, 1fr); }
  .collage-item { grid-column: span 2; }
  .collage-item:nth-child(1){ grid-column: 1 / span 2; }
  .collage-item:nth-child(2){ grid-column: 3 / span 2; }
  .collage-item:nth-child(3){ grid-column: 3 / span 2; }
  .collage-item:nth-child(4){ grid-column: 3 / span 2; }
  .collage-item:nth-child(5){ grid-column: 1 / span 2; }
  .collage-item:nth-child(6){ grid-column: 1 / span 2; }

  /* reduce transforms */
  .collage-item { transform: none; }
  .collage-item:hover { transform: scale(1.02); }
}

@media (max-width: 600px) {
  .collage-inner { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .collage-item { grid-column: auto; transform: none; }
}

/* ACCORDION STYLES */

.accordion-desc {
  font-family: 'Manrope', SANS-SERIF;
  font-weight: normal;
  font-size: var(--wp--preset--font-size--large) !important;
  max-width: 50%;
  margin-left: auto;
  min-width: 50%;
}

details {
  margin-bottom: 8px;
  overflow: hidden;
  min-width: 80%;
}

summary {
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  list-style: none;
  border-bottom: 2px solid #2d2c2c;
}
/*summary:first-of-type {border-top: 2px solid black;}*/

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: url('../../uploads/2025/09/arrow-left-thin-30.png'); /* Font Awesome chevron-right */
  font-weight: 900;
  display: inline-block;
}

/* Keyframe animation: scale up + rotate 90° + scale back */

details[open] summary::after {
  transform: rotate(90deg) scale(1);
}

/* Forward animation on open */
details.opening summary::after {
  animation: scaleRotate90 0.5s ease forwards;
}

/* Reverse animation on close */
details.closing summary::after {
  animation: scaleRotate90 0.5s ease reverse forwards;
}

/* Content height transition */
.content {
  overflow: hidden;
  height: 0;
  transition: height 0.5s ease;
  padding: 10px;
  margin-top: 0;
}

/******************************************************************************************
********************************** CONTACT FORM STYLE ************************************* 
******************************************************************************************/
.page-id-2823 .wp-site-blocks {
  background-image: linear-gradient(rgba(28, 28, 28, 0.86), rgba(28, 28, 28, 0.86)), url('../../uploads/2025/09/contact-page-scaled.jpeg');
  background-size: cover;
}
.container{
  margin:0 auto;
  min-width: 80%;
}

.contact-form-div {
  min-width: 100%;
}

/* Headline — big, editorial */
h1{
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1;
  margin:0 0 14px 0;
  letter-spacing: -0.02em;
  font-weight:700;
  color:var(--ink);
}

/* Lead paragraph */
.lead{
  margin:0 0 28px 0;
  color:var(--muted);
  font-size: 15px;
  max-width: 56ch;
}

/* The form */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:18px 22px;
}

/* Full-width row for message and submit */
.form-grid .full {
  grid-column: 1 / -1;
}

/* Labels — small caps like editorial metadata */
label{
  display:block;
  font-size:16px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#fbfaf3;
  font-weight:700;
  margin-bottom:8px;
  font-family: "Very Vogue Display", serif;
}

/* Inputs */
input[type="text"],
input[type="email"],
textarea,
input[type="search"]{
  display:block;
  width:100%;
  border: none;
  border-bottom: 2px solid #fbfaf3;
  padding:10px 6px;
  font-size:16px;
  color:#fbfaf3;
  background:transparent;
  outline: none;
  resize:vertical;
  line-height:1.4;
}

/* Slightly larger subject */
input[name="subject"]{ font-size:15px; }

/* Textarea */
textarea{
  min-height:160px;
  max-height:60vh;
  padding:12px 6px;
  font-family: "Very Vogue Text Italic", serif;
}

/* Focus styles */
input:focus, textarea:focus{
  border-bottom-color: #ff3234;
  box-shadow: 0 6px 18px rgba(200,169,126,0.06);
}
.form-grid div:focus-within label {
  color: #ff3234;
}

/* Small helper / error text */
.note{
  font-size:13px;
  color:var(--muted);
  margin-top:6px;
}

/* Submit */
.actions{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
}

/* Subtle divider line above submit */
.form-footer{
  margin-top:22px;
}

/* Validation error style */
.input-error{
  border-bottom-color: #b00020 !important;
}

.error-msg{
  color:#b00020;
  font-size:13px;
  margin-top:6px;
}

/* Make layout single-column on narrow screens */
@media (max-width:700px){
  .container{ padding:28px; margin:4vh 16px; }
  .form-grid{ grid-template-columns: 1fr; gap:14px; }
  .actions{ justify-content:stretch; }
  button[type="submit"]{ width:100%; }
  .panel {height: auto;}
  .panel h3 {transform: none;}
  .panel:hover h3 {
  transform: translateY(-160%) translateX(15%);
  transition: 1s;
  }
}

/* TESTIMONIAL MARQUEE STYLES */

.testimonial {
  border: 2px solid #2d2c2c;
  padding: 15px;
  max-height: 250px;
  overflow: hidden;
  white-space: nowrap;
  min-width: 400px;
  margin-block-start: 0 !important;
  background-color: #e8e5e2;
}

.testimonial:hover {
  background: #2d2c2c;
  color: #e8e5e2;
  transform: scale(1.3);
  transition: 0.35s linear;
  z-index: 1;
  border: 2px solid #ff3234;
}

.testimonial-top figure {
  max-width: 50px;
  max-height: 50px;
}

.testimonial-top img {
  border-radius: 50%;
}

/* MARQUEE ANIMATION */

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

:root {
  --marquee-gap: 3rem;     /* space between items */
  --marquee-speed: 500;    /* px per second (JS will use this) */
}

.marquee {
  overflow: hidden;
  min-width: 100%;
}

/* The scroller viewport */
.marquee__viewport {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  height: 450px;
}

/* The track that actually moves */
  
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: var(--marquee-gap);
  will-change: transform;
  animation: marquee var(--marquee-duration, 15s) linear infinite;
}

/* Pause on hover/focus within */
.marquee__track:hover,
.marquee__track:focus-within {
  animation-play-state: paused;
}

/* Your UL styled as a horizontal row */
  
.marqueeList {
  display: inline-flex;
  gap: var(--marquee-gap);
  padding: 0;
  margin: 0;
  list-style: none;
  white-space: nowrap;
}

  /* Accessibility: mobile switches to slider functionality */
@media (max-width:768px) {
  .marquee__viewport {
    padding: 0 1.5rem;
  }
  .marquee__track {
    animation: none;
    transform: none !important;
  }
  .marquee__track {
    overflow: hidden;
    width: 100%;
    position: relative;
  }
  .marqueeList {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    touch-action: pan-y; /* allow vertical scroll, block horizontal */
    gap: 0 !important;
  }
  .testimonial {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 1.2rem 3.9rem 1.2rem 1.2rem;
    max-height: none;
  } 
  .testimonial:hover {
    background: #e8e5e2;
    color: #2d2c2c;
    transform: none;
    transition: none;
    z-index: 1;
    border: 2px solid #2d2c2c;
  }
}



/* HOVER UNDERLINE ANIMATION FOR PORTFOLIO AND LINKS */
.hover-underline-animation, .portfolio-ul li {
  display: inline-block;
  position: relative;
}

.hover-underline-animation::after, .portfolio-ul li::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--wp--preset--color--accent-1);
  transition: transform 0.25s ease-out;
}
.hover-underline-animation:hover::after, .portfolio-ul li:hover::after {
  transform: scaleX(1);
}

.hover-underline-animation.left::after, .portfolio-ul li::after {
  transform-origin: bottom right;
}

.hover-underline-animation.left:hover::after, .portfolio-ul li:hover::after {
  transform-origin: bottom left;
}

.hover-underline-animation.center::after {
  transform-origin: bottom center;
}

.hover-underline-animation.center:hover::after {
  transform-origin: bottom center;
}

.hover-underline-animation.right::after {
  transform-origin: bottom left;
}

.hover-underline-animation.right:hover::after {
  transform-origin: bottom right;
}

/* SERVICES PAGE TIMELINE */
.process-timeline {
  text-align: center;
  margin: 0 auto;
  min-width: 100%;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #9b8065; /* line color */
  z-index: 0;
}

.step {
  flex: 1;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.circle {
  background: #9b8065;
  color: #e8e5e2;
  font-weight: bold;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.circle:hover {
  background: #ff3234;
}
@media (max-width: 768px) {
  .page-title {font-size: 2.4rem !important;}
  .portfolio-template-default .wp-block-post-featured-image {height:auto !important;}
  .portfolio-template-default .wp-block-post-featured-image .attachment-post-thumbnail {height:auto !important;}
  #custom-cursor { display: none; }
  .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
    background-color: transparent;
  }
  .nav-menu-main:has(.is-menu-open) .wp-block-navigation__responsive-container-open {display: none;}
  .nav-menu-main li:nth-child(4) { margin-top: -35px; }
  .nav-menu-main {
    justify-content: right !important;
    padding-right: 15px;
  }
  .wp-block-navigation__responsive-container-content {align-items: flex-end !important;}
  .desktop-crow {display: none;}
  .mobile-crow {display: block;}
  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .process-steps::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
  }

  .step {
    width: 100%;
    max-width: 500px;
    margin: 40px 0;
    position: relative;
  }

  .circle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .step h3,
  .step p {
    padding: 10px;
    border-radius: 6px;
    max-width: 45%;
  }

  /* Odd steps → text on left */
  .step:nth-child(odd) h3,
  .step:nth-child(odd) p {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
  }

  /* Even steps → text on right */
  .step:nth-child(even) h3,
  .step:nth-child(even) p {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
  }

  /* add spacing between title and paragraph */
  .step h3 {
    margin-bottom: 5px;
    padding-top: 50px;
  }
}


