﻿/**
 * PEB Page Redesign Styles
 * KMS Technologies
 * Dark navy + gold design system (matches about-us.css / manufacturing.css)
 */

/* ===== CSS VARIABLES ===== */
:root {
    --peb2-primary: #1a1a2e;
    --peb2-primary-dark: #16213e;
    --peb2-primary-light: #252a48;
    --peb2-yellow: #ffd700;
    --peb2-yellow-dark: #e6c200;
    --peb2-amber: #f59e0b;
    --peb2-amber-dark: #d97706;
    --peb2-accent: #00bfa5;
    --peb2-white: #ffffff;
    --peb2-light: #f8f9fa;
    --peb2-gray: #6b7280;
    --peb2-dark-gray: #2d3748;
    --peb2-text: #343a40;
    --peb2-transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.peb2-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../Peb/prefect.webp") center center / cover no-repeat;
    overflow: hidden;
}

.peb2-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(26, 26, 46, 0.92) 0%,
            rgba(22, 33, 62, 0.85) 100%);
    z-index: 1;
}

.peb2-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 5rem 1.25rem 3.75rem;
    max-width: 56.25rem;
}

.peb2-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--peb2-white);
    line-height: 1.2;
    margin: 0 0 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.peb2-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    max-width: 46.875rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================================
   SHARED SECTION COMPONENTS
   =================================================================== */
.peb2-section {
    padding: 2rem 0;
    font-size: 1.5rem;
    line-height: 1.85;
}

.peb2-section .container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.peb2-section--alt {
    background: linear-gradient(135deg,
            rgba(239, 239, 255, 0.815) 0%,
            rgba(226, 231, 245, 0.747) 100%);
}

.peb2-section--white {
    background: var(--peb2-white);
}

.peb2-section-title-center {
    text-align: center;
}

.peb2-section-title-center .peb2-section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.peb2-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--peb2-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.peb2-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--peb2-amber), var(--peb2-amber-dark));
    border-radius: 2px;
    margin-top: 12px;
}

.peb2-section-types {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--peb2-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.peb2-section-types::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--peb2-amber), var(--peb2-amber-dark));
    border-radius: 2px;
    margin-top: 12px;
}

/* ===================================================================
   INTRODUCTION (Two-column)
   =================================================================== */
.peb-purlin-girts-wrapper {
    margin-top: 1.5rem;
}

.peb2-intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.peb2-intro-text {
    text-align: justify;
}

.peb2-intro-text p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--peb2-dark-gray);
    margin-bottom: 1.25rem;
}

.peb2-intro-text p:last-of-type {
    margin-bottom: 0;
}

.peb2-intro-image {
    border-radius: 1rem;
    width: 100%;
    overflow: hidden;
    align-self: center;
}

.peb2-intro-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ===================================================================
   WHAT IS PEB - Content Layouts
   =================================================================== */
.peb2-what-content-wrap {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
    justify-content: space-around;
}

.peb2-what-content-wrap-reverse {
    flex-direction: row;
    gap: 3rem;
    justify-content: space-around;
}

.peb-img {
    flex: 0 0 42%;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
}

.peb-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.peb2-what-content {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--peb2-dark-gray);
    text-align: justify;
}

.peb2-what-content p:last-of-type {
    margin-bottom: 0;
}

/* ===================================================================
   BRACING TYPES - Card Grid
   =================================================================== */
.peb2-bracing-types-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--peb2-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-left: 14px;
    border-left: 3px solid var(--peb2-amber);
}

.peb2-bracing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.peb2-bracing-card {
    background: var(--peb2-white);
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(26, 26, 46, 0.1);
}

.peb2-bracing-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--peb2-primary);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.peb2-bracing-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--peb2-gray);
    margin: 0;
}

/* ===================================================================
   BULLET LISTS & CHECK ICONS
   =================================================================== */
.peb2-bullet-list {
    list-style: none;
    padding: 0;
}

ul {
    margin-bottom: 0;
}

.peb2-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.25rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--peb2-dark-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.peb2-bullet-list li:last-child {
    border-bottom: none;
}

.peb2-bullet-feature-list li {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.peb2-check-icon {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.1875rem;
}

/* ===================================================================
   PRIORITY LIST (Why Choose KMS)
   =================================================================== */
.peb2-priority-list {
    list-style: none;
    padding: 0;
}

.peb2-priority-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.peb2-priority-list li:last-child {
    border-bottom: none;
}

.peb2-priority-list .peb2-check-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.peb2-priority-list-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.peb2-priority-list-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--peb2-primary);
    line-height: 1.4;
}

.peb2-priority-list-text span {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--peb2-dark-gray);
}

/* ===================================================================
   CTA BUTTON
   =================================================================== */
