/**
 * GC Technologies - Professional Services Page Styles
 * Extracted from the original inline <style> block (identical rules)
 * so the page body can be rendered dynamically from the database.
 */

/* ===== PROFESSIONAL SERVICES — FULL PAGE STYLES ===== */
.ps-hero {
    padding: 6rem 0 3.5rem;
    background: var(--gradient-dark);
    color: white;
    margin-top: 72px;
    text-align: center;
}
.ps-hero-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    color: white;
}
.ps-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white !important;
    margin-bottom: 1rem;
}
.ps-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.ps-about {
    padding: var(--space-16) 0;
    background: var(--bg-primary);
}
.ps-about .grid { gap: var(--space-10); }
.ps-about h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-3);
}
.ps-about h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}
.ps-about h2 span { color: var(--primary); }
.ps-about p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-4); }
.ps-about img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ===== STATS ===== */
.ps-stats {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-10) 0;
}
.ps-stat-box { text-align: center; padding: var(--space-6) var(--space-4); }
.stat-num { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: var(--space-2); }
.stat-lbl { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; }
.ps-stats .grid { border-left: 1px solid var(--border-color); }
.ps-stats .grid > * { border-right: 1px solid var(--border-color); }

/* ===== SERVICES CARDS ===== */
.ps-overview-header {
    padding: var(--space-16) 0 var(--space-8);
    background: var(--bg-primary);
    text-align: center;
}
.ps-overview-header .sec-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-color);
}
.ps-overview-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}
.ps-overview-header h2 span { color: var(--primary); }
.ps-overview-header p { color: var(--text-secondary); max-width: 780px; margin: 0 auto; font-size: var(--text-lg); line-height: 1.7; }

.ps-cards-wrap { padding: 0 0 var(--space-16); background: var(--bg-primary); }

.ps-service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.ps-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ps-card-img-wrap { overflow: hidden; height: 215px; }
.ps-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ps-service-card:hover .ps-card-img-wrap img { transform: scale(1.05); }
.ps-service-card-body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.ps-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-2);
}
.ps-service-card-body h3 { color: var(--text-primary); font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-3); }
.ps-service-card-body p { color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-4); flex: 1; }
.ps-service-card-body ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-color); padding-top: var(--space-4); }
.ps-service-card-body ul li { color: var(--text-secondary); padding: 0.3rem 0; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.ps-service-card-body ul li i { color: var(--primary); flex-shrink: 0; }

/* ===== DETAIL SECTIONS LIGHT/DARK/GREY ===== */
.ps-light-section { padding: var(--space-16) 0; background: var(--bg-primary); }
.ps-grey-section { padding: var(--space-16) 0; background: var(--bg-secondary); }
.ps-dark-section { padding: var(--space-16) 0; background: var(--surface-dark, #0d1b2a); }
.ps-dark-section h2, .ps-dark-section h3, .ps-dark-section h4 { color: white !important; }
.ps-dark-section p { color: rgba(255,255,255,0.75) !important; }
.ps-dark-section ul li { color: rgba(255,255,255,0.75) !important; }

.sec-tag-light, .sec-tag-grey, .sec-tag-dark {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}
.sec-tag-light { background: var(--bg-secondary); color: var(--primary); border: 1px solid var(--border-color); }
.sec-tag-grey { background: var(--bg-primary); color: var(--primary); border: 1px solid var(--border-color); }
.sec-tag-dark { background: rgba(61,157,217,0.15); color: #3D9DD9; border: 1px solid rgba(61,157,217,0.3); }

.ps-light-section h2, .ps-grey-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.25;
}
.ps-dark-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    line-height: 1.25;
}
.ps-light-section h2 span, .ps-grey-section h2 span { color: var(--primary); }
.ps-dark-section h2 span { color: #3D9DD9; }

.ps-light-section p, .ps-grey-section p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-4); }
.ps-light-section ul, .ps-grey-section ul { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.ps-light-section ul li, .ps-grey-section ul li { color: var(--text-secondary); padding: 0.4rem 0; display: flex; align-items: center; gap: 0.6rem; }
.ps-light-section ul li i, .ps-grey-section ul li i { color: var(--primary); }
.ps-dark-section ul { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.ps-dark-section ul li { padding: 0.4rem 0; display: flex; align-items: center; gap: 0.6rem; }
.ps-dark-section ul li i { color: #3D9DD9; }

/* Image grids */
.ps-img-grid { display: grid; gap: 10px; margin-bottom: 10px; }
.ps-img-grid-2 { grid-template-columns: 1fr 1fr; }
.ps-img-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.ps-img-grid img { width: 100%; object-fit: cover; border-radius: var(--radius-md); }

/* Sub-heading */
.ps-sub-h { color: var(--text-primary); font-size: 1rem; font-weight: 700; margin: var(--space-5) 0 var(--space-2); }
.ps-dark-section .ps-sub-h { color: white !important; }

/* Specialized grid */
.ps-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.ps-spec-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: var(--space-3) var(--space-4);
    background: rgba(61,157,217,0.08);
    border: 1px solid rgba(61,157,217,0.2);
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9rem;
}
.ps-spec-item i { color: #3D9DD9; }

.ps-mini-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3D9DD9;
    margin-bottom: var(--space-3);
}

/* ===== OIL & GAS SECTION ===== */
.ps-og-section { padding: var(--space-16) 0; background: var(--bg-primary); }
.ogs-header { text-align: center; max-width: 820px; margin: 0 auto var(--space-12); }
.og-eyebrow {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}
.ogs-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-4); }
.ogs-header h2 span { color: var(--primary); }
.ogs-header p { color: var(--text-secondary); font-size: var(--text-lg); line-height: 1.7; }
.og-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-8); }
.og-step-tile {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.og-step-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.og-step-header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.og-step-badge {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.og-step-icon { font-size: 1.6rem; color: var(--primary); }
.og-step-tile h4 { color: var(--text-primary); font-size: 1rem; font-weight: 700; margin-bottom: var(--space-2); }
.og-step-tile p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; margin: 0; }
.og-img-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.og-img-strip img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius-md); }

