/*
 Theme Name:   R. Faucett Construction
 Theme URI:    https://rfaucett.com
 Description:  Child theme for R. Faucett Construction website
 Author:       Sproutbox
 Author URI:   https://sproutbox.co/
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  r-faucett
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&display=swap');

/* ==========================================
   VARIABLES
   ========================================== */
:root {
    /* Colors */
    --color-white:       #FFFEFA;
    --color-pure-white:  #ffffff;
    --color-cream:       #FAF8F0;
    --color-border:      #E5E3DA;
    --color-text:        #242421;
    --color-navy:        #090F21;
    --color-charcoal:    #2C2C2A;
    --color-copper:      #D4A574;

    /* Fonts */
    --font-heading:      'Archivo', sans-serif;
    --font-body:         'Geist', sans-serif;

    /* Font Sizes */
    --text-xs:           0.75rem;   /* 12px */
    --text-sm:           0.875rem;  /* 14px */
    --text-base:         1rem;      /* 16px */
    --text-lg:           1.125rem;  /* 18px */
    --text-xl:           1.25rem;   /* 20px */
    --text-2xl:          1.375rem;  /* 22px */
    --text-3xl:          2rem;      /* 32px */
    --text-4xl:          1.875rem;  /* 30px */
    --text-5xl:          2.125rem;  /* 34px */

    /* Font Weights */
    --weight-light:      300;
    --weight-regular:    400;
    --weight-medium:     500;
    --weight-bold:       700;
}

/* ==========================================
   TRANSPARENT HEADER ON HOMEPAGE & SERVICES
   ========================================== */

.page-template-page-home .site-header,
.page-template-page-home .site-header .inside-header,
.page-template-page-home .site-header .main-navigation,
.page-template-page-home .site-header .site-logo,
.page-template-page-home .site-header .main-title,
.page-template-page-services .site-header,
.page-template-page-services .site-header .inside-header,
.page-template-page-services .site-header .main-navigation,
.page-template-page-services .site-header .site-logo,
.page-template-page-services .site-header .main-title,
.page-template-page-about .site-header,
.page-template-page-about .site-header .inside-header,
.page-template-page-about .site-header .main-navigation,
.page-template-page-about .site-header .site-logo,
.page-template-page-about .site-header .main-title,
.page-template-page-contact .site-header,
.page-template-page-contact .site-header .inside-header,
.page-template-page-contact .site-header .main-navigation,
.page-template-page-contact .site-header .site-logo,
.page-template-page-contact .site-header .main-title,
.post-type-archive-portfolio .site-header,
.post-type-archive-portfolio .site-header .inside-header,
.post-type-archive-portfolio .site-header .main-navigation,
.post-type-archive-portfolio .site-header .site-logo,
.post-type-archive-portfolio .site-header .main-title,
.error404 .site-header,
.error404 .site-header .inside-header,
.error404 .site-header .main-navigation,
.error404 .site-header .site-logo,
.error404 .site-header .main-title {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.page-template-page-about {
    background-color: #FFFEFA;
}

.page-template-page-home .site-header,
.page-template-page-services .site-header,
.page-template-page-about .site-header,
.page-template-page-contact .site-header,
.post-type-archive-portfolio .site-header,
.error404 .site-header {
    position: absolute !important;
    width: 100% !important;
    z-index: 999;
    top: 0;
    left: 0;
}

.page-template-page-home .site-header .inside-header,
.page-template-page-services .site-header .inside-header,
.page-template-page-about .site-header .inside-header,
.page-template-page-contact .site-header .inside-header,
.post-type-archive-portfolio .site-header .inside-header,
.error404 .site-header .inside-header {
    max-width: none !important;
    padding-left: 6.25rem !important;
    padding-right: 6.25rem !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem;
}

.page-template-page-home .site-header::after,
.page-template-page-services .site-header::after,
.page-template-page-about .site-header::after,
.page-template-page-contact .site-header::after,
.post-type-archive-portfolio .site-header::after,
.error404 .site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.25rem;
    height: 1px;
    background-color: var(--color-border);
    z-index: 9998;
}

.page-template-page-home .main-navigation .main-nav ul li a,
.page-template-page-services .main-navigation .main-nav ul li a,
.page-template-page-about .main-navigation .main-nav ul li a,
.page-template-page-contact .main-navigation .main-nav ul li a,
.post-type-archive-portfolio .main-navigation .main-nav ul li a,
.error404 .main-navigation .main-nav ul li a {
    color: var(--color-white) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--text-xl) !important;
    font-weight: var(--weight-light) !important;
    line-height: 150% !important;
    font-style: normal;
}

.page-template-page-home .main-navigation .main-nav ul li a:hover,
.page-template-page-services .main-navigation .main-nav ul li a:hover,
.page-template-page-about .main-navigation .main-nav ul li a:hover,
.page-template-page-contact .main-navigation .main-nav ul li a:hover,
.post-type-archive-portfolio .main-navigation .main-nav ul li a:hover,
.error404 .main-navigation .main-nav ul li a:hover {
    opacity: 0.8;
}

.page-template-page-home .site-title a,
.page-template-page-home .site-logo a,
.page-template-page-home .menu-toggle,
.page-template-page-services .site-title a,
.page-template-page-services .site-logo a,
.page-template-page-services .menu-toggle,
.page-template-page-about .site-title a,
.page-template-page-about .site-logo a,
.page-template-page-about .menu-toggle,
.page-template-page-contact .site-title a,
.page-template-page-contact .site-logo a,
.page-template-page-contact .menu-toggle,
.post-type-archive-portfolio .site-title a,
.post-type-archive-portfolio .site-logo a,
.post-type-archive-portfolio .menu-toggle,
.error404 .site-title a,
.error404 .site-logo a,
.error404 .menu-toggle {
    color: var(--color-pure-white) !important;
}

.menu-toggle .gp-icon svg {
    width: 2rem;
    height: 2rem;
}

.page-template-page-home .main-navigation.toggled .main-nav > ul,
.page-template-page-services .main-navigation.toggled .main-nav > ul,
.page-template-page-about .main-navigation.toggled .main-nav > ul,
.page-template-page-contact .main-navigation.toggled .main-nav > ul,
.post-type-archive-portfolio .main-navigation.toggled .main-nav > ul,
.error404 .main-navigation.toggled .main-nav > ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--color-charcoal);
    padding: 6rem 2rem 2rem;
    margin: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.page-template-page-home .main-navigation .main-nav > ul,
.page-template-page-services .main-navigation .main-nav > ul,
.page-template-page-about .main-navigation .main-nav > ul,
.page-template-page-contact .main-navigation .main-nav > ul,
.post-type-archive-portfolio .main-navigation .main-nav > ul,
.error404 .main-navigation .main-nav > ul {
    transition: transform 0.3s ease;
}

.page-template-page-home .main-navigation.toggled .main-nav > ul li,
.page-template-page-services .main-navigation.toggled .main-nav > ul li,
.page-template-page-about .main-navigation.toggled .main-nav > ul li,
.page-template-page-contact .main-navigation.toggled .main-nav > ul li,
.post-type-archive-portfolio .main-navigation.toggled .main-nav > ul li,
.error404 .main-navigation.toggled .main-nav > ul li {
    display: block;
    text-align: left;
}

.page-template-page-home .main-navigation.toggled .main-nav > ul li a,
.page-template-page-services .main-navigation.toggled .main-nav > ul li a,
.page-template-page-about .main-navigation.toggled .main-nav > ul li a,
.page-template-page-contact .main-navigation.toggled .main-nav > ul li a,
.post-type-archive-portfolio .main-navigation.toggled .main-nav > ul li a,
.error404 .main-navigation.toggled .main-nav > ul li a {
    padding: 0.75rem 0 !important;
    display: block;
}

.page-template-page-home .site-header:has(.main-navigation.toggled),
.page-template-page-services .site-header:has(.main-navigation.toggled),
.page-template-page-about .site-header:has(.main-navigation.toggled),
.page-template-page-contact .site-header:has(.main-navigation.toggled),
.post-type-archive-portfolio .site-header:has(.main-navigation.toggled),
.error404 .site-header:has(.main-navigation.toggled) {
    z-index: 100000 !important;
}

