/*
 * Premium page design system
 * ---------------------------------------------------------------------------
 * Shared styling for the service, service-area and blog templates. Tokens match
 * the inline sections already used on the About page so the new pages read as
 * part of the same site rather than a bolt-on.
 */

:root {
    --theme-orange: #f06b23;
    --theme-orange-dark: #d4551180;
    --theme-blue: #146eb8;
    --theme-blue-dark: #0f568f;
    --deep-slate: #0f172a;
    --text-slate: #475569;
    --muted-slate: #64748b;
    --line: #e2e8f0;
    --white: #ffffff;
    --bg-subtle: #f8fafc;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .04);
    --shadow-md: 0 12px 40px rgba(15, 23, 42, .09);
}

.pm {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text-slate);
}

.pm-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.pm-section { padding: 88px 0; }
.pm-section--tight { padding: 56px 0; }
.pm-section--subtle { background: var(--bg-subtle); }

.pm h1, .pm h2, .pm h3, .pm h4, .pm h5 {
    font-family: inherit;
    color: var(--deep-slate);
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.pm p { line-height: 1.7; margin: 0 0 18px; font-size: 1.02rem; }
.pm a { color: var(--theme-blue); text-decoration: none; }
.pm a:hover { color: var(--theme-blue-dark); }

/* --------------------------------------------------------------- eyebrow */
.pm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--theme-orange);
    background: rgba(240, 107, 35, .1);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 18px;
}

/* ------------------------------------------------------------------ hero */
.pm-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #14375e 55%, #146eb8 100%);
    color: #e2e8f0;
    padding: 96px 0 104px;
    overflow: hidden;
}

.pm-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    top: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 107, 35, .28) 0%, transparent 68%);
    pointer-events: none;
}

.pm-hero .pm-container { position: relative; z-index: 1; }
.pm-hero-inner { max-width: 780px; }
.pm-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-weight: 800; }
.pm-hero p { color: #cbd5e1; font-size: 1.12rem; max-width: 65ch; }
.pm-hero .pm-eyebrow { color: #ffd9c4; background: rgba(240, 107, 35, .22); }

.pm-crumbs { font-size: .88rem; color: #94a3b8; margin-bottom: 22px; }
.pm-crumbs a { color: #cbd5e1; }
.pm-crumbs a:hover { color: var(--white); }
.pm-crumbs span { margin: 0 8px; opacity: .6; }

/* --------------------------------------------------------------- buttons */
.pm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .98rem;
    padding: 15px 30px;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.pm-btn:hover { transform: translateY(-2px); }
.pm .pm-btn--primary { background: var(--theme-orange); color: var(--white); box-shadow: 0 10px 24px rgba(240, 107, 35, .32); }
.pm .pm-btn--primary:hover { background: #dd5c17; color: var(--white); }
.pm .pm-btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.pm .pm-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.pm .pm-btn--outline { border-color: var(--theme-blue); color: var(--theme-blue); }
.pm .pm-btn--outline:hover { background: var(--theme-blue); color: var(--white); }

.pm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ------------------------------------------------------------- headings */
.pm-head { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.pm-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
.pm-head h2 span { color: var(--theme-blue); }
.pm-head p { font-size: 1.08rem; color: var(--text-slate); margin-bottom: 0; }
.pm-head--left { margin-left: 0; text-align: left; }

/* ---------------------------------------------------------------- layout */
.pm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; align-items: start; }

/* ----------------------------------------------------------------- prose */
.pm-prose h2 { font-size: 1.7rem; font-weight: 800; margin-top: 44px; }
.pm-prose h2:first-child { margin-top: 0; }
.pm-prose h3 { font-size: 1.24rem; font-weight: 700; margin-top: 30px; }
.pm-prose ul { list-style: none; padding: 0; margin: 0 0 24px; }

.pm-prose ul li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 13px;
    line-height: 1.65;
}

.pm-prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(20, 110, 184, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23146eb8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pm-prose blockquote {
    margin: 30px 0;
    padding: 26px 30px;
    background: var(--bg-subtle);
    border-left: 4px solid var(--theme-orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.06rem;
    color: var(--deep-slate);
}

.pm-prose blockquote p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- cards */
.pm-grid { display: grid; gap: 26px; }
.pm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pm-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.pm-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-subtle); }
/* The <a> wrapping each thumbnail is inline by default, so the img's height:100%
   had no resolved height to size against and wide images letterboxed. */
.pm-card-media > a { display: block; width: 100%; height: 100%; }
.pm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pm-card:hover .pm-card-media img { transform: scale(1.05); }

.pm-card-tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(15, 23, 42, .82);
    color: var(--white);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.pm-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.pm-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.pm-card-body h3 a { color: var(--deep-slate); }
.pm-card-body h3 a:hover { color: var(--theme-blue); }
.pm-card-body p { font-size: .97rem; color: var(--muted-slate); flex: 1; }

.pm .pm-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .93rem;
    color: var(--theme-orange);
    margin-top: 6px;
}

.pm .pm-card-link:hover { color: #dd5c17; gap: 12px; transition: gap .18s ease; }

/* ------------------------------------------------------------ icon cards */
.pm-icon-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    height: 100%;
}

.pm-icon-card .pm-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(20, 110, 184, .1);
    color: var(--theme-blue);
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.pm-icon-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.pm-icon-card p { font-size: .95rem; margin-bottom: 0; color: var(--muted-slate); }

/* ----------------------------------------------------------------- steps */
.pm-steps { counter-reset: pmstep; display: grid; gap: 22px; }

.pm-step {
    position: relative;
    padding: 26px 28px 26px 84px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.pm-step::before {
    counter-increment: pmstep;
    content: counter(pmstep, decimal-leading-zero);
    position: absolute;
    left: 26px;
    top: 26px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--theme-orange);
    color: var(--white);
    font-weight: 800;
    font-size: .95rem;
}

.pm-step h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.pm-step p { font-size: .96rem; margin-bottom: 0; color: var(--muted-slate); }

/* ------------------------------------------------------------------- FAQ */
.pm-faq { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }

.pm-faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0 26px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pm-faq details[open] { border-color: #cbd5e1; box-shadow: var(--shadow-sm); }

.pm-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 40px 22px 0;
    font-weight: 700;
    color: var(--deep-slate);
    position: relative;
    font-size: 1.02rem;
}

.pm-faq summary::-webkit-details-marker { display: none; }

.pm-faq summary::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -7px;
    border-right: 2.5px solid var(--theme-blue);
    border-bottom: 2.5px solid var(--theme-blue);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.pm-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.pm-faq details p { padding-bottom: 22px; margin: 0; color: var(--text-slate); }

/* --------------------------------------------------------------- sidebar */
.pm-side { display: grid; gap: 22px; position: sticky; top: 24px; }

.pm-widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
}

.pm-widget h4 {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.pm-widget-nav { display: grid; gap: 4px; }

.pm-widget-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-slate);
    background: var(--bg-subtle);
}

.pm-widget-nav a::after { content: "\203A"; font-size: 1.2rem; line-height: 1; color: var(--muted-slate); }
.pm-widget-nav a:hover { background: rgba(20, 110, 184, .09); color: var(--theme-blue); }
.pm-widget-nav a:hover::after { color: var(--theme-blue); }
.pm-widget-nav a[aria-current="page"] { background: var(--theme-blue); color: var(--white); }
.pm-widget-nav a[aria-current="page"]::after { color: var(--white); }

.pm-contact-card {
    background: linear-gradient(150deg, #0f172a 0%, #14375e 100%);
    border-radius: var(--radius-md);
    padding: 30px;
    color: #cbd5e1;
}

.pm-contact-card h4 { color: var(--white); border-bottom-color: rgba(255, 255, 255, .16); }
.pm-contact-card p { font-size: .94rem; }
.pm-contact-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: .94rem; }
.pm-contact-row i { color: var(--theme-orange); margin-top: 4px; }
.pm-contact-row a { color: #e2e8f0; }
.pm-contact-row a:hover { color: var(--white); }
.pm-contact-card .pm-btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ------------------------------------------------------------------- CTA */
.pm-cta {
    background: linear-gradient(135deg, #146eb8 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 58px 52px;
    text-align: center;
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}

.pm-cta::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 107, 35, .3) 0%, transparent 70%);
}

