/** !
Theme Name: Stonehaven
Theme URI: https://www.stonehavengroup.uk/
Description: Bespoke Theme for Stonehaven using WordPress. Gutenberg compatible. Using Bootstrap 5 and Font Awesome 6.
Author: Elms Creative
Author URI: https://www.elmscreative.com/
Version: 1.0
Text Domain: elmscreative
*/

/* ========================================
   CSS Variables — Dark (default)
======================================== */

:root {
    --bg: #070708;
    --bg-soft: #0f1012;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f4f2;
    --muted: #a4a6ad;
    --muted-2: #7f838c;
    --accent: #8d9486;
    --accent-2: #d6d2c4;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;

    --body-bg-gradient:
        radial-gradient(
            circle at top left,
            rgba(214, 210, 196, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(141, 148, 134, 0.1),
            transparent 28%
        ),
        linear-gradient(180deg, #060607 0%, #0a0b0d 45%, #08090a 100%);

    --grid-line-color: rgba(39, 39, 39, 0.45);

    --nav-bg: rgba(7, 7, 8, 0.55);
    --nav-bg-scrolled: rgba(7, 7, 8, 0.88);
    --nav-border: rgba(255, 255, 255, 0.05);

    --card-bg: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.025)
    );
    --card-border: rgba(255, 255, 255, 0.08);
    --card-bg-alt: rgba(255, 255, 255, 0.025);
    --card-border-alt: rgba(255, 255, 255, 0.07);

    --hero-overlay-gradient:
        linear-gradient(
            90deg,
            rgba(6, 6, 7, 0.88) 0%,
            rgba(6, 6, 7, 0.68) 38%,
            rgba(6, 6, 7, 0.42) 62%,
            rgba(6, 6, 7, 0.72) 100%
        ),
        linear-gradient(180deg, rgba(6, 6, 7, 0.18), rgba(6, 6, 7, 0.55));
    --hero-fade: rgba(7, 7, 8, 0.98);

    --band-bg: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.015)
    );
    --band-border: rgba(255, 255, 255, 0.06);

    --footer-border: rgba(255, 255, 255, 0.05);
    --divider-color: rgba(255, 255, 255, 0.16);

    --font-display: "segoe-ui-black", Arial, sans-serif;
    --font-body: "segoe-ui-black", Arial, sans-serif;
}

/* ========================================
   CSS Variables — Light
======================================== */

[data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f2f2f4;
    --bg-panel: rgba(0, 0, 0, 0.04);
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.18);
    --text: #0e0e0f;
    --muted: #52545c;
    --muted-2: #888b94;
    --accent: #6b7264;
    --accent-2: #3d3b36;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.1);

    --body-bg-gradient: linear-gradient(
        180deg,
        #ffffff 0%,
        #f4f4f6 50%,
        #ffffff 100%
    );

    --grid-line-color: rgba(221, 221, 223, 0.45);

    --nav-bg: rgba(255, 255, 255, 0.75);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.96);
    --nav-border: rgba(0, 0, 0, 0.09);

    --card-bg: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55),
        rgba(249, 249, 255, 0.725)
    );
    --card-border: rgba(0, 0, 0, 0.11);
    --card-bg-alt: #f7f7f8;
    --card-border-alt: rgba(0, 0, 0, 0.1);
    --card-hover-bg: #f0f0f2;
    --card-hover-border: rgba(0, 0, 0, 0.22);

    --hero-overlay-gradient:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 255, 255, 0.75) 38%,
            rgba(255, 255, 255, 0.5) 62%,
            rgba(255, 255, 255, 0.8) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.65)
        );
    --hero-fade: rgba(255, 255, 255, 0.98);

    --band-bg: linear-gradient(180deg, #f4f4f6, #f0f0f2);
    --band-border: rgba(0, 0, 0, 0.09);

    --footer-border: rgba(0, 0, 0, 0.09);
    --divider-color: rgba(0, 0, 0, 0.14);
}

/* ========================================
   Reset / Base
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--body-bg-gradient);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    transition:
        background 0.35s ease,
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Scroll lock when mobile nav is open */
body.nav-open {
    overflow: hidden;
}