.page-template-page-home .site-header:has(.main-navigation.toggled)::after,
.page-template-page-services .site-header:has(.main-navigation.toggled)::after,
.page-template-page-about .site-header:has(.main-navigation.toggled)::after,
.page-template-page-contact .site-header:has(.main-navigation.toggled)::after,
.post-type-archive-portfolio .site-header:has(.main-navigation.toggled)::after,
.error404 .site-header:has(.main-navigation.toggled)::after {
    display: none;
}

.page-template-page-home .main-navigation.toggled .menu-toggle,
.page-template-page-services .main-navigation.toggled .menu-toggle,
.page-template-page-about .main-navigation.toggled .menu-toggle,
.page-template-page-contact .main-navigation.toggled .menu-toggle,
.post-type-archive-portfolio .main-navigation.toggled .menu-toggle,
.error404 .main-navigation.toggled .menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: 3.5rem;
    z-index: 100001;
    color: var(--color-pure-white) !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem !important;
    display: block !important;
    line-height: 1 !important;
}

.page-template-page-home .main-navigation.toggled .menu-toggle .mobile-menu,
.page-template-page-services .main-navigation.toggled .menu-toggle .mobile-menu,
.page-template-page-about .main-navigation.toggled .menu-toggle .mobile-menu,
.page-template-page-contact .main-navigation.toggled .menu-toggle .mobile-menu,
.post-type-archive-portfolio .main-navigation.toggled .menu-toggle .mobile-menu,
.error404 .main-navigation.toggled .menu-toggle .mobile-menu {
    display: none;
}

/* 404 header override — dark background so white nav text is readable (matches portfolio archive) */
.error404 .site-header,
.error404 .site-header .inside-header,
.error404 .site-header .main-navigation,
.error404 .site-header .site-logo,
.error404 .site-header .main-title {
    background-color: var(--color-text) !important;
    background: var(--color-text) !important;
}

.error404 .site-header::after {
    display: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.page-template-page-home .site-content,
.page-template-page-home .content-area,
.page-template-page-home #primary,
.page-template-page-services .site-content,
.page-template-page-services .content-area,
.page-template-page-services #primary,
.page-template-page-about .site-content,
.page-template-page-about .content-area,
.page-template-page-about #primary,
.error404 .site-content,
.error404 .content-area,
.error404 #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-page-services .hero-section {
    min-height: 90vh;
}

.page-template-page-services .hero-text-wrapper {
    width: 100%;
    gap: 3.75rem;
    align-items: flex-start;
}

.page-template-page-services .hero-inner {
    flex: 1 1 0;
    max-width: none;
}

.page-template-page-services .hero-section h1 {
    font-size: var(--text-5xl);
}

.page-template-page-services .hero-section p {
    font-size: 1rem;
}

.page-template-page-services .hero-description {
    flex: 0 0 auto;
    max-width: 41.25rem;
    padding-left: 0;
}

.page-template-page-services .services-header-standalone {
    padding: 3rem 6.25rem 1.5rem 6.25rem;
    position: sticky;
    top: 0;
    z-index: 10001;
    background-color: var(--color-white);
}

.page-template-page-services .services-image {
    aspect-ratio: 800 / 813;
    flex: none;
    max-width: min(100%, 1100px);
    margin-right: 0;
}

.page-template-page-services .featured-projects-section,
.page-template-page-services .reviews-section,
.page-template-page-services .cta-section,
.page-template-page-services .site-footer {
    position: relative;
    z-index: 10002;
}

.page-template-page-services .featured-projects-section {
    padding-top: 1rem;
}

.page-template-page-services .services-section {
    padding-bottom: 7rem;
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.page-template-page-services .services-wrapper {
    min-height: auto;
    grid-template-columns: 45% 55%;
}

.page-template-page-services .reviews-section {
    padding-top: 0.5rem;
    padding-bottom: 6.25rem;
}

/* Services page section content */
.page-template-page-services .services-content {
    padding: 0 clamp(8rem, 10vw, 12rem) clamp(3rem, 4vw, 6.25rem) clamp(5rem, 7vw, 8rem);
}

.page-template-page-services .services-section-heading-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0 0.5rem 0;
}

.page-template-page-services .services-section-arrow {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    margin-left: -2.5rem;
}

.page-template-page-services .services-section-heading {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-style: normal;
    font-weight: var(--weight-medium);
    line-height: 100%;
    margin: 0;
}

.page-template-page-services .services-section-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0;
}

.page-template-page-services .services-section-description p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: justify;
    margin: 0;
}

.page-template-page-services .services-section-subtitle-2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0;
}

.page-template-page-services .services-content > *:not(:last-child) {
    margin-bottom: 1.875rem;
}

.page-template-page-services .services-section-subtitle-2 {
    margin-top: 1.875rem;
}

.page-template-page-services .services-list-wrapper {
    border-left: 1px solid var(--color-text);
    padding-left: 1.875rem;
    padding-top: 0.9375rem;
    padding-bottom: 0.9375rem;
    margin-top: 0.5rem;
}

.page-template-page-services .services-list {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.page-template-page-services .service-item {
    padding: 0;
    cursor: default;
}

.page-template-page-services .service-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

/* About page specific styles */
.page-template-page-about .hero-section {
    min-height: 90vh;
}

.page-template-page-about .hero-slide {
    background-position: center 25%;
}

.page-template-page-about .about-content-block {
    padding: 3rem 0;
}

.page-template-page-about .services-content {
    overflow: visible;
    height: auto;
    min-height: 0;
}

.page-template-page-about .about-content-block:first-child {
    padding-bottom: 7rem;
    position: sticky;
    top: 3rem;
    z-index: 1;
}

.page-template-page-about .about-content-block:not(:first-child) {
    padding-top: 2rem;
    padding-bottom: 30rem;
    margin-bottom: -27rem;
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    margin-left: -3.5rem;
    padding-left: 3.5rem;
}

.page-template-page-about .about-content-block:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * clamp(5rem, 6vw, 6rem) + 3.5rem);
    right: calc(-1 * clamp(4rem, 6vw, 6rem) + 3.125rem);
    height: 1px;
    background-color: var(--color-border);
    z-index: 3;
}

.page-template-page-about .services-section-arrow {
    position: relative;
    z-index: 1;
}

.page-template-page-about .hero-section .hero-content {
    display: none;
}

.page-template-page-about .services-image {
    aspect-ratio: 816 / 1260;
    flex: none;
    max-width: 100%;
    margin-right: 0;
}

.page-template-page-about .services-header {
    padding: 3rem 6.25rem 1.5rem 6.25rem;
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: var(--color-white);
}

@media (max-width: 1024px) {
    .page-template-page-about .services-header {
        margin-top: 2rem;
        padding-top: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .page-template-page-about .transparency-left {
        padding-left: 2rem;
    }

    .transparency-item {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .page-template-page-about .team-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .page-template-page-about .about-content-block:not(:first-child) {
        margin-top: 0;
        padding-top: 4rem;
        background-color: transparent;
    }

    .page-template-page-about .about-content-block:first-child .services-section-heading-wrapper {
        margin-top: 0.5rem;
    }

    .page-template-page-about .about-content-block:not(:first-child) .services-section-heading-wrapper {
        margin-top: 8rem;
    }

    .page-template-page-about .about-content-block:not(:first-child)::after {
        content: '';
        position: absolute;
        top: 6rem;
        left: -3.5rem;
        right: -3.125rem;
        bottom: 0;
        background-color: var(--color-white);
        z-index: -1;
    }

    .page-template-page-about .hero-slide {
        background-position: 23% center;
    }

    .page-template-page-about .about-content-block:not(:first-child)::before {
        display: none;
    }

    .page-template-page-about .js-service-image-line {
        right: 0 !important;
    }
}

/* Transparency Section */
.transparency-section {
    border-top: 1px solid var(--color-border);
    background-color: #FFFEFA;
    position: relative;
    z-index: 3;
}

.transparency-section::after {
    content: '';
    display: block;
    border-top: 1px solid var(--color-border);
    height: 6rem;
    background-color: #FFFEFA;
}

.transparency-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.transparency-left {
    padding: 0rem 3rem 4.375rem 6.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    position: sticky;
    top: 0;
    align-self: start;
}

.transparency-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: var(--weight-medium);
    line-height: 1;
    color: var(--color-text);
}

.transparency-description {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: var(--weight-normal);
    line-height: 1.5;
    color: var(--color-text);
}

.transparency-image {
    width: auto;
    max-width: 400px;
    height: auto;
    display: block;
    align-self: center;
}

.transparency-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
}

