/* =========================================================
   Crowdsourced Health
   Main stylesheet
   ========================================================= */


/* ---------- General ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #4b7c91;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}


/* ---------- Header ---------- */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-title {
    font-size: 25px;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
}

.site-title:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #4b7c91;
    text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 560px;

    background-image: url("../images/book.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.72);
}

.hero-inner {
    position: relative;
    z-index: 1;

    min-height: 560px;

    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 650px;
}

.hero h1 {
    margin: 0 0 20px;

    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    font-weight: 300;

    color: #333;
}

.tagline {
    max-width: 600px;
    margin: 0 0 25px;

    font-size: 25px;
    line-height: 1.35;
    font-weight: 300;

    color: #555;
}

.author {
    margin: 0;

    font-size: 18px;
    color: #666;
}



/* ---------- Sections ---------- */

.section {
    padding: 85px 0;
}

.section h2 {
    margin: 0 0 50px;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #444;
}


/* ---------- Book ---------- */

.book-section {
    background: #fff;
}

.book-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 70px;
    align-items: center;
}

.book-image img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.book-text {
    font-size: 18px;
}

.button {
    display: inline-block;
    padding: 13px 30px;
    background: #4b7c91;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.button:hover {
    background: #385f70;
    text-decoration: none;
}

.translations {
    margin-top: 30px;
    color: #666;
}


/* ---------- Press ---------- */

.press-section {
    background: #f4f4f2;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

blockquote {
    margin: 0;
    padding: 0;
}

blockquote p {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.65;
    font-style: italic;
    color: #555;
}

blockquote p::before {
    content: "“";
    font-size: 45px;
    line-height: 0;
    vertical-align: -15px;
    margin-right: 5px;
    color: #999;
}

blockquote cite {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
}


/* ---------- Bio ---------- */

.bio-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 70px;
    align-items: start;
}

.bio-image img {
    width: 100%;
}

.bio-text {
    font-size: 17px;
}

.bio-text p {
    margin: 0 0 22px;
}

.contact-details {
    margin-top: 30px !important;
}


/* ---------- Contact ---------- */

.contact-section {
    background: #f4f4f2;
}

.contact-section p {
    font-size: 18px;
}

.follow {
    margin-top: 40px;
}


/* ---------- Next Chapters ---------- */

.next-section {
    background: #fff;
}

.next-section > .container > p {
    max-width: 800px;
    font-size: 18px;
}

.chapter-list {
    margin-top: 35px;
}

.chapter-list p {
    margin: 0 0 20px;
    font-size: 18px;
}

.chapter-list a {
    color: #4b7c91;
}


/* ---------- Footer ---------- */

.site-footer {
    padding: 45px 0;
    background: #333;
    color: #ddd;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #ddd;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    color: #aaa;
}


/* ---------- Tablet ---------- */

@media (max-width: 850px) {

    .header-inner {
        flex-direction: column;
        padding: 20px 0;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-height: 350px;
    }

    .quotes {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bio-image img {
        max-width: 350px;
        margin: 0 auto;
    }
}


/* ---------- Phone ---------- */

@media (max-width: 600px) {

    .container {
        width: min(100% - 30px, 1100px);
    }

    .site-title {
        font-size: 22px;
    }

    .main-nav {
        gap: 8px 14px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 43px;
    }

    .tagline {
        font-size: 21px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        margin-bottom: 35px;
        font-size: 27px;
    }

    .book-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .book-image img {
        max-height: 350px;
    }

    blockquote p {
        font-size: 17px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px 25px;
    }
}

/* ---------- Translated book covers ---------- */

.translated-books {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.translated-book {
    width: 105px;
    text-align: center;
}

.translated-book img {
    width: 105px;
    height: 145px;
    object-fit: cover;
    border: 1px solid #ddd;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    background: #eee;
}

.translated-book span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #777;
}
