/* ==========================================================================
   EPC & Gas Safety Certificate - Executive Homepage Stylesheet
   Crafted for Ultra-Premium UK Property Compliance & Engineering Surveys
   ========================================================================== */

:root {
    --epc-brand-navy: #071527;
    --epc-brand-dark: #0f172a;
    --epc-brand-blue: #0284c7;
    --epc-brand-blue-hover: #0369a1;
    --epc-brand-green: #059669;
    --epc-brand-emerald: #10b981;
    --epc-brand-gold: #f59e0b;
    --epc-brand-slate: #f8fafc;
    --epc-brand-border: #e2e8f0;
    --epc-brand-text-dark: #0f172a;
    --epc-brand-text-muted: #64748b;
    --epc-brand-radius: 16px;
    --epc-brand-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --epc-brand-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
    --epc-brand-shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
}

.epc-homepage-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--epc-brand-text-dark);
    box-sizing: border-box;
    overflow-x: hidden;
}

.epc-homepage-wrap *,
.epc-homepage-wrap *::before,
.epc-homepage-wrap *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   1. HERO SECTION (Dual-Column Executive Layout)
   ========================================================================== */
.epc-hp-hero {
    position: relative;
    background: linear-gradient(135deg, #071527 0%, #0c2340 50%, #06372b 100%);
    border-radius: 20px;
    padding: 56px 48px;
    margin: 15px 0 50px 0;
    color: #ffffff;
    box-shadow: 0 24px 50px -10px rgba(7, 21, 39, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.epc-hp-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(2, 132, 199, 0.1) 60%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
}

.epc-hp-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.epc-hp-hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 6px 16px;
    border-radius: 50px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.epc-hp-hero-h1 {
    font-size: 42px;
    line-height: 1.18;
    font-weight: 850;
    color: #ffffff;
    margin: 0 0 18px 0;
    letter-spacing: -0.6px;
}

.epc-hp-hero-h1 span.highlight-green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.epc-hp-hero-lead {
    font-size: 16.5px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 28px 0;
}

.epc-hp-hero-bullets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin-bottom: 32px;
}

.epc-hp-bullet-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.epc-hp-bullet-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.epc-hp-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.epc-hp-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.epc-hp-btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.epc-hp-btn-hero-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.epc-hp-btn-hero-call:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Quick Quote / Rate Calculator Card */
.epc-hp-calc-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 28px;
    color: #0f172a;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.epc-hp-calc-header {
    margin-bottom: 20px;
}

.epc-hp-calc-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.epc-hp-calc-header h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 850;
    color: #0f172a;
}

.epc-hp-calc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epc-hp-calc-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.epc-hp-calc-field select,
.epc-hp-calc-field input {
    width: 100% !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
}

.epc-hp-calc-field select:focus,
.epc-hp-calc-field input:focus {
    border-color: #0284c7 !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.epc-hp-calc-rate-strip {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epc-hp-rate-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #166534;
}

.epc-hp-rate-amount {
    font-size: 22px;
    font-weight: 900;
    color: #15803d;
}

.epc-hp-calc-btn-submit {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.epc-hp-calc-btn-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.45);
}

.epc-hp-calc-guarantee {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    margin-top: 4px;
}

/* ==========================================================================
   2. ACCREDITATIONS & PARTNERS RIBBON
   ========================================================================== */
.epc-hp-accreditations-ribbon {
    background: #ffffff;
    border: 1.5px solid var(--epc-brand-border);
    border-radius: 16px;
    padding: 22px 32px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: var(--epc-brand-shadow-sm);
}

.epc-hp-accred-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.6px;
}

.epc-hp-accred-badges-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.epc-hp-accred-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 750;
    color: #334155;
}

.epc-hp-accred-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

/* ==========================================================================
   3. SECTION HEADERS
   ========================================================================== */
.epc-hp-section-header {
    text-align: center;
    max-width: 820px;
    margin: 60px auto 36px auto;
}

.epc-hp-eyebrow {
    display: inline-block;
    color: #0284c7;
    font-size: 12.5px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: #e0f2fe;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.epc-hp-h2 {
    font-size: 34px;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
}

.epc-hp-subtext {
    font-size: 16px;
    color: var(--epc-brand-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   4. SERVICES GRID & VISUAL CARDS
   ========================================================================== */
.epc-hp-filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.epc-hp-filter-tab {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
}

.epc-hp-filter-tab:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}

.epc-hp-filter-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.epc-hp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.epc-hp-card {
    background: #ffffff;
    border: 1.5px solid var(--epc-brand-border);
    border-radius: var(--epc-brand-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--epc-brand-shadow-sm);
    position: relative;
}

.epc-hp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--epc-brand-shadow-lg);
    border-color: #93c5fd;
}