.transparency-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 3.125rem;
    border-bottom: 1px solid var(--color-border);
}

.transparency-item:last-child {
    border-bottom: none;
}

@media (max-width: 711px) {
    .transparency-wrapper {
        grid-template-columns: 1fr;
    }

    .transparency-left {
        padding: 2rem;
    }

    .transparency-image {
        max-width: 200px;
        align-self: flex-start;
    }

    .transparency-heading {
        font-size: 1.75rem;
    }

    .transparency-description {
        font-size: 1rem;
    }

    .transparency-right {
        border-left: none;
        border-top: 1px solid var(--color-border);
        position: relative;
        z-index: 4;
        background-color: #FFFEFA;
    }

    .transparency-item {
        padding: 1.5rem 2rem;
        background-color: #FFFEFA;
    }
}

.transparency-item-arrow {
    padding-top: 0.125rem;
    flex-shrink: 0;
}

.transparency-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.transparency-item-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: var(--weight-medium);
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}

.transparency-item-description {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--weight-normal);
    line-height: 1.5;
    color: var(--color-text);
    padding-right: 3rem;
    margin: 0;
}

/* ==========================================
   OUR PROCESS SECTION
   ========================================== */

.process-section {
    border-top: 1px solid var(--color-border);
    background-color: #FFFEFA;
    position: relative;
    z-index: 3;
}

.process-section::after {
    content: '';
    display: block;
    border-top: 1px solid var(--color-border);
    height: 6rem;
    background-color: #FFFEFA;
}

.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.process-left {
    padding: 4.375rem 3rem 4.375rem 6.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    position: sticky;
    top: 0;
    align-self: start;
}

.process-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: var(--weight-medium);
    line-height: 1;
    color: var(--color-text);
}

.process-description {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: var(--weight-normal);
    line-height: 1.5;
    color: var(--color-text);
}

.process-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
}

.process-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 3.125rem;
    border-bottom: 1px solid var(--color-border);
}

.process-item:last-child {
    border-bottom: none;
}

.process-item-arrow {
    padding-top: 0.125rem;
    flex-shrink: 0;
}

.process-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.process-item-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: var(--weight-medium);
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}

.process-item-description {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--weight-normal);
    line-height: 1.5;
    color: var(--color-text);
    padding-right: 3rem;
    margin: 0;
}

@media (max-width: 711px) {
    .process-wrapper {
        grid-template-columns: 1fr;
    }

    .process-left {
        padding: 2rem;
    }

    .process-heading {
        font-size: 1.75rem;
    }

    .process-description {
        font-size: 1rem;
    }

    .process-right {
        border-left: none;
        border-top: 1px solid var(--color-border);
        position: relative;
        z-index: 4;
        background-color: #FFFEFA;
    }

    .process-item {
        padding: 1.5rem 2rem;
        background-color: #FFFEFA;
    }
}

/* Team Section */
.team-section {
    padding: 0rem 6.25rem 6.25rem 6.25rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background-color: #FFFEFA;
}

.team-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: var(--weight-medium);
    line-height: 1;
    color: var(--color-text);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
}

.team-card {
    cursor: pointer;
}

.team-card-inner {
    position: relative;
    overflow: hidden;
}

.team-card-front {
    display: flex;
    flex-direction: column;
}

.team-card-back {
    position: absolute;
	margin-left: -10px !important;
    inset: 0;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #FFFEFA;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.5rem;
    overflow-y: auto;
}

.team-card-bio-arrow {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.2em;
}

.team-card.is-flipped .team-card-back {
    transform: translateY(0);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-border);
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-info {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

.team-card-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: var(--weight-normal);
    line-height: 1.1;
    color: var(--color-text);
}

.team-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: var(--weight-medium);
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0;
}

.team-card-bio-text {
    font-family: var(--font-body, sans-serif);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

.team-card-bio-text a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 1152px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .team-card-bio-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 711px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card-info {
        padding-left: 1.5rem;
    }
}

@media (max-width: 430px) {
    .team-card-bio-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 412px) {
    .team-card-bio-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 390px) {
    .team-card-bio-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .team-card-bio-text {
        font-size: 0.6rem;
    }
}

@media (min-width: 1920px) {
    .team-card-bio-text {
        font-size: 1rem;
    }
}

@media (min-width: 2560px) {
    .team-card-bio-text {
        font-size: 1.5rem;
    }
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.page-template-page-contact .site-grid-container,
.page-template-page-contact .site-content {
    display: none;
}

.page-template-page-contact .hero-section {
    min-height: 115vh;
}

@media (max-width: 1024px) {
    .page-template-page-contact .hero-section {
        min-height: 80vh;
    }
}

@media (min-width: 768px) and (max-width: 768px) {
    .page-template-page-contact .hero-section {
        min-height: 100vh;
    }
}

.page-template-page-contact .hero-section p {
    color: var(--color-text);
}

.contact-card {
    position: absolute;
    top: 13rem;
    right: 3.125rem;
    width: 50%;
    max-width: 50rem;
    background-color: #FFFEFA;
    border: 1px solid var(--color-border);
    padding: 5rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    z-index: 2;
}

.contact-card-arrow img {
    width: 2rem;
    height: 2rem;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card-subtitle {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: var(--weight-normal);
    line-height: 1.1;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0;
}

.contact-card-description {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: var(--weight-normal);
    line-height: 1.1;
    color: var(--color-text);
    margin: 0;
}

.contact-card-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.9375rem;
}

.contact-icon {
    width: 1.875rem;
    height: 1.875rem;
    flex-shrink: 0;
}

.contact-detail a,
.contact-detail-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: var(--weight-normal);
    line-height: 1.5;
    color: var(--color-text);
    text-decoration: none;
    margin: 0;
}

.contact-detail a:hover {
    opacity: 0.7;
}

/* Contact Page Footer (Light) */
.page-template-page-contact .site-footer {
    background-color: #FFFEFA;
    color: #242421;
}

.page-template-page-contact .footer-menu a {
    color: #242421;
}

.page-template-page-contact .footer-social a {
    color: #242421;
}

.page-template-page-contact .footer-contact,
.page-template-page-contact .footer-locations,
.page-template-page-contact .footer-social,
.page-template-page-contact .stay-connected {
    color: #242421;
}

.page-template-page-contact .js-footer-vertical-line,
.page-template-page-contact .js-footer-horizontal-line {
    background-color: #E5E3DA !important;
}

@media (max-width: 820px) {
    .page-template-page-contact .js-page-left-line,
    .page-template-page-contact .js-page-right-line {
        display: none !important;
    }

    .contact-card {
        width: 65%;
    }
}

@media (max-width: 711px) {
    .page-template-page-contact .hero-section {
        min-height: 90vh;
    }

    .contact-card {
        width: 80%;
        padding: 3rem 2rem;
    }

    .contact-card-subtitle {
        font-size: 0.9375rem;
    }

    .contact-card-description {
        font-size: 1.25rem;
    }

    .contact-detail a,
    .contact-detail-text {
        font-size: 0.9375rem;
    }

    .contact-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .contact-card-arrow img {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (min-width: 390px) and (max-width: 390px) {
    .page-template-page-contact .hero-section {
        min-height: 100vh;
    }
}

@media (max-width: 412px) {
    .contact-card-subtitle {
        font-size: 0.8125rem;
    }

    .contact-card-description {
        font-size: 1.0625rem;
    }

    .contact-detail a,
    .contact-detail-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 375px) {
    .page-template-page-contact .hero-section {
        min-height: 120vh;
    }

    .contact-card-subtitle {
        font-size: 0.6875rem;
    }

    .contact-card-description {
        font-size: 0.875rem;
    }

    .contact-detail a,
    .contact-detail-text {
        font-size: 0.6875rem;
    }
}

.page-template-page-about .static-gallery-section {
    padding-top: 6rem;
    padding-bottom: 0;
}

.page-template-page-about .reviews-section {
    padding-bottom: 6.25rem;
}

.page-template-page-about .services-section {
    padding-bottom: 7rem;
    background-color: var(--color-white);
}

.page-template-page-about .services-wrapper {
    min-height: auto;
    grid-template-columns: 50% 50%;
}

.page-template-page-about .services-content {
    padding: 0 clamp(4rem, 6vw, 6rem) clamp(3rem, 4vw, 6.25rem) clamp(5rem, 6vw, 6rem);
}

.page-template-page-about .services-section-heading-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0 0.5rem 0;
}

.page-template-page-about .services-section-arrow {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    margin-left: -2.5rem;
}

.page-template-page-about .services-section-heading {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    margin: 0;
}

.page-template-page-about .services-section-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0;
}

