/* ==========================================================================
   Big Sky Investments — site stylesheet
   Self-contained: no external fonts, CDNs or trackers.
   ========================================================================== */

:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-deep: #0b1729;
    --brand: #0369a1;
    --brand-bright: #0ea5e9;
    --brand-dark: #075985;
    --brand-wash: #e0f2fe;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
    --container: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
}
h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}
h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--brand-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    margin: 0 0 1.1em;
    padding-left: 1.3em;
}

li {
    margin-bottom: 0.45em;
}

:focus-visible {
    outline: 3px solid var(--brand-bright);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    z-index: 200;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 820px;
}

.section {
    padding: 72px 0;
}

.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__head {
    max-width: 720px;
    margin-bottom: 44px;
}

.section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

/* Header ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover,
.brand:focus-visible {
    text-decoration: none;
    color: var(--ink);
}

.brand__mark {
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -0.02em;
}

.brand__tag {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--brand);
    text-decoration: none;
    border-bottom-color: var(--brand-bright);
}

.nav a[aria-current="page"] {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--ink);
    font-size: 0.9rem;
    align-items: center;
    gap: 8px;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
}

.btn--light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.btn--light:hover,
.btn--light:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* Hero -------------------------------------------------------------------- */

.hero {
    position: relative;
    background: linear-gradient(158deg, #0b1729 0%, #10294a 52%, #0c3f68 100%);
    color: #cbd5e1;
    overflow: hidden;
    padding: 92px 0 84px;
}

.hero::after {
    content: "";
    position: absolute;
    right: -180px;
    top: -160px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, rgba(14, 165, 233, 0) 68%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero h1 {
    color: #fff;
}

.hero .eyebrow {
    color: var(--brand-bright);
}

.hero p {
    font-size: 1.16rem;
    color: #b8c7db;
    max-width: 640px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__fact strong {
    display: block;
    color: #fff;
    font-size: 1.02rem;
    margin-bottom: 3px;
}

.hero__fact span {
    font-size: 0.9rem;
    color: #93a7c0;
}

/* Page header (inner pages) ------------------------------------------------ */

.page-head {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 60px 0 54px;
}

.page-head h1 {
    margin-bottom: 0.35em;
}

.page-head p {
    font-size: 1.12rem;
    max-width: 700px;
    margin-bottom: 0;
}

/* Cards / grids ------------------------------------------------------------ */

.grid {
    display: grid;
    gap: 24px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
}

.card--flat {
    box-shadow: none;
}

.card h3 {
    margin-bottom: 0.5em;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--brand-wash);
    color: var(--brand);
    margin-bottom: 18px;
}

.tick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tick-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.46em;
    width: 16px;
    height: 9px;
    border-left: 2.5px solid var(--brand-bright);
    border-bottom: 2.5px solid var(--brand-bright);
    transform: rotate(-45deg);
}

/* Steps -------------------------------------------------------------------- */

.steps {
    counter-reset: step;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps li {
    counter-increment: step;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    margin: 0;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-bright);
    margin-bottom: 12px;
}

.steps h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4em;
}

.steps p {
    font-size: 0.94rem;
    margin-bottom: 0;
    color: var(--muted);
}

/* Split (text + aside) ----------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: start;
}

.panel {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
}

.panel h3 {
    font-size: 1.05rem;
}

.panel dl {
    margin: 0;
}

.panel dt {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    font-weight: 700;
    margin-top: 18px;
}

.panel dt:first-child {
    margin-top: 0;
}

.panel dd {
    margin: 4px 0 0;
    color: var(--ink);
}

/* Accordion (services detail) ---------------------------------------------- */

.accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}

.accordion details {
    border-bottom: 1px solid var(--line);
}

.accordion details:last-child {
    border-bottom: 0;
}

.accordion summary {
    cursor: pointer;
    padding: 20px 26px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    font-size: 1.04rem;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--brand);
    line-height: 1;
    flex-shrink: 0;
}

.accordion details[open] summary::after {
    content: "\2212";
}

.accordion summary:hover {
    background: var(--line-soft);
}

.accordion__body {
    padding: 0 26px 24px;
}

