/* ============================================
   Pair & Pivot — modern glass restyle
   --------------------------------------------
   Loaded after Tailwind to replace the
   "1px outline on everything" look with
   translucent glass surfaces, ambient
   gradients, soft shadows, and subtle
   inner highlights.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600&display=swap');

.brand-logotype-text {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ── 1. Atmospheric page background ───────── */
html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse 100% 80% at 85% -15%, rgba(48, 49, 192, 0.1), transparent 55%),
        radial-gradient(ellipse 80% 70% at 15% 110%, rgba(179, 209, 122, 0.045), transparent 55%),
        #051424 !important;
    background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ── 2. Sticky glass header & footer ──────── */
body>header {
    background: rgba(5, 20, 36, 0.46) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: transparent !important;
    box-shadow: 0 22px 55px -45px rgba(198, 198, 204, 0.35);
}

body>footer {
    background: rgba(2, 12, 24, 0.55) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body.mobile-menu-open {
    overflow: hidden;
}

.site-menu-toggle {
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-menu-toggle:hover,
.site-menu-toggle[aria-expanded="true"] {
    background-color: rgba(13, 28, 45, 0.7);
}

.site-menu-toggle:focus-visible {
    outline: 2px solid rgba(198, 198, 204, 0.75);
    outline-offset: 3px;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(1, 8, 18, 0.56);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 1.5rem 20px;
    background: rgba(5, 20, 36, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    opacity: 0;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-menu-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-menu-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #c6c6cb;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
    color: #b3d17a;
}

.mobile-menu-link--active {
    color: #c6c6cc;
    border-bottom-color: #c6c6cc;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 0.75rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgb(36, 54, 0);
    background: rgb(179, 209, 122);
    box-shadow:
        0 8px 30px -8px rgba(179, 209, 122, 0.35),
        0 0 40px -10px rgba(179, 209, 122, 0.2);
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-cta:hover,
.mobile-menu-cta:focus-visible {
    background: rgb(206, 235, 147);
}

.mobile-menu-link:focus-visible,
.mobile-menu-cta:focus-visible {
    outline: 2px solid rgba(198, 198, 204, 0.75);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .site-menu-toggle,
    .mobile-menu-backdrop,
    .mobile-menu-panel,
    .mobile-menu-link,
    .mobile-menu-cta {
        transition: none;
    }
}

/* Logo mark from the static SVG version of the supplied HTML logo. */
.brand-lockup {
    min-width: 0;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-lockup:hover .brand-mark {
    transform: translateY(-1px);
}

.brand-mark--footer {
    width: 28px;
    height: 28px;
}

/* ── 3. Drop hard section band borders ────── */
section[class*="border-y"] {
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
}

/* ── 4. General glass card override ───────── */
/* Targets any element that combines a bg-surface* utility with the .border
   utility — the old "outlined card" pattern across every page.
   Excluded: inputs/selects/textareas/buttons/sections (handled separately). */
[class*="bg-surface"].border:not(input):not(select):not(textarea):not(button):not(section):not(header):not(footer) {
    background-color: rgba(13, 28, 45, 0.5) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%) !important;
    border-color: rgba(255, 255, 255, 0.035) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 40px -20px rgba(0, 25, 70, 0.4);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Pills / small badges (rounded-full) — lighter, no shadow */
[class*="bg-surface"].border[class*="rounded-full"] {
    background-color: rgba(13, 28, 45, 0.45) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.055) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* Chip-style anchor links (rounded-full + border, no bg utility) */
a.border[class*="rounded-full"]:not([class*="bg-primary"]):not([class*="bg-tertiary"]):not([class*="bg-secondary"]) {
    background-color: rgba(13, 28, 45, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.055) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

a.border[class*="rounded-full"]:not([class*="bg-primary"]):not([class*="bg-tertiary"]):not([class*="bg-secondary"]):hover {
    background-color: rgba(20, 40, 65, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
}

/* Card hover */
a[class*="bg-surface"].border:hover,
[class*="bg-surface"].border[class*="hover:border-primary"]:hover {
    background-color: rgba(20, 40, 65, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 30px 50px -15px rgba(0, 30, 80, 0.55) !important;
}

/* ── 5. Featured panels (tertiary accent) ─── */
[class*="border-tertiary"]:not(input):not(select):not(textarea) {
    background-color: rgba(13, 28, 45, 0.55) !important;
    background-image:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(179, 209, 122, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(48, 49, 192, 0.1), transparent 60%) !important;
    border-color: rgba(179, 209, 122, 0.22) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(179, 209, 122, 0.1),
        0 0 100px -20px rgba(179, 209, 122, 0.15),
        0 30px 60px -25px rgba(0, 30, 80, 0.45) !important;
}

/* ── 6. Form inputs — keep readable, soften ─ */
input.border,
select.border,
textarea.border {
    background-color: rgba(8, 22, 38, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

select.border {
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
    padding-right: 2.75rem !important;
}

input.border:focus,
select.border:focus,
textarea.border:focus {
    border-color: rgba(198, 198, 204, 0.5) !important;
    box-shadow:
        0 0 0 1px rgba(198, 198, 204, 0.5),
        0 0 20px -5px rgba(48, 49, 192, 0.25) !important;
}

hr[class*="border-outline-variant"] {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ── 7. CTA glow ──────────────────────────── */
a[class*="bg-tertiary"][class*="rounded-full"],
button[class*="bg-tertiary"][class*="rounded-full"] {
    box-shadow:
        0 8px 30px -8px rgba(179, 209, 122, 0.35),
        0 0 40px -10px rgba(179, 209, 122, 0.2);
}

a[class*="bg-primary"][class*="rounded-full"]:not([class*="bg-primary-fixed"]) {
    box-shadow: 0 8px 25px -10px rgba(198, 198, 204, 0.22);
}

button[class*="bg-secondary-container"] {
    box-shadow: 0 8px 30px -10px rgba(48, 49, 192, 0.45);
}

/* ── 8. Utility classes ───────────────────── */

/* Atmospheric glow panel — for the final-CTA blocks */
.gs-glow-panel {
    position: relative;
    background-color: rgba(13, 28, 45, 0.4) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 120px -20px rgba(48, 49, 192, 0.18),
        0 0 80px -10px rgba(179, 209, 122, 0.06),
        0 40px 80px -30px rgba(0, 30, 80, 0.5) !important;
    overflow: hidden;
}

.gs-glow-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(48, 49, 192, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 110%, rgba(179, 209, 122, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Flat card — restrained surface for process steps */
.gs-flat-card {
    background-color: rgba(13, 28, 45, 0.3) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.025) !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Form shell — glass form container */
.gs-form-shell {
    background-color: rgba(13, 28, 45, 0.55) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 30px 60px -20px rgba(0, 30, 80, 0.5) !important;
}

/* Photo / video placeholders — atmospheric */
.photo-placeholder {
    background-color: rgba(13, 28, 45, 0.4) !important;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(179, 209, 122, 0.1), transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(48, 49, 192, 0.08), transparent 50%) !important;
}