.page-template-page-about .services-section-description p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

.page-template-page-about .about-content-block > *:not(:last-child) {
    margin-bottom: 1.875rem;
}

.page-template-page-about .services-content > *:not(:last-child) {
    margin-bottom: 1.875rem;
}

@media (max-width: 820px) {
    .page-template-page-about .services-wrapper {
        grid-template-columns: 1fr;
    }

    .page-template-page-about .services-left {
        order: -1;
        overflow: hidden;
    }

    .page-template-page-about .services-image {
        aspect-ratio: 4 / 3;
        width: calc(100% - 4rem);
        max-width: calc(100% - 4rem);
        flex: 0 0 auto;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .page-template-page-about .js-service-image-line,
    .page-template-page-about .js-services-center-line {
        display: none !important;
    }

    .page-template-page-about .services-content {
        padding: 1rem 3rem;
        padding-top: 1rem !important;
    }

    .page-template-page-about .about-content-block {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
        margin-left: 0 !important;
    }

    .page-template-page-about .about-content-block:first-child {
        padding-bottom: 3rem !important;
    }

    .page-template-page-about .about-content-block:not(:first-child) {
        background-color: var(--color-white);
        padding-bottom: 2rem !important;
        margin-bottom: 0 !important;
        position: relative;
    }

    .page-template-page-about .about-content-block:first-child {
        position: relative !important;
    }

    .page-template-page-about .about-content-block:not(:first-child) .services-section-heading-wrapper {
        margin-top: 2rem;
    }

    .page-template-page-about .services-section-arrow {
        margin-left: 0;
    }
}

@media (max-width: 711px) {
    .page-template-page-about .services-content {
        padding: 1rem 1.5rem !important;
    }

    .page-template-page-about .about-content-block {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

.main-navigation .main-nav ul li:last-child a::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    background-image: url('/wp-content/themes/r-faucett/assets/contactarrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-top;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    border: none !important;
    outline: none !important;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(9, 15, 33, 0.45) 10.81%, rgba(9, 15, 33, 0.00) 21.86%, rgba(9, 15, 33, 0.00) 78.07%, rgba(9, 15, 33, 0.65) 89.35%);
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-border);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 3.125rem 5rem 3.125rem 6.25rem;
    margin: 0;
}

.hero-text-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2.1875rem;
    align-items: flex-start;
    width: calc(100% - var(--arrow-square, 10rem));
    position: relative;
}

.hero-inner {
    flex: 0 0 auto;
    max-width: 25rem;
}

.hero-description {
    flex: 1;
    min-width: 0;
    position: relative;
}

.hero-section h1 {
    color: var(--color-pure-white);
    font-size: var(--text-5xl);
    font-weight: var(--weight-medium);
    line-height: 1;
    padding: 0;
    position: relative;
    display: block;
}

.hero-section p {
    color: var(--color-pure-white);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-arrow img {
    width: 3.86rem;
    height: 3.86rem;
    display: block;
}

@media (max-width: 1024px) {

    .hero-section {
        min-height: 80vh;
    }

    .page-template-page-services .hero-section,
    .page-template-page-about .hero-section {
        min-height: 85vh;
    }

    .hero-content {
        padding: 2rem 3rem 2.5rem 3rem;
    }

    .hero-text-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 70%;
        padding-right: 3rem;
    }

    .hero-inner {
        max-width: 100%;
    }

    .hero-arrow {
        padding-left: 1.5rem;
    }

    .hero-arrow img {
        width: 4rem;
        height: 4rem;
        margin-left: 2rem;
    }

    .hero-section h1 {
        font-size: var(--text-4xl);
    }

    .hero-section p {
        font-size: var(--text-base);
    }

    .js-page-left-line,
    .js-page-right-line {
        display: none !important;
    }
}

@media (min-width: 1920px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section p {
        font-size: 1.125rem;
    }

    .hero-inner {
        max-width: 42rem;
    }

    .hero-description {
        flex: 0 1 auto;
        max-width: 50rem;
    }

    .page-template-page-services .hero-inner {
        max-width: 42rem;
    }

    .page-template-page-services .hero-description {
        flex: 0 1 auto;
        max-width: 50rem;
    }

    .page-template-page-services .hero-section p {
        font-size: 1.25rem;
    }
}

.js-image-side-left-line,
.js-image-side-right-line,
.js-image-side-full-bottom-line {
    display: none !important;
}

@media (min-width: 712px) and (max-width: 820px) {
    .js-image-side-left-line,
    .js-image-side-right-line,
    .js-image-side-full-bottom-line {
        display: block !important;
    }

}