.accordion__body p:last-child,
.accordion__body ul:last-child {
    margin-bottom: 0;
}

/* CTA band ----------------------------------------------------------------- */

.cta-band {
    background: linear-gradient(140deg, #0b1729 0%, #0c3f68 100%);
    color: #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-band h2 {
    color: #fff;
    margin-bottom: 0.35em;
}

.cta-band p {
    margin-bottom: 0;
    max-width: 520px;
    color: #b8c7db;
}

/* Contact ------------------------------------------------------------------ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 52px;
    align-items: start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}

.contact-list li:first-child {
    padding-top: 0;
}

.contact-list li:last-child {
    border-bottom: 0;
}

.contact-list__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-wash);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-list__label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-list__value {
    color: var(--ink);
    font-size: 1.02rem;
}

.map-embed {
    margin-top: 44px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    line-height: 0;
}

.map-embed iframe {
    width: 100%;
    height: 340px;
    border: 0;
}

/* Forms -------------------------------------------------------------------- */

.form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    box-shadow: var(--shadow-sm);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

.field .req {
    color: #dc2626;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font: inherit;
    font-size: 0.97rem;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-bright);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.field textarea {
    resize: vertical;
    min-height: 128px;
}

.field__hint {
    font-size: 0.83rem;
    color: var(--muted);
    margin: 7px 0 0;
}

.form__consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 0.89rem;
    color: var(--muted);
    margin-bottom: 22px;
}

.form__consent input {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 0.94rem;
}

.alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Prose (legal pages) ------------------------------------------------------ */

.prose {
    max-width: 820px;
}

.prose h2 {
    font-size: 1.42rem;
    margin-top: 2.2em;
    padding-top: 0.2em;
}

.prose h2:first-of-type {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.08rem;
    margin-top: 1.7em;
}

.prose ul {
    padding-left: 1.25em;
}

.prose .meta {
    color: var(--muted);
    font-size: 0.92rem;
    padding-bottom: 1.4em;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2em;
}

.prose .callout {
    background: var(--brand-wash);
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 1.8em 0;
}

.prose .callout p:last-child {
    margin-bottom: 0;
}

.toc {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 2.4em;
}

.toc h2 {
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    margin: 0 0 12px !important;
    padding: 0;
}

.toc ol {
    margin: 0;
    columns: 2;
    column-gap: 34px;
    font-size: 0.93rem;
}

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

.site-footer {
    background: var(--bg-deep);
    color: #94a3b8;
    padding: 64px 0 0;
    font-size: 0.94rem;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.site-footer h2 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #fff;
    margin-bottom: 18px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

.footer-brand__name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.87rem;
}

.footer-bottom nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

/* Cookie banner ------------------------------------------------------------ */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 300;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px 26px;
    display: none;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
    font-size: 0.93rem;
}

.cookie-banner[data-visible="true"] {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 260px;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* Utilities ---------------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-0 {
    margin-top: 0;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 960px) {
    .grid--3,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    /* Give the menu button room: the brand shrinks before the control does. */
    .site-header__inner {
        gap: 12px;
        min-height: 66px;
    }

    .brand {
        gap: 10px;
        min-width: 0;
    }

    .brand__name {
        font-size: 0.97rem;
    }

    .brand__tag {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    .nav-toggle {
        flex-shrink: 0;
        padding: 9px 11px;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding: 68px 0 60px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 18px;
    }

    .nav[data-open="true"] {
        display: flex;
    }

    .nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .nav a:hover,
    .nav a[aria-current="page"] {
        border-bottom-color: var(--line-soft);
    }

    .site-header__inner {
        position: relative;
    }

    .grid--2,
    .grid--3,
    .steps,
    .form__row {
        grid-template-columns: 1fr;
    }

    .hero__facts {
        gap: 26px;
    }

    .cta-band {
        padding: 34px 26px;
    }

    .toc ol {
        columns: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 430px) {
    .brand__tag {
        display: none;
    }

    .brand__mark {
        width: 34px;
        height: 34px;
    }

    .nav-toggle__label {
        display: none;
    }

    .container {
        padding: 0 18px;
    }
}
