/* ============================================================
   CCB Tech / TrackER — Shared Marketing Styles
   Applies to: index.html, about.html, product.html
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --navy:          #1a2332;
    --navy-light:    #2d3748;
    --gold:          #c9a961;
    --gold-dark:     #a08544;
    --gold-rgb:      201 169 97;   /* for rgb(var(--gold-rgb) / alpha) */
    --white:         #ffffff;
    --text-primary:  #2d3748;
    --text-secondary:#64748b;
}

/* ── Base Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ── Navigation ── */
.navbar {
    background: white;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 0.75rem 0;
}
.navbar-brand img { height: 48px; }
.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.75rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold); }

/* ── Buttons ── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(var(--gold-rgb) / 0.35);
    color: white;
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    border: 2px solid var(--gold);
    transition: all 0.3s;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
}

/* ── Section Scaffolding ── */
section { padding: 5rem 0; }
.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}
.section-title--left { text-align: left; }
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 3rem;
}
.bg-light-custom { background: #f8f9fa; }

/* ── Page Hero (about + product) ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgb(var(--gold-rgb) / 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .hero-eyebrow {
    display: inline-block;
    background: rgb(var(--gold-rgb) / 0.15);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}
.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.page-hero .lead {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* ── Step Cards ── */
.step-card {
    text-align: center;
    padding: 2rem;
}
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 800;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.step-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.step-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* ── Facility Section (dark gradient) ── */
.facility-section {
    background: linear-gradient(135deg, #0f1923 0%, var(--navy) 50%, #1e3a5f 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.facility-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgb(var(--gold-rgb) / 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgb(var(--gold-rgb) / 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.facility-section .section-label  { color: var(--gold); }
.facility-section .section-title  { color: white; }
.facility-section .section-subtitle { color: rgb(255 255 255 / 0.75); }
.facility-card {
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    position: relative;
}
.facility-card:hover {
    background: rgb(255 255 255 / 0.1);
    border-color: rgb(var(--gold-rgb) / 0.4);
    transform: translateY(-4px);
}
.facility-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.facility-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.facility-card p {
    color: rgb(255 255 255 / 0.72);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.65;
}
.facility-card .card-tag {
    display: inline-block;
    background: rgb(var(--gold-rgb) / 0.15);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* ── Capabilities Grid ── */
.cap-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.cap-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.cap-card i {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}
.cap-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.cap-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}
.cap-card--centered {
    text-align: center;
    padding: 1.5rem;
}
.cap-card--centered i { font-size: 2rem; }

/* ── Infrastructure Bar ── */
.infra-bar {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 2.5rem 0;
}
.infra-item {
    text-align: center;
    padding: 0.75rem;
}
.infra-item .infra-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: var(--navy);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.infra-item h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.infra-item p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}
.infra-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.infra-subheading {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* ── Outcome Vignette Cards ── */
.outcome-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--gold);
}
.outcome-card .outcome-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.outcome-card .outcome-metric { margin-bottom: 1rem; }
.outcome-card .outcome-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.outcome-card .outcome-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}
.outcome-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    color: white;
    padding: 5rem 0;
}
.cta-section--compact { padding: 4rem 0; }

/* CTA body text helpers */
.cta-desc {
    max-width: 540px;
    opacity: 0.9;
}
.cta-lead {
    max-width: 620px;
    opacity: 0.9;
}

/* ── Demo Request Form ── */
.contact-section { background: #f8f9fa; }
.form-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.form-label {
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgb(var(--gold-rgb) / 0.15);
}

/* ── Contact Info Block ── */
.contact-info { font-size: 0.875rem; color: var(--text-secondary); }
.contact-info strong { color: var(--navy); }

/* ── Footer ── */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.875rem;
}
footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
footer a:hover { color: var(--gold); }
.footer-brand { color: white; }

/* ── Shared Responsive ── */
@media (max-width: 1024px) {
    section           { padding: 4rem 0; }
    .facility-section { padding: 5rem 0; }
    .page-hero        { padding: 4rem 0 3rem; }
    .section-title    { font-size: 2.25rem; }
    .form-card        { padding: 2rem; }
}

@media (max-width: 768px) {
    .page-hero h1     { font-size: 2rem; }
    .section-title    { font-size: 2rem; }
    .facility-section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .page-hero h1     { font-size: 1.75rem; }
    .section-title    { font-size: 1.75rem; }
    .form-card        { padding: 1.5rem; }
}