@media (max-width: 1024px) {
    .page-template-page-services .site-header .inside-header {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    .page-template-page-services .hero-text-wrapper {
        flex-direction: row;
        width: 100%;
        padding-right: 0;
    }

    .page-template-page-services .hero-inner {
        max-width: 54%;
    }

    .page-template-page-services .hero-description {
        padding-left: 1.5rem;
        max-width: 40%;
    }

    .page-template-page-services .services-header-standalone {
        padding-top: 5rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .page-template-page-services .services-image {
        aspect-ratio: 800 / 950;
    }

    .page-template-page-services .services-content {
        padding-left: 5rem;
        padding-right: 4rem;
    }
}

@media (max-width: 820px) {
    .page-template-page-home .site-header .inside-header,
    .page-template-page-services .site-header .inside-header,
    .page-template-page-about .site-header .inside-header,
    .page-template-page-contact .site-header .inside-header,
    .post-type-archive-portfolio .site-header .inside-header,
    .error404 .site-header .inside-header {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 712px) and (max-width: 820px) {
    .js-hero-vertical-line {
        right: 270px !important;
    }

    .hero-arrow {
        right: 85px !important;
    }

    .hero-arrow img {
        width: 5rem;
        height: 5rem;
    }

    .page-template-page-home .services-list {
        padding-top: 22rem !important;
    }

    .page-template-page-home .service-title {
        font-size: 1rem !important;
    }

    .page-template-page-home .services-section h2 {
        font-size: 1.75rem !important;
    }

    .page-template-page-home .services-image {
        aspect-ratio: 813 / 1050 !important;
    }
}

@media (max-width: 768px) {
    .hero-arrow img {
        margin-left: 6rem;
    }
}

@media (max-width: 711px) {

    .hero-section {
        min-height: 70vh;
        align-items: center;
    }

    .hero-content {
        padding: 2rem;
        padding-top: 30rem;
    }

    .hero-text-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        width: 100%;
        padding-right: 0;
    }

    .hero-inner,
    .hero-description {
        max-width: 100%;
    }

    .hero-section h1 {
        font-size: var(--text-3xl);
        line-height: 1.2;
        margin: 0;
    }

    .hero-section p {
        font-size: var(--text-base);
        line-height: 1.5;
    }

    .hero-content::before,
    .js-hero-vertical-line,
    .js-hero-bottom-line {
        display: none !important;
    }

    .hero-arrow {
        display: none !important;
    }

    .js-service-image-line,
    .js-services-center-line {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(9, 15, 33, 0.55) 10.81%, rgba(9, 15, 33, 0.25) 40%, rgba(9, 15, 33, 0.25) 60%, rgba(9, 15, 33, 0.75) 89.35%);
    }

    .hero-content {
        padding-bottom: 4rem;
    }
}

@media (max-width: 430px) {
    .page-template-page-home .service-title {
        font-size: 1rem !important;
    }

    .page-template-page-home .service-header {
        justify-content: flex-start !important;
    }

    .page-template-page-home .service-description {
        text-align: left;
    }

    .page-template-page-home .services-list {
        padding-top: 0 !important;
    }
}

@media (max-width: 412px) {
    .hero-section h1 {
        font-size: 1.625rem;
    }

    .service-title {
        font-size: 0.875rem !important;
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-section {
    position: relative;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    overflow: visible;
    grid-template-rows: 1fr;
}

.services-left {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

.services-header {
    padding: 10rem 6.25rem 3rem 6.25rem;
}

.services-section h2 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-style: normal;
    font-weight: var(--weight-medium);
    line-height: 100%;
    margin: 0 0 1rem 0;
}

.about-section h2 {
    font-size: 2.5rem;
}

.services-subheading {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-style: normal;
    font-weight: var(--weight-regular);
    line-height: 150%;
    margin: 0 0 1.5rem 0;
}

.services-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-align: right;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: normal;
    font-weight: var(--weight-light);
    line-height: 150%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.services-link:hover {
    opacity: 0.7;
}

.services-link::after {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-image: url('/wp-content/themes/r-faucett/assets/yellow-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.services-image {
    width: 100%;
    aspect-ratio: 813 / 600;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
    position: relative;
    overflow: hidden;
    background-color: var(--color-white);
}

.services-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.services-image.crossfading::after {
    opacity: 1;
}

.services-content {
    padding: clamp(3rem, 4vw, 6.25rem);
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    height: 0;
    min-height: 100%;
    overflow: hidden;
}

.services-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: clamp(20rem, 30.5vw, 22rem);
    padding-right: 3rem;
}

.service-item {
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.service-title {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-style: normal;
    font-weight: var(--weight-bold);
    line-height: 110%;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    margin: 0;
    transition: color 0.3s ease;
}

.service-arrow {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    order: -1;
}

.service-arrow img {
    width: 100%;
    height: 100%;
    display: block;
}

.service-item.active .service-arrow {
    opacity: 1;
}

.service-item:hover .service-arrow {
    opacity: 1;
}

.service-description {
    max-height: 0;
    overflow: visible;
    opacity: 0;
    position: relative;
    z-index: 10;
    transition: max-height 0.8s ease, margin-top 0.8s ease, opacity 0.8s ease;
    padding-left: 2.5rem;
}

.service-item.active .service-description {
    max-height: 200px;
    margin-top: 1rem;
    opacity: 1;
}

.service-description p {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    line-height: 1.6;
    color: var(--color-navy);
    margin: 0;
}

@media (max-width: 1024px) {
    .services-header {
        padding: 3rem 2rem;
        padding-top: 11rem;
        margin-top: -2rem;
    }

    .services-content {
        padding: 2rem;
    }

    .services-image {
        min-height: auto;
        margin-left: 0;
        margin-right: 0;
        aspect-ratio: 813 / 900;
        width: 100%;
    }

    .services-list {
        padding-top: 26rem;
    }

    .services-section h2 {
        font-size: var(--text-3xl);
    }

    .js-services-header-top-line {
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
    }

    .services-wrapper {
        min-height: auto;
    }
}

@media (max-width: 711px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }

    .services-header {
        padding: 6rem 2rem 3rem 2rem;
    }

    .services-content {
        padding: 2rem;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .services-image {
        width: calc(100% - 4rem);
        margin-left: 2rem;
        margin-right: 2rem;
        aspect-ratio: 813 / 500;
    }

    .services-list {
        padding-top: 2rem;
    }

    .js-services-header-vertical-line,
    .js-services-header-top-line,
    .js-services-line {
        display: none !important;
    }
}

/* ==========================================
   FEATURED PROJECTS SECTION
   ========================================== */

.featured-projects-section {
    padding: 3.10rem;
    padding-top: 10rem;
    background-color: var(--color-white);
}

.featured-projects-header {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-left: 2rem;
    padding-top: 2rem;
}

.featured-projects-section h2 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-style: normal;
    font-weight: var(--weight-medium);
    line-height: 100%;
    margin: 0;
}

.featured-projects-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-light);
    line-height: 150%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.featured-projects-link:hover {
    opacity: 0.7;
}

.featured-projects-link::after {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-image: url('/wp-content/themes/r-faucett/assets/yellow-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.featured-projects-grid {
    display: flex;
    gap: 1.5rem;
    height: 850px;
    margin-bottom: 6rem;
}

.project-item {
    position: relative;
    cursor: pointer;
    overflow: visible;
    flex: 1;
    transition: flex 0.6s ease;
}

.project-item:not(.active) {
    flex: 0.5;
}

.project-item:not(.active) .project-image-wrapper {
    height: 100%;
}

.project-item.active {
    flex: 2;
}

.project-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: height 0.6s ease;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.project-item:not(.active) .project-image-wrapper img {
    filter: grayscale(100%);
}

.project-item.active .project-image-wrapper {
    height: 85%;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(calc(100% - 6.5rem));
    color: var(--color-text);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding-left: 2.5rem
}

.project-item.active .project-info {
    opacity: 1;
    pointer-events: auto;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-medium);
    line-height: 110%;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.project-info h3 a {
    color: inherit;
    text-decoration: none;
}

.project-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.project-view-link:hover {
    opacity: 0.8;
}

.project-view-link::after {
    content: '';
    width: 1rem;
    height: 1rem;
    background-image: url('/wp-content/themes/r-faucett/assets/yellow-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mobile Styles */

@media (min-width: 2560px) {
  .featured-projects-section {
    padding-top: 1rem;
  }

  .page-template-page-services .services-section-heading {
    font-size: var(--text-4xl);
  }

  .page-template-page-services .services-section-subtitle {
    font-size: 1.25rem;
  }

  .page-template-page-services .services-section-description p {
    font-size: 1.125rem;
  }

  .page-template-page-services .services-section-subtitle-2 {
    font-size: 1.25rem;
  }

  .page-template-page-services .service-title {
    font-size: 1.125rem;
  }

  .page-template-page-contact .hero-section {
    min-height: 80vh;
  }
}

@media (min-width: 1152px) {
  .featured-projects-section {
    padding-top: 6rem;
  }
}

@media (max-width: 1152px) {
  .page-template-page-services .services-section-heading {
    font-size: var(--text-4xl);
  }

  .page-template-page-services .services-section-subtitle {
    font-size: 0.8125rem;
  }

  .page-template-page-services .services-section-description p {
    font-size: 0.75rem;
  }

  .page-template-page-services .services-section-subtitle-2 {
    font-size: 0.8125rem;
  }

  .page-template-page-services .service-title {
    font-size: 0.75rem;
  }

  .page-template-page-services .services-wrapper {
    grid-template-columns: 50% 50%;
  }

  .page-template-page-services .services-content > *:not(:last-child) {
    margin-bottom: 1rem;
  }

  .page-template-page-services .services-section-subtitle-2 {
    margin-top: 1rem;
  }
}

@media (max-width: 820px) {
  .page-template-page-services .services-wrapper {
    grid-template-columns: 1fr;
  }

  .page-template-page-services .services-content {
    padding: 2rem 6rem 0rem 6rem !important;
    overflow: visible;
    height: auto;
    min-height: 0;
  }

  .page-template-page-services .services-image {
    aspect-ratio: 800 / 450;
    max-width: 80%;
    margin: 0 auto;
  }

  .page-template-page-services .services-section {
    padding-bottom: 3rem;
  }

  .js-services-center-line {
    display: none !important;
  }

  .js-service-image-line {
    left: 0 !important;
    right: 0 !important;
  }
}

@media (min-width: 712px) and (max-width: 820px) {
    .page-template-page-services .services-header-standalone {
        padding-left: 6rem;
    }

    .page-template-page-services .services-content {
        padding-left: 10rem !important;
        padding-right: 10rem !important;
    }

    .page-template-page-services .featured-projects-section {
        padding-top: 4rem;
    }
}

@media (max-width: 430px) {
    .page-template-page-services .hero-section h1 {
        font-size: 1.5rem;
    }

    .page-template-page-services .hero-text-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .page-template-page-services .hero-inner {
        max-width: 100%;
    }

    .page-template-page-services .hero-description {
        max-width: 100%;
        padding-left: 0;
    }

    .page-template-page-services .services-image {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        aspect-ratio: 800 / 600 !important;
    }

    .page-template-page-services .services-header-standalone {
        padding-left: 2rem;
    }

    .page-template-page-services .services-content {
        padding: 2rem 3rem 0 4rem !important;
    }

    .page-template-page-services .services-section {
        padding-bottom: 6rem;
    }
}

@media (max-width: 1024px) {
    .featured-projects-section {
        padding: 3rem 2rem;
        padding-top: 6rem;
        padding-bottom: 0.5rem;
    }

    .featured-projects-grid {
        height: 600px;
    }

    .featured-projects-section h2 {
        font-size: var(--text-3xl);
    }

    .project-info {
        transform: translateY(calc(100% - 4rem));
        padding-left: 0;
    }

    .js-featured-projects-line {
        display: none !important;
    }

    .featured-projects-header {
        padding-left: 0.5rem;
    }
}

@media (max-width: 711px) {
    .featured-projects-section {
        padding-top: 4rem;
    }
}

/* ==========================================
   PHIUS CERTIFICATION SECTION
   ========================================== */

.phius-section {
    background-color: var(--color-cream);
    padding: 6.25rem;
    position: relative;
    z-index: 3;
}

.phius-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.phius-logo {
    flex-shrink: 0;
}

.phius-logo img {
    max-width: 250px;
    height: auto;
}

.phius-text {
    flex: 1;
}

.phius-text p {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: var(--weight-regular);
    line-height: 150%;
    color: var(--color-text);
    margin: 0;
}

.phius-text a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .phius-section {
        padding: 3rem 2rem;
    }

    .phius-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .phius-logo img {
        max-width: 200px;
    }
}

/* ==========================================
   LEAD SAFE SECTION
   ========================================== */

.lead-safe-section {
    background-color: var(--color-cream);
    padding: 6.25rem;
    margin-top: 4rem;
    position: relative;
    z-index: 3;
}

.lead-safe-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.lead-safe-text {
    flex: 1;
    padding-left: 1rem;
}

.lead-safe-text p {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: var(--weight-regular);
    line-height: 150%;
    color: var(--color-text);
    margin: 0;
}

.lead-safe-text a {
    color: inherit;
    text-decoration: underline;
}

.lead-safe-image {
    flex-shrink: 0;
}

.lead-safe-image img {
    max-width: 250px;
    height: auto;
}

@media (max-width: 1024px) {
    .lead-safe-section {
        padding: 3rem 2rem;
    }

    .lead-safe-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .lead-safe-image img {
        max-width: 200px;
    }
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */

.reviews-section {
    padding: 6.25rem;
    padding-bottom: 3rem;
    background-color: var(--color-white);
    position: relative;
}

.page-template-page-home .reviews-section {
    padding-bottom: 0;
}

.page-template-page-home .reviews-carousel {
    padding-bottom: 0;
}

.reviews-header {
    position: relative;
    margin-bottom: 0;
    padding-top: 3.5rem;
    display: flex;
    align-items: flex-start;
}

.reviews-header::before {
    content: "";
    position: absolute;
    left: -3.125rem;
    top: 2.1rem;
    height: 1px;
    background-color: var(--color-border);
    width: calc(100% + 6.25rem);
    z-index: 1;
}


.reviews-nav {
    display: flex;
    gap: 0;
    border-left: 1px solid var(--color-border);
    position: absolute;
    top: 2.1rem;
    right: -3.1rem;
    align-items: flex-start;
}


.reviews-carousel {
    overflow: hidden;
    width: calc(100% + 6.25rem);
    margin-left: -3.125rem;
    margin-right: -3.125rem;
    margin-top: 1.5rem;
    padding-bottom: 3rem;
}

.reviews-section h2 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: normal;
    font-weight: var(--weight-medium);
    line-height: 100%;
    margin: 0;
}

.review-nav-btn {
    width: 90px;
    height: 90px;
    border: none;
    border-right: 1px solid var(--color-border);
    background-color: transparent !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}


.review-nav-btn:last-child {
    border-right: none;
}

.review-nav-btn img {
    width: 40px;
    height: 40px;
    display: block;
}

.review-nav-btn:hover:not(:disabled) {
    background-color: transparent !important;
    opacity: 0.7;
}

.review-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.reviews-track {
    display: flex;
    gap: 0;
    transition: transform 0.5s ease;
    width: fit-content;
}

.review-card {
    flex: none;
    width: calc(50vw - 3.125rem);
    box-sizing: border-box;
    background-color: var(--color-white);
    border-right: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.review-card:first-child {
    border-left: 1px solid var(--color-border);
}

.review-icon {
    margin-bottom: 1rem;
}

.review-text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: 150%;
    color: var(--color-text);
    margin: 0;
    flex: 1;
}

.reviewer-name {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: normal;
    font-weight: var(--weight-regular);
    line-height: 110%;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

@media (max-width: 1024px) {

    .reviews-header::before {
        display: none;
    }

    .reviews-section {
        padding: 2rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .page-template-page-home .reviews-section {
        padding-bottom: 4rem;
    }

    .reviews-carousel {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }

    .reviews-track {
        width: 100%;
        display: flex;
        gap: 0;
    }

    .review-card {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        padding: 1.5rem;
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
    }

    .reviews-nav {
        right: 0;
        top: 3rem;
        border-left: none;
    }

    .review-nav-btn {
        width: 60px;
        height: 60px;
        border-right: none;
    }
}

.static-gallery-section {
    padding: 6rem 0;
    padding-bottom: 6rem;
    background-color: var(--color-white);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0 3.125rem;
    box-sizing: border-box;
}

.gallery-image {
    flex: 1 1 calc(33.333% - 1.333rem);
    min-width: 0;
}

.gallery-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    display: block;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .static-gallery-section {
        padding: 2rem 0;
        padding-bottom: 6rem;
    }

    .gallery-track {
        gap: 1rem;
        padding: 0 2rem;
    }
}

@media (max-width: 430px) {
    .featured-projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .featured-projects-grid {
        flex-direction: column;
        height: auto;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .project-item,
    .project-item:not(.active),
    .project-item.active {
        flex: none;
    }

    .project-image-wrapper {
        height: auto;
    }

    .project-item:not(.active) .project-image-wrapper {
        aspect-ratio: 16 / 6;
    }

    .project-item.active .project-image-wrapper {
        aspect-ratio: 16 / 12;
    }

    .project-item.active .project-info {
        position: relative;
        transform: none;
        padding-left: 0;
        padding-top: 0.75rem;
    }

    .project-info h3 {
        font-size: var(--text-xl);
    }
}

@media (max-width: 430px) {
    .gallery-track {
        flex-direction: column;
    }

    .gallery-image {
        flex: 0 0 100%;
    }
}

.cta-section {
    width: 100%;
    min-height: 45rem;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 30rem;
    padding: 3.125rem;
    background: var(--color-pure-white);
    margin-left: 3.125rem;
    display: flex;
    flex-direction: column;
    min-height: 21rem;
}

.cta-text-wrapper {
    flex: 1;
}

.cta-content h2 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-style: normal;
    font-weight: var(--weight-medium);
    line-height: 100%;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-style: normal;
    font-weight: var(--weight-regular);
    line-height: 150%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-align: right;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: normal;
    font-weight: var(--weight-light);
    line-height: 150%;
    text-decoration: none;
    align-self: flex-end; 
    margin-top: auto; 
    transition: gap 0.3s ease;
}

.cta-button:hover {
    gap: 1rem;
}

.cta-button .cta-arrow {
    width: 20px;
    height: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cta-section {
        min-height: 400px;
    }

    .cta-content {
        padding: 2rem;
        margin-left: 2rem;
        min-height: auto;
    }

    .cta-content h2 {
        font-size: var(--text-3xl);
    }

    .cta-content p {
        font-size: var(--text-base);
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 5rem 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 64% 1fr;
    grid-template-rows: auto auto;
    row-gap: 3.5rem;
    column-gap: 0;
    max-width: 100%;
    padding: 0 3.125rem;
    align-items: start;
}

.footer-logo {
    grid-column: 1;
    grid-row: 1;
    padding-left: 2rem;
}

.footer-navigation {
    grid-column: 2;
    grid-row: 1;
    padding-left: 3rem;
    align-self: end;
    margin-bottom: 0;
}

.footer-bottom-left {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 2rem;
    padding-right: 4rem;
}

.footer-bottom-right {
    grid-column: 2;
    grid-row: 2;
    padding-left: 3rem;
}

.footer-logo img {
    max-width: 250px;
    height: auto;
}

.footer-locations {
    font-size: var(--text-base);
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0;
}

.footer-social a {
    color: var(--color-white);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.footer-social a:hover {
    color: var(--color-copper);
}

.footer-credit {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-white);
    text-decoration: none;
}

.footer-credit + .footer-credit {
    margin-top: -0.5rem;
}

.footer-credit:hover {
    color: var(--color-copper);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-light);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-copper);
}

.footer-menu li:last-child a::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    background-image: url('/wp-content/themes/r-faucett/assets/yellow-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-top;
}

.footer-contact {
    font-size: var(--text-base);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-contact p:first-child {
    margin-top: 0;
}

@media (max-width: 1152px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 2.5rem;
    }

    .footer-logo {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .footer-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-left: 0;
    }

    .footer-bottom-left {
        grid-column: 1;
        grid-row: 3;
        padding-right: 2rem;
    }

    .footer-bottom-right {
        grid-column: 2;
        grid-row: 3;
        padding-left: 0;
    }

    .js-footer-vertical-line {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .footer-logo,
    .footer-bottom-left {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .footer-navigation,
    .footer-bottom-left,
    .footer-bottom-right {
        grid-column: 1;
        padding-left: 0;
    }

    .footer-navigation {
        grid-row: 2;
        padding-bottom: 2rem;
    }

    .footer-bottom-left {
        padding-top: 1rem;
    }

    .footer-bottom-left {
        grid-row: 3;
    }

    .footer-bottom-right {
        grid-row: 4;
    }
}

@media (max-width: 430px) {
    .footer-menu {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 390px) {
    .footer-locations,
    .footer-social,
    .footer-contact,
    .footer-credit {
        font-size: var(--text-xs);
    }

    .footer-menu a {
        font-size: var(--text-base);
    }

    .footer-logo img {
        max-width: 200px;
    }
}

/* ==========================================
   SINGLE PORTFOLIO
   ========================================== */

/* Transparent header (same pattern as services/about/contact) */
.single-portfolio .site-header,
.single-portfolio .site-header .inside-header,
.single-portfolio .site-header .main-navigation,
.single-portfolio .site-header .site-logo,
.single-portfolio .site-header .main-title {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.single-portfolio .site-header {
    position: absolute !important;
    width: 100% !important;
    z-index: 999;
    top: 0;
    left: 0;
}

.single-portfolio .site-header .inside-header {
    max-width: none !important;
    padding-left: 6.25rem !important;
    padding-right: 6.25rem !important;
    padding-top: 3rem !important;
}

.single-portfolio .site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.25rem;
    height: 1px;
    background-color: var(--color-border);
    z-index: 9998;
}

.single-portfolio .main-navigation .main-nav ul li a {
    color: var(--color-white) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--text-xl) !important;
    font-weight: var(--weight-light) !important;
    line-height: 150% !important;
    font-style: normal;
}

.single-portfolio .main-navigation .main-nav ul li a:hover {
    opacity: 0.8;
}

.single-portfolio .site-title a,
.single-portfolio .site-logo a,
.single-portfolio .menu-toggle {
    color: var(--color-pure-white) !important;
}

/* Mobile nav overlay */
.single-portfolio .main-navigation.toggled .main-nav > ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--color-charcoal);
    padding: 6rem 2rem 2rem;
    margin: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.single-portfolio .main-navigation .main-nav > ul {
    transition: transform 0.3s ease;
}

.single-portfolio .main-navigation.toggled .main-nav > ul li {
    display: block;
    text-align: left;
}

.single-portfolio .main-navigation.toggled .main-nav > ul li a {
    padding: 0.75rem 0 !important;
    display: block;
}

.single-portfolio .site-header:has(.main-navigation.toggled) {
    z-index: 100000 !important;
}

.single-portfolio .site-header:has(.main-navigation.toggled)::after {
    display: none;
}

.single-portfolio .main-navigation.toggled .menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: 3.5rem;
    z-index: 100001;
    color: var(--color-pure-white) !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem !important;
    display: block !important;
    line-height: 1 !important;
}

.single-portfolio .main-navigation.toggled .menu-toggle .mobile-menu {
    display: none;
}

/* Hero — 90vh, no arrow */
.single-portfolio .site-content,
.single-portfolio .content-area,
.single-portfolio #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.single-portfolio .hero-section {
    min-height: 80vh;
}

.single-portfolio .hero-text-wrapper {
    width: 100%;
    gap: 3.75rem;
    align-items: flex-start;
}

.single-portfolio .hero-inner {
    flex: 1 1 0;
    max-width: none;
}

.single-portfolio .hero-description {
    flex: 0 0 auto;
    max-width: 50rem;
    padding-left: 0;
}

.single-portfolio .hero-slide {
    background-position: center 65%;
}

.single-portfolio .hero-overlay {
    background: linear-gradient(180deg, rgba(9, 15, 33, 0.45) 10.81%, rgba(9, 15, 33, 0.00) 21.86%, rgba(9, 15, 33, 0.00) 68%, rgba(9, 15, 33, 0.65) 82%);
}

.single-portfolio .hero-section h1 {
    font-size: var(--text-4xl);
    margin-bottom: 0;
    padding-bottom: 0;
}

.single-portfolio .static-gallery-section {
    padding-bottom: 10rem;
}

/* Gallery — masonry 3-column layout */
.single-portfolio .gallery-track {
    display: block;
    columns: 3;
    column-gap: 2rem;
}

.single-portfolio .gallery-image {
    break-inside: avoid;
    margin-bottom: 2rem;
    flex: none;
}

/* Gallery — clickable images */
.single-portfolio .gallery-image a {
    display: block;
    cursor: pointer;
}

.single-portfolio .gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: auto;
}

.single-portfolio .gallery-image a img {
    transition: opacity 0.3s ease;
}

.single-portfolio .gallery-image a:hover img {
    opacity: 0.85;
}

/* Lightbox overlay */
.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.portfolio-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100011;
    line-height: 1;
    padding: 0.5rem;
}

.portfolio-lightbox-close:hover {
    opacity: 0.7;
}

.portfolio-lightbox-prev,
.portfolio-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 3.5rem;
    cursor: pointer;
    z-index: 100011;
    padding: 1rem;
    line-height: 1;
}

