/*
Theme Name: Seun Odiase
Theme URI: https://www.seunodiase.com
Author: Dr Seun Odiase
Description: Free custom block theme for seunodiase.com: navy and aqua, Playfair Display and Manrope. Every page is editable in Appearance > Editor; colours and fonts are locked in so edits cannot break the design. Includes space for booking, payments, the Academy link and the Digital Health Focus agent.
Version: 2.0.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seunodiase
Tags: block-patterns, full-site-editing, one-column, custom-colors, editor-style
*/

/* Small additions on top of theme.json. Colours come from the palette tokens. */

:root {
	--so-navy: var(--wp--preset--color--navy);
	--so-teal: var(--wp--preset--color--teal);
	--so-mist: var(--wp--preset--color--mist);
	--so-ink: var(--wp--preset--color--ink);
	--so-slate: var(--wp--preset--color--slate);
	--so-line: var(--wp--preset--color--line);
}

h1, h2, h3 { text-wrap: balance; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--so-teal); outline-offset: 3px; }

/* Header */
.so-header { border-bottom: 1px solid var(--so-line); }
.so-header .wp-block-site-tagline { margin: 0; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--so-teal); }
.so-header .wp-block-site-title { margin: 0; line-height: 1.2; }
.so-header .wp-block-navigation a:hover { color: var(--so-teal); }
.so-header .wp-block-navigation .current-menu-item > a { color: var(--so-teal); }

/* Eyebrow / kicker text */
.so-kicker, .so-eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem !important; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--so-teal); margin-bottom: 0.4rem !important; }
.so-kicker::before, .so-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: 0 0 auto; }
.has-navy-background-color .so-kicker, .has-navy-background-color .so-eyebrow, .has-ink-background-color .so-eyebrow { color: var(--wp--preset--color--aqua); }

/* Outline button */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--so-navy); border: 1px solid rgba(15,42,70,.35); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--so-navy); color: #fff; }

/* Hero photo */
.so-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--so-line); }