.pm-cta > * { position: relative; z-index: 1; }
.pm-cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; }
.pm-cta p { max-width: 60ch; margin: 0 auto 26px; }
.pm-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------- callout */
.pm-callout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: rgba(240, 107, 35, .07);
    border: 1px solid rgba(240, 107, 35, .22);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    margin: 30px 0;
}

.pm-callout i { color: var(--theme-orange); font-size: 1.3rem; margin-top: 3px; }
.pm-callout p { margin: 0; font-size: .98rem; }
.pm-callout strong { color: var(--deep-slate); }

/* ----------------------------------------------------------------- stats */
.pm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.pm-stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    text-align: center;
}

.pm-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--theme-blue); line-height: 1; margin-bottom: 8px; }
.pm-stat span { font-size: .9rem; color: var(--muted-slate); font-weight: 600; }

/* ----------------------------------------------------------------- chips */
.pm-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.pm-chips a, .pm-chips span {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-slate);
}

.pm-chips a:hover { border-color: var(--theme-blue); color: var(--theme-blue); }

/* ------------------------------------------------------------ blog metas */
.pm-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .87rem; color: var(--muted-slate); margin-bottom: 14px; }
.pm-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pm-meta i { color: var(--theme-blue); }
.pm-hero .pm-meta { color: #94a3b8; }
.pm-hero .pm-meta i { color: var(--theme-orange); }

/* --------------------------------------------------------------- pager */
.pm-pager { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pm-pager .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--text-slate);
}
.pm-pager .page-numbers.current, .pm-pager .page-numbers:hover { background: var(--theme-blue); border-color: var(--theme-blue); color: var(--white); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .pm-layout { grid-template-columns: 1fr; }
    .pm-side { position: static; }
    .pm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .pm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .pm-section { padding: 60px 0; }
    .pm-hero { padding: 68px 0 74px; }
    .pm-grid--2, .pm-grid--3, .pm-grid--4 { grid-template-columns: 1fr; }
    .pm-cta { padding: 42px 26px; }
    .pm-step { padding: 74px 22px 24px; }
    .pm-step::before { top: 22px; }
    .pm-hero-actions .pm-btn, .pm-cta-actions .pm-btn { flex: 1 1 100%; justify-content: center; }
}

/* --------------------------------------------------- offer cards (hub) --- */
/* Cards for the full service offering, whose copy comes from the editor as
   short paragraphs with bullet lines rather than list markup. */
.pm-card--offer .pm-card-media { aspect-ratio: 16 / 9; }
.pm-card--offer .pm-card-body { padding: 26px; }

.pm-offer-text {
    flex: 1;
    font-size: .96rem;
    color: var(--muted-slate);
    line-height: 1.68;
}

.pm-offer-text p { font-size: inherit; margin: 0 0 12px; }
.pm-offer-text p:last-child { margin-bottom: 14px; }