.portfolio-lightbox-prev {
    left: 1.5rem;
}

.portfolio-lightbox-next {
    right: 1.5rem;
}

.portfolio-lightbox-prev:hover,
.portfolio-lightbox-next:hover {
    opacity: 0.7;
}

/* Portfolio responsive */
@media (max-width: 1024px) {
    .single-portfolio .site-header .inside-header {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

@media (max-width: 820px) {
    .single-portfolio .site-header .inside-header {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 1024px) {
    .single-portfolio .static-gallery-section {
        padding-top: 5rem;
    }

    .single-portfolio .hero-section {
        align-items: flex-end !important;
    }

    .single-portfolio .hero-content {
        align-items: flex-start !important;
    }

    .single-portfolio .hero-text-wrapper {
        align-items: flex-start !important;
        width: 100% !important;
    }

    .single-portfolio .hero-section h1 {
        text-align: left !important;
    }

    .single-portfolio .hero-content::before {
        display: none !important;
    }
}

@media (max-width: 711px) {
    .single-portfolio .hero-section {
        min-height: 35vh;
    }

    .single-portfolio .hero-section h1 {
        font-size: var(--text-3xl);
    }

    .single-portfolio .gallery-track {
        columns: 1;
    }

    .portfolio-lightbox-prev,
    .portfolio-lightbox-next {
        font-size: 2.5rem;
        padding: 0.5rem;
    }

    .portfolio-lightbox-prev {
        left: 0.5rem;
    }

    .portfolio-lightbox-next {
        right: 0.5rem;
    }
}

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

.post-type-archive-portfolio .site-content,
.post-type-archive-portfolio .content-area,
.post-type-archive-portfolio #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.post-type-archive-portfolio .site-header,
.post-type-archive-portfolio .site-header .inside-header,
.post-type-archive-portfolio .site-header .main-navigation,
.post-type-archive-portfolio .site-header .site-logo,
.post-type-archive-portfolio .site-header .main-title {
    background-color: var(--color-text) !important;
    background: var(--color-text) !important;
}

.post-type-archive-portfolio .site-header::after {
    bottom: 0;
}

/* Hero — dark background, content-sized */
.post-type-archive-portfolio .portfolio-archive-hero {
    background-color: var(--color-white);
    min-height: auto;
    height: auto;
    padding: 10rem 3.125rem 1rem;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.post-type-archive-portfolio .portfolio-archive-hero .hero-content::before {
    display: none;
}

.post-type-archive-portfolio .portfolio-archive-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 1rem !important;
    padding-top: 6rem !important;
    padding-bottom: 1rem;
}

.post-type-archive-portfolio .portfolio-archive-hero .hero-inner {
    max-width: 42rem;
}

.post-type-archive-portfolio .portfolio-archive-hero h1 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--weight-medium);
    line-height: 100%;
    margin: 0 0 1.5rem;
}

.post-type-archive-portfolio .portfolio-archive-description {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--weight-light);
    line-height: 150%;
    max-width: 40rem;
    margin: 0;
    opacity: 0.8;
}

