/* ===========================================
   BLUEWAVE HR — PRODUCT PAGES SHARED STYLES
   Extends styles.css for solution/product pages
   =========================================== */

/* ── Page Hero ── */
.page-hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-light);
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,42.7C1248,43,1344,53,1392,58.7L1440,64L1440,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.page-hero-content {
    max-width: 560px;
}

.page-hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 150, 199, 0.1);
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.page-hero h1 .text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.page-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero-image {
    position: relative;
}

.page-hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.page-hero-image::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: calc(var(--radius-lg) + 12px);
    background: var(--gradient);
    opacity: 0.08;
    z-index: -1;
}

/* ── Centered Hero Variant ── */
.page-hero.hero-centered {
    text-align: center;
}

.page-hero.hero-centered .page-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.page-hero.hero-centered .page-hero-actions {
    justify-content: center;
}

.page-hero.hero-centered .page-hero-image {
    max-width: 800px;
    margin: 3rem auto 0;
}

/* ── Gradient Hero Variant ── */
.page-hero.hero-gradient {
    background: var(--gradient-dark);
    color: var(--white);
}

.page-hero.hero-gradient h1 {
    color: var(--white);
}

.page-hero.hero-gradient h1 .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--blue-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero.hero-gradient p {
    color: rgba(255, 255, 255, 0.95);
}

.page-hero.hero-gradient .page-hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--blue-100);
}

.page-hero.hero-gradient::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,42.7C1248,43,1344,53,1392,58.7L1440,64L1440,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

/* ── Page Sections ── */
.page-section {
    padding: var(--section-padding);
}

.page-section.bg-light {
    background: var(--gray-50);
}

.page-section.bg-gradient-light {
    background: var(--gradient-light);
}

.page-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.page-section-header .section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 150, 199, 0.1);
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.page-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── Feature Cards Grid ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--blue-600);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── Split Content Section (image + text alternating) ── */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.split-content:last-child {
    margin-bottom: 0;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse>* {
    direction: ltr;
}

.split-content-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.split-content-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.split-content-text p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.split-content-text ul {
    list-style: none;
    padding: 0;
}

.split-content-text ul li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.split-content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-500);
    font-weight: 700;
}

/* ── Stats Row ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--blue-600);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── BlueWave Difference Callout ── */
.bw-difference {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 4rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.bw-difference::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.bw-difference h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.bw-difference p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
}

.bw-difference .bw-diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.bw-diff-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bw-diff-item .diff-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.bw-diff-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.bw-diff-item p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* ── FAQ Section ── */
.page-faq {
    padding: var(--section-padding);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.3s var(--ease);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    transition: color 0.3s var(--ease);
}

.faq-question:hover {
    color: var(--blue-600);
}

.faq-question .faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s var(--ease);
    color: var(--blue-600);
    font-size: 0.8rem;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── Bottom CTA Section ── */
.page-bottom-cta {
    padding: 5rem 0;
    background: var(--gradient);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-bottom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f9fafb' d='M0,0L48,5.3C96,11,192,21,288,32C384,43,480,53,576,48C672,43,768,21,864,16C960,11,1056,21,1152,26.7C1248,32,1344,32,1392,32L1440,32L1440,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat top center;
    background-size: cover;
}

.page-bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-bottom-cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.page-bottom-cta .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Comparison Table (Why BlueWave page) ── */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.95rem;
}

.comparison-table thead {
    background: var(--gradient-dark);
    color: var(--white);
}

.comparison-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.comparison-table tbody tr:hover {
    background: var(--blue-50);
}

.comparison-table .check {
    color: var(--blue-500);
    font-weight: 700;
}

.comparison-table .cross {
    color: var(--gray-400);
}

.comparison-table .bw-col {
    background: rgba(0, 150, 199, 0.04);
    font-weight: 600;
    color: var(--blue-700);
}

/* ── Timeline Layout Variant ── */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: var(--shadow-blue);
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    flex: 1;
    border: 1px solid var(--gray-200);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── Tabbed Content ── */
.tab-container {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--blue-500);
    background: var(--blue-50);
    color: var(--blue-700);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s var(--ease);
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Contact Form ── */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-800);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── About Page ── */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-card .value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--blue-600);
    transition: color 0.3s var(--ease);
}

.breadcrumb a:hover {
    color: var(--blue-800);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 0 4rem;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-content.reverse {
        direction: ltr;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .bw-difference {
        padding: 2.5rem 1.5rem;
    }

    .page-bottom-cta h2 {
        font-size: 1.6rem;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}