/* ================================================
   Mark Laming - Custom Stylesheet
   Breakpoints: base (mobile) → 768px → 992px → 1200px
   ================================================ */


/* ------------------------------------------------
   Base / Global
   ------------------------------------------------ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding-top: 70px;
}

h2 {
    color: #1B3A5C;
}

h5 {
    font-size: 0.9rem;
}

img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.text-large {
    font-size: 2.5rem;
}

[id] {
    scroll-margin-top: 100px;
}

/* ------------------------------------------------
   Background Colours
   ------------------------------------------------ */

.bg-beige {
    background-color: #F5F0E8;
}

.bg-white {
    background-color: #ffffff !important;
}


/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */


.btn-primary {
    background-color: #1B3A5C;
    border-color: #1B3A5C;
    color: white;
}

.btn-primary:hover {
    background-color: #142C47;
    border-color: #142C47;
    color: white;
}

/* ------------------------------------------------
   Navbar
   ------------------------------------------------ */

.navbar .container {
    background-color: #1B3A5C;
    border-radius: 12px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 6px;
    margin-bottom: 6px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav a svg {
    color: rgba(255,255,255,0.85);
}

.navbar-nav a:hover svg {
    color: white;
}

.navbar-nav .nav-item:has(svg) {
    display: flex;
    align-items: center;
}


/* ------------------------------------------------
   Hero Section
   ------------------------------------------------ */

#hero {

    padding: 70px 0;
}

.hero-section {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-text {
    flex: 1;
}

.hero-tag {
    font-size: 1.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4A96A;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 400;
    color: #1B3A5C;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 1rem;
    color: #5a5a5a;
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 420px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: #1B3A5C;
    border: 1.5px solid #1B3A5C;
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background: #1B3A5C;
    color: white;
}

.hero-divider {
    height: 1px;
    background: #D4A96A;
    margin: 24px 0;
    opacity: 0.6;
    max-width: 420px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 500;
    color: #1B3A5C;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hero-images {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
    padding-right: 24px;
}

.hero-book-cover {
    width: 250px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.hero-author-photo {
    width: 180px;
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    outline: 3px solid #D4A96A;
    outline-offset: 2px;
}

.hero-book-cover:hover {
    transform: scale(1.02);
}

/* Hero responsive */
@media (max-width: 767px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-name {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-divider {
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-sub {
        max-width: 100%;
    }
    .hero-images {
        justify-content: center;
    }
}

/* ------------------------------------------------
   About Section
   ------------------------------------------------ */

#about-section h3 {
    padding: 20px 0;
}

#about-section a {
    color: white;
}

/* ------------------------------------------------
   Latest Book
   ------------------------------------------------ */
#latest-book a{
    color: white;
}

/* ------------------------------------------------
   Mark at the BBC
   ------------------------------------------------ */

/* ------------------------------------------------
   Book Cards
   ------------------------------------------------ */

.book-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.book-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.book-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.02);
}

.book-card a:not(.btn) {
    text-decoration: none;
    color: black;
}

.kindle-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 50px;
}

/* ------------------------------------------------
   Advertising Section
   ------------------------------------------------ */

.advert-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.advert-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: scale(1.01);
}

.advert-card img {
    display: block;
    width: 100%;
}


/* ------------------------------------------------
   Privacy Page
   ------------------------------------------------ */

.privacy a,
.privacy a:hover {
    color: black;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */

footer .bg-beige a,
footer .bg-beige a:hover {
    color: black;
}

#footer .container.bg-beige{
    border: 3px solid #D4A96A;
}


/* ================================================
   Responsive Breakpoints
   ================================================ */

/* Tablet - 768px and above */
@media (min-width: 768px) {
    .text-large  { font-size: 1.5rem; }
    h5           { font-size: 0.6rem; }
}

/* Desktop - 992px and above */
@media (min-width: 992px) {
    .navbar { padding: 5px 15px; }
    p       { font-size: 1.1rem; }
    h5      { font-size: 0.9rem; }
}

/* Large desktop - 1200px and above */
@media (min-width: 1200px) {
    p  { font-size: 1.2rem; }
    h5 { font-size: 0.9rem; }
}

/* Collapsed navbar - below 1200px */
@media (max-width: 1199.98px) {
    body {
        padding-top: 60px; /* collapsed navbar is shorter */
    }
    .navbar-nav {
        align-items: flex-end;
        text-align: right;
    }
    .navbar-collapse {
        padding-right: 10px;
    }
    .navbar-nav .nav-item:has(svg) {
        padding: 6px 0;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-images {
        justify-content: center;
        padding-right: 0;
        width: 100%;
    }
    .hero-book-cover {
        width: 185px;
    }
    .hero-author-photo {
        width: 130px;
    }
    .hero-name {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-divider {
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-sub {
        max-width: 100%;
    }
}