/*
Theme Name: Punchhole
Template: generatepress
Description: Punchhole Accounting & Tax Outsourcing brand theme, child of GeneratePress.
Author: Punchhole
Version: 2.8.0
*/

:root {
    --ph-navy: #080451;
    --ph-navy-dark: #01113B;
    --ph-blue: #116dff;
    --ph-green: #008250;
    --ph-green-dark: #006b42;
    --ph-text: #1C1B2E;
    --ph-text-muted: #5F6270;
    --ph-bg-light: #FFFFFF;
    --ph-bg-neutral: #F6F5F2;
    --ph-bg-cream: #FAF6EE;
    /* Kept as accent-only tints (icon backgrounds, badges) - not full section backgrounds anymore */
    --ph-bg-mint: #E6F5EC;
    --ph-bg-blue-tint: #EAF1FF;
    --ph-bg-warm: #FFF6E9;
    --ph-bg-gray: #EEF1F9;
    --ph-border: #E7E5DF;
    --ph-radius: 12px;
    --ph-shadow: 0 2px 12px rgba(20, 20, 30, 0.05);
    --ph-shadow-hover: 0 12px 28px rgba(20, 20, 30, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ph-text);
    background-color: var(--ph-bg-light);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    color: var(--ph-navy);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2.1rem, 3.8vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
}
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

a { color: var(--ph-blue); text-decoration: none; }
a:hover { color: var(--ph-navy); }

img { max-width: 100%; height: auto; }

::selection { background: var(--ph-green); color: #fff; }

/* ---------- Scroll reveal ---------- */
.ph-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ph-reveal-visible { opacity: 1; transform: translateY(0); }
.ph-reveal-d1 { transition-delay: 0.08s; }
.ph-reveal-d2 { transition-delay: 0.16s; }
.ph-reveal-d3 { transition-delay: 0.24s; }
.ph-reveal-d4 { transition-delay: 0.32s; }

/* ---------- Header ---------- */
.site-header {
    background-color: var(--ph-navy);
    border-bottom: 1px solid var(--ph-navy-dark);
    position: sticky;
    top: 0;
    z-index: 500;
    transition: box-shadow 0.25s ease;
}
.site-header.ph-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

.site-header .main-title a {
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 800;
    color: #fff !important;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.main-navigation .main-nav ul li a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.main-navigation .main-nav ul li a:hover { color: #9fb3ff; }
.main-navigation ul ul { box-shadow: var(--ph-shadow); border-radius: 12px; overflow: hidden; }

.main-navigation .menu-toggle { color: #fff; }
.main-navigation .menu-toggle .gp-icon { color: #fff; }

#site-navigation.toggled .main-nav,
.main-navigation.toggled .main-nav {
    background: #fff;
    box-shadow: 0 16px 32px rgba(8,4,81,0.14);
    border-radius: 16px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}
#site-navigation.toggled .main-nav ul li a {
    padding: 0.9rem 1.5rem;
    display: block;
}

.entry-header .entry-title { color: var(--ph-navy); }

/* GeneratePress wraps page content in .site-content with 40px padding by default,
   AND (with "Separate Containers" layout) wraps the whole page in #page.grid-container
   which caps everything at max-width:1200px. Our sections handle their own spacing and
   max-width via .ph-container, so both outer constraints must be neutralized - otherwise
   every full-width hero/color-block section is boxed in and can never reach the edges.
   (This never surfaced locally since the preview harness didn't load GeneratePress's
   own core CSS.) */
#page.grid-container,
#page.container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.site-content,
.content-area,
.site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* ---------- Layout utilities ---------- */
.ph-container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.ph-section { padding: 6rem 0; position: relative; overflow: hidden; }
.ph-center { text-align: center; }

/* Confident color-blocked sections instead of white/gray everywhere */
.ph-bg-cream { background-color: var(--ph-bg-cream); }
.ph-bg-mint { background-color: var(--ph-bg-mint); }
.ph-bg-blue-tint { background-color: var(--ph-bg-blue-tint); }
.ph-bg-warm { background-color: var(--ph-bg-warm); }
.ph-bg-neutral { background-color: var(--ph-bg-neutral); }
.ph-section-alt { background-color: var(--ph-bg-neutral); }

@media (max-width: 640px) {
    .ph-section { padding: 3.5rem 0; }
}

/* Ambient decorative blobs used inside light sections to tie the page together */
.ph-ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.ph-ambient-blue { background: var(--ph-blue); opacity: 0.10; }
.ph-ambient-green { background: var(--ph-green); opacity: 0.10; }
.ph-ambient-navy { background: var(--ph-navy); opacity: 0.08; }
.ph-ambient-tl { width: 380px; height: 380px; top: -120px; left: -80px; }
.ph-ambient-br { width: 420px; height: 420px; bottom: -150px; right: -100px; }
.ph-ambient-tr { width: 340px; height: 340px; top: -100px; right: 5%; }

.ph-section-divider { display: block; width: 100%; position: relative; z-index: 1; margin-bottom: -1px; }

.ph-grid { display: grid; gap: 1.75rem; margin-top: 2.75rem; }
.ph-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ph-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ph-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .ph-grid-3, .ph-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ph-grid-2, .ph-grid-3, .ph-grid-4 { grid-template-columns: 1fr; }
}

.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ph-green);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.ph-eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--ph-green);
    display: inline-block;
}
.ph-eyebrow-on-dark { color: #7CF7C4; }
.ph-eyebrow-on-dark::before { background: #7CF7C4; }

.ph-lead { font-size: 1.15rem; color: var(--ph-text-muted); max-width: 700px; }
.ph-center .ph-lead { margin-left: auto; margin-right: auto; }

.ph-section-head { max-width: 700px; margin: 0 auto 1rem; }

/* ---------- HERO (split layout with illustration, animated) ---------- */
.ph-hero {
    position: relative;
    background: var(--ph-bg-light);
    padding: 6rem 0 5rem;
    text-align: center;
    overflow: hidden;
}
@media (max-width: 640px) {
    .ph-hero { padding: 3.5rem 0 3rem; }
}

.ph-hero-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .ph-hero-split { grid-template-columns: 1fr; text-align: center; }
    .ph-hero-visual { order: -1; max-width: 340px; margin: 0 auto 1rem; }
}

.ph-hero h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.5rem);
    line-height: 1.08;
    color: var(--ph-navy);
    margin: 0 0 1.5rem;
}

