/**
 * Certifications Page Styles
 * HB Power Tower - Kadence Child Theme
 */

/* ============================================================
   CERTIFICATIONS PAGE - IMAGE INJECTION
   ============================================================ */

/* Hero section background with tower/lattice image */
section.relative.bg-\[\#0F172A\].text-white {
    position: relative;
}

section.relative.bg-\[\#0F172A\].text-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, oklch(0.20 0.03 250 / 0.94) 0%, oklch(0.15 0.02 250 / 0.88) 100%),
        url('/wp-content/uploads/tower-images/lattice-02.jpg') center/cover no-repeat;
    z-index: 0;
}

section.relative.bg-\[\#0F172A\].text-white > * {
    position: relative;
    z-index: 1;
}

/* Cert grid - inject certificate image as visual for each cert card */
section.bg-slate-50.py-16 .grid > div {
    position: relative;
    overflow: hidden;
}

/* Add a subtle "stamp" image background to cert cards for visual interest */
section.bg-slate-50.py-16 .grid > div:nth-child(1)::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: url('/wp-content/uploads/tower-images/workshop-001.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

section.bg-slate-50.py-16 .grid > div:nth-child(2)::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: url('/wp-content/uploads/tower-images/workshop-002.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

section.bg-slate-50.py-16 .grid > div:nth-child(3)::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: url('/wp-content/uploads/tower-images/workshop-003.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

section.bg-slate-50.py-16 .grid > div:nth-child(4)::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: url('/wp-content/uploads/tower-images/workshop-004.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

section.bg-slate-50.py-16 .grid > div:nth-child(5)::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: url('/wp-content/uploads/tower-images/workshop-016.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

section.bg-slate-50.py-16 .grid > div:nth-child(6)::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: url('/wp-content/uploads/tower-images/workshop-017.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

/* ============================================================
   CONTAINER FIXES for Tailwind sections
   ============================================================ */
section.bg-slate-50,
section.bg-slate-900,
section.bg-\[\#0F172A\],
section.bg-white {
    width: 100%;
}

section .max-w-6xl,
section .max-w-5xl,
section .max-w-4xl {
    margin-left: auto !important;
    margin-right: auto !important;
}

.hw-certs-hero {
    background: var(--hw-navy);
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}

.hw-certs-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, var(--text-5xl));
    color: var(--hw-white);
    margin-bottom: var(--space-4);
}

.hw-certs-hero p {
    font-size: var(--text-lg);
    color: var(--hw-gray-300);
    max-width: 700px;
    margin: 0 auto;
}

.hw-certs-grid {
    padding: var(--space-16) 0;
    background: var(--hw-gray-50);
}

.hw-certs-grid .kt-row-column-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.hw-cert-card {
    background: var(--hw-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--hw-orange);
    transition: all var(--duration-base) var(--ease-out-quart);
}

.hw-cert-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hw-cert-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.hw-cert-card-icon {
    width: 56px;
    height: 56px;
    background: oklch(0.65 0.15 50 / 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--hw-orange);
    flex-shrink: 0;
}

.hw-cert-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--hw-navy);
}

.hw-cert-card-desc {
    font-size: var(--text-sm);
    color: var(--hw-gray-600);
    line-height: var(--leading-relaxed);
}

.hw-certs-download {
    padding: var(--space-16) 0;
    background: var(--hw-white);
}

.hw-certs-download .kt-row-column-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .hw-certs-grid .kt-row-column-wrap {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CERTIFICATIONS PAGE REFRESH - Evidence center
   ============================================================ */

body.page-id-16 .entry-hero {
    display: none;
}

body.page-id-16 .entry-content-wrap,
body.page-id-16 .single-content {
    padding: 0 !important;
}

.hw-cert-page {
    --cert-navy: #0f172a;
    --cert-blue: #17324d;
    --cert-ink: #102a43;
    --cert-muted: #526173;
    --cert-orange: #f47920;
    --cert-line: rgba(26, 58, 92, 0.12);
    background: #f6f8fb;
    color: var(--cert-ink);
}

.hw-cert-container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.hw-cert-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 9vw, 124px) 0;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(26, 58, 92, 0.9)),
        url("/wp-content/uploads/tower-images/workshop-01.jpg") center / cover no-repeat;
    color: #ffffff;
}

.hw-cert-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.22;
}

.hw-cert-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hw-cert-eyebrow,
.hw-cert-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hw-cert-eyebrow {
    margin-bottom: 18px;
    padding: 8px 13px;
    background: rgba(244, 121, 32, 0.16);
    color: #fed7aa;
    border: 1px solid rgba(244, 121, 32, 0.24);
}