/* Grid overlay texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
    opacity: 0.85;
    z-index: 0;
    transition: background 0.35s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Smooth theme transitions on key components */
.sh-nav,
.sh-metric,
.sh-pillar,
.sh-panel,
.sh-team-card,
.sh-cta-box,
.sh-partner-tag,
.sh-footer,
.sh-btn-primary,
.sh-btn-ghost,
.sh-btn-outline {
    transition:
        background 0.35s ease,
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
}

/* ========================================
   Typography Helpers
======================================== */

.sh-eyebrow {
    display: inline-block;
    color: var(--accent-2);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.22em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.sh-section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 16px;
    max-width: 880px;
    font-weight: 700;
}

.sh-section-copy {
    max-width: 720px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

.sh-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--divider-color),
        transparent
    );
}

/* ========================================
   Buttons
======================================== */

.sh-btn-primary,
.sh-btn-ghost,
.sh-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Primary */
.sh-btn-primary {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0.08)
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 12px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .sh-btn-primary {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.04)
    );
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.sh-btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.22),
        rgba(255, 255, 255, 0.14)
    );
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 4px 20px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .sh-btn-primary:hover {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12),
        rgba(0, 0, 0, 0.07)
    );
    border-color: rgba(0, 0, 0, 0.28);
}

/* Ghost */
.sh-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #e2e4e8;
}
[data-theme="light"] .sh-btn-ghost {
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: var(--muted);
}
.sh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text);
}
[data-theme="light"] .sh-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

/* Outline */
.sh-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e1e4;
    font-size: 11px;
    min-height: 42px;
    padding: 0 18px;
}
[data-theme="light"] .sh-btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(0, 0, 0, 0.03);
    color: var(--muted);
}
.sh-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.38);
    color: var(--text);
}
[data-theme="light"] .sh-btn-outline:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.22);
    color: var(--text);
}

/* ========================================
   Navigation
======================================== */

.sh-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--nav-bg) !important;
    border-bottom: 1px solid var(--nav-border) !important;
    padding: 0;
    transition:
        background 0.35s ease,
        border-color 0.35s ease !important;
}

.sh-nav.scrolled {
    background: var(--nav-bg-scrolled) !important;
}

.sh-nav .container-xl {
    min-height: 78px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1300;
}

/* Brand / Logo */
.sh-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5em 0;
}

/* Default (dark mode): show dark logo */
.logo-light {
    display: none;
}
.logo-dark {
    display: block;
}

[data-theme="light"] .logo-light {
    display: block;
}
[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}
[data-theme="dark"] .logo-dark {
    display: block;
}

.sh-brand-mark {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}
.sh-brand-sub {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
    line-height: 1;
}

/* Nav links — desktop */
.sh-nav-link {
    color: var(--text) !important;
    opacity: 0.82;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transition:
        opacity 0.2s ease,
        color 0.35s ease !important;
}
.sh-nav-link:hover {
    opacity: 1;
}
.sh-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--text);
    opacity: 0.7;
    transition: transform 0.25s ease;
}
.sh-nav-link:hover::after {
    transform: scaleX(1);
}

/* ========================================
   Hamburger Toggle
======================================== */

.sh-toggler {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 6px 12px;
    background: var(--card-bg-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    box-shadow: none !important;
    color: var(--text);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.35s ease;
    min-height: 38px;
    min-width: 42px;
}
.sh-toggler:focus {
    box-shadow: none;
    outline: none;
}
.sh-toggler:hover {
    background: var(--bg-panel);
    border-color: var(--divider-color);
}

/* Icon swap: show bars by default, xmark when open */
.sh-toggler-icon-open,
.sh-toggler-icon-close {
    font-size: 16px;
    line-height: 1;
    position: absolute;
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}
.sh-toggler-icon-open {
    opacity: 1;
    transform: scale(1);
}
.sh-toggler-icon-close {
    opacity: 0;
    transform: scale(0.6) rotate(-45deg);
}

.sh-toggler[aria-expanded="true"] .sh-toggler-icon-open {
    opacity: 0;
    transform: scale(0.6) rotate(45deg);
}
.sh-toggler[aria-expanded="true"] .sh-toggler-icon-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ========================================
   Mobile Controls Row
   (theme toggle + hamburger — always visible on mobile)
======================================== */

.sh-mobile-controls {
    position: relative;
    z-index: 1300;
}

/* ========================================
   Theme Toggle
======================================== */

.sh-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.sh-theme-toggle:hover {
    border-color: var(--divider-color);
    background: var(--bg-panel);
    transform: scale(1.08);
}
.sh-theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}