/* ===== FAQ ===== */
.ps-faq-section { padding: var(--space-16) 0; background: var(--bg-secondary); }
.ps-faq-intro { text-align: center; max-width: 700px; margin: 0 auto var(--space-12); }
.ps-faq-eyebrow {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--bg-primary);
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}
.ps-faq-intro h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-3); }
.ps-faq-intro h2 span { color: var(--primary); }
.ps-faq-intro p { color: var(--text-secondary); font-size: var(--text-lg); }

.faq-num-row {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border-color);
}
.faq-big-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); opacity: 0.3; line-height: 1; flex-shrink: 0; width: 56px; }
.faq-body { flex: 1; }
.faq-body h4 { color: var(--text-primary); font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.faq-body p { color: var(--text-secondary); line-height: 1.75; margin: 0; }
.faq-q-icon { font-size: 1.5rem; color: var(--primary); opacity: 0.4; flex-shrink: 0; padding-top: 0.2rem; }

.faq-aside-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--space-5); max-height: 300px; object-fit: cover; }
.faq-links-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}
.faq-links-card h5 { color: var(--text-primary); font-size: 1rem; font-weight: 700; margin-bottom: var(--space-4); }
.faq-links-card ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.faq-links-card ul li { border-bottom: 1px solid var(--border-color); padding: 0.4rem 0; }
.faq-links-card ul li a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.faq-links-card ul li a:hover { color: var(--primary); }
.faq-tags-wrap { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.faq-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.faq-tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* FAQ layout */
.ps-faq-section .ps-faq-cols { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-10); align-items: start; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .ps-img-grid-3 { grid-template-columns: 1fr 1fr; }
    .og-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .og-img-strip { grid-template-columns: 1fr 1fr; }
    .og-img-strip img:first-child { grid-column: span 2; }
    .ps-faq-section .ps-faq-cols { grid-template-columns: 1fr; }
    .ps-spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .ps-img-grid-2, .ps-img-grid-3 { grid-template-columns: 1fr; }
    .og-steps-grid { grid-template-columns: 1fr; }
    .og-img-strip { grid-template-columns: 1fr; }
    .og-img-strip img:first-child { grid-column: span 1; }
    .ps-stats .grid { grid-template-columns: 1fr 1fr; }
    .faq-num-row { flex-wrap: wrap; }
    .faq-q-icon { display: none; }
}

/* ===== LONG-CONTENT SAFETY =====
   Grid columns default to min-width:auto, so very long words or
   pasted unbroken text can push a column beyond the page and crush
   the image column to zero width. min-width:0 + word wrapping keeps
   any amount of text inside its column. */
