/* ============== GLOBAL RESET ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: black; /* All fonts default to black */
}


/* ============== HEADER ============== */
.header {
    height: 100px;
    padding: 0 32px;
    background: #f7f7f7;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
}

.header-side.left-side {
    flex: 0 0 auto;
}

.header-side.left-side::after {
    display: none;
}

/* Right-side contact button */
.header-side.right-side {
    flex: 0 0 auto;
}

.header-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-side img {
    max-height: 60%;
    height: 65px;       /* 50% of header height */
    width: auto;       /* auto-scale width */
    object-fit: contain;
}

.logo-box {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* truly center */
    display: flex;
    gap: 32px;
}

.header-center a,
.header-side a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: opacity .3s ease;
}
.underlinedout::after {
    display: none;
}


/* CONTACT BUTTON */
.contact-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;       /* dynamic width */
    height: 50px;
    border-radius: 25px;   /* pill shape instead of circle for text */
    background: #0e7afe;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;   /* prevents text wrapping */
    transition: all 0.3s ease;
    border: 1px solid grey;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover {
    background: #5e95fa;
    color: white;
    border: 1px solid grey;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}


/* ============== HERO MAIN BANNER ============== */
/* HERO CONTAINER */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: center;
}

/* IMAGE WRAPPER */
.hero-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-card {
    width: 70vw;
    height: 6vh;
    max-width: 350px; /* prevents it from being massive on tablets */
    min-height: 45px;
    font-size: 1.1rem;
}

/* FULL IMAGE, NO CROPPING */
.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Shared hero-content styles */
.hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1300px;

    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

/* Top text stays where it was */
.hero-content.top {
    top: 5%;
}

/* Bottom button sits near bottom of the banner */
.hero-content.bottom {
    bottom: 6%; /* adjust to move higher/lower */
}

/* Button looks correct */
.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 0 28px;
    height: 50px;
    border-radius: 25px;

    background: #0e7afe;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;

    border: 1px solid grey;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: #5e95fa;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.primary-btn::after {
    display: none !important;
}

/* TEXT STYLE */
.hero-content h1 {
    font-size: clamp(32px, 6vw, 70px);
    font-weight: 800;
    color: black;  /* per your request: all text black */
}


/* ============== DETAILS SECTION ============== */

.section-title {
    width: 100%;
    text-align: center;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    padding-top: 6vh;
    padding-bottom: 6vh; /* pulls section closer to cards */
    background: white;
}

.greyed-out {
    background: #f7f7f7;
}

.primary-btn::after,
.contact-btn::after {
    display: none !important;
}

/* UNIVERSAL PRIMARY BUTTON */
.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 0 28px;
    height: 50px;
    border-radius: 25px;

    background: #0e7afe;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;

    border: 1px solid grey;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    transition: all 0.3s ease;
    margin-top: 22px;
}

.primary-btn:hover {
    background: #5e95fa;
    color: white;
    border: 1px solid grey;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* BOTTOM CTA WRAPPER */
.bottom-cta {
    width: 100%;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    background: white;
}

.details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px; /* adjust spacing to your liking */
    padding-top: 1vh;
    padding-bottom: 8vh;
    padding-left: 2vw;
    padding-right: 2vw;
    justify-items: center; /* center cards in their cells */
}