.sh-theme-toggle .icon-sun,
.sh-theme-toggle .icon-moon {
    position: absolute;
    transition:
        opacity 0.3s ease,
        transform 0.4s ease;
    font-size: 15px;
    line-height: 1;
}
/* Dark mode default: show moon */
.sh-theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}
.sh-theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode: show sun */
[data-theme="light"] .sh-theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
[data-theme="light"] .sh-theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

/* ========================================
   Fullscreen Mobile Nav Overlay
   Lives as a sibling of <nav> in the DOM —
   NOT inside it — so it escapes the
   backdrop-filter stacking context that
   would otherwise trap position:fixed.
======================================== */

.sh-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 32px 48px;

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        background 0.35s ease;
}

/* Grid texture echoing the body */
.sh-nav-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.45;
}

/* Open state — JS adds .is-open */
.sh-nav-overlay.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Close button — top-right of overlay */
.sh-nav-overlay-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}
.sh-nav-overlay-close:hover {
    background: var(--bg-panel);
    border-color: var(--divider-color);
    transform: scale(1.08);
}
.sh-nav-overlay-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}

/* Inner nav wrapper */
.sh-nav-overlay-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Large overlay links */
.sh-nav-overlay-link {
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0.9;
    transition: opacity 0.2s ease;
    text-decoration: none;
    display: block;
}
.sh-nav-overlay-link:last-of-type {
    border-bottom: none;
}
.sh-nav-overlay-link:hover {
    opacity: 1;
}

/* CTA inside overlay */
.sh-nav-overlay-cta {
    margin-top: 28px;
    min-height: 52px;
    font-size: 12px;
    padding: 0 28px;
}

/* Staggered entrance for links */
.sh-nav-overlay.is-open .sh-nav-overlay-link,
.sh-nav-overlay.is-open .sh-nav-overlay-cta {
    animation: navLinkIn 0.4s ease both;
}
.sh-nav-overlay.is-open .sh-nav-overlay-link:nth-child(1) {
    animation-delay: 0.1s;
}
.sh-nav-overlay.is-open .sh-nav-overlay-link:nth-child(2) {
    animation-delay: 0.17s;
}
.sh-nav-overlay.is-open .sh-nav-overlay-link:nth-child(3) {
    animation-delay: 0.24s;
}
.sh-nav-overlay.is-open .sh-nav-overlay-cta {
    animation-delay: 0.31s;
}

@keyframes navLinkIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only show overlay on mobile/tablet */
@media (min-width: 992px) {
    .sh-nav-overlay {
        display: none;
    }
}

/* ========================================
   Sections
======================================== */

.sh-section {
    padding: 110px 0;
    position: relative;
    z-index: 2;
}

/* ========================================
   Hero
======================================== */

.sh-hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

#hero-other.sh-hero {
    min-height: 0;
    padding: 150px 0;
}

.sh-hero-overlay {
    position: absolute;
    inset: 0;
    transform: scale(1.02);
    transition: background 0.35s ease;
}

.sh-hero-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, var(--hero-fade));
    pointer-events: none;
    z-index: 1;
    transition: background 0.35s ease;
}

.sh-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.sh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.sh-kicker-line {
    display: inline-block;
    width: 42px;
    height: 1px;
    background: var(--text);
    opacity: 0.38;
}

.sh-hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(58px, 9vw, 118px);
    line-height: 0.92;
    letter-spacing: -0.065em;
    margin: 0;
    font-weight: 800;
}