.peb2-btn-cta {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    border: 2px solid #ffc107;
    background: transparent;
    color: #1e3a5f;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    margin-top: 1rem;
}

.peb2-btn-cta:hover {
    background: #ffc107;
    color: #1e3a5f;
}

.peb2-btn-cta svg {
    vertical-align: middle;
}

/* ===================================================================
   STANDARD FRAME TYPE - Layout Variants
   =================================================================== */
.peb2-intro-wrapper--reverse {
    direction: rtl;
}

.peb2-intro-wrapper--reverse>* {
    direction: ltr;
}

.peb2-frame-image-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.peb2-frame-image-pair img {
    border-radius: 1rem;
}

/* ===================================================================
   GET QUOTE CTA BANNER
   =================================================================== */
.get-quote-cta-section {
    position: relative;
    background: linear-gradient(135deg, #043352, #0b1138);
    overflow: hidden;
}

.get-quote-cta-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.get-quote-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    gap: 20px;
}

.get-quote-cta-text {
    flex: 1;
}

.get-quote-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.get-quote-cta-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.get-quote-cta-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--peb2-primary) 0%, var(--peb2-primary-dark) 100%);
    color: var(--peb2-yellow);
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--peb2-yellow);
    transition: all var(--peb2-transition);
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.25);
}

.get-quote-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    color: var(--peb2-yellow);
}

/* ===================================================================
   ACCESSORIES FLIP CARD GRID
   =================================================================== */
.peb2-accessories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Each card wrapper: image card + label strip */
.peb2-acc-item {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
}

/* Label strip below each card */
.peb2-acc-label {
    background: #1a1a2e;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    padding: 0.55rem 0.75rem;
    letter-spacing: 0.4px;
    line-height: 1.3;
    border-top: 2px solid rgba(255, 215, 0, 0.45);
    border-radius: 0 0 14px 14px;
    flex-shrink: 0;
}

.peb2-flip-card {
    height: 260px;
    perspective: 1200px;
    cursor: pointer;
}

.peb2-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    will-change: transform;
}

/* Hover: mouse/desktop only */
@media (hover: hover) and (pointer: fine) {
    .peb2-flip-card:hover .peb2-flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Click/tap: all devices */
.peb2-flip-card.flipped .peb2-flip-card-inner {
    transform: rotateY(180deg);
}

.peb2-flip-front,
.peb2-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.peb2-flip-front {
    background: #1a1a2e;
}

.peb2-flip-front-img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    display: block;
    opacity: 1;
    transition: transform 0.4s ease;
}

.peb2-flip-card:hover .peb2-flip-front-img {
    transform: scale(1.05);
}

/* Overlay removed — no blue tint on front face */
/* .peb2-flip-front-overlay {
    display: none;
} */

/* .peb2-flip-front-label {
    display: none;
} */

.peb2-card-intro {
    font-size: 1.2rem;
}
.peb2-subsection-heading{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--peb2-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.4px;
}
.peb2-flip-front-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

/* .peb2-flip-front-hint {
    display: none;
} */

/* .peb2-flip-front-hint svg {
    display: none;
} */

.peb2-flip-back {
    background: linear-gradient(145deg, #0f1535 0%, #1a1a2e 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.375rem 1.25rem;
    border: 1px solid rgba(255, 215, 0, 0.18);
}

.peb2-flip-back-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--peb2-yellow);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.peb2-flip-back-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.peb2-flip-back-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.peb2-flip-back-list li::before {
    content: "";
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--peb2-yellow);
    margin-top: 0.45em;
}

/* ===================================================================
   ADVANTAGES TWO-COLUMN CARD LAYOUT
   =================================================================== */
.peb2-adv-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-top: 0.5rem;
}

.peb2-adv-card {
    background: var(--peb2-white);
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(26, 26, 46, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-top: 4px solid transparent;
}

.peb2-adv-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.peb2-adv-card--green {
    border-top-color: #22c55e;
}

.peb2-adv-card--amber {
    border-top-color: var(--peb2-amber);
}

.peb2-adv-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--peb2-primary);
    margin: 0 0 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
}

.peb2-adv-card--green .peb2-adv-card-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #22c55e;
    border-radius: 2px;
    margin-top: 10px;
}

.peb2-adv-card--amber .peb2-adv-card-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--peb2-amber);
    border-radius: 2px;
    margin-top: 10px;
}

/* ===================================================================
   TWO-PANEL SIDE-BY-SIDE LAYOUT (Key Features + Applications)
   =================================================================== */
.peb2-two-panel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.peb2-panel {
    padding: 1rem 2rem 1rem 0;
}

.peb2-panel:last-child {
    padding: 1rem 0 1rem 2rem;
}

