﻿:root { --primary:#F57F17 }

html,body {
    margin:0;
    height: 100%;
    background:#111;
    color:#fff;
    font-family:'Montserrat',sans-serif;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding-bottom: 120px; /* same or slightly more than footer height */
}



/* Make the page wrapper fill reaamaining height */
.teardowns-page {
    flex:1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Allow content to grow and push footer down */
.teardowns-page > *:not(footer) {
    flex-shrink: 0;
}

/* Push footer to bottom */
footer {
    margin-top: auto;
}


.hero {
    position:relative;
    height:100vh;
    background:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.marquee-background {
    position:absolute; inset:0;
}

.marquee-track {
    display:flex;
    width:200vw;
    height:100%;
    animation:scroll 60s linear infinite;
}

.marquee-track img {
    width:100vw;
    height:100%;
    object-fit:cover;
}

.marquee-overlay {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
}

.hero-content {
    position:relative;
    z-index:2;
    background:rgba(0,0,0,.85);
    padding:40px;
    max-width:720px;
    width:90%;
    text-align:center;
}

.hero-logo { margin:15px auto }

.address-input {
    width:100%;
    padding:16px;
    font-size:16px;
    margin:15px 0;
    border:2px solid var(--primary);
    background:#000;
    color:#fff;
}

.cta-button {
    width:100%;
    padding:16px;
    border:3px solid var(--primary);
    background:transparent;
    color:var(--primary);
    font-weight:700;
    cursor:pointer;
}

.cta-button.small { width:auto }

.content-section {
    padding:80px 40px;
    background:#1a1a1a;
    text-align:center;
}

.grid-container {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
    max-width:1100px;
    margin:auto;
}

.card {
    background:#222;
    padding:30px;
}

.card img { height:60px }

.yes { color:#ff6666; font-weight:700 }
.no { color:#33cc66; font-weight:700 }

.details-modal {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    display:flex;
    justify-content:center;
    align-items:center;
}

.details-box {
    background:#111;
    max-width:500px;
    padding:30px;
}

.map-frame iframe {
    width:100%;
    height:450px;
    border:3px solid var(--primary);
}

@keyframes scroll {
    from { transform:translateX(0) }
    to { transform:translateX(-100vw) }
}
/* ==============================
   AI FULL SCREEN OVERLAY
============================== */
.ai-overlay {
    position: fixed;
    inset: 0;
 
    background: rgba(0,0,0,0.85); 
    z-index: 99999;
    overflow-y: auto;
}

/* CLOSE BUTTON */
.overlay-close {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.8rem;
    color: #F57F17;
    text-decoration: none;
    z-index: 100000;
}

/* CONTENT */
.overlay-content {
    padding: 100px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

/* MAP */
.overlay-map {
    border: 3px solid #F57F17;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.overlay-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* AI TABLE */
.overlay-ai-table {
    width: 100%;
    border-collapse: collapse;
    background: #222;
    margin-bottom: 40px;
}

.overlay-ai-table td {
    padding: 18px;
    border: 1px solid #333;
    text-align: center;
}

.ai-name {
    color: #F57F17;
    font-weight: 600;
    text-align: left;
}

.ai-icon img {
    height: 32px;
}

.ai-verdict {
    color: #fff;
}

.ai-details a {
    color: #F57F17;
    font-weight: 600;
    text-decoration: none;
}

/* ACTIONS */
.overlay-actions {
    text-align: center;
}

.overlay-actions a {
    display: inline-block;
    margin: 10px;
    padding: 14px 36px;
    border: 3px solid #F57F17;
    color: #F57F17;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.overlay-actions a:hover {
    background: #F57F17;
    color: #000;
}

/* MOBILE */
@media (max-width: 768px) {
    .overlay-map iframe {
        height: 300px;
    }
}

.ai-row {
    display: grid;
    grid-template-columns: 120px 60px 100px 1fr;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #333;
}

.ai-icon {
    height: 32px;
}

.ai-details-link {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.ai-reason {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
}
.qa .answer {
    display: none;
    color: white; /* readable light gray on dark background */
}

.qa.active .answer {
    display: block;
}

.qa:hover .answer {
    display: block;
}
/* KEEP QUESTION ORANGE ON HOVER */
.qa .question {
    color: var(--primary);
}

.qa:hover .question,
.qa .question:hover {
    color: var(--primary) !important;
}
/* FORCE QUESTION COLOR (strong override) */
.content-section.founder .qa .question,
.content-section.founder .qa:hover .question,
.content-section.founder .qa .question:hover {
    color: var(--primary) !important;
}
/* HEADER LOGIN ABOVE SIDEBAR */
.login-links { position: relative; z-index: 1002; }

/* MENU WRAPPER */
.td-menu { position: fixed; top: 0; left: 0; height: 100%; z-index: 999; }

/* HAMBURGER */
.td-menu-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 35px;
    background: #000;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 1003;
}

.menu-bars { height: 3px; width: 22px; background: #fff; margin: 0 auto; }

/* SIDEBAR */
.td-menu-list {
    position: fixed;
    top: 0;
    left: -220px;
    width: 220px;
    height: 100%;
    background: #111;
    padding-top: 70px;
    list-style: none;
    transition: left 0.3s ease;
    z-index: 1001;
}

/* HOVER OPEN */
.td-menu:hover .td-menu-list { left: 0; }

/* LOCK OPEN */
.td-menu-list.open { left: 0; }

/* MENU ITEMS */
.td-menu-list li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
}

.td-menu-list li a:hover { background: #333; }

/* LOGIN BLOCK */
.menu-login { padding: 15px 20px; border-bottom: 1px solid #333; }

.menu-login a { display: block; margin-bottom: 8px; color: #fff; }

.menu-login select { width: 100%; margin-top: 10px; }

/* LEFT EDGE HOVER ZONE */
.td-menu::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
}
.left-links { display: flex; align-items: center; gap: 15px; }
.right-links { display: flex; gap: 20px; }

.sidebar-login {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.sidebar-login a {
    display: block;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}
/* =========================
   FIX: PRIMARY VARIABLE USAGE
   ========================= */
.ai-details-link,
.sidebar-login a {
    color: var(--primary) !important;
}

/* =========================
   FIX: FOOTER CONSISTENT BOTTOM
   (works with your existing flex + padding system)
   ========================= */

/* Ensure main content area grows correctly in ASP.NET pages */
#MainContent,
.MainContent,
.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Make teardowns-page fill available space */
.teardowns-page {
    flex: 1 0 auto;
}

/* Footer stays bottom */
footer {
    flex-shrink: 0;
}

/* Prevent hero from breaking footer flow */
.hero {
    flex-shrink: 0;
}

/* =========================
   FIX: LOGIN BLOCK POSITION
   ========================= */
.login-links {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Prevent login wrapping under menu */
nav .right-links {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

/* =========================
   ORANGE TEXT ON WHITE BACKGROUNDS
   ========================= */

/* Any white section → force orange text */
.bg-white,
.white-bg,
section[style*="background:#fff"],
section[style*="background: #fff"],
div[style*="background:#fff"],
div[style*="background: #fff"] {
    color: var(--primary) !important;
}

/* Links inside white areas */
.bg-white a,
.white-bg a,
section[style*="background:#fff"] a,
div[style*="background:#fff"] a {
    color: var(--primary) !important;
}

/* Headings inside white areas */
.bg-white h1,
.bg-white h2,
.bg-white h3,
.white-bg h1,
.white-bg h2,
.white-bg h3 {
    color: var(--primary) !important;
}
/* =========================
   FIX LOGIN PAGE FOOTER
   ========================= */

/* Make ASP.NET container grow to push footer */
#MainContent .container {
    flex: 1 0 auto;
}

/* Center login vertically but allow footer at bottom */
#MainContent {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px); /* adjust if navbar height differs */
}

/* Make row take remaining space */
#MainContent .row {
    flex: 1;
    display: flex;
    align-items: center; /* keeps login centered */
}

/* Ensure footer stays at bottom */
footer {
    flex-shrink: 0;
}
/* ORANGE TEXT ON LIGHT / WHITE BACKGROUNDS */
.panel,
.panel-body,
.well,
.card,
.box,
.signup-box,
.bg-light,
.bg-white,
.container[style*="background"],
div[style*="background:#fff"],
div[style*="background: #fff"] {
    color: var(--primary) !important;
}

/* Headings inside white blocks */
.panel h1, .panel h2, .panel h3,
.signup-box h1, .signup-box h2, .signup-box h3,
.card h1, .card h2, .card h3 {
    color: var(--primary) !important;
}

/* Links inside white blocks */
.panel a,
.signup-box a,
.card a {
    color: var(--primary) !important;
}
/* ===============================
   FORCE FULL HEIGHT FOR ASPX PAGES
   =============================== */

html, body, form {
    height: 100%;
}

/* ASP.NET form wrapper must be flex column */
form {
    display: flex;
    flex-direction: column;
}

/* MainContent must grow */
#MainContent {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Bootstrap container on login page fills height */
#MainContent > .container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* keeps login centered */
}

/* Prevent row collapsing */
#MainContent .row {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
}

/* Footer always pushed to bottom */
footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* =====================================
   LOGIN PAGE – EXACT STRUCTURE FIX
   ===================================== */

/* Make MainContent a flex column */
#MainContent {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px); /* navbar + footer height */
}

/* First container inside MainContent must grow */
#MainContent > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* center login box vertically */
    margin-bottom: 0 !important; /* remove bootstrap gap */
}

/* First row must grow */
#MainContent > .container > .row {
    flex: 1;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}

/* Column should not add bottom spacing */
#MainContent .col-sm-6,
#MainContent .col-md-6 {
    margin-bottom: 0 !important;
}

/* Remove extra spacing from signup box */
.signup-box {
    margin-bottom: 0 !important;
}

/* Footer always at bottom */
footer {
    margin-top: auto;
}