.sh-hero-lead {
    margin: 28px 0 0;
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.sh-scroll-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.sh-scroll-mark::after {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--text);
    opacity: 0.2;
}

/* ========================================
   Hero Panel
======================================== */

.sh-panel {
    width: min(100%, 400px);
    padding: 30px;
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.sh-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(214, 210, 196, 0.12), transparent 35%),
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.08),
            transparent 25%
        );
    pointer-events: none;
}
[data-theme="light"] .sh-panel::before {
    background:
        linear-gradient(135deg, rgba(141, 148, 134, 0.08), transparent 35%),
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.3),
            transparent 25%
        );
}
.sh-panel-label {
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.sh-panel-title {
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
    margin: 18px 0 26px;
    font-size: 29px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 600;
}
.sh-panel-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sh-panel-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--card-border);
    color: var(--muted);
    font-size: 14px;
}
.sh-panel-item span:last-child {
    color: var(--accent-2);
    text-align: right;
}

/* ========================================
   Statement Block
======================================== */

.sh-statement-copy {
    font-family: var(--font-display);
    font-size: clamp(23px, 2.8vw, 40px);
    line-height: 1.28;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.sh-statement-side {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.sh-statement-side p {
    margin: 0;
}

/* ========================================
   Metrics
======================================== */

.sh-metric {
    padding: 34px 28px 30px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    height: 100%;
}
[data-theme="light"] .sh-metric {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 16px rgba(0, 0, 0, 0.07);
}
.sh-metric-value {
    font-family: var(--font-display);
    font-size: clamp(44px, 5vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin: 0 0 10px;
    font-weight: 700;
}
.sh-metric-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 16px;
}
.sh-metric-copy {
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}

/* ========================================
   Pillars
======================================== */

.sh-pillar {
    padding: 32px;
    border-radius: 24px;
    background: var(--card-bg-alt);
    border: 1px solid var(--card-border-alt);
    min-height: 220px;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.sh-pillar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(214, 210, 196, 0.06),
        transparent 36%
    );
    opacity: 0;
    transition: opacity 0.28s ease;
}
.sh-pillar:hover {
    transform: translateY(-5px);
    border-color: var(--divider-color);
    background: var(--bg-panel);
}
[data-theme="light"] .sh-pillar:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
}
.sh-pillar:hover::before {
    opacity: 1;
}
.sh-pillar-index {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.sh-pillar h3 {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: -0.04em;
    margin: 0 0 14px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}
.sh-pillar p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ========================================
   Projects
======================================== */

.sh-project {
    border-radius: 26px;
    overflow: hidden;
    min-height: 460px;
    position: relative;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.sh-project::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.05) brightness(0.42);
    transform: scale(1.02);
    transition:
        transform 0.6s ease,
        filter 0.5s ease;
}
.sh-project:hover::before {
    transform: scale(1.06);
    filter: grayscale(0%) contrast(1) brightness(0.72);
}
[data-theme="light"] .sh-project::before {
    filter: grayscale(100%) contrast(0.88) brightness(1.18);
}
[data-theme="light"] .sh-project:hover::before {
    filter: grayscale(0%) contrast(1) brightness(0.88);
}

.sh-project:hover {
    transform: translateY(-5px);
    border-color: var(--divider-color);
}
[data-theme="light"] .sh-project:hover {
    border-color: var(--card-hover-border);
}

/* Projects with an image uploaded via the metabox */
.sh-project--custom::before {
    background-image: var(--project-bg);
}

.sh-project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        transparent 35%,
        rgba(0, 0, 0, 0.52) 100%
    );
    pointer-events: none;
    transition: background 0.5s ease;
}
[data-theme="light"] .sh-project::after {
    background: linear-gradient(
        180deg,
        transparent,
        transparent 20%,
        rgba(0, 0, 0, 0.6) 100%
    );
}
[data-theme="light"] .sh-project:hover::after {
    background: linear-gradient(
        180deg,
        transparent,
        transparent 25%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.sh-project-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    width: 100%;
}
.sh-project-status {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #f0f0ee;
}
.sh-project h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 700;
    color: #f4f4f2;
}
.sh-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #d4d7dd;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 14px 0 16px;
}
.sh-project p {
    margin: 0;
    color: #c0c3ca;
    font-size: 15px;
    line-height: 1.75;
}
.sh-project-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d6d2c4;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: gap 0.2s ease;
}
.sh-project:hover .sh-project-link {
    gap: 14px;
}