/* Portfolio grid */
.post-type-archive-portfolio .portfolio-grid-section {
    background-color: var(--color-white);
    padding: 3rem 0 6rem;
}

.post-type-archive-portfolio .portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 3.125rem;
}

.post-type-archive-portfolio .portfolio-grid-item {
    flex: 1 1 calc(33.333% - 1.333rem);
    min-width: 0;
    max-width: calc(33.333% - 1.333rem);
}

.post-type-archive-portfolio .portfolio-grid-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.post-type-archive-portfolio .portfolio-grid-info {
    padding-top: 1rem;
    padding-left: 1rem;
}

.post-type-archive-portfolio .portfolio-grid-info h3 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-medium);
    line-height: 110%;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.post-type-archive-portfolio .portfolio-grid-info h3 a {
    color: inherit;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .post-type-archive-portfolio .portfolio-archive-hero {
        padding: 10rem 2rem 4rem;
    }

    .post-type-archive-portfolio .portfolio-grid {
        gap: 1rem;
        padding: 0 2rem;
    }

    .post-type-archive-portfolio .portfolio-grid-item {
        flex: 1 1 calc(33.333% - 0.667rem);
        max-width: calc(33.333% - 0.667rem);
    }
}

@media (min-width: 712px) and (max-width: 820px) {
    .post-type-archive-portfolio .portfolio-archive-hero .hero-text-wrapper {
        width: 100%;
    }

    .post-type-archive-portfolio .portfolio-archive-hero .hero-inner {
        max-width: none;
    }
}

