
/* =========================================
   I LOST MY EBT — NOW WHAT?
   Bruce Goldwell | MyKindleBooks.net
   ========================================= */

:root {
    --primary: #124e52;
    --primary-dark: #092f35;
    --primary-light: #e8f4f2;
    --gold: #f4bd45;
    --gold-dark: #d99b20;
    --cream: #fffaf0;
    --white: #ffffff;
    --text: #263238;
    --muted: #5e6b70;
    --border: #dce5e4;
    --shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background: var(--cream);
}

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

a {
    color: var(--primary);
    transition: color 0.25s ease;
}

a:hover {
    color: var(--gold-dark);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold-dark);
    outline-offset: 4px;
}

.container {
    width: 92%;
    max-width: 1150px;
    margin: 0 auto;
}

/* HEADER */

header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary),
        #227b7b
    );
    color: var(--white);
    text-align: center;
    padding: 55px 20px;
    border-bottom: 5px solid var(--gold);
}

header h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.2;
    margin: 0 0 15px;
    letter-spacing: 1px;
    animation: fadeUp 0.8s ease both;
}

header p {
    max-width: 850px;
    margin: auto;
    font-size: 1.2rem;
    color: #f8e6b5;
    animation: fadeUp 1s ease both;
}

/* NAVIGATION */

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 12px 15px;
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

nav a {
    display: inline-block;
    color: var(--white);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.25s, color 0.25s;
}

nav a:hover,
nav a.active,
nav a[aria-current="page"] {
    background: var(--gold);
    color: var(--primary-dark);
}

/* TYPOGRAPHY */

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--primary-dark);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 22px;
}

h3 {
    font-size: 1.25rem;
    margin: 20px 0 12px;
}

p {
    margin: 0 0 18px;
}

strong {
    font-weight: 700;
}

ul, ol {
    padding-left: 28px;
}

li {
    margin-bottom: 9px;
}

/* MAIN CONTENT */

main {
    padding-top: 30px;
    padding-bottom: 40px;
}

main section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

main section:last-child {
    margin-bottom: 0;
}

/* EMERGENCY RESOURCE BANNER */

.emergency-banner {
    text-align: center;
    background: var(--primary-light);
    border: 2px solid #80b8b1;
    border-left: 7px solid var(--primary);
}

.emergency-banner h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.emergency-banner p {
    max-width: 850px;
    margin: 0 auto 18px;
}

/* HERO SECTION */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    align-items: center;
    gap: 30px;
}

.book-image {
    text-align: center;
    animation: fadeUp 0.9s ease both;
}

.book-image img {
    display: block;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.book-image img:hover {
    transform: translateY(-6px) scale(1.025);
}

.hero-content {
    min-width: 0;
    padding-right: 30px;
    animation: fadeUp 1.1s ease both;
}

.hero-content h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    color: var(--primary);
    line-height: 1.25;
}

.hero-content p {
    font-size: 1.02rem;
}

/* PRICE DISPLAY */

.price {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 2px solid #9bc8c2;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 10px 0 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.small-text {
    font-size: 0.88rem !important;
    color: var(--muted);
    margin-top: 12px;
}

/* BUTTONS */

.button,
button.button {
    display: inline-block;
    padding: 13px 24px;
    margin: 7px 5px 7px 0;
    background: var(--primary);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover,
button.button:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.button.secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.button.secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* AMAZON PURCHASE BUTTON */

.amazon-button {
    background: var(--gold);
    color: var(--primary-dark);
    border: 2px solid var(--gold-dark);
    font-size: 1.05rem;
}

.amazon-button:hover {
    background: #ffcf65;
    color: var(--primary-dark);
}

/* FEATURE CARDS */

.feature-grid,
.resource-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-card,
.resource-card,
.card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 9px;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover,
.resource-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card h3,
.resource-card h3,
.card h3 {
    margin-top: 0;
    color: var(--primary);
}

.feature-card p,
.resource-card p,
.card p {
    margin-bottom: 0;
}

/* GIFT A COPY SECTION */

.gift-section {
    background: linear-gradient(
        135deg,
        #fff9e8,
        #fff0c5
    );
    border: 2px solid #e8c66d;
    text-align: center;
}

.gift-section p {
    max-width: 900px;
    margin: 0 auto 18px;
}

.gift-section h2 {
    color: var(--primary-dark);
}

/* GIFT IMPACT CARDS */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px auto;
    max-width: 850px;
}

.impact-card {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 10px;
    border: 1px solid #e8c66d;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-4px);
}

.impact-card strong {
    display: block;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.impact-card span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
}

/* FREE RESOURCES SECTION */

.resource-section {
    background: var(--primary-light);
    text-align: center;
    border: 2px solid #9bc8c2;
}

.resource-section p {
    max-width: 850px;
    margin: 0 auto 18px;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    overflow-wrap: anywhere;
}