/* ========================================
   Platform Band
======================================== */

.sh-platform-band {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--band-border);
    border-bottom: 1px solid var(--band-border);
    background: var(--band-bg);
    z-index: 2;
    transition:
        border-color 0.35s ease,
        background 0.35s ease;
}
.sh-platform-band::before {
    content: "";
    position: absolute;
    inset: 0;
    filter: grayscale(100%) contrast(1.08) brightness(0.32);
    opacity: 0.5;
}
[data-theme="light"] .sh-platform-band::before {
    filter: grayscale(100%) contrast(0.9) brightness(1.1);
    opacity: 0.5;
}
.sh-platform-band .container-xl {
    position: relative;
    z-index: 2;
}
.sh-platform-copy {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.25;
    letter-spacing: -0.04em;
    margin: 0;
    max-width: 600px;
    font-weight: 600;
}

.sh-partner-tag {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 12px;
    border-radius: 18px;
    border: 1px solid var(--card-border-alt);
    background: var(--card-bg-alt);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition:
        border-color 0.25s,
        background 0.25s;
}
[data-theme="light"] .sh-partner-tag {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.sh-partner-tag:hover {
    background: var(--bg-panel);
    border-color: var(--divider-color);
}
[data-theme="light"] .sh-partner-tag:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.22);
}

/* ========================================
   Team
======================================== */

.sh-team-card {
    padding: 28px;
    border-radius: 22px;
    background: var(--card-bg-alt);
    border: 1px solid var(--card-border-alt);
    height: 100%;
    transition:
        border-color 0.25s,
        transform 0.25s,
        background 0.35s ease;
}
.sh-team-card:hover {
    border-color: var(--divider-color);
    transform: translateY(-3px);
}
[data-theme="light"] .sh-team-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
}
.sh-team-role {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-2);
    margin-bottom: 12px;
}
.sh-team-card h3 {
    font-family: var(--font-display);
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.04em;
    font-weight: 700;
}
.sh-team-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

/* ========================================
   CTA Box
======================================== */

.sh-cta-box {
    position: relative;
    overflow: hidden;
    padding: 50px;
    border-radius: 28px;
    background: linear-gradient(
        135deg,
        rgba(214, 210, 196, 0.09),
        rgba(255, 255, 255, 0.03) 35%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}
[data-theme="light"] .sh-cta-box {
    background: linear-gradient(
        135deg,
        rgba(141, 148, 134, 0.1),
        rgba(0, 0, 0, 0.02) 35%,
        rgba(0, 0, 0, 0.01) 100%
    );
}
.sh-cta-overlay {
    position: absolute;
    inset: 0;
    filter: grayscale(100%) contrast(1.02) brightness(0.42);
    opacity: 0.5;
    pointer-events: none;
}
[data-theme="light"] .sh-cta-overlay {
    filter: grayscale(100%) contrast(0.9) brightness(1.1);
    opacity: 0.5;
    pointer-events: none;
}
[data-theme="light"] .sh-cta-box .sh-btn-primary {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.3);
    color: #0e0e0f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}
[data-theme="light"] .sh-cta-box .sh-btn-primary:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(0, 0, 0, 0.45);
    color: #0e0e0f;
}
[data-theme="light"] .sh-cta-box .sh-btn-ghost {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.55);
    color: #111113;
    backdrop-filter: blur(8px);
}
[data-theme="light"] .sh-cta-box .sh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(0, 0, 0, 0.45);
    color: #0e0e0f;
}
.sh-cta-box > .row {
    position: relative;
    z-index: 1;
}
.sh-cta-title {
    font-family: var(--font-display);
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 700;
}
.sh-cta-copy {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
    font-size: 17px;
    line-height: 1.8;
}

/* ========================================
   Footer
======================================== */

