/* Greybrix main stylesheet */

:root {
    --orange: #f58220;
    --orange-hover: #ff963c;
    --charcoal: #2f3338;
    --charcoal-dark: #222529;
    --text: #26292d;
    --muted: #697077;
    --light: #f5f6f7;
    --white: #ffffff;
    --border: #e5e7e9;
    --page-width: 1180px;
    --radius: 18px;
    --shadow: 0 18px 48px rgba(25, 28, 31, .08);
}

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

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

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

img { max-width: 100%; }
a { color: inherit; }

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(var(--page-width), calc(100% - 48px));
    margin-inline: auto;
}

.narrow { max-width: 850px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-top: 4px solid var(--orange);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: block;
    width: 250px;
    line-height: 0;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

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

.primary-nav a {
    position: relative;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 3px;
    background: var(--orange);
    transition: right .2s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    right: 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--charcoal);
}

main { flex: 1; }

.hero {
    color: var(--white);
    background:
        radial-gradient(circle at 85% 20%, rgba(245,130,32,.18), transparent 28rem),
        linear-gradient(145deg, #1f2226, #32363b);
    padding: clamp(70px, 10vw, 130px) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hero h1 {
    max-width: 790px;
    font-size: clamp(3.1rem, 6.8vw, 6.2rem);
}

.hero-text {
    max-width: 680px;
    margin: 24px 0 0;
    color: #d8dbde;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    background: var(--orange);
    color: #1d1f21;
}

.btn-primary:hover { background: var(--orange-hover); }

.btn-outline {
    border: 1px solid rgba(255,255,255,.22);
    color: var(--white);
    background: rgba(255,255,255,.04);
}

.hero-card {
    padding: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.055);
    box-shadow: 0 26px 80px rgba(0,0,0,.25);
}

.card-label {
    color: var(--orange);
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.hero-card h2 {
    margin: 9px 0 10px;
    font-size: 1.7rem;
}

.hero-card p { color: #c9cdd1; }

.check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.check-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: .5em;
    background: var(--orange);
    transform: rotate(45deg);
}

.section {
    padding: clamp(68px, 8vw, 105px) 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.section-heading h2,
.two-column h2,
.compliance-grid h2,
.contact-details h2,
.form-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.section-heading p:last-child { color: var(--muted); }

.service-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card,
.feature-card,
.values-grid article {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-card h3,
.feature-card h3,
.values-grid h3 {
    margin: 0 0 8px;
    font-size: 1.22rem;
}

.service-card p,
.feature-card p,
.values-grid p {
    margin: 0;
    color: var(--muted);
}

.section-dark {
    color: var(--white);
    background: var(--charcoal-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stats-grid div {
    display: grid;
    gap: 4px;
}

.stats-grid strong {
    color: var(--orange);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.stats-grid span { color: #c7cbcf; }

.page-hero {
    padding: clamp(70px, 9vw, 120px) 0;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(245,130,32,.18), transparent 24rem),
        linear-gradient(145deg, #222529, #34383d);
}

.page-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.3rem);
}

.page-hero p:last-child {
    max-width: 720px;
    margin-top: 20px;
    color: #d3d6d9;
    font-size: 1.08rem;
}

.two-column {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(40px, 7vw, 90px);
}

.prose {
    color: var(--muted);
    font-size: 1.03rem;
}

.prose p:first-child { margin-top: 0; }

.soft-bg { background: var(--light); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.feature-card span {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--orange);
    font-weight: 900;
}

.compliance-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(35px, 6vw, 80px);
    align-items: start;
}

.credential-list { display: grid; }

.credential-list div {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.credential-list span { color: #bfc4c8; }

.contact-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: clamp(40px, 7vw, 90px);
    align-items: start;
}

.contact-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.contact-item a,
.contact-item p {
    margin: 0;
    text-decoration: none;
    font-size: 1.05rem;
}

.form-card {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card > p { color: var(--muted); }

form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    font-size: .92rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid #cfd3d6;
    border-radius: 9px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: var(--white);
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(245,130,32,.16);
    border-color: var(--orange);
}

textarea { resize: vertical; }

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-message {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.form-message.success {
    color: #155b2a;
    background: #e8f7ed;
}

.form-message.error {
    color: #7a1d1d;
    background: #fbeaea;
}

.site-footer {
    color: #d2d5d8;
    background: #1c1f22;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr 1fr;
    gap: 44px;
    padding: 56px 0 36px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 220px;
    margin-bottom: 16px;
}

.footer-grid p {
    max-width: 440px;
    color: #9fa5aa;
}

.footer-grid h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 1rem;
}

.footer-grid a,
.footer-grid span {
    margin: 4px 0;
    color: #aeb3b7;
    text-decoration: none;
}

.footer-grid a:hover { color: var(--orange); }

.footer-bottom {
    padding: 20px 0 26px;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #7f868c;
    font-size: .84rem;
}

@media (max-width: 900px) {
    .container {
        width: min(var(--page-width), calc(100% - 36px));
    }

    .hero-grid,
    .two-column,
    .contact-grid,
    .compliance-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1.3fr 1fr;
    }
}

@media (max-width: 700px) {
    .nav-wrap { min-height: 74px; }
    .brand { width: 215px; }
    .nav-toggle { display: block; }

    .primary-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        display: none;
        padding: 12px 18px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }

    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 12px 5px; }
    .primary-nav a::after { display: none; }

    .service-grid,
    .values-grid,
    .feature-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions { display: grid; }
    .btn { width: 100%; }

    .credential-list div {
        flex-direction: column;
        gap: 3px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 28px); }
    .brand { width: 195px; }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .hero-card,
    .service-card,
    .feature-card,
    .values-grid article,
    .form-card {
        padding: 22px;
    }

    .stats-grid { grid-template-columns: 1fr; }
}