/* Card Visual Header Banner */
.epc-hp-card-graphic-banner {
    padding: 24px 24px 18px 24px;
    position: relative;
    border-bottom: 1px solid var(--epc-brand-border);
    background: #f8fafc;
}

.epc-hp-graphic-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.epc-hp-card-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-size: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.epc-hp-card-pills {
    display: flex;
    gap: 6px;
    align-items: center;
}

.epc-hp-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.epc-hp-pill-popular {
    background: #fef08a;
    color: #854d0e;
    border: 1px solid #fde047;
}

.epc-hp-pill-mandatory {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.epc-hp-pill-custom {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c7d2fe;
}

/* Visual Illustration inside card banner */
.epc-hp-visual-artwork {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    overflow: hidden;
}

/* Authentic UK Compliance Badges inside card banner */
.epc-hp-accred-badge {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    border-width: 1.5px;
    border-style: solid;
    box-sizing: border-box;
    overflow: hidden;
}

.epc-hp-accred-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epc-hp-accred-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.epc-hp-accred-title {
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epc-hp-accred-sub {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge Color Themes */
.epc-hp-badge-gas { background: #fefce8; border-color: #fde047; }
.epc-hp-badge-gas .epc-hp-accred-title { color: #78350f; }
.epc-hp-badge-gas .epc-hp-accred-sub { color: #92400e; }

.epc-hp-badge-eicr { background: #eff6ff; border-color: #bfdbfe; }
.epc-hp-badge-eicr .epc-hp-accred-title { color: #1e3a8a; }
.epc-hp-badge-eicr .epc-hp-accred-sub { color: #2563eb; }

.epc-hp-badge-commercial { background: #f8fafc; border-color: #cbd5e1; }
.epc-hp-badge-commercial .epc-hp-accred-title { color: #0f172a; }
.epc-hp-badge-commercial .epc-hp-accred-sub { color: #475569; }

.epc-hp-badge-boiler-svc { background: #f0fdf4; border-color: #bbf7d0; }
.epc-hp-badge-boiler-svc .epc-hp-accred-title { color: #14532d; }
.epc-hp-badge-boiler-svc .epc-hp-accred-sub { color: #166534; }

.epc-hp-badge-boiler-inst { background: #f5f3ff; border-color: #c7d2fe; }
.epc-hp-badge-boiler-inst .epc-hp-accred-title { color: #312e81; }
.epc-hp-badge-boiler-inst .epc-hp-accred-sub { color: #4338ca; }

.epc-hp-badge-boiler-rep { background: #fff1f2; border-color: #fecdd3; }
.epc-hp-badge-boiler-rep .epc-hp-accred-title { color: #881337; }
.epc-hp-badge-boiler-rep .epc-hp-accred-sub { color: #be123c; }

.epc-hp-badge-asbestos { background: #fff7ed; border-color: #fed7aa; }
.epc-hp-badge-asbestos .epc-hp-accred-title { color: #7c2d12; }
.epc-hp-badge-asbestos .epc-hp-accred-sub { color: #c2410c; }

.epc-hp-badge-fire { background: #fff1f2; border-color: #fecdd3; }
.epc-hp-badge-fire .epc-hp-accred-title { color: #881337; }
.epc-hp-badge-fire .epc-hp-accred-sub { color: #e11d48; }

.epc-hp-badge-floorplan { background: #f0fdfa; border-color: #99f6e4; }
.epc-hp-badge-floorplan .epc-hp-accred-title { color: #115e59; }
.epc-hp-badge-floorplan .epc-hp-accred-sub { color: #0f766e; }

.epc-hp-badge-sap { background: #ecfdf5; border-color: #a7f3d0; }
.epc-hp-badge-sap .epc-hp-accred-title { color: #064e3b; }
.epc-hp-badge-sap .epc-hp-accred-sub { color: #047857; }

.epc-hp-badge-powerflush { background: #ecfeff; border-color: #a5f3fc; }
.epc-hp-badge-powerflush .epc-hp-accred-title { color: #164e63; }
.epc-hp-badge-powerflush .epc-hp-accred-sub { color: #0e7490; }

.epc-hp-badge-heating { background: #fff7ed; border-color: #fed7aa; }
.epc-hp-badge-heating .epc-hp-accred-title { color: #7c2d12; }
.epc-hp-badge-heating .epc-hp-accred-sub { color: #ea580c; }

.epc-hp-badge-dec { background: #f5f3ff; border-color: #ddd6fe; }
.epc-hp-badge-dec .epc-hp-accred-title { color: #4c1d95; }
.epc-hp-badge-dec .epc-hp-accred-sub { color: #6d28d9; }

.epc-hp-badge-inventory { background: #fefce8; border-color: #fde047; }
.epc-hp-badge-inventory .epc-hp-accred-title { color: #713f12; }
.epc-hp-badge-inventory .epc-hp-accred-sub { color: #854d0e; }

.epc-hp-badge-fault { background: #fffbeb; border-color: #fde68a; }
.epc-hp-badge-fault .epc-hp-accred-title { color: #78350f; }
.epc-hp-badge-fault .epc-hp-accred-sub { color: #b45309; }

.epc-hp-badge-eic { background: #eff6ff; border-color: #bfdbfe; }
.epc-hp-badge-eic .epc-hp-accred-title { color: #1e3a8a; }
.epc-hp-badge-eic .epc-hp-accred-sub { color: #1d4ed8; }

.epc-hp-badge-new-electric { background: #eef2ff; border-color: #c7d2fe; }
.epc-hp-badge-new-electric .epc-hp-accred-title { color: #312e81; }
.epc-hp-badge-new-electric .epc-hp-accred-sub { color: #4338ca; }

.epc-hp-badge-generic { background: #f8fafc; border-color: #cbd5e1; }
.epc-hp-badge-generic .epc-hp-accred-title { color: #0f172a; }
.epc-hp-badge-generic .epc-hp-accred-sub { color: #475569; }

.epc-hp-card-body {
    padding: 24px;
    flex: 1 1 auto;
}

.epc-hp-card-clickable {
    cursor: pointer;
}

.epc-hp-card-clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.14);
    border-color: #10b981;
}

.epc-hp-card-title {
    font-size: 20px;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.epc-hp-card-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.epc-hp-card-clickable:hover .epc-hp-card-title a {
    color: #059669 !important;
}

.epc-hp-card-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 18px 0;
    min-height: 40px;
}

.epc-hp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.epc-hp-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #334155;
    margin-bottom: 8px;
    font-weight: 600;
}

.epc-hp-check-icon {
    color: #10b981;
    font-weight: 800;
    font-size: 14px;
}

/* Card Footer with Price & Action Buttons */
.epc-hp-card-footer {
    padding: 18px 24px;
    background: #fafafa;
    border-top: 1.5px solid var(--epc-brand-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.epc-hp-price-block {
    display: flex;
    flex-direction: column;
}

.epc-hp-price-prefix {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 750;
    color: #94a3b8;
    letter-spacing: 0.4px;
}

.epc-hp-price-val {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.epc-hp-price-badge-quote {
    background: #ede9fe;
    color: #5b21b6;
    border: 1.5px solid #c7d2fe;
    font-size: 12.5px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.epc-hp-card-cta-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Prominent High-Converting Book Now Button */
.epc-homepage-wrap .epc-hp-btn-book,
a.epc-hp-btn-book,
button.epc-hp-btn-book {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.epc-homepage-wrap .epc-hp-btn-book:hover,
a.epc-hp-btn-book:hover,
button.epc-hp-btn-book:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55) !important;
}

.epc-hp-btn-view {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 650;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.epc-hp-btn-view:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a !important;
}

/* ==========================================================================
   5. "WHY CHOOSE US" / EXECUTIVE 6-CARD BALANCED GRID
   ========================================================================== */
.epc-hp-why-section {
    margin: 60px 0;
}

.epc-hp-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

@media (max-width: 991px) {
    .epc-hp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .epc-hp-why-grid {
        grid-template-columns: 1fr;
    }
}

.epc-hp-why-box {
    background: #ffffff !important;
    border: 1.5px solid var(--epc-brand-border) !important;
    border-radius: 18px !important;
    padding: 32px 26px !important;
    box-shadow: var(--epc-brand-shadow-sm) !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.epc-hp-why-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--epc-brand-shadow-md) !important;
    border-color: #10b981 !important;
}

.epc-hp-why-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: #059669;
}

.epc-hp-why-title {
    font-size: 19px !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}

.epc-hp-why-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0 !important;
}

/* ==========================================================================
   6. HOW IT WORKS TIMELINE (3 Connected Steps)
   ========================================================================== */
.epc-hp-process-section {
    background: #f8fafc;
    border: 1px solid var(--epc-brand-border);
    border-radius: 20px;
    padding: 50px 36px;
    margin: 60px 0;
}

.epc-hp-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
    position: relative;
}

.epc-hp-process-card {
    background: #ffffff;
    border: 1.5px solid var(--epc-brand-border);
    border-radius: 16px;
    padding: 30px 24px;
    position: relative;
    box-shadow: var(--epc-brand-shadow-sm);
    text-align: center;
}

.epc-hp-process-badge-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.epc-hp-process-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.epc-hp-process-card p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
}

/* ==========================================================================
   7. STATUTORY COMPLIANCE MATRIX TABLE
   ========================================================================== */
.epc-hp-matrix-section {
    background: #ffffff;
    border: 1.5px solid var(--epc-brand-border);
    border-radius: 18px;
    padding: 36px;
    margin: 60px 0;
    box-shadow: var(--epc-brand-shadow-sm);
}

.epc-hp-table-responsive {
    overflow-x: auto;
    margin-top: 24px;
}

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

.epc-hp-table th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 800;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid #cbd5e1;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.epc-hp-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

.epc-hp-table tr:hover td {
    background: #f8fafc;
}

.epc-badge-pill-valid {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
    background: #dcfce7;
    color: #166534;
}

.epc-badge-pill-fine {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================================================
   8. FAQS ACCORDION
   ========================================================================== */
.epc-hp-faqs-wrap {
    max-width: 900px;
    margin: 60px auto;
}

.epc-hp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.epc-hp-faq-row {
    background: #ffffff;
    border: 1.5px solid var(--epc-brand-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.epc-hp-faq-row.is-open {
    border-color: #0284c7;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}

.epc-hp-faq-btn-trigger {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 750;
    color: #0f172a;
    cursor: pointer;
    gap: 16px;
}

.epc-hp-faq-btn-trigger:hover {
    color: #0284c7;
}

.epc-hp-faq-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease;
}

.epc-hp-faq-row.is-open .epc-hp-faq-toggle-icon {
    transform: rotate(45deg);
    background: #0284c7;
    color: #ffffff;
}

.epc-hp-faq-answer {
    display: none;
    padding: 0 24px 22px 24px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

/* ==========================================================================
   9. BOTTOM CTA
   ========================================================================== */
.epc-hp-footer-cta {
    background: linear-gradient(135deg, #071527 0%, #0369a1 100%);
    border-radius: 20px;
    padding: 56px 36px;
    margin: 60px 0 30px 0;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(3, 105, 161, 0.25);
}

.epc-hp-footer-cta h3 {
    font-size: 34px;
    font-weight: 850;
    margin: 0 0 14px 0;
}

.epc-hp-footer-cta p {
    font-size: 16.5px;
    color: #e0f2fe;
    max-width: 680px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* ==========================================================================
   MODAL BOOKING POPUP (Replaces awkward raw form on homepage)
   ========================================================================== */
.epc-hp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.epc-hp-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: epcHpModalIn 0.25s ease-out;
}

@keyframes epcHpModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.epc-hp-modal-header {
    background: #0f172a;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.epc-hp-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.epc-hp-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.epc-hp-modal-close-btn:hover {
    color: #ffffff;
}

.epc-hp-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1 1 auto;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .epc-hp-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .epc-hp-why-grid {
        grid-template-columns: 1fr 1fr;
    }
    .epc-hp-why-box-featured {
        grid-column: span 2;
    }
    .epc-hp-process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .epc-hp-hero {
        padding: 36px 20px;
    }
    .epc-hp-hero-h1 {
        font-size: 28px;
    }
    .epc-hp-hero-bullets-grid {
        grid-template-columns: 1fr;
    }
    .epc-hp-services-grid {
        grid-template-columns: 1fr;
    }
    .epc-hp-why-grid {
        grid-template-columns: 1fr;
    }
    .epc-hp-why-box-featured {
        grid-column: span 1;
    }
    .epc-hp-accreditations-ribbon {
        flex-direction: column;
        align-items: flex-start;
    }
    .epc-hp-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .epc-hp-card-cta-group {
        width: 100%;
    }
    .epc-hp-btn-book, .epc-hp-btn-view {
        flex: 1;
        text-align: center;
    }
}
