
/* =====================================================
   THE MILLIONAIRE CODE
   Bruce Goldwell | mykindlebooks.net
   Main Website Stylesheet
   ===================================================== */

:root {
    --navy: #081c38;
    --navy-light: #12345c;
    --navy-soft: #1b426d;
    --gold: #d9a63b;
    --gold-light: #f5d783;
    --gold-dark: #9c701e;
    --white: #ffffff;
    --cream: #fffaf0;
    --background: #f3f6fa;
    --text: #26354a;
    --muted: #617084;
    --border: #dce3ed;
    --success: #197b58;
    --danger: #b44444;
    --shadow: 0 8px 26px rgba(8,28,56,.09);
    --radius: 14px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

a {
    color: #165c9b;
    text-decoration: none;
}

a:hover {
    color: var(--gold-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.3;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1.2rem;
}

.container {
    width: min(92%, var(--max-width));
    margin: auto;
}

section {
    padding: 55px 0;
}

/* HEADER */

.site-header {
    background: var(--navy);
    color: var(--white);
    border-bottom: 3px solid var(--gold);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.site-logo {
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: bold;
    letter-spacing: .5px;
}

.site-logo:hover {
    color: var(--white);
}

.site-tagline {
    color: #c5d3e3;
    font-size: .85rem;
}

/* NAVIGATION */

.main-nav {
    background: var(--navy-light);
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.main-nav a {
    color: var(--white);
    padding: 13px 15px;
    display: inline-block;
    font-size: .94rem;
    font-weight: bold;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--gold);
    color: var(--navy);
}

/* FEATURED OPPORTUNITY CONNECTOR BANNER */

.opportunity-banner {
    background: linear-gradient(
        110deg,
        #081c38 0%,
        #143963 100%
    );
    border-bottom: 3px solid #d9a63b;
    padding: 24px 0;
}

.opportunity-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.opportunity-banner-text {
    flex: 1;
}

.opportunity-eyebrow {
    display: block;
    color: #f0c66a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.opportunity-banner h2 {
    color: #ffffff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 8px;
}

.opportunity-banner p {
    color: #e5ecf6;
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
}

.opportunity-banner-button {
    display: inline-block;
    background: #d9a63b;
    color: #081c38;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.opportunity-banner-button:hover,
.opportunity-banner-button:focus-visible {
    background: #f0c66a;
    color: #081c38;
}

@media (max-width: 700px) {
    .opportunity-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .opportunity-banner-button {
        white-space: normal;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}


/* HERO */

.hero {
    background: linear-gradient(
        135deg,
        var(--navy) 0%,
        var(--navy-light) 65%,
        #28527b 100%
    );
    color: var(--white);
    padding: 70px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    color: var(--gold-light);
    margin-bottom: 18px;
}

.hero h2 {
    color: var(--white);
    font-size: 1.45rem;
    font-weight: normal;
}

.hero p {
    color: #e0e8f2;
    font-size: 1.1rem;
}

.book-cover {
    width: 100%;
    max-width: 330px;
    display: block;
    margin: auto;
    border-radius: 5px;
    box-shadow: 0 18px 45px rgba(0,0,0,.4);
}

/* BUTTONS */

.btn,
button.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 13px 25px;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-weight: bold;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.btn:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--navy-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--navy-soft);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-light);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

/* SECTION HEADINGS */

.section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 35px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--muted);
}

.gold-rule {
    width: 85px;
    height: 4px;
    background: var(--gold);
    border: 0;
    margin: 18px auto 25px;
}

/* CARD GRID */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(8,28,56,.14);
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
}

.card-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3d5;
    border-radius: 12px;
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.card a.card-link {
    font-weight: bold;
    color: var(--gold-dark);
}

/* CONTENT PAGES */

.page-header {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
}

.page-header h1 {
    color: var(--gold-light);
}

.page-header p {
    color: #d7e2ef;
    max-width: 760px;
    margin: auto;
}

.content-layout {
    max-width: 900px;
    margin: auto;
}

.content-panel {
    background: var(--white);
    padding: 38px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.content-panel h2 {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

/* TOOL / CALCULATOR PANELS */

.tool-container {
    max-width: 900px;
    margin: 35px auto;
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tool-intro {
    background: #edf4fb;
    border-left: 4px solid var(--gold);
    padding: 20px;
    margin-bottom: 28px;
    border-radius: 5px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
    color: var(--navy);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b9c7d6;
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
    border-color: var(--gold-dark);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

small,
.help-text {
    color: var(--muted);
    font-size: .85rem;
}

/* CALCULATOR RESULTS */

.result-box {
    background: var(--navy);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
}

.result-box h2,
.result-box h3 {
    color: var(--gold-light);
}

.result-number {
    font-size: clamp(2rem,5vw,3rem);
    color: var(--gold-light);
    font-weight: bold;
    line-height: 1.3;
}

.result-label {
    color: #d7e2ef;
}

.result-positive {
    color: #a5f0ce;
}

.result-negative {
    color: #ffb4b4;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
    margin-top: 25px;
}

/* PROGRESS TRACKING */

.progress-wrapper {
    background: #e0e7ef;
    border-radius: 20px;
    height: 18px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    background: linear-gradient(
        90deg,
        var(--gold-dark),
        var(--gold-light)
    );
    height: 100%;
    width: 0;
    transition: width .3s;
}

.progress-label {
    font-weight: bold;
    color: var(--navy);
}

.challenge-day {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.challenge-day input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 5px;
    accent-color: var(--gold-dark);
}

.challenge-day label {
    margin: 0;
    cursor: pointer;
}

/* MILESTONE / ROADMAP */

.milestone-card {
    background: var(--cream);
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 18px;
}

.timeline {
    border-left: 3px solid var(--gold);
    padding-left: 25px;
    margin-left: 12px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--white);
}

/* TABLES */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--navy-light);
    color: var(--white);
}

tr:nth-child(even) {
    background: #f5f8fc;
}

/* HIGHLIGHTS */

.highlight-box {
    background: #fff8e7;
    border-left: 5px solid var(--gold);
    padding: 24px;
    border-radius: 8px;
    margin: 25px 0;
}

.quote-box {
    text-align: center;
    background: var(--navy-light);
    color: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.quote-box strong {
    color: var(--gold-light);
}

.disclaimer {
    background: #f1f4f8;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    font-size: .9rem;
    color: var(--muted);
    margin: 30px 0;
}

/* CALL TO ACTION */

.cta-section {
    background: linear-gradient(
        135deg,
        var(--navy),
        var(--navy-soft)
    );
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--gold-light);
}

.cta-section p {
    max-width: 720px;
    margin: 0 auto 25px;
}

/* FOOTER */

.site-footer {
    background: #061529;
    color: #b9c9dc;
    padding: 45px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

.site-footer h3 {
    color: var(--gold-light);
}

.site-footer a {
    color: #dce6f3;
}

.site-footer a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid #29415d;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: .88rem;
}

/* UTILITIES */

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold-dark);
}

.bg-white {
    background: var(--white);
}

.bg-cream {
    background: var(--cream);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* TABLETS */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }

    .card-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* MOBILE */

@media (max-width: 650px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 35px 0;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .nav-inner {
        justify-content: center;
    }

    .main-nav a {
        padding: 10px;
        font-size: .85rem;
    }

    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .book-cover {
        max-width: 230px;
    }

    .card-grid,
    .form-grid,
    .result-details,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-panel,
    .tool-container {
        padding: 22px;
    }

    .button-group {
        justify-content: center;
    }

    .btn {
        text-align: center;
    }
}

/* ACCESSIBILITY */

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}



