/* Index Page Styles */

/*--------------------------------------------------------------
# Layout Adjustments for Fixed Header
--------------------------------------------------------------*/
/* Remove padding from .site-main on homepage since we have a fixed header */
.home .site-main,
.page-template-default .site-main {
    padding: 0;
}

/*--------------------------------------------------------------
# Hero Section (apca-hero-section)
--------------------------------------------------------------*/
.apca-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

/* Background Media */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* If video is present, hide the image */
.hero-video ~ .hero-background-image {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Decorative Triangles */
.hero-decoration-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: clamp(80px, 12vw, 150px) solid rgba(205, 5, 41, 0.3);
    border-right: clamp(80px, 12vw, 150px) solid transparent;
    z-index: 2;
}

.hero-decoration-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: clamp(80px, 12vw, 150px) solid rgba(48, 73, 221, 0.3);
    border-left: clamp(80px, 12vw, 150px) solid transparent;
    z-index: 2;
}

/* Kicker - Hero Subtitle Style */
.apca-hero-section .apca-hero-subtitle h6 {
    font-size: 1rem;
    font-family: 'Cabrito Sans', sans-serif;
    font-weight: lighter;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    width: fit-content;
}

.apca-hero-section .divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Main Title */
.hero-title {
    font-family: 'Nimbus Sans Extd', sans-serif;
    font-size: clamp(2rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 clamp(3rem, 6vw, 5rem);
    text-transform: uppercase;
    max-width: 1100px;
}

/* Content Grid */
.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

/* Left: Diagonal Lines */
.hero-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-diagonal-lines {
    display: flex;
    gap: 3px;
    height: 100px;
    align-items: center;
}

.diagonal-line {
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    display: block;
}

/* Right: Description */
.hero-right {
    display: flex;
    align-items: center;
}

.hero-description {
    font-family: 'Cabrito Sans', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: 600px;
}

/* Video Link */
.hero-video-link {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.hero-play-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #fff;
    text-decoration: none;
    font-family: 'Cabrito Sans', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.hero-play-link:hover {
    color: var(--color-apca-red);
    border-bottom-color: var(--color-apca-red);
}

.play-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-apca-red);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.hero-play-link:hover .play-icon {
    background-color: var(--color-apca-red-light);
}

.play-text {
    letter-spacing: 0.02em;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .apca-hero-section {
        min-height: 85vh;
    }

    .hero-content-grid {
        gap: 2.5rem;
    }

    .hero-diagonal-lines {
        height: 80px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .apca-hero-section {
        min-height: auto;
        min-height: 100svh;
    }

    .hero-content-wrapper {
        padding: 2.5rem 0;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-decoration-top-left,
    .hero-decoration-bottom-right {
        border-width: 60px;
    }

    .apca-hero-section .apca-hero-subtitle h6 {
        font-size: 0.9rem;
        padding-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .apca-hero-section .divider {
        margin-bottom: 1.5rem;
    }

    .hero-title {
        margin-bottom: 2.5rem;
        font-size: clamp(2rem, 9vw, 3.5rem);
    }

    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .hero-diagonal-lines {
        height: 60px;
        gap: 2px;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
    }

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

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content-wrapper {
        padding: 2rem 0;
    }

    .hero-container {
        padding: 0 0.75rem;
    }

    .hero-decoration-top-left,
    .hero-decoration-bottom-right {
        border-width: 50px;
    }

    .hero-title {
        font-size: clamp(1.25rem, 10vw, 2rem);
        line-height: 1.1;
    }

    .hero-diagonal-lines {
        height: 50px;
    }

    .play-icon {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
}

/*--------------------------------------------------------------
/* 
--------------------------------------------------------------
Hero Section (apca-design-section)
--------------------------------------------------------------*/
.apca-design-section {
    overflow: hidden;
    position: relative;
    padding: clamp(40px, 6vw, 80px) 0 0;
}

.apca-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.apca-hero-subtitle h6 {
    font-size: 1rem;
    font-family: 'Cabrito Sans', sans-serif;
    font-weight: lighter;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    width: fit-content;
}

.apca-hero-title-container {
  width: 100%;
  margin: 3rem 0;
}

.apca-hero-title {
    font-family: 'Nimbus Sans Extd';
    font-size: clamp(1.8rem, 15vw, 6rem);
    font-weight: 900;
    font-style: Black;
    line-height: 86%;
    letter-spacing: -6%;
    margin: 0;
    text-transform: uppercase;
}

.apca-hero-title br {
    display: block;
}


.apca-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: 600px;
}

.apca-hero-right,
.apca-hero-left {
    box-sizing: border-box;
    width: 100%;
}

/* Right Content Area */
.apca-design-section .apca-hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    height: 100%;
    width: 100%;
}

.apca-design-section .apca-hero-right::before{
    position: absolute;
    content: '';
    left: -15%;
    width: 100%;
    min-width: clamp(500px, 80vw, 750px);
    height: 100%;
    background-color: var(--color-gray-dark);
    z-index: -1;
}

/* Hero Image */
.apca-design-section .apca-hero-right .apca-hero-image {
    position: relative;
    margin-top: clamp(1rem, 3vw, 2rem);
    margin-left: clamp(0.5rem, 2vw, 1rem);
    width: 100%;
    min-height: clamp(400px, 50vw, 690px);
    overflow: hidden;
}

.apca-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.apca-design-section .apca-hero-right .apca-decortion-image{
    position: relative;
    margin-left: clamp(5%, 10%, 15%);
    bottom: 0;
    max-width: 100%;
}

.apca-design-section .apca-hero-right .apca-decortion-image img {
    width: 100%;
    height: auto;
    display: block;
}

.apca-design-section .apca-hero-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0 0 clamp(5%, 8%, 10%);
}
/* Description Content */
.apca-hero-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.apca-hero-desc-main {
    font-family: 'Coolvetica Rg', sans-serif;
    font-style: normal;
    font-weight: bold;
    text-align: left;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    color: #333;
    margin: 0;
    max-width: 100%;
}

.apca-hero-desc-features {
    font-family: 'Cabrito Sans', sans-serif;
    font-style: normal;
    text-align: left;
    font-size: clamp(0.95rem, 1.6vw, 1rem);
    line-height: 1.5;
    color: #666;
    margin: 0;
    max-width: 100%;
}

.apca-hero-cta {
    margin-top: auto;
    padding-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .apca-hero-content {
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .apca-design-section .apca-hero-left {
        padding: 0 0 0 clamp(3%, 5%, 8%);
    }
}

@media (max-width: 1024px) {
    .apca-hero-content {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 3rem);
        min-height: auto;
    }
    
    .apca-hero-title {
        font-size: clamp(1.5rem, 8vw, 3.5rem);
    }
    
    .apca-design-section .apca-hero-right {
        order: 2;
    }
    
    .apca-design-section .apca-hero-left {
        order: 1;
        padding: 0;
        align-items: flex-start;
    }
    
    .apca-design-section .apca-hero-right::before {
        left: 0;
        width: 100%;
        min-width: 100%;
    }
    
    .apca-design-section .apca-hero-right .apca-hero-image {
        margin-left: 0;
        min-height: clamp(350px, 45vw, 500px);
    }
    
    .apca-design-section .apca-hero-right .apca-decortion-image {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .apca-design-section {
        padding: clamp(2rem, 5vw, 3rem) 0;
    }
    
    .apca-hero-container {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .apca-hero-content {
        gap: clamp(1.5rem, 4vw, 2rem);
    }
    
    .apca-hero-title {
        font-size: clamp(1.4rem, 9vw, 2.5rem);
        line-height: 0.9;
    }
    
    .apca-hero-title-container {
        margin: clamp(2rem, 4vw, 2.5rem) 0;
    }
    
    .apca-design-section .apca-hero-right .apca-hero-image {
        min-height: clamp(300px, 50vw, 400px);
        margin-top: 0;
    }
    
    .apca-hero-description {
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }
    
    .apca-hero-desc-main,
    .apca-hero-desc-features {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }
    
    .apca-hero-cta {
        margin-top: clamp(1rem, 3vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    .apca-design-section {
        padding: clamp(1.5rem, 6vw, 2rem) 0;
    }
    
    .apca-hero-container {
        padding: 0 clamp(0.75rem, 4vw, 1rem);
    }
    
    .apca-hero-title {
        font-size: clamp(1.2rem, 11vw, 1.8rem);
        line-height: 0.88;
    }
    
    .apca-hero-title-container {
        margin: clamp(1.5rem, 5vw, 2rem) 0;
    }
    
    .apca-design-section .apca-hero-right .apca-hero-image {
        min-height: clamp(250px, 60vw, 350px);
    }
    
    .apca-hero-subtitle h6 {
        font-size: 0.85rem;
    }
    
    .apca-hero-desc-main,
    .apca-hero-desc-features {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        line-height: 1.5;
    }
}

/*--------------------------------------------------------------
# Slider Section
--------------------------------------------------------------*/
.apca-slider-section {
    max-width: 2000px;
    margin: 0 auto;
    padding: 4rem 0;
    background: #fff;
    display: flex;
    justify-content: center;
}

/*--------------------------------------------------------------
# Quote Section 1
--------------------------------------------------------------*/
.quote-section-1 {
    position: relative;
    background-color: var(--color-gray-light);
    background-image: url('../../images/background/bg-apca-2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 3rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: #fff;
}

/* Overlay in front of background image */
.quote-section-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15); /* White overlay with 85% opacity */
    /* Alternative overlays you can try:
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    /* background: linear-gradient(135deg, rgba(205, 5, 41, 0.3), rgba(48, 73, 221, 0.3)); /* APCA brand gradient */
    /* background: rgba(245, 245, 245, 0.9); /* Light gray overlay */
    z-index: 1;
}

.quote-section-1 .title-container,
.quote-section-1 .content-container {
    position: relative;
    z-index: 2;
    width: 50%;
}

/* Responsive adjustments for overlay */
@media (max-width: 768px) {
    .quote-section-1 {
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .quote-section-1 .title-container,
    .quote-section-1 .content-container {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/*--------------------------------------------------------------
# Areas List Section
--------------------------------------------------------------*/
.apca-areas-list-section {
    background: #f2f2f2;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.apca-areas-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.apca-areas-list-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.apca-areas-list-header-mark {
    width: 0;
    height: 0;
    margin-top: 0.15rem;
    border-top: 22px solid var(--color-apca-blue);
    border-right: 22px solid transparent;
    flex-shrink: 0;
}

.apca-areas-list-kicker {
    font-family: 'Cabrito Sans', sans-serif;
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    font-weight: 400;
    color: #4e4e4e;
    line-height: 1.3;
    letter-spacing: 0.02em;
    padding-top: 0.2rem;
    padding-right: 1.5rem;
    border-top: 1px solid #8e8e8e;
}

.apca-areas-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apca-areas-list-item {
    border-top: 1px solid #dddddd;
}

.apca-areas-list-link {
    display: grid;
    grid-template-columns: clamp(48px, 5vw, 72px) 1fr;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(0.8rem, 2vw, 1.15rem) 0;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.apca-areas-list-item:last-child {
    border-bottom: 1px solid #dddddd;
}

.apca-areas-list-number {
    font-family: 'Cabrito Sans', sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1;
    color: #c8c8c8;
}

.apca-areas-list-name {
    font-family: 'Nimbus Sans Extd', sans-serif;
    font-size: clamp(2rem, 6.3vw, 4.7rem);
    font-weight: 900;
    font-style: normal;
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: #cfcfcf;
}

.apca-areas-list-link:hover .apca-areas-list-name,
.apca-areas-list-link:focus-visible .apca-areas-list-name {
    color: #0e0e0e;
}

.apca-areas-list-link:hover .apca-areas-list-number,
.apca-areas-list-link:focus-visible .apca-areas-list-number {
    color: #0e0e0e;
}

.apca-areas-list-link:focus-visible {
    outline: 2px solid #1a4d8f;
    outline-offset: 6px;
}

@media (max-width: 768px) {
    .apca-areas-list-container {
        padding: 0 1rem;
    }

    .apca-areas-list-header {
        margin-bottom: 1.5rem;
    }

    .apca-areas-list-link {
        grid-template-columns: 42px 1fr;
        gap: 0.75rem;
        padding: 0.85rem 0;
    }

    .apca-areas-list-name {
        font-size: clamp(1.7rem, 8vw, 3rem);
        letter-spacing: -0.04em;
    }
}

@media (max-width: 480px) {
    .apca-areas-list-header {
        gap: 0.55rem;
    }

    .apca-areas-list-header-mark {
        border-top-width: 18px;
        border-right-width: 18px;
    }

    .apca-areas-list-kicker {
        font-size: 0.75rem;
        padding-right: 0.5rem;
    }

    .apca-areas-list-link {
        grid-template-columns: 36px 1fr;
        gap: 0.6rem;
    }

    .apca-areas-list-number {
        font-size: 1rem;
    }

    .apca-areas-list-name {
        font-size: clamp(1.45rem, 9vw, 2.15rem);
        line-height: 0.95;
    }
}
