/*!
Theme Name: Creative
Theme URI: https://creativeweb.agency/
Author: CreativeWeb
Author URI: https://creativeweb.agency/
Description: Bespoke WP Theme by CreativeWeb
Version: 17.07.25
Text Domain: creative
*/
/* TEMP TAILWIND CLASSES */
.h-svh {
    height: 100svh;
}

/* Private Pages */

.post-password-form {
    height: 70vh;
    height: 70svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.post-password-form > p {
    width: 100%;
    text-align: center;
    font-size: 115%;
}

.post-password-form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.post-password-form input[type=password] {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid #fff;
    border-radius: 0.3rem;
}

.post-password-form input[type=submit] {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0.3rem;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s opacity;
    margin-top: 1.5rem;
}

.post-password-form input[type=submit]:hover {
    opacity: 0.7;
}

.instagram-feed .feed {
    height: 100% !important;
}

/* ==========================================================================
   Single Testimonial Styles
   All rules scoped to .testimonial-single to avoid conflicts
   ========================================================================== */

.testimonial-single {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 60px;
}

/* Header / Hero with overlaid title
   ========================================================================== */

.testimonial-single .testimonial-single__header {
    position: relative;
    width: 100%;
    max-height: 85vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-top: 100px;
    margin-bottom: 40px;
    background-color: var(--color-primary);
}

/* Only apply min-height if an image exists */
.testimonial-single .testimonial-single__header:has(.testimonial-single__image img) {
    min-height: 85vh;
}

.testimonial-single .testimonial-single__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.testimonial-single .testimonial-single__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 50% 40%;
}

.testimonial-single .testimonial-single__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        transparent 100%
    );
    z-index: 2;
}

.testimonial-single .testimonial-single__overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 40px 50px;
}

.testimonial-single .testimonial-single__title {
    font-size: 8rem !important;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Body / Year Pill
   ========================================================================== */

.testimonial-single .testimonial-single__body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-single .testimonial-single__year-pill {
    display: inline-block;
    background-color: #d4912a;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
}

/* Blockquote / Content
   ========================================================================== */

.testimonial-single .testimonial-single__content blockquote {
    position: relative;
    margin: 0;
    padding: 35px 35px 35px 45px;
    border-left: 4px solid #d4912a;
    background: #faf8f5;
    border-radius: 0 8px 8px 0;
    font-size: 1.575rem;
    line-height: 1.9;
    color: #3a3a3a;
    font-style: italic;
}

.testimonial-single .testimonial-single__content blockquote::before {
    content: "\201C";
    position: absolute;
    top: 20px;
    left: 12px;
    font-size: 3.5rem;
    line-height: 1;
    color: #d4912a;
    font-family: Georgia, serif;
    opacity: 0.4;
}

.testimonial-single .testimonial-single__content blockquote p {
    margin: 0;
}

.testimonial-single .testimonial-single__content blockquote p + p {
    margin-top: 1em;
}

/* Navigation / Back Link
   ========================================================================== */

.testimonial-single .testimonial-single__nav {
    max-width: 1600px;
    margin: 40px auto 0;
    padding: 25px 20px 0;
    border-top: 1px solid #e5e5e5;
}

.testimonial-single .testimonial-single__back-link {
    display: inline-block;
    color: #d4912a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    transition: color 0.2s ease;
}

.testimonial-single .testimonial-single__back-link:hover {
    color: #b5780f;
}

/* Related Testimonials
   ========================================================================== */

.testimonial-single .testimonial-single__related {
    max-width: 1600px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.testimonial-single .testimonial-single__related-heading {
    font-size: 1.75rem;
    margin: 0 0 25px 0;
}

.testimonial-single .testimonial-single__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-single .testimonial-single__related-item {
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.testimonial-single .testimonial-single__related-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.testimonial-single .testimonial-single__related-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.testimonial-single .testimonial-single__related-title {
    font-size: 1.575rem;
    margin: 15px 18px 8px;
    line-height: 1.3;
}

.testimonial-single .testimonial-single__related-excerpt {
    font-size: 1.33rem;
    color: #666;
    line-height: 1.7;
    margin: 0 18px 18px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .testimonial-single .testimonial-single__header {
        min-height: 400px;
        max-height: 60vh;
        margin-top: -80px;
        padding-top: 80px;
    }

    .testimonial-single .testimonial-single__overlay {
        padding: 25px 20px;
    }

    .testimonial-single .testimonial-single__title {
        font-size: 2.25rem;
    }

    .testimonial-single .testimonial-single__related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-single .testimonial-single__content blockquote {
        padding: 25px 20px 25px 30px;
        font-size: 1rem;
    }
}

/* Default for landscape */
.testimonial-single__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* Portrait: show more of the top, or reduce zoom */
.testimonial-single__header.is-portrait .testimonial-single__image img{
  object-position: 50% 20%;
}

/* Alternative portrait treatment: stop cropping, allow side gaps */
.testimonial-single__header.is-portrait .testimonial-single__image img{
  object-fit: contain;
  background: var(--color-primary);
}


@media (min-width: 1200px) {
  header .menu-item.menu-testimonial .sub-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
  }
  header .menu-item.menu-testimonial .sub-menu li a {
    text-align: center;
    font-size: 14px;
  }
  header .menu-item.menu-testimonial .sub-menu li:nth-child(-n+4) {
    border-top-width: 0;
  }
  header .menu-item.menu-testimonial .sub-menu li a:hover {
    color: var(--color-primary);
  }
}