.ph-hero .ph-lead {
    color: var(--ph-text-muted);
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 0 2rem;
}
@media (max-width: 900px) {
    .ph-hero h1, .ph-hero .ph-lead { margin-left: auto; margin-right: auto; }
}

.ph-btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; justify-content: flex-start; }
@media (max-width: 900px) { .ph-btn-row { justify-content: center; } }

.ph-trust-bar {
    font-size: 0.88rem;
    color: var(--ph-text-muted);
    margin-top: 1rem;
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
@media (max-width: 900px) { .ph-trust-bar { justify-content: center; } }

/* ---------- Hero illustration ---------- */
.ph-hero-visual svg { width: 100%; height: auto; display: block; }
.ph-hero-visual { transition: transform 0.3s ease-out; position: relative; }

.ph-hero-photo-card {
    position: absolute;
    left: -8%;
    bottom: 6%;
    width: 42%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(8,4,81,0.22);
    border: 4px solid #fff;
    animation: ph-float 5s ease-in-out infinite 0.8s;
}
.ph-hero-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
    .ph-hero-photo-card { left: -4%; width: 38%; }
}
@media (prefers-reduced-motion: reduce) {
    .ph-hero-photo-card { animation: none; }
}
.ph-hero-orbit { animation: ph-orbit-spin 40s linear infinite; transform-origin: 240px 210px; }
.ph-hero-float-card { animation: ph-float 4s ease-in-out infinite; transform-origin: center; }
.ph-hero-badge { animation: ph-float 4s ease-in-out infinite 0.4s; transform-origin: center; }
@keyframes ph-orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes ph-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
    .ph-hero-orbit, .ph-hero-float-card, .ph-hero-badge { animation: none; }
}

.ph-trust-bar-stacked { flex-direction: row; }

/* Pill badges (trust items) under the hero - the only place "gradient" is a shadow, not a background */
.ph-pill-badge {
    display: inline-flex;
    align-items: center;
    background: var(--ph-bg-neutral);
    color: var(--ph-navy);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
}

