/* ===================================
   FENCE TYPES PAGES
   Unique styles for fence type pages
   (Cedar, Vinyl, Chain Link, etc.)
   =================================== */

/* ===================================
   HERO SECTION
   =================================== */
.fence-type-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fence-type-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fence-type-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fence-type-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.fence-type-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
    padding: var(--space-10) var(--space-5);
    max-width: 1020px;
}

.breadcrumb-light {
    margin-bottom: var(--space-6);
}

.breadcrumb-light ol {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
    font-size: var(--font-sm);
}

.breadcrumb-light a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.breadcrumb-light a:hover {
    color: var(--text-white);
}

.breadcrumb-light li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-2);
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-light span[aria-current] {
    color: var(--text-white);
}

.fence-type-label {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-white);
    padding: var(--space-2) var(--space-5);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-4);
}

.fence-type-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--font-5xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
}

.fence-type-tagline {
    font-size: var(--font-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    font-weight: 300;
}

.fence-type-hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   FACTS BAR
   =================================== */
.fence-type-facts {
    background-color: var(--gray-900);
    padding: var(--space-6) 0;
}

.facts-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.fact-item {
    text-align: center;
    color: var(--text-white);
}

.fact-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.fact-label {
    display: block;
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-1);
}

.fact-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   SHOWCASE GRID
   =================================== */
.fence-type-showcase {
    padding: var(--space-11) 0;
    background-color: var(--gray-50);
}

.showcase-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.showcase-header h2 {
    font-family: var(--font-heading);
    font-size: var(--font-3xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.showcase-header p {
    font-size: var(--font-base);
    color: var(--text-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: var(--space-4);
}

.showcase-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.showcase-item.showcase-large {
    grid-column: span 2;
    grid-row: span 2;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-item:hover img {
    transform: scale(1.08);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-5);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-overlay span {
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-cta {
    text-align: center;
    margin-top: var(--space-8);
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-7);
    background-color: var(--gray-900);
    color: var(--text-white);
    font-weight: 600;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary-dark:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* ===================================
   SPLIT SECTION
   =================================== */
.fence-type-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.split-image {
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content {
    padding: var(--space-11) var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-primary);
}

.split-content h2 {
    font-family: var(--font-heading);
    font-size: var(--font-4xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

.split-content .lead {
    font-size: var(--font-lg);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.split-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.split-features {
    list-style: none;
    margin-top: var(--space-6);
}

.split-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--gray-200);
}

.split-features li:last-child {
    border-bottom: none;
}

.split-features svg,
.split-features i {
    color: var(--primary);
    flex-shrink: 0;
    font-size: 20px;
}

/* ===================================
   STYLES SECTION
   =================================== */
.fence-type-styles {
    padding: var(--space-11) 0;
    background-color: var(--bg-primary);
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.style-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.style-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.style-image {
    height: 280px;
    overflow: hidden;
}

.style-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-card:hover .style-image img {
    transform: scale(1.05);
}

.style-content {
    padding: var(--space-6);
}

.style-content h3 {
    font-family: var(--font-heading);
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.style-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.style-content a {
    color: var(--primary);
}
/* ===================================
   IMAGE BREAK
   =================================== */
.fence-type-image-break {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.fence-type-image-break>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-break-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-break-content {
    text-align: center;
    color: var(--text-white);
}

.image-break-stat {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-5xl);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.image-break-text {
    display: block;
    font-size: var(--font-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===================================
   BENEFITS GRID
   =================================== */
.fence-type-benefits {
    padding: var(--space-11) 0;
    background-color: var(--gray-50);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.benefit-card {
    background-color: var(--bg-primary);
    padding: var(--space-7);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-subtle);
    border-radius: 50%;
}

.benefit-icon svg,
.benefit-icon i {
    color: var(--primary);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--font-sm);
}

/* ===================================
   CTA SECTION
   =================================== */
.fence-type-cta {
    padding: var(--space-11) 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, #2d2a2a 100%);
}

.fence-type-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
}

.fence-type-cta .cta-content {
    flex: 1;
}

.fence-type-cta h2 {
    font-family: var(--font-heading);
    font-size: var(--font-3xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.fence-type-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-base);
    line-height: 1.7;
    margin: 0 0 var(--space-6) 0;
    padding: 0;
    text-indent: 0;
}

.fence-type-cta .cta-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cta-stats {
    display: flex;
    gap: var(--space-8);
}

.cta-stat {
    text-align: center;
}

.cta-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-5xl);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.cta-stat-label {
    display: block;
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-2);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .fence-type-hero h1 {
        font-size: var(--font-4xl);
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .showcase-item.showcase-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 350px;
    }

    .showcase-item:not(.showcase-large) {
        height: 200px;
    }

    .fence-type-split {
        grid-template-columns: 1fr;
    }

    .split-image {
        height: 400px;
    }

    .split-content {
        padding: var(--space-9) var(--space-6);
    }

    .styles-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fence-type-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .fence-type-cta p {
        max-width: none;
    }

    .fence-type-cta .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .fence-type-hero {
        min-height: 45vh;
    }

    .fence-type-hero h1 {
        font-size: var(--font-3xl);
    }

    .fence-type-tagline {
        font-size: var(--font-base);
    }

    .facts-grid {
        gap: var(--space-5);
    }

    .fact-number {
        font-size: var(--font-2xl);
    }

    .fact-divider {
        width: 40px;
        height: 1px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item.showcase-large {
        grid-column: span 1;
        height: 300px;
    }

    .showcase-item:not(.showcase-large) {
        height: 200px;
    }

    .showcase-overlay {
        transform: translateY(0);
    }

    .split-image {
        height: 300px;
    }

    .split-content h2 {
        font-size: var(--font-3xl);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .image-break-stat {
        font-size: var(--font-4xl);
    }

    .cta-stats {
        gap: var(--space-6);
    }

    .cta-stat-number {
        font-size: var(--font-4xl);
    }
}

@media (max-width: 480px) {
    .fence-type-hero {
        min-height: 40vh;
    }

    .fence-type-hero h1 {
        font-size: var(--font-2xl);
    }

    .fence-type-hero-cta {
        flex-direction: column;
    }

    .fence-type-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .facts-grid {
        flex-direction: column;
        gap: var(--space-4);
    }

    .style-image {
        height: 220px;
    }
}

/* ===================================
   GRID OVERRIDES
   =================================== */
.styles-grid.grid-3col {
    grid-template-columns: repeat(3, 1fr) !important;
}

.styles-grid.grid-4col {
    grid-template-columns: repeat(4, 1fr) !important;
}

.fence-types-grid.grid-3col {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1024px) {

    .styles-grid.grid-3col,
    .styles-grid.grid-4col,
    .fence-types-grid.grid-3col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    .styles-grid.grid-3col,
    .styles-grid.grid-4col,
    .fence-types-grid.grid-3col,
    .fence-types-section .fence-types-grid.grid-2col {
        grid-template-columns: 1fr !important;
    }
}
