/* ============================================================
   Dualis -- Shared Marketing Styles
   Applies to: index.html, about.html, tracker.html, display-board.html
   ============================================================ */

/* -- Design Tokens -- */
:root {
    --navy:          #1d2f6f;
    --navy-light:    #2d3f8f;
    --red:           #c03535;
    --red-dark:      #9a2525;
    --red-rgb:       192 53 53;    /* for rgb(var(--red-rgb) / alpha) */
    --black:         #111111;
    --white:         #ffffff;
    --text-primary:  #1a1a2e;
    --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;
    background: #ffffff;
}

/* -- Navigation -- */
.navbar {
    background: white;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 0.75rem 0;
}
.navbar-brand img { height: 40px; }
.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(--red); }

/* Dropdown menu for Products */
.navbar .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 0.5rem;
    min-width: 220px;
}
.navbar .dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}
.navbar .dropdown-item:hover {
    background: rgb(var(--red-rgb) / 0.08);
    color: var(--red);
}
.navbar .dropdown-item .product-chip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--navy);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.navbar .dropdown-item .product-chip--new {
    background: var(--red);
}

/* -- Buttons -- */
.btn-red {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(var(--red-rgb) / 0.35);
    color: white;
}
.btn-outline-red {
    background: transparent;
    color: var(--red);
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    border: 2px solid var(--red);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-red:hover {
    background: var(--red);
    color: white;
    transform: translateY(-2px);
}
/* Bootstrap override -- keep .btn-gold alias for any inline refs */
.btn-gold { background: linear-gradient(135deg, var(--red) 0%, var(--red-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(--red-rgb) / 0.35); color: white; }
.btn-outline-gold { background: transparent; color: var(--red); font-weight: 600; padding: 0.625rem 1.75rem; border-radius: 0.5rem; border: 2px solid var(--red); transition: all 0.3s; }
.btn-outline-gold:hover { background: var(--red); color: white; transform: translateY(-2px); }
.btn-outline-light:hover { color: var(--text-primary); }
.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    border: 2px solid var(--navy);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-navy:hover {
    background: var(--navy);
    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(--red);
    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 pages) -- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #162050 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(--red-rgb) / 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .hero-eyebrow {
    display: inline-block;
    background: rgb(var(--red-rgb) / 0.15);
    color: #ff6666;
    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: white;
    font-weight: 800;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid var(--red);
}
.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 / Dark Section -- */
.facility-section {
    background: linear-gradient(135deg, #0a0f1e 0%, var(--navy) 50%, #1a2a7a 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(--red-rgb) / 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgb(var(--red-rgb) / 0.04) 0%, transparent 50%);
    pointer-events: none;
}
.facility-section .section-label  { color: #ff8888; }
.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(--red-rgb) / 0.4);
    transform: translateY(-4px);
}
.facility-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.facility-card h3,
.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(--red-rgb) / 0.2);
    color: #ff8888;
    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;
}

/* -- facility-card overrides for light/white background sections --
   Use on any <section class="light-cards-section"> that contains
   facility-card elements but does NOT have the dark navy facility-section
   background. Without these overrides the white card text is invisible. */
.light-cards-section .facility-card {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.light-cards-section .facility-card:hover {
    background: #f8fafc;
    border-color: rgb(var(--red-rgb) / 0.3);
}
.light-cards-section .facility-card h3,
.light-cards-section .facility-card h4 {
    color: var(--navy);
}
.light-cards-section .facility-card p {
    color: var(--text-secondary);
}
.light-cards-section .facility-card .card-tag {
    background: rgb(var(--red-rgb) / 0.08);
    color: var(--red);
}

/* -- 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(--red);
    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: white;
    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;
}

/* -- CTA Section -- */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #162050 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgb(var(--red-rgb) / 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 { color: white; }
.cta-section .cta-lead { max-width: 680px; opacity: 0.9; }
.cta-section--compact { padding: 3.5rem 0; }
.cta-section--compact .cta-desc { max-width: 580px; opacity: 0.85; margin: 0 auto; font-size: 0.95rem; }

/* -- Outcome 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(--red);
}
.outcome-card .outcome-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 1rem;
}
.outcome-card .outcome-metric { margin-bottom: 0.75rem; }
.outcome-card .outcome-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
}
.outcome-card .outcome-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.2rem;
}
.outcome-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* -- Contact / Form Card -- */
.contact-section {
    background: #f8f9fa;
}
.form-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 0.2rem rgb(29 47 111 / 0.15);
}
.form-card label { font-weight: 500; font-size: 0.875rem; margin-bottom: 0.3rem; }

/* -- Footer -- */
footer {
    background: var(--navy);
    color: rgb(255 255 255 / 0.75);
    padding: 2.5rem 0;
    font-size: 0.875rem;
}
footer a {
    color: rgb(255 255 255 / 0.75);
    text-decoration: none;
}
footer a:hover { color: white; }
footer .footer-brand {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .section-title { font-size: 2.25rem; }
    .page-hero h1  { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .page-hero h1  { font-size: 2rem; }
    .page-hero     { padding: 4rem 0 3rem; }
    section        { padding: 4rem 0; }
}
@media (max-width: 480px) {
    .section-title { font-size: 1.75rem; }
    .page-hero h1  { font-size: 1.75rem; }
}
/* -- Mobile nav: CTA buttons need vertical gap when navbar collapses (Bootstrap lg = 992px) -- */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item.ms-2,
    .navbar-nav .nav-item.ms-3 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    .navbar-nav .nav-item.ms-2 .btn,
    .navbar-nav .nav-item.ms-3 .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
