/* ----------------------------------------------------------------
   Spectre UK — design refresh
   Loaded after custom.css on every page. Overrides the theme's
   typography, spacing, colour and component styling only; no layout
   markup depends on it, so removing the <link> restores the old look.
----------------------------------------------------------------- */

:root {
    --sp-navy: #2a334e;
    --sp-navy-2: #34495e;
    --sp-gold: #c9a634;
    --sp-gold-dark: #8a6f12;
    --sp-ink: #1f2537;
    --sp-text: #454b63;
    --sp-muted: #6b7189;
    --sp-line: #e3e6ee;
    --sp-surface: #f6f8fc;
    --sp-radius: 12px;
    --sp-radius-sm: 8px;
    --sp-shadow: 0 1px 2px rgba(31, 37, 55, .06), 0 8px 24px rgba(31, 37, 55, .06);
    --sp-shadow-hover: 0 2px 4px rgba(31, 37, 55, .08), 0 14px 32px rgba(31, 37, 55, .10);
}

/* ---------- Layout width ---------- */

@media (min-width: 1400px) {
    .container { max-width: 1280px; }
}

/* ---------- Typography ---------- */

body {
    color: var(--sp-text);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--sp-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p { margin-bottom: 1.1em; }

a { color: var(--sp-navy-2); }
a:hover { color: var(--sp-gold-dark); }

/* Visible keyboard focus (the theme removes all outlines) */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--sp-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: rgba(201, 166, 52, .28); }

/* ---------- Top bar and header ---------- */

/* Top bar colour is set inline in includes/header.php so it paints navy
   immediately (the theme's .bg-secondary would flash teal first) */
.top-bar-info li { font-size: 14px; }
.top-bar a.text-white,
.top-bar .text-white {
    color: #fff !important;
    font-weight: 500;
    text-decoration: none !important;
}
.top-bar a.text-white:hover,
.top-bar a.text-white:focus-visible {
    color: var(--sp-gold) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.top-bar i { color: var(--sp-gold) !important; }

header .navbar-default {
    background: rgba(255, 255, 255, .96);
    transition: box-shadow .25s ease;
}
header.scrollHeader .navbar-default {
    box-shadow: 0 6px 24px rgba(31, 37, 55, .08);
    border-bottom-color: transparent !important;
}

/* ---------- Buttons ----------
   One style everywhere: navy (same as the top bar), gold on hover.
   The html body prefix outranks the green/teal hover rules in custom.css. */

html body .butn-style02,
html body .butn-style02.primary {
    background-color: var(--sp-navy) !important;
    border: 2px solid var(--sp-navy) !important;
    color: #fff !important;
    border-radius: var(--sp-radius-sm);
    letter-spacing: 1px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
html body .butn-style02 .text-btn,
html body .butn-style02 span { color: inherit !important; }

html body .butn-style02:hover,
html body .butn-style02:focus-visible,
html body .butn-style02.primary:hover,
html body .butn-style02.primary:focus-visible {
    background-color: var(--sp-gold) !important;
    border-color: var(--sp-gold) !important;
    color: var(--sp-ink) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 37, 55, .22);
}

/* On dark banners: same navy, white outline so it stands out */
html body .butn-style02.white {
    border-color: #fff !important;
}

header .butn-style02 { border-radius: 999px !important; }

/* ---------- Page banners ---------- */

section.bg-img.cover-background[data-overlay-dark] {
    min-height: 300px;
}
section.bg-img.cover-background[data-overlay-dark]:before {
    background: linear-gradient(115deg, rgba(31, 37, 55, .92) 0%, rgba(42, 51, 78, .78) 45%, rgba(42, 51, 78, .45) 100%) !important;
    opacity: 1 !important;
}
section.bg-img.cover-background[data-overlay-dark] h1:not(.banner-title) {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
section.bg-img.cover-background[data-overlay-dark] h1:not(.banner-title):after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 2px;
    background: var(--sp-gold);
}

/* Homepage, company profile and why choose: drop the translucent box
   behind the banner text; the gradient overlay already gives contrast */
.banner-text-overlay {
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html body .bg-img.cover-background.left-overlay-dark .banner-text-overlay .banner-title {
    margin-bottom: 2rem !important;
    text-wrap: balance;
}

/* Lead sentence directly under the banner */
.page-lead {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--sp-muted);
    text-wrap: balance;
}

/* ---------- Section rhythm ---------- */

section { padding: 64px 0 88px; }
section.pt-0 { padding-top: 0; }
@media (max-width: 991px) {
    section { padding: 48px 0 64px; }
}
@media (max-width: 575px) {
    section { padding: 36px 0 48px; }
    body { font-size: 16px; }
}

/* ---------- Service page content ---------- */

.page-content-wrapper {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
.page-content-wrapper h2,
.page-content-wrapper h3,
.page-content-wrapper h4 {
    margin-top: 1.6em;
    margin-bottom: .6em;
}
.page-content-wrapper h2 { font-size: 1.75rem; }
.page-content-wrapper h3,
.page-content-wrapper h4 { font-size: 1.3rem; }
.page-content-wrapper p,
.page-content-wrapper li { color: var(--sp-text); }
.page-content-wrapper ul {
    list-style: none;
    padding-left: 0;
}
.page-content-wrapper ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: .45em;
}
.page-content-wrapper ul li:before {
    content: "";
    position: absolute;
    left: .2em;
    top: .72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sp-gold);
}
.page-content-image {
    border-radius: var(--sp-radius) !important;
    box-shadow: var(--sp-shadow) !important;
}
@media (max-width: 767px) {
    .page-content-image {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 24px !important;
    }
}
.page-content-wrapper img.img-fluid,
.page-content-wrapper p > img {
    border-radius: var(--sp-radius);
}