.peb2-panel p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--peb2-dark-gray);
    margin-bottom: 1rem;
}

.peb2-panel-divider {
    width: 1px;
    background: rgba(26, 26, 46, 0.12);
    align-self: stretch;
    margin: 0 0.5rem;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* ===== Large Tablet (max-width: 991.98px) ===== */
@media (max-width: 991.98px) {
    .peb2-hero {
        min-height: 40vh;
    }

    .peb2-hero-title {
        font-size: 2.25rem;
    }

    .peb2-section-title {
        font-size: 1.75rem;
    }

    .peb2-section-types {
        font-size: 1.25rem;
    }

    .peb2-intro-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .peb2-intro-image {
        order: -1;
    }

    .peb2-what-content-wrap {
        flex-direction: column;
        gap: 1.5rem;
    }

    .peb2-what-content-wrap .peb-img {
        order: -1;
        flex: none;
    }

    .peb2-what-content-wrap-reverse {
        flex-direction: column;
        gap: 1.5rem;
    }

    .peb2-what-content-wrap-reverse .peb-img {
        order: -1;
        flex: none;
    }

    .peb-img {
        flex: none;
        max-width: 100%;
    }

    .peb2-bracing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .peb2-section {
        padding: 2rem 0;
    }

    .get-quote-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }

    .get-quote-cta-title {
        font-size: 1.5rem;
    }
}

/* ===== Mobile (max-width: 767.98px) ===== */
@media (max-width: 767.98px) {
    .peb2-hero {
        min-height: 30vh;
    }

    .peb2-hero-content {
        padding: 4rem 1rem 3rem;
    }

    .peb2-hero-title {
        font-size: 1.75rem;
    }

    .peb2-hero-subtitle {
        font-size: 1rem;
    }

    .peb2-section {
        padding: 1.75rem 0;
    }

    .peb2-section .container {
        padding: 0 1rem;
    }

    .peb2-section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .peb2-section-types {
        font-size: 1.15rem;
    }

    .peb2-what-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .peb2-intro-text p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .peb2-bullet-list li {
        font-size: 0.9rem;
        padding: 0.2rem 0;
    }

    .peb2-check-icon {
        width: 1.2rem;
        height: 1.2rem;
    }

    .peb2-bracing-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .peb2-subsection {
        margin-top: 1.75rem !important;
    }

    .peb2-btn-cta {
        padding: 0.75rem 1.75rem;
        font-size: 0.88rem;
    }

    .peb2-accessories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .peb2-flip-card {
        height: 290px;
    }

    .peb2-flip-back {
        padding: 0.9rem 0.85rem;
    }

    .peb2-flip-back-title {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.35rem;
    }

    .peb2-flip-back-list li {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .peb2-flip-back-list {
        gap: 0.3rem;
    }

    .peb2-adv-two-col {
        grid-template-columns: 1fr;
    }

    .get-quote-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .get-quote-cta-title {
        font-size: 1.3rem;
    }

    .get-quote-cta-section::after {
        width: 100%;
        clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    }
}

/* ===== Small Mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
    .peb2-hero {
        min-height: 25vh;
    }

    .peb2-hero-content {
        padding: 3.5rem 0.75rem 2.5rem;
    }

    .peb2-hero-title {
        font-size: 1.4rem;
    }

    .peb2-hero-subtitle {
        font-size: 0.9rem;
    }

    .peb2-section-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .peb2-section-types {
        font-size: 1.05rem;
    }

    .peb2-section .container {
        padding: 0 0.75rem;
    }

    .peb2-what-content {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .peb2-intro-text p {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .peb2-bullet-list li {
        font-size: 0.85rem;
        gap: 0.625rem;
    }

    .peb2-check-icon {
        width: 1.1rem;
        height: 1.1rem;
    }

    .peb2-btn-cta {
        padding: 0.625rem 1.5rem;
        font-size: 0.82rem;
    }

    .peb2-accessories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .peb2-flip-card {
        height: 275px;
    }

    .peb2-flip-front-name {
        font-size: 0.88rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .peb2-accessories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .peb2-flip-card {
        height: 290px;
    }

    .peb2-flip-back {
        padding: 1rem 0.9rem;
    }

    .peb2-flip-back-title {
        font-size: 0.82rem;
        margin-bottom: 0.55rem;
        padding-bottom: 0.4rem;
    }

    .peb2-flip-back-list li {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .peb2-flip-back-list {
        gap: 0.35rem;
    }
}

@media (max-width: 900px) {
    .peb2-two-panel {
        grid-template-columns: 1fr;
    }

    .peb2-panel,
    .peb2-panel:last-child {
        padding: 1rem 0;
    }

    .peb2-panel-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }
}
