/* =========================================================
   THE SMART SENIOR'S GUIDE TO AI
   Website Styles
   mykindlebooks.net/books/smart-senior-guide-to-ai/
   ========================================================= */


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #243247;
    background: #f7f9fc;
}


/* ---------- LINKS ---------- */

a {
    color: #1769aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ---------- HEADER ---------- */

.site-header {
    background: #0c3763;
    color: #ffffff;
    padding: 18px 20px;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-name {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: bold;
}

.site-name:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.main-nav a {
    color: #ffffff;
    font-size: 0.95rem;
}

.main-nav a:hover {
    text-decoration: underline;
}


/* ---------- GENERAL PAGE LAYOUT ---------- */

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

main {
    min-height: 60vh;
}

.content-section {
    padding: 55px 0;
}

.content-section.white {
    background: #ffffff;
}

.content-section.light {
    background: #eef4fa;
}

.content-narrow {
    max-width: 820px;
    margin: 0 auto;
}


/* ---------- HEADINGS ---------- */

h1,
h2,
h3 {
    color: #123b63;
    line-height: 1.25;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.85rem;
    margin-top: 35px;
    margin-bottom: 18px;
}

h3 {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 20px;
}

strong {
    color: #173f67;
}


/* ---------- HERO ---------- */

.hero {
    background: linear-gradient(135deg, #eaf5ff, #ffffff);
    padding: 60px 20px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 55px;
    align-items: center;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-content h1 {
    font-size: 2.7rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #506070;
    margin-bottom: 25px;
}

.hero-message {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0c3763;
}


/* ---------- BUTTONS ---------- */

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    margin-bottom: 20px;
}

.book-button,
.primary-button,
.secondary-button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: transform 0.15s ease,
                box-shadow 0.15s ease;
}

.book-button:hover,
.primary-button:hover,
.secondary-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.primary-button,
.buy-pdf {
    background: #1769aa;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(23, 105, 170, 0.25);
}

.primary-button:hover,
.buy-pdf:hover {
    background: #0f578f;
}

.secondary-button,
.buy-paperback,
.buy-kindle,
.buy-hardcover {
    background: #e4a72d;
    color: #172433;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.secondary-button:hover,
.buy-paperback:hover,
.buy-kindle:hover,
.buy-hardcover:hover {
    background: #d6971d;
}


/* ---------- INTRO / FEATURE BOX ---------- */

.intro-box {
    background: #ffffff;
    border-left: 6px solid #e4a72d;
    padding: 28px;
    margin: 30px 0;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.intro-box p:last-child {
    margin-bottom: 0;
}


/* ---------- CARDS ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.card {
    background: #ffffff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.card p:last-child {
    margin-bottom: 0;
}


/* ---------- LISTS ---------- */

ul,
ol {
    margin: 15px 0 25px 28px;
}

li {
    margin-bottom: 10px;
}


/* ---------- QUOTE / IMPORTANT MESSAGE ---------- */

.highlight {
    background: #fff8e7;
    border-left: 6px solid #e4a72d;
    padding: 25px 28px;
    margin: 30px 0;
    border-radius: 6px;
    font-size: 1.12rem;
}

.big-message {
    max-width: 850px;
    margin: 35px auto;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #123b63;
}


/* ---------- PROMPT BOXES ---------- */

.prompt-box {
    background: #f0f7ff;
    border: 1px solid #c7dff3;
    border-radius: 8px;
    padding: 22px 25px;
    margin: 22px 0;
}

.prompt-box strong {
    display: block;
    margin-bottom: 7px;
}

.prompt {
    font-style: italic;
    color: #263b50;
}


/* ---------- BOOK PROMOTION BOX ---------- */

.book-box {
    background: #0c3763;
    color: #ffffff;
    padding: 35px;
    margin: 45px 0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
}

.book-box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.book-box h2 {
    color: #ffffff;
    margin-top: 0;
}

.book-box p {
    color: #eef5fb;
}

.book-box strong {
    color: #ffffff;
}


/* ---------- ARTICLE PAGES ---------- */

.page-hero {
    background: #eaf4fc;
    padding: 50px 20px;
    text-align: center;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 auto 15px;
}

.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #526477;
}

.article-content {
    background: #ffffff;
    padding: 50px 20px;
}

.article-inner {
    max-width: 820px;
    margin: 0 auto;
}


/* ---------- CALL TO ACTION ---------- */

.cta {
    background: #eaf4fc;
    text-align: center;
    padding: 50px 25px;
}

.cta h2 {
    margin-top: 0;
}

.cta p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}


/* ---------- FOOTER ---------- */

.site-footer {
    background: #172433;
    color: #dce5ed;
    padding: 35px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 8px;
}

.site-footer a {
    color: #ffffff;
}


/* ---------- ACCESSIBILITY ---------- */

a:focus,
button:focus {
    outline: 3px solid #e4a72d;
    outline-offset: 3px;
}


/* ---------- TABLETS ---------- */

@media (max-width: 850px) {

    .hero-inner {
        grid-template-columns: 280px 1fr;
        gap: 35px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 650px) {

    body {
        font-size: 17px;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
    }

    .hero {
        padding: 35px 18px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .hero-image img {
        max-width: 300px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .book-button,
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .book-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-box img {
        margin: 0 auto;
    }

    .content-section {
        padding: 40px 0;
    }
}


/* ---------- SMALL PHONES ---------- */

@media (max-width: 400px) {

    body {
        font-size: 16px;
    }

    .hero-content h1,
    h1 {
        font-size: 1.75rem;
    }

    .hero-image img {
        max-width: 250px;
    }

    .intro-box,
    .highlight,
    .prompt-box {
        padding: 20px;
    }
}