/* ---------- FAQs and related services ---------- */

.page-faqs .col-lg-12,
.page-related .container > * {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
.page-faqs .faq-item {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-left: 4px solid var(--sp-gold);
    border-radius: var(--sp-radius-sm);
    padding: 20px 24px;
}
.page-faqs .faq-item h3 { margin-bottom: .4em; }
.page-faqs .faq-item p { color: var(--sp-text); }

.page-related .row { margin-left: auto; margin-right: auto; }
.page-related .related-card {
    background: #fff !important;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius) !important;
    box-shadow: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.page-related .related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sp-shadow-hover) !important;
    border-color: transparent;
}
.page-related .related-card h3 a { color: var(--sp-ink); }
.page-related .related-card h3 a:after {
    content: " \2192";
    color: var(--sp-gold-dark);
}
.page-related .related-card:hover h3 a { color: var(--sp-gold-dark); }

/* ---------- Cards and panels used across the theme ---------- */

.contact-form-wrapper,
.contact-info-wrapper {
    border-radius: var(--sp-radius) !important;
    box-shadow: var(--sp-shadow) !important;
    border: 1px solid var(--sp-line);
}
.form-control {
    border-radius: var(--sp-radius-sm);
    border-color: #d5d9e3;
}
.form-control:focus {
    border-color: var(--sp-gold);
    box-shadow: 0 0 0 4px rgba(201, 166, 52, .15);
}

.certification-item-small {
    border-radius: var(--sp-radius-sm) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.certification-item-small:not(.empty):hover {
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-hover);
}

/* Contact page: replace leftover teal with the brand palette */
.contact-info-wrapper .contact-item h5 { color: var(--sp-ink) !important; }
.contact-info-wrapper .contact-item a:hover { color: var(--sp-gold-dark) !important; }

/* ---------- Footer ---------- */

footer.bg-dark { background-color: #1f2537 !important; }
footer h2 { letter-spacing: -0.02em; }
footer h2:after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 20px;
    border-radius: 2px;
    background: var(--sp-gold);
}
footer .sitemap-links a,
footer .contact-link {
    text-decoration: none;
    color: rgba(255, 255, 255, .8) !important;
}
footer .sitemap-links a:hover,
footer .contact-link:hover { color: var(--sp-gold) !important; }
footer .footer-logo img {
    border-radius: var(--sp-radius-sm);
}

/* ---------- Scroll animations ----------
   WOW.js hides every .wow block until it scrolls into view, which left the
   homepage looking empty below the banner. Show content immediately. */
html body .wow {
    visibility: visible !important;
    animation-name: none !important;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        transition: none !important;
        animation: none !important;
    }
    .wow { visibility: visible !important; }
}
