/* ============================================================
   BTC2B — Shared site styles
   Used by: index.html.new, btc2bgroup.html, news.html, news-post.html
   Page-specific components stay inlined in each page.
   ============================================================ */

/* --- Design tokens --- */
:root {
    --navy: #0A1F44;
    --dark-navy: #0D1B2A;
    --orange: #F47920;
    --light-orange: #F9A825;
    --gray: #8B96A8;
    --light-bg: #F5F7FA;
    --border: rgba(10, 31, 68, 0.12);
}

/* --- Reset & base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark-navy);
    line-height: 1.7;
    font-size: 17px;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}

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

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Header & nav --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.site-header.scrolled .brand { color: var(--navy); }

.menu {
    display: flex;
    gap: 38px;
    list-style: none;
}

.menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s ease;
    padding: 4px 0;
}

.menu a:hover,
.menu a.active { color: var(--orange); }

.site-header.scrolled .menu a { color: var(--navy); }
.site-header.scrolled .menu a:hover,
.site-header.scrolled .menu a.active { color: var(--orange); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

.site-header.scrolled .menu-toggle { color: var(--navy); }

/* --- Hero (shared pattern + variants) --- */
.hero,
.page-hero,
.article-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(244, 121, 32, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, var(--dark-navy) 0%, var(--navy) 100%);
}

.hero::before,
.page-hero::before,
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255, 255, 255, 0.025) 60px, rgba(255, 255, 255, 0.025) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255, 255, 255, 0.025) 60px, rgba(255, 255, 255, 0.025) 61px);
    pointer-events: none;
}

/* Full-viewport hero (home pages) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 120px;
}

.hero::after {
    content: '';
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 121, 32, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Compact hero (listing pages) */
.page-hero { padding: 200px 0 120px; }

/* Article hero */
.article-hero { padding: 180px 0 90px; }

.hero-inner,
.page-hero-inner,
.article-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hero h1 {
    font-size: clamp(44px, 7vw, 92px);
    line-height: 1.02;
    margin-bottom: 32px;
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.02;
    margin-bottom: 28px;
}

.article-hero h1 {
    font-size: clamp(36px, 5.5vw, 68px);
    line-height: 1.06;
    margin-bottom: 30px;
}

.hero h1 .dot,
.page-hero h1 .dot,
.article-hero h1 .dot { color: var(--orange); }

.hero-lead {
    font-size: clamp(17px, 1.5vw, 21px);
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 48px;
}

.page-hero p {
    font-size: clamp(17px, 1.4vw, 20px);
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
}

.article-lead {
    font-size: clamp(18px, 1.4vw, 22px);
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* --- Shared small elements --- */
.accent-rule {
    width: 64px;
    height: 3px;
    background: var(--orange);
    border: 0;
    margin-bottom: 32px;
}

.eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--orange);
    margin-bottom: 20px;
    display: inline-block;
}

.read-more {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--orange);
    transition: gap 0.3s ease, color 0.3s ease;
}

.read-more:hover { color: var(--orange); gap: 16px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 38px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--light-orange);
    border-color: var(--light-orange);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-ghost-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: transparent;
    padding: 18px 10px;
}

.btn-ghost-light:hover { color: var(--orange); }

/* --- Section scaffolding --- */
.section {
    padding: 130px 0;
    position: relative;
}

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

.section--dark {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.85);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section-head {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 90px;
}

.section-head .label {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--orange);
    margin-bottom: 22px;
}

.section-head h2 {
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.section-head h2 .dot { color: var(--orange); }

.section-head .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 16px;
    display: block;
}

.section-head .intro {
    font-size: 18px;
    color: var(--dark-navy);
    line-height: 1.75;
}

.section--dark .section-head .intro { color: rgba(255, 255, 255, 0.78); }

/* --- Shared: step cards (approach + workflow) --- */
.step {
    padding: 60px 36px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    counter-increment: step;
}

.step:last-child { border-right: 0; }

.step .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 68px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
}

.step .num::before { content: "0" counter(step); }

.step h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.75;
}

/* --- Shared: value grid (why-us) --- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.value {
    padding: 56px 48px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.value .icon {
    font-size: 30px;
    color: var(--orange);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 6px;
}

.value h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.value p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
}

/* --- Shared: contact details stack --- */
.contact-detail {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.contact-detail:last-child { border-bottom: 1px solid var(--border); }

.contact-detail .label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gray);
    margin-bottom: 6px;
    display: block;
}

.contact-detail .value-text {
    font-size: 16px;
    color: var(--navy);
    font-weight: 600;
}

.contact-detail a:hover { color: var(--orange); }