@media (max-width: 711px) {
    .post-type-archive-portfolio .portfolio-archive-hero .hero-content {
        padding-top: 8rem !important;
        padding-bottom: 0 !important;
    }

    .post-type-archive-portfolio .portfolio-archive-hero h1 {
        font-size: var(--text-3xl);
    }

    .post-type-archive-portfolio .portfolio-grid-section {
        padding: 3rem 0 3rem;
    }

    .post-type-archive-portfolio .portfolio-grid-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 430px) {
    .post-type-archive-portfolio .portfolio-archive-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .post-type-archive-portfolio .portfolio-grid {
        padding: 0 1.5rem;
    }
}

/* ==========================================
   404 PAGE
   ========================================== */

.error-404-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    padding: 15rem 2rem 6rem;
}

.error-404-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.error-404-oops {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-copper);
    padding-top: 3rem;
}

.error-404-number {
    font-family: var(--font-heading);
    font-size: clamp(7rem, 18vw, 14rem);
    font-weight: var(--weight-bold);
    line-height: 1;
    color: var(--color-border);
    letter-spacing: -0.04em;
    margin: -0.25rem 0;
}

.error-404-heading {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
}

.error-404-subtext {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
    color: var(--color-text);
    opacity: 0.7;
    margin: 0;
}

.error-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-light);
    line-height: 150%;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.error-404-btn:hover {
    gap: 1rem;
}

.error-404-arrow {
    width: 20px;
    height: auto;
}

@media (max-width: 768px) {
    .error-404-section {
        min-height: 70vh;
        padding: 15rem 1.5rem 5rem;
    }

    .error-404-heading {
        font-size: var(--text-2xl);
    }

    .error-404-subtext {
        font-size: var(--text-base);
    }
}

/* ==========================================
   PRIVACY POLICY PAGE
   ========================================== */

/* Hide empty GP content divs (template outputs custom wrapper) */
.page-template-page-privacy-policy .site-grid-container,
.page-template-page-privacy-policy .site-content {
    display: none;
}

/* Same transparent/absolute header as all other main pages */
.page-template-page-privacy-policy .site-header,
.page-template-page-privacy-policy .site-header .inside-header,
.page-template-page-privacy-policy .site-header .main-navigation,
.page-template-page-privacy-policy .site-header .site-logo,
.page-template-page-privacy-policy .site-header .main-title {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.page-template-page-privacy-policy .site-header {
    position: absolute !important;
    width: 100% !important;
    z-index: 999;
    top: 0;
    left: 0;
}

.page-template-page-privacy-policy .site-header .inside-header {
    max-width: none !important;
    padding-left: 6.25rem !important;
    padding-right: 6.25rem !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem;
}

.page-template-page-privacy-policy .site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.25rem;
    height: 1px;
    background-color: var(--color-border);
    z-index: 9998;
}

/* Dark nav text — header sits over white content, not a dark hero */
.page-template-page-privacy-policy .main-navigation .main-nav ul li a {
    color: var(--color-text) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--text-xl) !important;
    font-weight: var(--weight-light) !important;
    line-height: 150% !important;
    font-style: normal;
}

.page-template-page-privacy-policy .main-navigation .main-nav ul li a:hover {
    opacity: 0.7;
}

.page-template-page-privacy-policy .site-title a,
.page-template-page-privacy-policy .site-logo a,
.page-template-page-privacy-policy .menu-toggle {
    color: var(--color-text) !important;
}

/* Mobile menu (same charcoal drawer as other templates) */
.page-template-page-privacy-policy .main-navigation.toggled .main-nav > ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--color-charcoal);
    padding: 6rem 2rem 2rem;
    margin: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.page-template-page-privacy-policy .main-navigation .main-nav > ul {
    transition: transform 0.3s ease;
}

.page-template-page-privacy-policy .main-navigation.toggled .main-nav > ul li {
    display: block;
    text-align: left;
}

.page-template-page-privacy-policy .main-navigation.toggled .main-nav > ul li a {
    padding: 0.75rem 0 !important;
    display: block;
    color: var(--color-white) !important;
}

.page-template-page-privacy-policy .site-header:has(.main-navigation.toggled) {
    z-index: 100000 !important;
}

.page-template-page-privacy-policy .site-header:has(.main-navigation.toggled)::after {
    display: none;
}

.page-template-page-privacy-policy .main-navigation.toggled .menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: 3.5rem;
    z-index: 100001;
    color: var(--color-pure-white) !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem !important;
    display: block !important;
    line-height: 1 !important;
}

.page-template-page-privacy-policy .main-navigation.toggled .menu-toggle .mobile-menu {
    display: none;
}

/* Content area — top padding clears the absolute header */
.privacy-policy-wrapper {
    background-color: var(--color-pure-white);
    padding: 14rem 0 8rem;
}

.privacy-policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.privacy-policy-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-light);
    color: var(--color-text);
    margin-bottom: 3rem;
}

.privacy-policy-body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--color-text);
}

.privacy-policy-body h2,
.privacy-policy-body h3 {
    font-family: var(--font-heading);
    font-weight: var(--weight-light);
    color: var(--color-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.privacy-policy-body p {
    margin-bottom: 1.25rem;
}

.privacy-policy-body a {
    color: var(--color-copper);
}

.privacy-policy-body a:hover {
    opacity: 0.8;
}

/* Footer: light theme (matches contact page) */
.page-template-page-privacy-policy .site-footer {
    background-color: #FFFEFA;
    color: #242421;
}

.page-template-page-privacy-policy .footer-menu a {
    color: #242421;
}

.page-template-page-privacy-policy .footer-social a {
    color: #242421;
}

.page-template-page-privacy-policy .footer-contact,
.page-template-page-privacy-policy .footer-locations,
.page-template-page-privacy-policy .footer-social,
.page-template-page-privacy-policy .stay-connected {
    color: #242421;
}

.page-template-page-privacy-policy .js-footer-vertical-line,
.page-template-page-privacy-policy .js-footer-horizontal-line {
    background-color: #E5E3DA !important;
}

.page-template-page-privacy-policy .footer-credit {
    color: #242421;
}

.page-template-page-privacy-policy .footer-credit:hover {
    color: var(--color-copper);
}

@media (max-width: 820px) {
    .page-template-page-privacy-policy .site-header .inside-header {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem;
    }

    .privacy-policy-wrapper {
        padding: 10rem 0 6rem;
    }
}