.resource-list a {
    font-weight: bold;
}

/* AUTHOR SECTION */

.author-section {
    border-left: 6px solid var(--primary);
}

.author-image {
    max-width: 240px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 auto 25px;
    display: block;
}

/* QUOTATIONS */

blockquote {
    margin: 25px 0;
    padding: 25px 30px;
    background: var(--primary-light);
    border-left: 5px solid var(--gold-dark);
    border-radius: 0 8px 8px 0;
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    font-style: normal;
}

/* SHARING SECTION */

.share-section {
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );
    color: var(--white);
}

.share-section h2,
.share-section h3 {
    color: var(--gold);
}

.share-section p {
    max-width: 850px;
    margin: 0 auto 20px;
}

.share-section .button {
    background: var(--gold);
    color: var(--primary-dark);
}

.share-section .button:hover {
    background: #ffcf65;
}

#share-message {
    font-size: 0.9rem;
    color: #f8e6b5;
    margin-top: 12px;
    overflow-wrap: anywhere;
}

/* GENERAL CALLOUT BOXES */

.callout,
.highlight-box,
.info-box {
    background: var(--primary-light);
    border-left: 5px solid var(--primary);
    border-radius: 6px;
    padding: 22px;
    margin: 25px 0;
}

.warning-box {
    background: #fff4d9;
    border-left: 5px solid var(--gold-dark);
    padding: 22px;
    margin: 25px 0;
    border-radius: 6px;
}

.callout p:last-child,
.highlight-box p:last-child,
.info-box p:last-child,
.warning-box p:last-child {
    margin-bottom: 0;
}

/* CHECKLISTS */

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding: 10px 10px 10px 35px;
    border-bottom: 1px solid var(--border);
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 8px;
    top: 10px;
    color: var(--primary);
    font-weight: bold;
}

/* TABLES */

.table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    font-size: 0.95rem;
}

th {
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    text-align: left;
}

td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    overflow-wrap: anywhere;
}

tr:nth-child(even) td {
    background: var(--primary-light);
}

tr:hover td {
    background: #f0f7f6;
}

/* PDF VIEWER */

.pdf-viewer {
    width: 100%;
    height: 800px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 20px 0;
}

/* FOOTER */

footer {
    background: var(--primary-dark);
    color: #dce8e8;
    text-align: center;
    padding: 35px 20px;
    border-top: 5px solid var(--gold);
}

footer p {
    margin: 0 auto 12px;
    max-width: 950px;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

footer .disclaimer {
    font-size: 0.8rem;
    color: #c0d0d0;
    line-height: 1.6;
    max-width: 850px;
    margin: 20px auto 0;
}

/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(244, 189, 69, 0);
    }

    50% {
        box-shadow: 0 0 18px rgba(244, 189, 69, 0.5);
    }
}

.gift-section .amazon-button {
    animation: gentleGlow 3s ease-in-out 3;
}

/* TABLET LAYOUT */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: minmax(0, 40%) minmax(0, 60%);
        gap: 20px;
    }

    .hero-content {
        padding-right: 20px;
    }

    .feature-grid,
    .resource-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main section {
        padding: 28px;
    }
}

/* MOBILE LAYOUT */

@media (max-width: 650px) {

    body {
        font-size: 16px;
    }

    .container {
        width: 94%;
    }

    header {
        padding: 35px 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    nav {
        gap: 2px;
        padding: 8px;
    }

    nav a {
        padding: 9px 10px;
        font-size: 0.85rem;
    }

    main {
        padding-top: 18px;
    }

    main section {
        padding: 22px 18px;
        margin-bottom: 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .book-image img {
        max-width: 350px;
    }

    .feature-grid,
    .resource-grid,
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .impact-card {
        padding: 18px;
    }

    .button,
    button.button {
        display: block;
        width: 100%;
        margin: 12px 0;
        padding: 14px 12px;
    }

    .price {
        font-size: 1.3rem;
    }

    blockquote {
        padding: 18px;
        font-size: 1.05rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 9px;
    }

    .pdf-viewer {
        height: 500px;
    }

    footer {
        padding: 25px 15px;
    }
}

/* ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* PRINT-FRIENDLY PAGES */

@media print {

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    nav,
    footer,
    .button,
    .share-section,
    .book-image {
        display: none !important;
    }

    header {
        background: white;
        color: black;
        border-bottom: 2px solid black;
        padding: 15px;
    }

    header h1,
    header p,
    h1, h2, h3 {
        color: black;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    main section {
        background: white;
        border: none;
        box-shadow: none;
        padding: 10px 0;
    }

    .hero,
    .feature-grid,
    .resource-grid,
    .card-grid,
    .impact-grid {
        display: block;
    }

    .feature-card,
    .resource-card,
    .impact-card {
        break-inside: avoid;
        box-shadow: none;
    }

    a {
        color: black;
    }
}