/* Credentials band */
.so-credentials .wp-block-column { padding: 0.25rem 0; }
.so-credentials .wp-block-column + .wp-block-column { border-left: 1px solid #284766; padding-left: 1.5rem; }
.so-credentials .so-stat { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin: 0 0 0.25rem; color: #fff; font-variant-numeric: tabular-nums; }
.so-credentials p { margin: 0; color: #d6e2ea; font-size: 0.9rem; }
@media (max-width: 781px) {
	.so-credentials .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid #284766; padding-top: 1rem; }
}

/* Cards with a teal rule on top */
.so-card { background: #fff; border: 1px solid rgba(15,42,70,.07); border-radius: 24px; padding: 1.75rem !important; transition: transform .3s ease, box-shadow .3s ease; }
.so-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -38px rgba(15,42,70,.45); }
.so-card h3, .so-card h4 { margin-top: 0.3rem; }
.so-card p { font-size: 0.95rem; }

/* Timeline on About */
.so-timeline .wp-block-group { border-left: 2px solid var(--so-mist); padding-left: 1.25rem; position: relative; }
.so-timeline .wp-block-group::before { content: ""; position: absolute; left: -6px; top: 0.45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--so-teal); }
.so-timeline .so-years { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--so-slate); margin: 0; }

/* Placeholders: dashed boxes that are easy to spot and replace */
.so-placeholder { border: 1px dashed #9aa8b3; background: #ffffff; padding: 1rem 1.25rem; color: var(--so-slate); font-size: 0.95rem; }
.so-placeholder strong { color: var(--so-ink); }

/* Post lists */
.so-post-list .wp-block-post { border-top: 1px solid var(--so-line); padding-top: 1.25rem; }
.so-post-list .wp-block-post-title { font-size: var(--wp--preset--font-size--large); margin: 0.2rem 0 0.4rem; }
.wp-block-post-terms a { text-decoration: none; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.wp-block-post-date { color: var(--so-slate); font-size: 0.85rem; }

/* Tables */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--so-line); padding: 0.7rem 0.6rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { border-bottom: 2px solid var(--so-navy); color: var(--so-navy); font-weight: 600; }

/* Certificate image */
.so-certificate img { border: 1px solid var(--so-line); box-shadow: 0 8px 24px rgba(15, 42, 70, 0.08); }

/* Shortcode output: contact form and booking */
.so-form label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 1rem; }
.so-form input[type=text], .so-form input[type=email], .so-form select, .so-form textarea,
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem; font: inherit; color: var(--so-ink);
	background: #fff; border: 1px solid var(--so-line); border-radius: 2px; box-sizing: border-box;
}
.wpcf7 textarea { min-height: 150px; }
.wpcf7 input[type=submit] { background: var(--so-navy); color: #fff; border: 0; border-radius: 2px; padding: 0.8rem 1.3rem; font: 500 0.95rem var(--wp--preset--font-family--sans); cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--so-teal); }
.wpcf7-acceptance { display: block; font-size: 0.9rem; margin-bottom: 1rem; }
.wpcf7-not-valid-tip { color: #a3302a; font-size: 0.85rem; }

/* Footer */
.so-footer a { color: #e3ecf2; text-decoration: none; }
.so-footer a:hover { color: #9fd3d6; text-decoration: underline; }
.so-footer p { margin: 0.25rem 0; }
.so-footer .so-footer-head { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #9fd3d6; margin-bottom: 0.6rem; }
.so-footer .so-disclaimer { color: #a9b9c7; font-size: 0.8rem; }

/* Mobile */
@media (max-width: 600px) {
	.so-header .wp-block-buttons { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.so-footer-links p { font-size: 0.875rem; }

/* Featured project band (navy) */
.so-featured .so-kicker { color: #9fd3d6; }
.so-featured p { color: #d6e2ea; }
.so-featured a { color: #ffffff; }
.so-featured a:hover { color: #9fd3d6; }
.so-featured .so-mini-stats .so-stat, .so-featured .so-stat { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.1; margin: 0 0 0.2rem; color: #ffffff; font-variant-numeric: tabular-nums; }
.so-featured .so-mini-stats p { margin: 0; font-size: 0.9rem; }
.so-note { font-size: 0.8rem !important; color: #a9b9c7 !important; }
.so-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.so-featured .wp-element-caption { color: #a9b9c7; font-size: 0.8rem; margin-top: 0.5rem; }
.so-gallery .wp-element-caption { font-size: 0.8rem; }
.so-tall img { width: 100%; max-height: 560px; object-fit: cover; object-position: 50% 40%; }

/* Legal pages */
.so-updated { font-size: 0.85rem; color: var(--so-slate); }
.so-legal h2 { font-size: var(--wp--preset--font-size--x-large); }
.so-legal .wp-block-table td:first-child { font-weight: 500; width: 34%; }
.so-book-table td { vertical-align: middle; }
.so-book-table td:last-child { text-align: right; white-space: nowrap; }
.so-book-table td:nth-child(2) { white-space: nowrap; }
.so-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.so-note-inline { margin-top: 0.9rem !important; font-size: 0.9rem; color: var(--so-slate); }

/* Work with me */
html { scroll-behavior: smooth; }
#sessions, #projects, #book { scroll-margin-top: 5rem; }
.so-lede { color: var(--so-slate); font-size: 1.125rem; }
.so-hero-btns { margin-top: 1.5rem !important; }
.so-ticks { list-style: none; padding: 0; margin: 1.25rem 0 0 !important; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9rem; color: var(--so-slate); }
.so-ticks li { position: relative; padding-left: 1.35rem; }
.so-ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--so-teal); border-bottom: 2px solid var(--so-teal); transform: rotate(-45deg); }
.so-sec-head h2 { margin: 0; }
.so-sec-head p { margin: 0.4rem 0 0; color: var(--so-slate); }

.so-price-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem !important; }
.so-price-card { position: relative; display: flex; flex-direction: column; background: var(--wp--preset--color--paper); border: 1px solid var(--so-line); border-radius: 10px; padding: 1.5rem 1.35rem 1.25rem; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.so-price-card:hover { border-color: var(--so-teal); box-shadow: 0 10px 28px rgba(15, 42, 70, .10); transform: translateY(-2px); }
.so-price-card > * { margin: 0 !important; }
.so-price-card h3 { font-size: 1.15rem; line-height: 1.3; margin-top: 0.35rem !important; min-height: 2.6em; }
.so-tag { font-size: 0.72rem !important; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--so-teal); }
.so-amount { font-family: var(--wp--preset--font-family--sans); font-size: 1.85rem !important; font-weight: 700; color: var(--so-navy); line-height: 1.1; margin-top: 0.9rem !important; letter-spacing: -0.01em; }
.so-usd-price { font-size: 0.85rem !important; color: var(--so-slate); margin-top: 0.2rem !important; }
.so-blurb { font-size: 0.92rem !important; line-height: 1.5; color: var(--so-ink); margin-top: 0.9rem !important; padding-top: 0.9rem; border-top: 1px solid var(--so-line); flex-grow: 1; }
.so-price-card .wp-block-buttons { margin-top: 1.25rem !important; }
.so-price-card .wp-block-button__link { text-align: center; width: 100%; }
.so-usd { font-size: 0.82rem !important; text-align: center; margin-top: 0.6rem !important; }
.so-usd a { color: var(--so-slate); }
.so-usd a:hover { color: var(--so-teal); }
.so-price-card--best { background: #fff; border-color: var(--so-teal); box-shadow: 0 0 0 1px var(--so-teal); }
.so-badge { position: absolute; top: -0.75rem; right: 1rem; background: var(--so-teal); color: #fff; font-size: 0.7rem !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; }

.so-projects .so-kicker { color: #9fd3d6; }
.so-projects h2, .so-projects h3 { color: #fff; }
.so-projects p { color: #d6e2ea; }
.so-btn-light .wp-block-button__link { background: #fff !important; color: var(--so-navy) !important; }
.so-btn-light .wp-block-button__link:hover { background: #9fd3d6 !important; }
.so-quote-list { border-top: 1px solid rgba(255,255,255,.18); }
.so-quote-row { display: grid !important; grid-template-columns: 1fr auto; column-gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.so-quote-row > * { margin: 0 !important; }
.so-quote-row h3 { font-size: 1.1rem; grid-column: 1; }
.so-quote-price { grid-column: 2; grid-row: 1; font-weight: 700; color: #fff !important; white-space: nowrap; font-size: 1.05rem; }
.so-quote-price span { font-weight: 400; color: #9fd3d6; font-size: 0.9rem; }
.so-quote-row p:last-child { grid-column: 1 / -1; font-size: 0.92rem; margin-top: 0.35rem !important; }

.so-steps-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem !important; }
.so-step { display: flex !important; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--so-line); border-radius: 10px; padding: 1.1rem 1.2rem; }
.so-step > * { margin: 0 !important; }
.so-step p { font-size: 0.95rem; }
.so-step-num { flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--so-teal); color: #fff !important; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem !important; }
.so-note-box { margin-top: 1.25rem !important; background: var(--so-mist); border-radius: 10px; padding: 1rem 1.25rem; }
.so-note-box p { margin: 0; font-size: 0.95rem; }
.so-fine { font-size: 0.82rem !important; color: var(--so-slate); margin-top: 1rem !important; }

@media (max-width: 1024px) {
  .so-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .so-steps-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .so-quote-row { grid-template-columns: 1fr; }
  .so-quote-price { grid-column: 1; grid-row: auto; margin-top: 0.25rem !important; }
}
@media (max-width: 600px) {
  .so-price-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .so-price-card h3 { min-height: 0; }
  .so-hero-btns .wp-block-button { flex: 1 1 100%; }
  .so-hero-btns .wp-block-button__link { width: 100%; text-align: center; }
}
.so-price-grid > *, .so-steps-row > *, .so-quote-list > * { margin-top: 0 !important; margin-block-start: 0 !important; }
.so-illustration img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 18px 40px rgba(15, 42, 70, .18); }
@media (max-width: 781px) { .so-illustration { max-width: 420px; margin-inline: auto !important; } }

/* Recognition: certificates */
.so-cert-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem !important; }
.so-cert-grid > * { margin-top: 0 !important; margin-block-start: 0 !important; }
.so-cert-card { display: flex; flex-direction: column; background: var(--wp--preset--color--paper); border: 1px solid var(--so-line); border-radius: 10px; padding: 1.25rem; }
.so-cert-card > * { margin: 0 !important; }
.so-cert-card > * + * { margin-top: 0.5rem !important; }
.so-cert-thumb { margin-bottom: 0.6rem !important; }
.so-cert-thumb img { width: 100%; height: auto; display: block; border: 1px solid var(--so-line); border-radius: 6px; background: #fff; transition: box-shadow .2s ease; }
.so-cert-thumb a:hover img { box-shadow: 0 8px 22px rgba(15, 42, 70, .14); }
.so-cert-card h3 { font-size: 1.15rem; line-height: 1.3; }
.so-cert-card p { font-size: 0.93rem; }
.so-verify { margin-top: auto !important; padding-top: 0.6rem; font-weight: 600; }
@media (max-width: 1024px) { .so-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .so-cert-grid { grid-template-columns: 1fr; } }
.so-award-img { max-width: 360px; margin-inline: auto !important; }
.so-cert-card h3 { font-size: 1.05rem; }
.so-cert-card p { font-size: 0.9rem; }

/* ===== Version 2: navy and aqua (Mediville-style) ===== */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * + * { margin-block-start: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--so-teal); }
.has-navy-background-color h1 em, .has-navy-background-color h2 em { color: var(--wp--preset--color--aqua); }
.so-lead { font-size: var(--wp--preset--font-size--large); color: var(--so-slate); }

/* Top bar and sticky header */
.so-topbar { font-size: 0.82rem; color: rgba(255,255,255,.78); }
.so-topbar p { margin: 0; }
.so-topbar a { color: #fff; text-decoration: none; }
.so-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5FD3C9; margin-right: 0.55rem; box-shadow: 0 0 0 4px rgba(95,211,201,.18); vertical-align: 1px; }
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.so-header { background: rgba(246,246,243,.93); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(15,42,70,.08); }
.so-brand { gap: 0.8rem !important; }
.so-monogram { margin: 0 !important; }
.so-monogram a { width: 48px; height: 48px; border-radius: 50%; background: var(--so-navy); color: var(--wp--preset--color--aqua); display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; text-decoration: none; box-shadow: 0 6px 16px -8px rgba(15,42,70,.6); }
.so-header .wp-block-site-tagline { font-size: 0.62rem; letter-spacing: 0.28em; font-weight: 700; }
.so-header .wp-block-button__link { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
@media (max-width: 900px) { .so-header-cta { display: none !important; } .so-topbar-contact { display: none; } }
@media (max-width: 600px) { .so-monogram { display: none; } .so-topbar { display: none; } }

/* Hero */
.so-hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 0%, rgba(14,106,112,.65), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(14,106,112,.35), transparent 60%), var(--so-navy) !important; }
.so-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.so-hero > * { position: relative; z-index: 1; }
.so-hero h1 { font-weight: 500; margin-top: 1rem; }
.so-hero .so-eyebrow { color: var(--wp--preset--color--aqua); }
.so-hero .so-lead { color: rgba(255,255,255,.8); max-width: 36rem; }
.so-btn-aqua .wp-block-button__link { background: var(--wp--preset--color--aqua) !important; color: var(--so-navy) !important; }
.so-btn-aqua .wp-block-button__link:hover { background: #fff !important; }
.so-btn-ghost .wp-block-button__link { color: #fff !important; border-color: rgba(255,255,255,.45) !important; }
.so-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.1) !important; }
.so-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.25rem) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.so-glass-head { gap: 1.1rem !important; }
.so-avatar { margin: 0 !important; flex: 0 0 auto; }
.so-avatar img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid rgba(127,209,207,.6); }
.so-glass-label { margin: 0 !important; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--aqua); }
.so-glass-title { margin: 0.25rem 0 0 !important; font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; line-height: 1.25; color: #fff; }
.so-glass-list { list-style: none; padding: 0 !important; margin: 1.5rem 0 0 !important; border-top: 1px solid rgba(255,255,255,.15); }
.so-glass-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 0.95rem; color: rgba(255,255,255,.85); }
.so-glass-list strong { color: #fff; font-weight: 600; white-space: nowrap; }

/* Highlights strip */
.so-highlights { margin-top: -3rem !important; position: relative; z-index: 2; }
.so-highlights-inner { background: #fff; border-radius: 24px; border: 1px solid rgba(15,42,70,.06); box-shadow: 0 30px 60px -35px rgba(15,42,70,.35); padding: 0.5rem !important; gap: 0 !important; }
.so-highlights-inner > .wp-block-column { padding: 1.4rem 1.6rem; }
.so-highlights-inner > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(15,42,70,.08); }
.so-highlights p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--so-slate); }
.so-hl-num { font-family: var(--wp--preset--font-family--serif); font-size: 1.9rem !important; line-height: 1.1; color: var(--so-teal) !important; margin: 0 !important; }
@media (max-width: 781px) {
	.so-highlights-inner { display: grid !important; grid-template-columns: 1fr 1fr; }
	.so-highlights-inner > .wp-block-column { padding: 1.1rem; }
	.so-highlights-inner > .wp-block-column + .wp-block-column { border-left: 0; }
	.so-highlights-inner > .wp-block-column:nth-child(even) { border-left: 1px solid rgba(15,42,70,.08); }
	.so-highlights-inner > .wp-block-column:nth-child(n+3) { border-top: 1px solid rgba(15,42,70,.08); }
	.so-hl-num { font-size: 1.45rem !important; }
}

/* Sections */
.so-section { padding-block: clamp(4rem, 9vw, 7rem); }
.so-section-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.so-section-last { padding-bottom: clamp(4rem, 9vw, 7rem); }
.so-section-head { margin-bottom: clamp(2rem, 4vw, 3rem) !important; gap: 1.5rem; }
.so-section-head h2 { margin-top: 0.75rem; }

/* Framed photo */
.so-framed { position: relative; padding: 0 1.5rem 1.5rem 0 !important; }
.so-framed::before { content: ""; position: absolute; top: 1.5rem; left: 1.5rem; right: 0; bottom: 0; border: 1px solid var(--so-teal); border-radius: 28px; }
.so-framed .wp-block-image { position: relative; margin: 0; }
.so-framed img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 20%; border-radius: 28px; box-shadow: 0 40px 80px -45px rgba(15,42,70,.6); }
.so-checklist { list-style: none; padding: 0 !important; display: grid; gap: 0.75rem; }
.so-checklist li { position: relative; padding-left: 2rem; }
.so-checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--so-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6A70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Tiles */
.so-grid-4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.so-grid-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.so-grid-4 > *, .so-grid-2 > * { margin-block-start: 0 !important; }
@media (max-width: 1024px) { .so-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .so-grid-4, .so-grid-2 { grid-template-columns: 1fr; } }
.so-tile { background: var(--wp--preset--color--paper); border: 1px solid rgba(15,42,70,.07); border-radius: 24px; padding: 2rem !important; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.so-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(15,42,70,.45); border-color: rgba(14,106,112,.35); }
.so-tile-white { background: #fff; }
.so-tile h3 { font-size: 1.4rem; margin: 1.1rem 0 0.5rem; }
.so-tile .so-eyebrow + h3 { margin-top: 0.6rem; }
.so-tile p { color: var(--so-slate); font-size: 0.97rem; }
.so-icon { margin: 0 !important; }
.so-icon img { width: 60px; height: 60px; padding: 15px; box-sizing: border-box; background: var(--so-mist); border-radius: 18px; }

/* Featured project */
.so-featured { background: linear-gradient(160deg, var(--so-navy), #0E4A5C) !important; }
.so-stat-rows { display: grid; gap: 0.85rem; margin-top: 1.5rem !important; }
.so-stat-row { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 1.1rem 1.4rem !important; gap: 1.25rem !important; margin: 0 !important; }
.so-stat-row p { margin: 0 !important; font-size: 0.93rem; }
.so-featured .so-stat-row .so-stat { flex: 0 0 9.5rem; font-size: 1.75rem; color: var(--wp--preset--color--aqua); font-weight: 500; }
.so-photo img { border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
@media (max-width: 600px) { .so-stat-row { flex-wrap: wrap !important; gap: 0.25rem !important; } .so-featured .so-stat-row .so-stat { flex-basis: 100%; } }

/* Mist band */
.so-band { background: var(--so-mist); border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem) !important; position: relative; overflow: hidden; gap: 1.5rem; }
.so-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(14,106,112,.35); box-shadow: 0 0 0 40px rgba(14,106,112,.06), 0 0 0 80px rgba(14,106,112,.04); pointer-events: none; }
.so-band > * { position: relative; z-index: 1; }
.so-band-text { flex: 1 1 30rem; }
.so-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.6rem 0; }
.so-band p { color: var(--so-slate); margin: 0; }

/* Post cards */
.so-post-cards .wp-block-post-template { gap: 1.5rem; }
.so-post-card { height: 100%; display: flex; flex-direction: column; gap: 0.6rem; background: #fff; border: 1px solid rgba(15,42,70,.07); border-radius: 20px; padding: 1.75rem !important; box-sizing: border-box; transition: transform .3s ease, box-shadow .3s ease; }
.so-post-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -38px rgba(15,42,70,.45); }
.so-post-card > * { margin: 0 !important; }
.so-post-card .wp-block-post-title { font-size: 1.3rem; line-height: 1.3; }
.so-post-card .wp-block-post-excerpt { color: var(--so-slate); font-size: 0.95rem; flex-grow: 1; }
.so-post-card .wp-block-post-excerpt__more-text { display: none; }
.so-post-card .wp-block-read-more { font-weight: 700; font-size: 0.92rem; text-decoration: none; margin-top: auto !important; }
.so-post-card .wp-block-read-more::after { content: " \2192"; }
@media (max-width: 781px) { .so-post-cards .wp-block-post-template { grid-template-columns: 1fr !important; } }

/* Closing call to action */
.so-cta { border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem) !important; gap: 1.75rem; }
.so-cta h2 { flex: 1 1 28rem; margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; }

/* Footer */
.so-footer .so-footer-head { color: var(--wp--preset--color--aqua); letter-spacing: 0.18em; font-weight: 700; }
.so-footer a:hover { color: var(--wp--preset--color--aqua); }

/* Inner pages: rounder surfaces to match */
.so-price-card, .so-cert-card, .so-step, .so-note-box, .so-svc { border-radius: 20px !important; }
.so-illustration img { border-radius: 28px; }
.so-certificate img { border-radius: 16px; }
.so-btn-ghost .wp-block-button__link, .so-btn-ghost .wp-block-button__link:visited { background: transparent !important; }
h1, h2, h3, .so-hl-num, .so-stat, .so-glass-title, .so-price, .so-amount { font-variant-numeric: lining-nums; }
.so-section-last { padding-top: clamp(1rem, 3vw, 2rem); }
.so-svc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1024px) { .so-svc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .so-svc-grid-3 { grid-template-columns: 1fr !important; } }
.so-price-card--best .so-blurb { flex-grow: 0; }

/* Header dropdown (About), desktop only */
@media (min-width: 600px) {
	.so-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { background: #fff !important; border: 1px solid rgba(15,42,70,.08) !important; border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(15,42,70,.35); padding: 0.5rem !important; min-width: 220px !important; top: calc(100% + 0.6rem) !important; }
	.so-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 0.9rem !important; border-radius: 10px; font-weight: 600; }
	.so-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--so-mist); color: var(--so-teal); }
	.so-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
}
/* The frosted header must not trap the full-screen phone menu */
@media (max-width: 781px) { .so-header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--wp--preset--color--paper) !important; } }
.so-header:has(.is-menu-open) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--paper) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; font-weight: 600; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1rem; font-weight: 500; color: var(--so-slate); }
.so-header .wp-block-navigation-submenu__toggle { font-weight: 600; }
#career { scroll-margin-top: 7rem; }
.so-footer-links p { margin: 0 0 0.4rem; font-size: var(--wp--preset--font-size--small); }
