/* ============================================
   Modular Cleanroom Page Styles
   ============================================ */

/* Hero Section */
.modular-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.modular-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.modular-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modular-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,43,74,0.92), rgba(26,43,74,0.7), rgba(26,43,74,0.3));
    z-index: 1;
}

.modular-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
}

.modular-hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(232,90,36,0.15);
    border-radius: 20px;
    border: 1px solid rgba(232,90,36,0.3);
}

.modular-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 600px;
}

.modular-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Highlights Section */
.highlights {
    padding: 80px 24px;
    background: #fff;
}

.highlights-header {
    text-align: center;
    margin-bottom: 48px;
}

.highlights-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.highlights-header p {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.highlight-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.highlight-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.highlight-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.highlight-card-body {
    padding: 20px;
}

.highlight-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Experience Bar */
.experience-bar {
    background: var(--navy);
    padding: 48px 24px;
}

.experience-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.experience-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.experience-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.experience-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experience-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.experience-item-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.experience-item-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* Four Pillars */
.pillars {
    padding: 80px 24px;
    background: var(--gray-50);
}

.pillars-header {
    text-align: center;
    margin-bottom: 48px;
}

.pillars-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}

.pillar-item {
    max-width: 1280px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.pillar-item.reverse {
    direction: rtl;
}

.pillar-item.reverse > * {
    direction: ltr;
}

.pillar-image {
    border-radius: 12px;
    overflow: hidden;
}

.pillar-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s;
}

.pillar-image:hover img {
    transform: scale(1.03);
}

.pillar-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.pillar-content p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.pillar-list {
    list-style: none;
    margin-bottom: 20px;
}

.pillar-list li {
    font-size: 14px;
    color: var(--gray-700);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pillar-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: rgba(232,90,36,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.pillar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.pillar-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Parameters Table */
.parameters {
    padding: 80px 24px;
    background: #fff;
}

.parameters-header {
    text-align: center;
    margin-bottom: 40px;
}

.parameters-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}

.parameters-table-wrap {
    max-width: 1280px;
    margin: 0 auto;
    overflow-x: auto;
}

.parameters-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.parameters-table thead th {
    background: var(--navy);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.parameters-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.parameters-table tbody tr:hover {
    background: var(--gray-50);
}

.parameters-table tbody td {
    padding: 14px 16px;
    color: var(--gray-700);
}

/* Project Showcase */
.showcase {
    padding: 80px 24px;
    background: var(--gray-50);
}

.showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.showcase-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.showcase-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.showcase-card:hover img {
    transform: scale(1.05);
}

.showcase-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,43,74,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.showcase-card-overlay h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.showcase-card-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.showcase-more {
    text-align: center;
    margin-top: 32px;
}

/* Quote Section */
.quote-section {
    padding: 80px 24px;
    background: var(--navy);
}

.quote-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.quote-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.quote-info > p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.quote-form-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
}

.quote-form-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.quote-form .form-group {
    margin-bottom: 16px;
}

.quote-form .form-group input,
.quote-form .form-group select,
.quote-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-900);
    transition: all 0.2s;
}

.quote-form .form-group input::placeholder,
.quote-form .form-group textarea::placeholder {
    color: var(--gray-400);
}

.quote-form .form-group input:focus,
.quote-form .form-group select:focus,
.quote-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 90, 36, 0.1);
}

.quote-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.quote-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (min-width: 480px) {
    .quote-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Certifications */
.certifications {
    padding: 80px 24px;
    background: #fff;
}

.certifications-header {
    text-align: center;
    margin-bottom: 40px;
}

.certifications-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-item {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.cert-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.cert-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(232,90,36,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.cert-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.cert-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

/* FAQ */
.faq {
    padding: 80px 24px;
    background: var(--gray-50);
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-800);
    text-align: left;
    font-family: inherit;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Responsive */
@media (min-width: 640px) {
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
    
    .pillar-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .quote-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cert-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .modular-hero h1 {
        font-size: 52px;
    }
}