.hw-cert-hero h1 {
    max-width: 860px;
    margin: 0 0 20px;
    color: #ffffff;
    font-family: var(--font-display, inherit);
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hw-cert-hero p {
    max-width: 700px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
}

.hw-cert-hero-panel {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hw-cert-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hw-cert-hero-metric {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.hw-cert-hero-metric strong {
    display: block;
    color: #ffffff;
    font-family: var(--font-display, inherit);
    font-size: 34px;
    line-height: 1;
}

.hw-cert-hero-metric span {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.hw-cert-section {
    padding: clamp(58px, 8vw, 92px) 0;
}

.hw-cert-chip {
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #eaf1f8;
    color: var(--cert-blue);
}

.hw-cert-section-title {
    margin: 0 0 14px;
    color: var(--cert-ink);
    font-family: var(--font-display, inherit);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hw-cert-section-copy {
    max-width: 780px;
    color: var(--cert-muted);
    line-height: 1.72;
}

.hw-cert-grid-3,
.hw-cert-grid-4,
.hw-cert-evidence-grid,
.hw-cert-dossier-grid {
    display: grid;
    gap: 18px;
}

.hw-cert-grid-3,
.hw-cert-evidence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hw-cert-grid-4,
.hw-cert-dossier-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hw-cert-card-new,
.hw-cert-process-card,
.hw-cert-dossier-card,
.hw-cert-form-card {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--cert-line);
    box-shadow: 0 22px 60px rgba(13, 27, 42, 0.08);
}

.hw-cert-card-new,
.hw-cert-process-card,
.hw-cert-dossier-card {
    padding: 24px;
}

.hw-cert-card-new h3,
.hw-cert-process-card h3,
.hw-cert-dossier-card h3,
.hw-cert-form-card h2 {
    margin: 0 0 12px;
    color: var(--cert-ink);
    font-weight: 900;
}

.hw-cert-card-new p,
.hw-cert-process-card p,
.hw-cert-dossier-card p {
    margin: 0;
    color: var(--cert-muted);
    font-size: 14px;
    line-height: 1.65;
}

.hw-cert-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--cert-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hw-cert-process-card b {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--cert-orange);
    font-family: var(--font-mono, monospace);
    font-size: 13px;
}

.hw-cert-section-dark {
    background: var(--cert-navy);
    color: #ffffff;
}

.hw-cert-section-dark .hw-cert-section-title {
    color: #ffffff;
}

.hw-cert-section-dark .hw-cert-section-copy {
    color: #cbd5e1;
}

.hw-cert-evidence {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hw-cert-evidence strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 17px;
}

.hw-cert-evidence span {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.hw-cert-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.hw-cert-form-card {
    padding: clamp(24px, 4vw, 38px);
}

.hw-cert-form-card .fluentform_wrapper {
    margin-top: 24px;
}

.hw-cert-form-card .fluentform_wrapper label,
.hw-cert-form-card .fluentform_wrapper .ff-el-input--label {
    color: var(--cert-blue) !important;
    opacity: 1 !important;
}

.hw-cert-form-card .ff-el-form-control {
    border-radius: 14px !important;
    border-color: rgba(26, 58, 92, 0.16) !important;
    color: var(--cert-ink) !important;
}

.hw-cert-form-card .ff-btn-submit {
    background: var(--cert-orange) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 24px rgba(244, 121, 32, 0.22) !important;
}

.hw-cert-side-card {
    padding: 26px;
    position: sticky;
    top: 96px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--cert-line);
    box-shadow: 0 22px 60px rgba(13, 27, 42, 0.08);
}

.hw-cert-side-card h3 {
    margin: 0 0 14px;
    color: var(--cert-ink);
    font-weight: 900;
}

.hw-cert-side-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hw-cert-side-list li {
    padding: 14px 0;
    border-top: 1px solid var(--cert-line);
    color: var(--cert-muted);
    font-size: 14px;
    line-height: 1.55;
}

.hw-cert-side-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--cert-blue);
}

.hw-cert-cta {
    padding: clamp(54px, 7vw, 84px) 0;
    text-align: center;
    background: #ffffff;
}

.hw-cert-cta p {
    max-width: 680px;
    margin: 0 auto 24px;
    color: var(--cert-muted);
    line-height: 1.7;
}

.hw-cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 0 22px;
    background: var(--cert-orange);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(244, 121, 32, 0.24);
}

@media (max-width: 980px) {
    .hw-cert-hero-grid,
    .hw-cert-grid-3,
    .hw-cert-grid-4,
    .hw-cert-evidence-grid,
    .hw-cert-dossier-grid,
    .hw-cert-form-grid {
        grid-template-columns: 1fr;
    }

    .hw-cert-side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .hw-cert-container {
        width: min(100% - 24px, 1180px);
    }

    .hw-cert-hero-metrics {
        grid-template-columns: 1fr;
    }
}
