/* ===========================================================================
   ops-theme — Inner page design system (Gutenberg block content)
   Styles native blocks (wp:group / wp:heading / wp:paragraph / wp:buttons /
   wp:list) via helper classes so /page.php content renders as a cohesive,
   modern layout aligned with the homepage. Depends on tokens in style.css.
   =========================================================================== */

/* ---- content width model (page.php > .entry-content) ---------------------- */
.page-main { overflow: hidden; }
.page-article { margin: 0; }
.page-article .entry-content { max-width: none; margin: 0; padding: 0; }
.page-article .entry-content > * {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
.page-article .entry-content > .alignwide { max-width: 1180px; }
.page-article .entry-content > .alignfull { max-width: 100%; padding-left: 0; padding-right: 0; }

.ops-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ops-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---- section rhythm ------------------------------------------------------- */
.entry-content > .ops-section { padding-top: 72px; padding-bottom: 72px; }
.ops-section-alt { background: var(--color-bg-alt); }
.ops-section .ops-container > .wp-block-heading,
.ops-section .ops-narrow > .wp-block-heading { margin-top: 0; }

/* ---- hero ----------------------------------------------------------------- */
.ops-hero {
    background: linear-gradient(160deg, #262626 0%, #333331 55%, #2C2C2C 100%);
    padding: 92px 0 84px;
    position: relative;
    text-align: center;
}
.ops-hero::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
    background: linear-gradient(to top, var(--color-bg), transparent);
}
.ops-hero .ops-container { position: relative; z-index: 1; max-width: 860px; }
.ops-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    line-height: 1.15;
    margin: 0 0 18px;
}
.ops-hero p {
    color: rgba(255,255,255,0.72);
    font-size: 1.18rem;
    max-width: 640px;
    margin: 0 auto 28px;
}
.ops-hero .wp-block-buttons { justify-content: center; }
.ops-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent);
    margin: 0 0 18px;
}

/* ---- headings / lead ------------------------------------------------------ */
.entry-content h2 { font-size: 1.9rem; margin: 1.6em 0 0.6em; }
.entry-content h3 { font-size: 1.3rem; margin: 1.3em 0 0.5em; }
.entry-content p { margin: 0 0 1.3em; color: var(--color-text); }
.entry-content .ops-lead { font-size: 1.28rem; color: var(--color-text-light); line-height: 1.6; }
.ops-section-head { text-align: center; margin-bottom: 2.4rem; }
.ops-section-head h2 { margin-top: 0; }
.ops-section-head p { color: var(--color-text-light); max-width: 620px; margin: 0.4rem auto 0; }
.ops-section-head::after {
    content: ''; display: block; width: 44px; height: 3px;
    background: var(--color-accent); margin: 18px auto 0; border-radius: 2px;
}

/* ---- grids ---------------------------------------------------------------- */
.ops-grid { display: grid; gap: 24px; }
.ops-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ops-grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.ops-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---- cards ---------------------------------------------------------------- */
.ops-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ops-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--color-accent); opacity: 0; transition: var(--transition);
}
.ops-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ops-card:hover::before { opacity: 1; }
.ops-card h3 { margin-top: 0; }
.ops-card p { margin-bottom: 0.8em; }
.ops-card p:last-child { margin-bottom: 0; }
.ops-card .ops-meta {
    display: block; margin-top: 12px; font-size: 0.85rem; font-weight: 600;
    color: var(--color-text-light); border-top: 1px solid var(--color-border); padding-top: 12px;
}
.ops-card .ops-rating { color: var(--color-accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6em; }
.ops-card .wp-block-button { margin-top: 14px; }

/* service icon cards (centered) */
.ops-card.ops-card-center { text-align: center; }
.ops-card.ops-card-center .ops-meta { border-top: none; }

/* ---- pricing -------------------------------------------------------------- */
.ops-price-card { text-align: center; }
.ops-price-card .ops-price {
    font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-text-light);
    margin: 0.2em 0 1em; font-weight: 400;
}
.ops-price-card ul.wp-block-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.ops-price-card ul.wp-block-list li {
    padding: 10px 0; border-bottom: 1px solid var(--color-border);
    font-size: 0.96rem; display: flex; justify-content: space-between; gap: 12px;
}
.ops-price-card ul.wp-block-list li:last-child { border-bottom: none; }
.ops-price-card.is-featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); }

/* ---- checklist / feature list -------------------------------------------- */
.entry-content ul.wp-block-list { padding-left: 0; list-style: none; }
.entry-content ul.wp-block-list li { position: relative; padding: 6px 0 6px 30px; }
.entry-content ul.wp-block-list li::before {
    content: '\2713'; position: absolute; left: 0; top: 6px;
    color: var(--color-accent); font-weight: 700;
}
.entry-content ol.wp-block-list { padding-left: 1.4em; }
/* plain lists inside cards keep the check style; nested handled above */

/* ---- FAQ ------------------------------------------------------------------ */
.ops-faq { max-width: 820px; margin: 0 auto; }
.ops-faq .ops-faq-item {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 16px;
    transition: var(--transition);
}
.ops-faq .ops-faq-item:hover { box-shadow: var(--shadow-sm); }
.ops-faq .ops-faq-item h3 { margin: 0 0 8px; font-size: 1.12rem; }
.ops-faq .ops-faq-item p { margin: 0; color: var(--color-text-light); }

/* ---- buttons (wp:button) -------------------------------------------------- */
.entry-content .wp-block-button__link {
    background: var(--color-accent); color: #fff; border-radius: var(--radius-sm);
    padding: 13px 32px; font-weight: 700; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    box-shadow: 0 2px 10px rgba(212,168,67,0.3); transition: var(--transition);
}
.entry-content .wp-block-button__link:hover {
    background: #BF9535; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(212,168,67,0.4); color: #fff;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); box-shadow: none;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255,255,255,0.12); border-color: #fff;
}

/* ---- CTA band ------------------------------------------------------------- */
.ops-cta {
    background: linear-gradient(135deg, #2C2C2C 0%, #3a3a38 100%);
    text-align: center; padding: 72px 0;
}
.ops-cta h2 { color: #fff; margin-top: 0; }
.ops-cta p { color: rgba(255,255,255,0.72); max-width: 600px; margin: 0.6rem auto 1.8rem; }
.ops-cta .wp-block-buttons { justify-content: center; }

/* ---- images inside content ------------------------------------------------ */
.entry-content .wp-block-image { margin: 2em auto; }
.entry-content .wp-block-image img { border-radius: var(--radius-md); max-width: 100%; height: auto; }

/* ---- breadcrumb ----------------------------------------------------------- */
.page-article .breadcrumb { max-width: 780px; margin: 24px auto 0; padding: 0 24px; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
    .ops-hero { padding: 64px 0 60px; }
    .entry-content > .ops-section { padding-top: 52px; padding-bottom: 52px; }
    .entry-content h2 { font-size: 1.6rem; }
}
