/* =========================================================
   Spectrofuge theme
   ========================================================= */
:root {
	--navy: #0b3a63;
	--navy-900: #072743;
	--teal: #0098a8;
	--teal-50: #e6f6f8;
	--orange: #e8731a;
	--ink: #1f2a37;
	--muted: #5b6b7c;
	--line: #d5dde6;
	--soft: #f3f7fa;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 12px 30px -14px rgba(7, 39, 67, .35);
	--container: 1200px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Shared with the Spectrofuge Core plugin stylesheet */
	--sf-primary: var(--navy);
	--sf-accent: var(--teal);
	--sf-cta: var(--orange);
	--sf-text: var(--ink);
	--sf-muted: var(--muted);
	--sf-border: var(--line);
	--sf-bg-soft: var(--soft);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 1.4em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--navy); color: #fff; padding: .75em 1.25em; }
.skip-link:focus { left: 1rem; top: 1rem; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: var(--radius); border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s, background .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--cta { background: var(--orange); color: #fff; }
.btn--cta:hover { color: #fff; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); filter: none; }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal); margin: 0 0 .5em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #cfe0ee; font-size: .88rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__tag { margin: 0; }
.topbar__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.topbar a:hover { color: #9fe3eb; }
@media (max-width: 720px) { .hide-sm, .topbar__tag { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(7, 39, 67, .3); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.site-branding img, .custom-logo { max-height: 60px; width: auto; display: block; }
.site-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.site-logo__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--teal), var(--navy)); color: #fff; font-weight: 800; font-size: 1.5rem; font-family: Georgia, serif; }
.site-logo__text { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.site-logo__text small { display: block; white-space: nowrap; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-top: .3em; }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; gap: .25rem; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: .6em .65em; font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--ink); text-decoration: none; border-radius: 6px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--teal); }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5em; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s; z-index: 10; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 500; padding: .55em .8em; white-space: normal; }
.primary-nav .sub-menu a:hover { background: var(--soft); }
.primary-nav__cta { padding: .7em 1.1em; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: .5rem; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 1180px) {
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; flex-direction: column; align-items: stretch; padding: 100px 1.25rem 2rem; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .35); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 90; visibility: hidden; }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open .nav-toggle { position: relative; z-index: 95; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.primary-nav > ul { flex-direction: column; }
	.primary-nav a { padding: .8em .5em; border-bottom: 1px solid var(--soft); }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; display: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav__cta { margin-top: 1rem; }
	body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(7, 39, 67, .45); z-index: 80; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--navy-900), var(--navy) 55%, var(--teal)); overflow: hidden; }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.03); }
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.0); } }
.hero__overlay { background: linear-gradient(90deg, rgba(7, 39, 67, .94) 0%, rgba(7, 39, 67, .78) 45%, rgba(7, 39, 67, .25) 100%); }
.hero__content { position: relative; padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); max-width: var(--container); }
.hero__content > * { max-width: 640px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .85rem; color: #9fe3eb; margin: 0 0 1rem; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5.5vw, 3.75rem); margin: 0 0 1rem; letter-spacing: -.02em; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #dbe8f2; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.75rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font-size: 2.25rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat__label { display: block; font-size: .88rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: #e3eef6; }
.section--dark .section__title, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: #9fe3eb; }
.section__head { margin-bottom: 2.5rem; max-width: 720px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; max-width: none; flex-wrap: wrap; }
.section__title { margin: 0; }
.section__more { text-align: center; margin: 2rem 0 0; }
.section--dark .section__more a { color: #9fe3eb; font-weight: 700; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.service-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--teal-50); color: var(--teal); margin-bottom: 1.1rem; }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card__title { margin: 0 0 .5rem; font-size: 1.2rem; }
.service-card__text { color: var(--muted); flex: 1; margin-bottom: 1rem; }
.service-card__more { font-weight: 700; color: var(--orange); display: inline-flex; gap: .4em; align-items: center; }

.intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6rem; }
.checklist .icon { color: var(--teal); margin-top: .25em; }
.intro__instruments { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.intro__instruments h3 { margin-top: 0; display: flex; gap: .5rem; align-items: center; }
.intro__instruments h3 .icon { color: var(--teal); }
.chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: .3em .85em; font-size: .9rem; }

.testimonials-band .sf-quote blockquote { color: #fff; }
.testimonials-band .sf-quote figcaption strong { color: #9fe3eb; }
.testimonials-band .sf-quote figcaption span { color: #b9cfe0; }
.testimonials-band .sf-testimonials__nav button { color: #fff; }
.testimonials-band .sf-quote::before { color: #9fe3eb; opacity: .5; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: #b6c8d8; background: linear-gradient(135deg, var(--soft), var(--teal-50)); }
.post-card__placeholder .icon { width: 56px; height: 56px; }
.post-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__title { margin: 0 0 .5rem; font-size: 1.15rem; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { color: var(--muted); flex: 1; font-size: .96rem; }
.entry-meta { font-size: .85rem; color: var(--muted); margin: 0 0 .5rem; }
.entry-meta a { color: var(--teal); text-decoration: none; }

/* ---------- Page header ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy-900), var(--navy) 65%, #0d5b7a); color: #fff; padding: clamp(2.25rem, 5vw, 3.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(0, 152, 168, .18); }
.page-hero__title { color: #fff; margin: .25rem 0 0; position: relative; z-index: 1; }
.page-hero__sub { color: #cfe0ee; margin: .5rem 0 0; }
.breadcrumbs { font-size: .85rem; color: #9fbcd3; position: relative; z-index: 1; }
.breadcrumbs a { color: #cfe0ee; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Layout ---------- */
.layout { padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.layout--narrow { max-width: 860px; }
.layout--contact { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .layout--sidebar, .layout--contact { grid-template-columns: 1fr; } }

.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 4px solid var(--teal); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content img { border-radius: 6px; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
.entry-thumb { margin: 0 0 1.75rem; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }
.entry-thumb--product { background: var(--soft); border-radius: var(--radius); padding: 1rem; text-align: center; }
.entry-thumb--product img { width: auto; max-height: 460px; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
.widget { background: var(--soft); border-radius: var(--radius); padding: 1.5rem; }
.widget-title { font-size: 1.05rem; margin: 0 0 .9rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget--services li a { display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem; text-decoration: none; color: var(--ink); border-radius: 6px; font-weight: 600; }
.widget--services li a .icon { color: var(--teal); }
.widget--services li a:hover, .widget--services li.is-current a { background: #fff; color: var(--navy); }
.widget--call { background: var(--navy); color: #cfe0ee; }
.widget--call .widget-title { color: #fff; }
.widget--call p { margin: 0 0 .25rem; }
.widget--call__phone a { color: #fff; font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.widget--call__alt { margin-bottom: 1.1rem !important; }
.widget--call__alt a { color: #9fe3eb; text-decoration: none; }

.contact-card { background: var(--soft); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: 110px; }
.contact-card h2 { font-size: 1.2rem; margin-top: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--teal), #0b6f8a); color: #fff; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding-top: 2.5rem; padding-bottom: 2.5rem; flex-wrap: wrap; }
.cta-band__title { color: #fff; margin: 0 0 .25rem; }
.cta-band p { margin: 0; color: #e0f5f8; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9cfe0; font-size: .95rem; }
.site-footer a { color: #e3eef6; text-decoration: none; }
.site-footer a:hover { color: #9fe3eb; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-contact { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--teal); margin-top: .3em; }
.payment-note { font-size: .85rem; color: #8fa9bf; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .9rem; }
.socials { list-style: none; display: flex; gap: .6rem; padding: 0; margin: 1rem 0 0; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--teal); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }

/* ---------- Misc ---------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; margin: 1rem 0 2rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: .7em .9em; border: 1px solid #b8c4d0; border-radius: 6px; font: inherit; }
.search-submit { background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 0 1.2em; font-weight: 700; cursor: pointer; }
.pagination, .nav-links { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-numbers { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-nav .nav-links { justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-weight: 700; display: block; max-width: 320px; }
.post-nav a span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.post-nav .nav-next { text-align: right; margin-left: auto; }
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.wp-block-button__link { background: var(--navy); border-radius: var(--radius); }
.has-navy-color { color: var(--navy) !important; } .has-navy-background-color { background-color: var(--navy) !important; }
.has-teal-color { color: var(--teal) !important; } .has-teal-background-color { background-color: var(--teal) !important; }
.has-orange-color { color: var(--orange) !important; } .has-orange-background-color { background-color: var(--orange) !important; }
.has-light-background-color { background-color: var(--soft) !important; } .has-ink-color { color: var(--ink) !important; }

@media print {
	.topbar, .site-header, .cta-band, .site-footer, .sidebar, .sf-form__actions { display: none !important; }
	.page-hero { background: none; color: #000; padding: 0; }
	.page-hero__title { color: #000; }
}
