/* ========================================
   TridentIQ Proposal — Boardwalk Migration
   Shared Stylesheet
   ======================================== */

:root {
    --navy: #1a2332;
    --deep-navy: #0f1419;
    --gold: #c9a961;
    --cream: #f5f3ef;
    --charcoal: #2d3748;
    --white: #ffffff;
    --light-gray: #e0e0db;
    --green: #2d8a4e;
    --red: #c0392b;
    --amber: #d4a017;
    --muted: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #b8943e; }

img { max-width: 100%; height: auto; }

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 35, 50, 0.97);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-title {
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.nav-logo-subtitle {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phase-select {
    padding: 0.4rem 0.8rem;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--cream);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23c9a961' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

.nav-phase-select option {
    background: var(--navy);
    color: var(--cream);
}

.nav-arrows {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--gold);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background: var(--gold);
    color: var(--navy);
}

.nav-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ========================================
   HERO / PAGE HEADER
   ======================================== */
.page-hero {
    margin-top: 64px;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(165deg, var(--deep-navy) 0%, var(--navy) 100%);
    color: white;
    text-align: center;
}

.page-hero .label {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.phase-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.phase-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.phase-meta-item strong {
    color: var(--gold);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-pending { background: rgba(201,169,97,0.15); color: var(--gold); border: 1px solid rgba(201,169,97,0.3); }
.status-progress { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.status-complete { background: rgba(45,138,78,0.15); color: #4ade80; border: 1px solid rgba(45,138,78,0.3); }

/* ========================================
   CONTENT AREA
   ======================================== */
.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.content h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.content h2:first-child { margin-top: 0; }

.content h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.content ul, .content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-phase {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.card p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-link:hover { gap: 0.5rem; }

/* ========================================
   TABLES
   ======================================== */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    background: var(--navy);
    color: var(--cream);
}

thead th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 500;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

tbody tr {
    border-bottom: 1px solid var(--light-gray);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:nth-child(even) { background: rgba(245, 243, 239, 0.5); }

tbody td {
    padding: 0.7rem 1rem;
    vertical-align: top;
}

.table-total td {
    font-weight: 600;
    background: rgba(201, 169, 97, 0.08);
    border-top: 2px solid var(--gold);
}

td.num, th.num { text-align: right; }

/* ========================================
   CALLOUTS
   ======================================== */
.callout {
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.callout-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.callout-info {
    background: rgba(59, 130, 246, 0.06);
    border-color: #3b82f6;
}
.callout-info .callout-title { color: #3b82f6; }

.callout-warning {
    background: rgba(212, 160, 23, 0.06);
    border-color: var(--amber);
}
.callout-warning .callout-title { color: var(--amber); }

.callout-risk {
    background: rgba(192, 57, 43, 0.06);
    border-color: var(--red);
}
.callout-risk .callout-title { color: var(--red); }

.callout-success {
    background: rgba(45, 138, 78, 0.06);
    border-color: var(--green);
}
.callout-success .callout-title { color: var(--green); }

/* ========================================
   CHECKLIST
   ======================================== */
.checklist {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.checklist li {
    position: relative;
    padding: 0.6rem 0 0.6rem 2rem;
    border-bottom: 1px solid rgba(224, 224, 219, 0.5);
    font-size: 0.9rem;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    background: var(--white);
}

/* ========================================
   BEFORE/AFTER DIAGRAM
   ======================================== */
.arch-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin: 2rem 0;
}

.arch-box {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
}

.arch-box.current { border-top: 3px solid var(--red); }
.arch-box.target { border-top: 3px solid var(--green); }

.arch-box h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.arch-box.current h3 { color: var(--red); }
.arch-box.target h3 { color: var(--green); }

.arch-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(224,224,219,0.4);
    font-size: 0.85rem;
}

.arch-item:last-child { border-bottom: none; }

.arch-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.icon-red { background: rgba(192,57,43,0.1); color: var(--red); }
.icon-green { background: rgba(45,138,78,0.1); color: var(--green); }
.icon-amber { background: rgba(212,160,23,0.1); color: var(--amber); }

.arch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    padding-top: 3rem;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    display: flex;
    gap: 0;
    margin: 2rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.timeline-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    position: relative;
}

.timeline-bar {
    height: 6px;
    background: var(--light-gray);
    position: relative;
    margin: 0.5rem 0;
}

.timeline-bar::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--navy);
    border: 3px solid var(--gold);
}

.timeline-week {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.timeline-label {
    font-size: 0.75rem;
    color: var(--charcoal);
    font-weight: 500;
}

/* ========================================
   COST HIGHLIGHT
   ======================================== */
.cost-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cost-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.cost-card .amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.2;
}

.cost-card .amount.savings { color: var(--green); }
.cost-card .amount.cost { color: var(--red); }

.cost-card .desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* ========================================
   EXTERNAL LINK STYLING
   ======================================== */
a.ext-link {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(201,169,97,0.4);
}

a.ext-link:hover {
    text-decoration-color: var(--gold);
}

a.ext-link::after {
    content: ' \2197';
    font-size: 0.75em;
}

/* ========================================
   PHASE NAV (PREV/NEXT)
   ======================================== */
.phase-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.phase-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.phase-nav-btn:hover {
    border-color: var(--gold);
    color: var(--navy);
}

.phase-nav-btn .arrow { color: var(--gold); font-weight: 600; }

.phase-nav-btn.hidden { visibility: hidden; }

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--deep-navy);
    color: rgba(255,255,255,0.5);
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(201,169,97,0.15);
}

footer .footer-logo {
    height: 30px;
    margin-bottom: 0.8rem;
    opacity: 0.6;
}

footer .confidential {
    color: var(--gold);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-container { padding: 0.6rem 1rem; }
    .nav-logo-title { font-size: 0.95rem; }
    .nav-logo-subtitle { display: none; }

    .page-hero { padding: 3rem 1.5rem 2rem; }
    .page-hero h1 { font-size: 1.8rem; }

    .content { padding: 2rem 1.5rem 3rem; }
    .content h2 { font-size: 1.4rem; }

    .arch-compare {
        grid-template-columns: 1fr;
    }
    .arch-arrow { transform: rotate(90deg); padding: 0; }

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

    .timeline { flex-wrap: wrap; }
    .timeline-item { min-width: 80px; }

    .phase-nav { flex-direction: column; gap: 1rem; }
    .phase-nav-btn.hidden { display: none; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.5rem; }
    .phase-meta { flex-direction: column; gap: 0.5rem; }
}