.detail-card {
    background: white;
    padding: 20px;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.detail-card h3 {
    font-weight: 700;
}

.detail-card p {
    font-size: 15px;
}


/* COVER GALLERY */
.cover-gallery {
    background: white;
    display: grid;
    padding-left: 2vw;
    padding-right: 2vw;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center; /* centers items in their grid cell */
}

.cover-card {
    width: 100%;              /* fills grid cell */
    max-width: 425px;         /* max size per image */
    border-radius: 20px;
    margin-bottom: 10vh;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.cover-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.cover-card img:hover {
    transform: scale(1.05);
}

@media (max-width: 800px) {
    .cover-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .cover-gallery {
        grid-template-columns: 1fr;
    }
}

/* ============== FACT BANNER ============== */
.fact-banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 350px;
}

.fact-bg {
    width: 100%;
    height: 100%;
    background-image: url("/static/images/secondary-banner.jpg");
    background-size: cover;
    background-position: center;

    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Fact banner content */
.fact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding: 60px 20px;
}

.wheel-center {
    font-size: 28px;
    font-weight: 700;

    /* This text sits on white overlay, so black is fine */
}

.fact {
    width: 90%;
    max-width: 800px;
    height: 80px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 10px;
}



/* ============== FOOTER ============== */
.footer {
    width: 100%;
    background: #f7f7f7;
    padding: 50px 40px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    text-decoration: none;
}



/* ============== LINK HOVER ANIMATION ============== */
a {
    text-decoration: none;
    position: relative;
    display: inline-block;
    width: max-content;
    padding-bottom: 3px;
    transition: opacity 0.25s ease;
    color: black;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: black;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}


/* ============== MOBILE RESPONSIVE ============== */
@media (max-width: 800px) {

    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header-center {
        gap: 20px;
    }

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

    .fact {
        height: 60px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ========================================= */
/*  RESPONSIVE FIXES — FULL MOBILE + TABLET  */
/* ========================================= */

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {

    /* Header */
    .header {
        padding: 0 20px;
    }

    .header-center {
        gap: 24px;
        font-size: 1rem;
    }

    /* Hero */
    .hero-content h1 {
        font-size: clamp(28px, 5vw, 48px);
        margin-top: 20px;
    }

    /* Details */
    .details {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Covers */
    .cover-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ---------- MOBILE (max-width: 650px) ---------- */
@media (max-width: 650px) {
    .section-title {
        padding-top: 3vh;
        padding-bottom: 3vh;
    }
    .book-card  {
        padding: 0;
    }

    .hero {
        position: relative;
        width: 100%;
    }

    .hero-img-wrapper {
        width: 100%;
        position: relative; /* allows absolute positioning inside */
    }

    .hero-img {
        width: 100%;
        height: auto;       /* natural aspect ratio, prevents stretching */
        display: block;
    }

    /* Heading near top */
    .hero-content.top {
        position: absolute; /* absolute positioning relative to image wrapper */
        top: 10%;           /* 10% from top of image */
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 90%;
        z-index: 2;
    }

    /* Button near bottom */
    .hero-content.bottom {
        position: absolute;
        bottom: 10%;        /* 10% from bottom of image */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        display: flex;
        justify-content: center;
        z-index: 2;
    }

    /* Adjust button size for mobile */
    .primary-btn.book-card {
        width: 70vw;
        height: 3vh;
        position: absolute;
        bottom: -25%;
    }

    /* Heading size for mobile */
    .hero-content h1 {
        font-size: clamp(24px, 6vw, 36px);
    }

     MAKE SURE THE HERO SECTION CAN OVERLAY ELEMENTS
    .hero-img-wrapper,
    .hero-img {
        position: relative;
        z-index: 1;
    }
    .hero {
        padding-top: 42px;  /* adjust depending on header height */
        border-bottom: 5vh solid white;
    }
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 20px 12px;
        width: 100%;
    }

    /* ===== ROW 1 — LOGO CENTERED ===== */
    .header-side.left-side {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-side.left-side img {
        height: 55px;
    }

    /* ===== ROW 2 — LINKS LEFT + CONTACT BUTTON RIGHT ===== */
    .header-row {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: space-between; /* left vs right */
        align-items: center;
        padding: 0 5px;
    }

    /* Links (left) */
    .header-center {
        display: flex;
        gap: 18px;
        justify-content: flex-start;
        position: static;
        transform: none;
    }



    /* Contact button (right) */
    .header-side.right-side {
        display: flex;
        justify-content: flex-end;
    }

    .header-side.right-side .contact-btn {
        height: 42px;
        padding: 0 18px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Hero */
    .hero-content {
        top: 8%;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    /* Details → 1 column */
    .details {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 26px; /* previously 14px */
        padding-bottom: 10vh;
    }

    .detail-card {
        width: 100%;
    }

    /* Covers → 1 column */
    .cover-gallery {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cover-card {
        max-width: 100%;
        margin-bottom: 40px;
    }

    /* Fact banner */
    .fact-banner {
        min-height: 250px;
    }

    .fact {
        height: 60px;
        max-width: 90%;
    }

    /* Footer */
    .footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
        gap: 20px 15px; /* row gap | column gap */
    }

    .footer-col {
        margin: 0;
        padding: 0;
        gap: 6px;
    }

    .footer h4 {
        font-size: 1rem;
    }

    .footer p,
    .footer a {
        font-size: 0.9rem;
    }
}