/* --- Placeholder media gradients --- */
.media.g-1 { background: linear-gradient(135deg, #0A1F44 0%, #1a3a6b 60%, #F47920 180%); }
.media.g-2 { background: linear-gradient(135deg, #0D1B2A 0%, #0A1F44 60%, #F9A825 200%); }
.media.g-3 { background: linear-gradient(135deg, #1a3a6b 0%, #0A1F44 70%, #F47920 180%); }
.media.g-4 { background: linear-gradient(135deg, #0A1F44 0%, #0D1B2A 70%, #F47920 200%); }
.media.g-5 { background: linear-gradient(135deg, #0D1B2A 0%, #1a3a6b 60%, #F9A825 180%); }
.media.g-6 { background: linear-gradient(135deg, #0A1F44 0%, #1a3a6b 50%, #F47920 220%); }

/* --- CTA section --- */
.cta {
    background: var(--navy);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255, 255, 255, 0.025) 60px, rgba(255, 255, 255, 0.025) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255, 255, 255, 0.025) 60px, rgba(255, 255, 255, 0.025) 61px);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta h2 {
    color: #fff;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 28px;
    font-weight: 800;
}

.cta h2 .dot { color: var(--orange); }

.cta p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
    max-width: 620px;
    margin: 0 auto 44px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Compact CTA variant (listing / article pages) */
.cta--compact { padding: 100px 0; }
.cta--compact h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    margin-bottom: 24px;
}
.cta--compact p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 36px;
}

/* --- Footer --- */
footer {
    background: var(--dark-navy);
    color: var(--gray);
    padding: 70px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.footer-top h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 22px;
    font-weight: 700;
}

.footer-top p { font-size: 15px; line-height: 1.75; max-width: 340px; }

.footer-top ul { list-style: none; }
.footer-top ul li { margin-bottom: 12px; }
.footer-top a { font-size: 15px; transition: color 0.3s ease; }
.footer-top a:hover { color: var(--orange); }

.footer-brand {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    flex-wrap: wrap;
    gap: 16px;
}

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

/* --- Base responsive --- */
@media (max-width: 960px) {
    .container { padding: 0 24px; }

    .menu-toggle { display: block; }
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 340px;
        background: var(--dark-navy);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 8px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    .menu.open { right: 0; }
    .menu a {
        color: #fff;
        font-size: 16px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: block;
    }
    .site-header.scrolled .menu a { color: #fff; }

    .hero { padding: 130px 0 100px; min-height: 90vh; }
    .page-hero { padding: 150px 0 90px; }
    .article-hero { padding: 140px 0 70px; }
    .hero-actions { gap: 12px; }

    .btn { padding: 16px 28px; font-size: 12px; }

    .section { padding: 90px 0; }
    .section-head {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }

    .value-grid { grid-template-columns: 1fr; }
    .value { padding: 40px 32px; }

    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== Home page (index.html) ===== */

/* Feature strip under hero */
.features {
    background: #fff;
    padding: 90px 0 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature {
    padding: 60px 48px;
    border-right: 1px solid var(--border);
    position: relative;
}

.feature:last-child { border-right: 0; }

.feature .icon {
    font-size: 36px;
    color: var(--orange);
    margin-bottom: 28px;
    display: block;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 800;
}

.feature h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--orange);
    margin-top: 14px;
}

.feature p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service {
    padding: 60px 44px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    transition: all 0.35s ease;
    position: relative;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--orange);
    transition: width 0.35s ease;
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(10, 31, 68, 0.18);
    z-index: 2;
}

.service:hover::before { width: 100%; }

.service .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.18em;
    margin-bottom: 28px;
    display: block;
}

.service .icon {
    font-size: 44px;
    color: var(--orange);
    margin-bottom: 28px;
    display: block;
}

.service h3 {
    font-size: 24px;
    margin-bottom: 18px;
    font-weight: 800;
}

.service p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.75;
}

/* Approach grid wrapper (.step itself is shared) */
.approach {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Contact grid + form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 13px;
    margin-bottom: 14px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info p {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 36px;
    max-width: 380px;
}

.contact-form {
    background: #fff;
    padding: 56px 52px;
    border: 1px solid var(--border);
}

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

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--navy);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--navy);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-message {
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    display: none;
    border-left: 3px solid var(--orange);
    background: var(--light-bg);
}

.form-message.success { border-color: #2e7d32; color: #1b5e20; display: block; }
.form-message.error { border-color: #c62828; color: #b71c1c; display: block; }

.submit-btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 960px) {
    .features { padding-top: 60px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature { border-right: 0; border-bottom: 1px solid var(--border); padding: 44px 32px; }
    .feature:last-child { border-bottom: 0; }

    .services-grid { grid-template-columns: 1fr 1fr; }
    .service { padding: 44px 32px; }

    .approach { grid-template-columns: 1fr 1fr; }
    .step { padding: 50px 28px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
    .step:nth-child(2) { border-right: 0; }
    .step:nth-child(3), .step:nth-child(4) { border-bottom: 0; }

    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-form { padding: 40px 28px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
    .approach { grid-template-columns: 1fr; }
    .step { border-right: 0; }
    .step:nth-child(3) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
}