/* ---------- Marquee trust strip ---------- */
.ph-marquee-wrap {
    background: var(--ph-bg-cream);
    border-bottom: 1px solid var(--ph-border);
    overflow: hidden;
    padding: 1rem 0;
}
.ph-marquee {
    display: flex;
    width: max-content;
    gap: 3.5rem;
    animation: ph-marquee-scroll 26s linear infinite;
}
.ph-marquee span {
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 700;
    color: var(--ph-navy);
    opacity: 0.55;
    font-size: 0.95rem;
    white-space: nowrap;
}
@keyframes ph-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.ph-btn {
    display: inline-block;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.9em 1.9em;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.ph-btn-primary {
    background-color: var(--ph-green);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 130, 80, 0.35);
}
.ph-btn-primary:hover { background-color: var(--ph-green-dark); color: #fff !important; transform: translateY(-2px); }

.ph-btn-outline { background-color: transparent; border-color: var(--ph-navy); color: var(--ph-navy) !important; }
.ph-btn-outline:hover { background-color: var(--ph-navy); color: #fff !important; transform: translateY(-2px); }

.ph-btn-on-dark { border-color: rgba(255,255,255,0.6); color: #fff !important; }
.ph-btn-on-dark:hover { background-color: #fff; color: var(--ph-navy) !important; border-color: #fff; }

.ph-link-arrow {
    font-weight: 700;
    color: var(--ph-navy);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, gap 0.2s ease;
}
.ph-link-arrow:hover { color: var(--ph-blue); border-color: var(--ph-blue); gap: 0.55rem; }

/* ---------- Section divider (wave) ---------- */
.ph-divider { display: block; width: 100%; height: 70px; margin-bottom: -2px; }
.ph-divider-alt-top { background-color: var(--ph-bg-gray); }

/* ---------- Cards ---------- */
.ph-card {
    background: linear-gradient(160deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(8, 4, 81, 0.08);
    border-radius: var(--ph-radius);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--ph-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    z-index: 1;
}
.ph-card:hover { box-shadow: var(--ph-shadow-hover); transform: translateY(-6px); border-color: rgba(17,109,255,0.3); }
.ph-card h3 { margin-top: 0; margin-bottom: 0.6rem; }
.ph-card p { color: var(--ph-text-muted); margin-bottom: 0; }

.ph-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    color: #fff;
    box-shadow: 0 8px 16px rgba(8,4,81,0.12);
    transition: transform 0.2s ease;
}
.ph-card:hover .ph-icon-circle,
.ph-hcard:hover .ph-icon-circle,
.ph-why-card:hover .ph-icon-circle,
.ph-what-card:hover .ph-icon-circle,
.ph-industry-card:hover .ph-icon-circle,
.ph-case-card:hover .ph-icon-circle {
    transform: scale(1.1) rotate(-4deg);
}
.ph-icon-circle svg { width: 26px; height: 26px; }
.ph-icon-tint-1 { background: linear-gradient(135deg, var(--ph-blue), #4694ff); }
.ph-icon-tint-2 { background: linear-gradient(135deg, var(--ph-green), #00a868); }
.ph-icon-tint-3 { background: linear-gradient(135deg, var(--ph-navy), #2a1fae); }
.ph-icon-tint-4 { background: linear-gradient(135deg, #df3131, #ff6b4a); }

/* Bento-style services grid */
.ph-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.75rem; }
.ph-bento .ph-card:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.ph-bento .ph-card:first-child .ph-icon-circle { width: 64px; height: 64px; }
.ph-bento .ph-card:first-child .ph-icon-circle svg { width: 30px; height: 30px; }
.ph-bento .ph-card:first-child h3 { font-size: 1.5rem; }
@media (max-width: 900px) {
    .ph-bento { grid-template-columns: repeat(2, 1fr); }
    .ph-bento .ph-card:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
    .ph-bento { grid-template-columns: 1fr; }
    .ph-bento .ph-card:first-child { grid-column: span 1; }
}

/* Horizontal cards (Who We Help) */
.ph-hcard-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.75rem; }
.ph-hcard {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: linear-gradient(160deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(8, 4, 81, 0.08);
    border-left: 4px solid transparent;
    border-radius: var(--ph-radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--ph-shadow);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}
.ph-hcard:hover { border-left-color: var(--ph-green); transform: translateX(6px); box-shadow: var(--ph-shadow-hover); }
.ph-hcard .ph-icon-circle { margin-bottom: 0; flex-shrink: 0; }
.ph-hcard-body h3 { margin-bottom: 0.35rem; }
.ph-hcard-body p { margin-bottom: 0; color: var(--ph-text-muted); }
@media (max-width: 640px) {
    .ph-hcard { flex-direction: column; text-align: center; gap: 1rem; }
    .ph-hcard:hover { transform: translateY(-4px); }
}

/* ---------- Checklist (pain points) ---------- */
.ph-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 2.5rem; }
@media (max-width: 900px) { .ph-pain-grid { grid-template-columns: 1fr; } }

.ph-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.ph-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 1.05rem;
    line-height: 1.5;
    background: var(--ph-bg-light);
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
}
.ph-checklist .ph-x-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fdeaea;
    color: #df3131;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 2px;
}

.ph-pain-visual {
    background: linear-gradient(160deg, var(--ph-navy), var(--ph-navy-dark));
    border-radius: 24px;
    padding: 2.5rem;
    color: #fff;
    text-align: center;
    box-shadow: var(--ph-shadow-hover);
}
.ph-pain-visual .ph-pain-number { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 3.5rem; font-weight: 800; color: #7CF7C4; line-height: 1; }
.ph-pain-visual p { color: #c7c9e6; margin-top: 0.5rem; }

/* ---------- Process steps (Solution section) ---------- */
.ph-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3rem; position: relative; }
@media (max-width: 900px) { .ph-process { grid-template-columns: 1fr; gap: 2rem; } }

.ph-process-step { position: relative; text-align: center; padding: 0 1.5rem; }
.ph-process-step::after {
    content: "";
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ph-navy) 0 8px, transparent 8px 16px);
    opacity: 0.25;
}
.ph-process-step:last-child::after { display: none; }
@media (max-width: 900px) { .ph-process-step::after { display: none; } }

.ph-process-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ph-navy);
    color: #fff;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}
.ph-process-step p { color: var(--ph-text-muted); }

/* ---------- Stats (glass on dark) ---------- */
.ph-stats-dark {
    background: linear-gradient(135deg, var(--ph-navy) 0%, var(--ph-navy-dark) 100%);
    border-radius: 28px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.ph-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
@media (max-width: 900px) { .ph-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.ph-stat-tile {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 1.75rem 1rem;
    text-align: center;
    backdrop-filter: blur(6px);
}
.ph-stat-number {
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}
.ph-stat-label { font-size: 0.9rem; color: #b6b9de; margin-top: 0.5rem; }

.ph-ring-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.ph-ring-svg { width: 100%; height: 100%; }
.ph-ring-progress {
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ph-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0;
}

.ph-badge-row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; position: relative; z-index: 1; }
.ph-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

/* ---------- Testimonials ---------- */
.ph-testimonial-card { position: relative; padding-top: 2.75rem; }
.ph-quote-mark {
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--ph-border);
    line-height: 1;
}
.ph-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 0.75rem; font-size: 0.9rem; }
.ph-testimonial { font-style: italic; color: var(--ph-text); margin-bottom: 0; position: relative; z-index: 1; }
.ph-testimonial-footer { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.4rem; }
.ph-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ph-testimonial-author { font-weight: 700; font-style: normal; color: var(--ph-navy); font-size: 0.9rem; }
.ph-testimonial-role { font-size: 0.8rem; color: var(--ph-text-muted); font-style: normal; }

/* ---------- Chips (industries / calculators) ---------- */
.ph-chip-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.ph-chip {
    background: var(--ph-bg-light);
    border: 2px solid var(--ph-blue);
    color: var(--ph-navy);
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.ph-chip:hover { background-color: var(--ph-blue); color: #fff; transform: translateY(-3px); }

/* ---------- CLOSE (v8: light, not a dark navy gradient) ---------- */
.ph-cta-section {
    background: var(--ph-navy);
    color: #fff;
    text-align: center;
    padding: 7.5rem 0 5.5rem;
    position: relative;
    clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
    margin-top: -1px;
}
@media (max-width: 640px) {
    .ph-cta-section { clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); padding-top: 6rem; }
}
.ph-cta-section .ph-container { position: relative; z-index: 1; }
.ph-cta-section h2 { color: #fff; }
.ph-cta-section p { color: #c3c6ea; font-size: 1.15rem; max-width: 650px; margin: 0 auto 2rem; }
.ph-cta-microtrust { margin-top: 1.5rem; font-size: 0.85rem; color: #c3c6ea; }

/* ---------- Sticky CTA ---------- */
.ph-sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background-color: var(--ph-green);
    color: #ffffff !important;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    padding: 0.9em 1.4em;
    border-radius: 30px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.ph-sticky-cta:hover { background-color: var(--ph-navy); color: #ffffff !important; transform: translateY(-2px); }
@media (max-width: 600px) {
    .ph-sticky-cta { bottom: 14px; right: 14px; padding: 0.7em 1em; font-size: 0.85rem; }
}

/* ---------- Footer ---------- */
.site-footer .site-info { display: none; }

.ph-footer { background-color: var(--ph-navy-dark); color: #cfd2ea; padding: 4rem 0 0; }
.ph-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .ph-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ph-footer-grid { grid-template-columns: 1fr; } }

.ph-footer-logo { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 0.75rem; }
.ph-footer-tagline { color: #a7abd1; font-size: 0.95rem; }
.ph-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.ph-footer ul { list-style: none; padding: 0; margin: 0; }
.ph-footer ul li { margin-bottom: 0.6rem; }
.ph-footer a { color: #cfd2ea; }
.ph-footer a:hover { color: #fff; }

.ph-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #9296bf;
}
.ph-footer-legal a { color: #9296bf; }
.ph-footer-legal a:hover { color: #fff; }

/* ---------- Comparison table ---------- */
.ph-compare-wrap {
    overflow-x: auto;
    margin-top: 2.5rem;
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow);
    background: #fff;
}
.ph-compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    font-size: 0.98rem;
}
.ph-compare th, .ph-compare td {
    padding: 1.1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--ph-border);
}
.ph-compare thead th {
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 700;
    color: var(--ph-navy);
    background: var(--ph-bg-cream);
    font-size: 0.95rem;
}
.ph-compare thead th:first-child { border-top-left-radius: var(--ph-radius); }
.ph-compare thead th:last-child { border-top-right-radius: var(--ph-radius); }
.ph-compare tbody th {
    font-weight: 600;
    color: var(--ph-text-muted);
    white-space: nowrap;
}
.ph-compare tbody tr:last-child td, .ph-compare tbody tr:last-child th { border-bottom: none; }
.ph-compare td.ph-compare-win { color: var(--ph-green); font-weight: 700; }
.ph-compare td.ph-compare-lose { color: var(--ph-text-muted); }

/* ---------- FAQ accordion ---------- */
.ph-faq-list { max-width: 780px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.ph-faq-item {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    padding: 0.25rem 1.5rem;
    box-shadow: var(--ph-shadow);
}
.ph-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 0;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 700;
    color: var(--ph-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.ph-faq-item summary::-webkit-details-marker { display: none; }
.ph-faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ph-blue);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.ph-faq-item[open] summary::after { transform: rotate(45deg); }
.ph-faq-item p {
    color: var(--ph-text-muted);
    margin: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding-bottom 0.3s ease;
}
.ph-faq-item[open] p {
    padding-bottom: 1.25rem;
    opacity: 1;
}

/* ---------- Pending real data flag (dev-visible, clearly not fake content) ---------- */
.ph-pending-data {
    border: 2px dashed #c9a227;
    background: #fffaf0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    color: #7a5c00;
    font-size: 0.95rem;
}

/* ---------- Team-size calculator ---------- */
.ph-calc-card {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow-hover);
    padding: 2.5rem;
    max-width: 720px;
    margin: 2.5rem auto 0;
}
.ph-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 600px) {
    .ph-calc-grid { grid-template-columns: 1fr; }
    .ph-calc-card { padding: 1.75rem; }
}
.ph-calc-field label {
    display: block;
    font-weight: 600;
    color: var(--ph-navy);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.ph-calc-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    color: var(--ph-text);
    background: var(--ph-bg-cream);
}
.ph-calc-field input:focus {
    outline: none;
    border-color: var(--ph-blue);
}
.ph-calc-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
}
.ph-calc-result {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ph-border);
    text-align: center;
}
.ph-calc-result.ph-calc-result-visible { display: block; }
.ph-calc-result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ph-text-muted);
    font-weight: 600;
}
.ph-calc-result-tier {
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ph-green);
    margin: 0.5rem 0 1rem;
}
.ph-calc-microtrust { font-size: 0.85rem; color: var(--ph-text-muted); margin-top: 1rem; }

/* ---------- Case study cards (qualitative, no fabricated figures) ---------- */
.ph-case-card {
    background: var(--ph-bg-cream);
    border-radius: var(--ph-radius);
    padding: 2rem;
}
.ph-case-card .ph-icon-circle { background: var(--ph-navy); color: #fff; }
.ph-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ph-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 16px rgba(8,4,81,0.12);
    transition: transform 0.2s ease;
}
.ph-case-card:hover .ph-avatar-circle { transform: scale(1.08); }
.ph-case-card .ph-case-name { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-weight: 700; color: var(--ph-navy); margin-bottom: 0.25rem; }
.ph-case-card .ph-case-role { font-size: 0.85rem; color: var(--ph-text-muted); margin-bottom: 1rem; }
.ph-case-card p:last-child { color: var(--ph-text-muted); margin-bottom: 0; }
.ph-pending-data strong { display: block; margin-bottom: 0.35rem; font-family: 'Bricolage Grotesque', Arial, sans-serif; }

/* ---------- Calculator: range-pill selectors (v5, live scoring, no submit) ---------- */
.ph-calc-question { margin-bottom: 1.75rem; text-align: left; }
.ph-calc-question label {
    display: block;
    font-weight: 700;
    color: var(--ph-navy);
    margin-bottom: 0.75rem;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-size: 0.95rem;
}
.ph-calc-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ph-calc-pill {
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 2px solid var(--ph-border);
    background: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--ph-text-muted);
    font-family: 'Inter', Arial, sans-serif;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ph-calc-pill:hover { border-color: var(--ph-blue); color: var(--ph-navy); }
.ph-calc-pill.ph-calc-pill-active { background: var(--ph-green); border-color: var(--ph-green); color: #fff; }

/* Contact mini-form, only ever shown after a result exists */
.ph-calc-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ph-border);
    text-align: left;
}
.ph-calc-contact.ph-calc-contact-hidden { display: none; }
.ph-calc-thankyou {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #e3f6ea;
    border-radius: 12px;
    color: var(--ph-green-dark);
    font-weight: 600;
    text-align: center;
}
.ph-calc-thankyou.ph-calc-thankyou-visible { display: block; }

/* ---------- Founder section (placeholder by design) ---------- */
.ph-founder-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border: 2px dashed var(--ph-border);
    border-radius: var(--ph-radius);
    padding: 2.5rem;
    max-width: 820px;
    margin: 2.5rem auto 0;
}
.ph-founder-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--ph-bg-cream);
    border: 2px dashed var(--ph-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-text-muted);
    font-size: 0.75rem;
    text-align: center;
    flex-shrink: 0;
    padding: 0.5rem;
}
@media (max-width: 600px) {
    .ph-founder-card { flex-direction: column; text-align: center; }
}
.ph-founder-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.ph-founder-credentials span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ph-navy);
    background: var(--ph-bg-neutral);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

/* ---------- Form reassurance microcopy ---------- */
.ph-form-reassurance {
    font-size: 0.82rem;
    color: var(--ph-text-muted);
    text-align: center;
    margin: 0.75rem 0 0;
}

/* ---------- Header utility bar: phone + primary CTA, injected via JS into the sticky header ---------- */
.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.ph-header-utility {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
.ph-header-phone {
    font-weight: 600;
    color: #fff !important;
    font-size: 0.9rem;
    white-space: nowrap;
}
.ph-header-cta {
    padding: 0.55em 1.3em !important;
    font-size: 0.85rem !important;
}
@media (max-width: 640px) {
    .ph-header-phone { display: none; }
}

/* ---------- Two conversion paths shown together at each touchpoint ---------- */
.ph-btn-outline-small { font-size: 0.85rem; padding: 0.7em 1.4em; }

/* ---------- Simplified footer (v6): contact line + certifications ---------- */
.ph-footer-simple {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    padding: 2.5rem 0;
    text-align: center;
    color: #cfd2ea;
    font-size: 0.9rem;
}
.ph-footer-simple a { color: #cfd2ea; }
.ph-footer-simple a:hover { color: #fff; }

/* ---------- Calculator: soft capture (email only) shown before hard capture ---------- */
.ph-calc-soft-capture {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--ph-bg-cream);
    border-radius: 16px;
    text-align: left;
}
.ph-calc-soft-capture p { margin: 0 0 0.75rem; font-weight: 600; color: var(--ph-navy); font-size: 0.95rem; }
.ph-calc-soft-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ph-calc-soft-row input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.95rem;
}
.ph-calc-soft-row input[type="email"]:focus { outline: none; border-color: var(--ph-blue); }
.ph-calc-hard-capture-intro { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--ph-border); font-weight: 600; color: var(--ph-navy); text-align: left; }
.ph-calc-talk-line { margin-top: 1.5rem; font-size: 0.9rem; color: var(--ph-text-muted); text-align: center; }

/* Result pops in rather than just appearing, per "result count animates in" */
.ph-calc-result {
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease;
}
.ph-calc-result.ph-calc-result-visible { transform: scale(1); }

/* ---------- v8: Why cards (icon + short line, 3-across) ---------- */
.ph-why-card {
    background: var(--ph-bg-light);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding: 2rem;
    box-shadow: var(--ph-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ph-why-card:hover { box-shadow: var(--ph-shadow-hover); transform: translateY(-4px); }
.ph-why-card .ph-icon-circle { background: var(--ph-navy); color: #fff; }

/* ---------- v8: What We Do (6-card grid, icon + title + one line) ---------- */
.ph-what-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--ph-bg-light);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding: 1.5rem;
    box-shadow: var(--ph-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ph-what-card:hover { box-shadow: var(--ph-shadow-hover); transform: translateY(-3px); }
.ph-what-card .ph-icon-circle { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; background: var(--ph-navy); color: #fff; }
.ph-what-card .ph-icon-circle svg { width: 22px; height: 22px; }
.ph-what-card h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.ph-what-card p { margin: 0; color: var(--ph-text-muted); font-size: 0.92rem; }

/* ---------- v8: Software logo strip ---------- */
.ph-software-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.ph-software-logo {
    background: var(--ph-bg-light);
    border: 1px solid var(--ph-border);
    border-radius: 14px;
    padding: 1rem 2rem;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ph-navy);
    box-shadow: var(--ph-shadow);
}

/* ---------- v8: Industry grid (8 tappable cards) ---------- */
.ph-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}
@media (max-width: 900px) { .ph-industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ph-industry-grid { grid-template-columns: 1fr; } }

.ph-industry-card {
    background: var(--ph-bg-light);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--ph-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    display: block;
}
.ph-industry-card:hover { box-shadow: var(--ph-shadow-hover); transform: translateY(-3px); }
.ph-industry-card .ph-icon-circle { margin: 0 auto 1rem; background: var(--ph-navy); color: #fff; }
.ph-industry-card h3 { font-size: 0.95rem; color: var(--ph-navy); margin: 0; }
.ph-industry-card.ph-industry-linked { border-color: var(--ph-green); }

/* ---------- v8: Standalone enquiry form ---------- */
.ph-enquiry-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
    text-align: left;
    margin-top: 2.5rem;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) {
    .ph-enquiry-split { grid-template-columns: 1fr; gap: 2rem; }
}

.ph-enquiry-info {
    background: var(--ph-bg-neutral);
    border-radius: var(--ph-radius);
    padding: 2.25rem;
    height: 100%;
}
.ph-enquiry-info h3 { margin-top: 0; }
.ph-enquiry-info .ph-checklist li {
    background: var(--ph-bg-light);
    font-size: 0.95rem;
}
.ph-enquiry-contact-line { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--ph-border); }
.ph-enquiry-contact-line p { margin: 0 0 0.35rem; }

.ph-enquiry-card {
    background: var(--ph-bg-light);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow);
    padding: 2.5rem;
    text-align: left;
}
.ph-enquiry-card textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    color: var(--ph-text);
    background: var(--ph-bg-cream);
    resize: vertical;
    min-height: 90px;
}
.ph-enquiry-card textarea:focus { outline: none; border-color: var(--ph-blue); }
.ph-enquiry-field { margin-bottom: 1.25rem; }
.ph-enquiry-field label {
    display: block;
    font-weight: 700;
    color: var(--ph-navy);
    margin-bottom: 0.5rem;
    font-family: 'Bricolage Grotesque', Arial, sans-serif;
    font-size: 0.9rem;
}