.ps-about .grid > div,
.ps-light-section .grid > div,
.ps-grey-section .grid > div,
.ps-tertiary-section .grid > div,
.ps-dark-section .grid > div,
.ps-navy-section .grid > div,
.ps-gradient-section .grid > div,
.ps-faq-section .ps-faq-cols > div,
.ps-service-card-body,
.og-step-tile,
.faq-body {
    min-width: 0;
}
.ps-hero h1, .ps-hero p,
.ps-about h2, .ps-about h3, .ps-about p,
.ps-overview-header h2, .ps-overview-header p,
.ps-light-section h2, .ps-grey-section h2, .ps-tertiary-section h2,
.ps-dark-section h2, .ps-navy-section h2, .ps-gradient-section h2,
.ps-light-section p, .ps-grey-section p, .ps-tertiary-section p,
.ps-dark-section p, .ps-navy-section p, .ps-gradient-section p,
.ps-light-section ul li, .ps-grey-section ul li, .ps-tertiary-section ul li,
.ps-dark-section ul li, .ps-navy-section ul li, .ps-gradient-section ul li,
.ps-service-card-body h3, .ps-service-card-body p, .ps-service-card-body ul li,
.ps-spec-item,
.og-step-tile h4, .og-step-tile p,
.ogs-header h2, .ogs-header p,
.ps-faq-intro h2, .ps-faq-intro p,
.faq-body h4, .faq-body p,
.faq-links-card ul li a, .faq-tag {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

/* ===== EXTRA BACKGROUND STYLES (admin-selectable) ===== */
/* Tertiary: light cool-grey background, same text treatment as grey */
.ps-tertiary-section { padding: var(--space-16) 0; background: var(--bg-tertiary); }
.ps-tertiary-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.25;
}
.ps-tertiary-section h2 span { color: var(--primary); }
.ps-tertiary-section p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-4); }
.ps-tertiary-section ul { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.ps-tertiary-section ul li { color: var(--text-secondary); padding: 0.4rem 0; display: flex; align-items: center; gap: 0.6rem; }
.ps-tertiary-section ul li i { color: var(--primary); }

/* Navy / Gradient: brand gradient backgrounds, same text treatment as dark */
.ps-navy-section { padding: var(--space-16) 0; background: var(--gradient-dark); }
.ps-gradient-section { padding: var(--space-16) 0; background: var(--gradient-tech); }
.ps-navy-section h2, .ps-navy-section h3, .ps-navy-section h4,
.ps-gradient-section h2, .ps-gradient-section h3, .ps-gradient-section h4 { color: white !important; }
.ps-navy-section h2, .ps-gradient-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    line-height: 1.25;
}
.ps-navy-section h2 span, .ps-gradient-section h2 span { color: #7CC5F5; }
.ps-navy-section p, .ps-gradient-section p { color: rgba(255,255,255,0.85) !important; line-height: 1.8; margin-bottom: var(--space-4); }
.ps-navy-section ul, .ps-gradient-section ul { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.ps-navy-section ul li, .ps-gradient-section ul li { color: rgba(255,255,255,0.85) !important; padding: 0.4rem 0; display: flex; align-items: center; gap: 0.6rem; }
.ps-navy-section ul li i, .ps-gradient-section ul li i { color: #7CC5F5; }
.ps-navy-section .ps-sub-h, .ps-gradient-section .ps-sub-h { color: white !important; }
.ps-navy-section .ps-spec-item, .ps-gradient-section .ps-spec-item { color: rgba(255,255,255,0.9); }
.ps-navy-section .ps-mini-label, .ps-gradient-section .ps-mini-label { color: #7CC5F5; }

/* ===== OPTIONAL GRID PATTERN OVERLAY (admin toggle) ===== */
.ps-section-grid { position: relative; overflow: hidden; }
.ps-section-grid > .ps-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
}
.ps-section-grid.ps-grid-light-lines > .ps-grid-overlay {
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}
.ps-section-grid > .container { position: relative; z-index: 1; }
[data-theme="dark"] .ps-section-grid > .ps-grid-overlay {
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* ===== DARK MODE FIXES ===== */
[data-theme="dark"] .ps-about h2 span,
[data-theme="dark"] .ps-overview-header h2 span,
[data-theme="dark"] .ogs-header h2 span,
[data-theme="dark"] .ps-faq-intro h2 span,
[data-theme="dark"] .stat-num,
[data-theme="dark"] .ps-card-tag,
[data-theme="dark"] .ps-service-card-body ul li i,
[data-theme="dark"] .sec-tag,
[data-theme="dark"] .sec-tag-light,
[data-theme="dark"] .sec-tag-grey,
[data-theme="dark"] .sec-tag-dark,
[data-theme="dark"] .ps-light-section h2 span,
[data-theme="dark"] .ps-grey-section h2 span,
[data-theme="dark"] .ps-light-section ul li i,
[data-theme="dark"] .ps-grey-section ul li i,
[data-theme="dark"] .og-step-icon,
[data-theme="dark"] .faq-big-num,
[data-theme="dark"] .faq-q-icon,
[data-theme="dark"] .ps-faq-eyebrow,
[data-theme="dark"] .og-eyebrow {
    color: #3D9DD9 !important;
}

[data-theme="dark"] .sec-tag,
[data-theme="dark"] .sec-tag-light,
[data-theme="dark"] .sec-tag-grey,
[data-theme="dark"] .ps-faq-eyebrow,
[data-theme="dark"] .og-eyebrow {
    border-color: rgba(61, 157, 217, 0.4) !important;
}

[data-theme="dark"] .faq-tag:hover {
    background: #3D9DD9 !important;
    color: #fff !important;
    border-color: #3D9DD9 !important;
}

[data-theme="dark"] .og-step-badge {
    background: #3D9DD9 !important;
    color: #fff !important;
}

[data-theme="dark"] .ps-dark-section {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] .ps-dark-section h2,
[data-theme="dark"] .ps-dark-section h3,
[data-theme="dark"] .ps-dark-section h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .ps-dark-section p,
[data-theme="dark"] .ps-dark-section ul li,
[data-theme="dark"] .ps-spec-item {
    color: var(--text-secondary) !important;
}