.sh-footer {
    padding: 45px 0;
    color: var(--muted-2);
    border-top: 1px solid var(--footer-border);
    position: relative;
    z-index: 2;
    transition: border-color 0.35s ease;
}
.sh-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sh-footer a,
a {
    font-weight: 700;
}
.sh-footer a:hover,
a:hover {
    color: var(--accent-2);
}

/* ========================================
   Reveal Animations
======================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 {
    transition-delay: 0.15s;
}
.reveal-delay-2 {
    transition-delay: 0.3s;
}

/* ========================================
   Responsive — Tablet (768px–991px)
======================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
    .sh-section {
        padding: 80px 20px;
    }
    .sh-hero {
        min-height: auto;
        padding: 60px 20px 50px;
    }
    .sh-panel {
        width: 100%;
        max-width: 100%;
    }
    .sh-metric {
        padding: 28px 22px 24px;
    }
    .sh-pillar {
        min-height: auto;
    }
    .sh-project {
        min-height: 380px;
    }
    .sh-cta-box {
        padding: 36px 28px;
    }
    .sh-platform-band {
        padding: 70px 20px;
    }
}

/* ========================================
   Responsive — Mobile large (576px–767px)
======================================== */

@media (min-width: 576px) and (max-width: 767.98px) {
    .sh-section {
        padding: 64px 20px;
    }
    .sh-hero {
        min-height: auto;
        padding: 48px 20px 40px;
    }
    #hero-other.sh-hero {
        padding: 100px 20px 60px;
    }
    .sh-hero-h1 {
        font-size: clamp(42px, 13vw, 64px);
    }
    .sh-hero-lead {
        font-size: 16px;
    }
    .sh-section-title {
        font-size: clamp(26px, 7vw, 40px);
    }
    .sh-metric-value {
        font-size: clamp(40px, 11vw, 64px);
    }
    .sh-project {
        min-height: 320px;
    }
    .sh-project h3 {
        font-size: 24px;
    }
    .sh-platform-band {
        padding: 56px 20px;
    }
    .sh-platform-copy {
        font-size: clamp(20px, 5vw, 30px);
    }
    .sh-partner-tag {
        min-height: 64px;
        font-size: 10px;
    }
    .sh-team-card h3 {
        font-size: 20px;
    }
    .sh-pillar h3 {
        font-size: 22px;
    }
    .sh-cta-box {
        padding: 28px 20px;
    }
    .sh-cta-title {
        font-size: clamp(28px, 8vw, 44px);
    }
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .sh-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ========================================
   Responsive — Mobile small (≤575px)
======================================== */

@media (max-width: 575.98px) {
    .sh-section {
        padding: 64px 20px;
    }
    .sh-hero {
        min-height: auto;
        padding: 48px 20px 40px;
    }
    #hero-other.sh-hero {
        padding: 100px 20px 60px;
    }
    .sh-hero-h1 {
        font-size: clamp(42px, 13vw, 64px);
    }
    .sh-hero-lead {
        font-size: 16px;
    }
    .sh-section-title {
        font-size: clamp(26px, 7vw, 40px);
    }
    .sh-metric-value {
        font-size: clamp(40px, 11vw, 64px);
    }
    .sh-project {
        min-height: 320px;
    }
    .sh-project h3 {
        font-size: 24px;
    }
    .sh-platform-band {
        padding: 56px 20px;
    }
    .sh-platform-copy {
        font-size: clamp(20px, 5vw, 30px);
    }
    .sh-partner-tag {
        min-height: 64px;
        font-size: 10px;
    }
    .sh-team-card h3 {
        font-size: 20px;
    }
    .sh-pillar h3 {
        font-size: 22px;
    }
    .sh-cta-box {
        padding: 28px 20px;
    }
    .sh-cta-title {
        font-size: clamp(28px, 8vw, 44px);
    }
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .sh-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ========================================
   Print
======================================== */

@media print {
    * {
        background: transparent !important;
        color: #151515 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    thead {
        display: table-header-group;
    }
    tr,
    img {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    @page {
        margin: 0.5cm;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
}
