/* The Funny Father — simple, warm landing page
   Matches the soft watercolor style of the book */

:root {
    --bg: #faf6f1;
    --paper: #fffdf9;
    --ink: #3d3429;
    --ink-soft: #5c534a;
    --accent: #5b7c99;      /* soft blue from the car / sky */
    --accent-dark: #3e5a73;
    --warm: #c4a574;        /* warm tan from the garage floor */
    --highlight: #e8d5b5;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(61, 52, 41, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1.05rem;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Colorful blurred hero background */
.hero-bg {
    position: relative;
    background: url('images/background.jpg') center / cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('images/background.jpg') center / cover no-repeat;
    filter: blur(12px) brightness(0.85) saturate(1.1);
    transform: scale(1.05);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    padding: 0 2.5rem;
}

.hero-content {
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    font-weight: normal;
    color: white;
}

.hero-content h1 em {
    font-style: italic;
    font-weight: normal;
    color: #ffe8c0;
}

.tagline {
    font-size: 1.25rem;
    color: #f5f0e8;
    margin-bottom: 1.75rem;
}

.hero-portrait {
    position: relative;
}

.framed-portrait {
    width: 100%;
    border-radius: 16px;
    box-shadow: 
        0 0 0 12px rgba(255,255,255,0.9),
        0 0 0 14px rgba(196, 165, 116, 0.6),
        0 20px 40px rgba(0,0,0,0.35);
    display: block;
    background: white;
}

.country-note {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #ffffff;
    font-family: system-ui, sans-serif;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    opacity: 0.92;
}

.country-note a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.country-note a:hover {
    opacity: 0.85;
}

.flag-icon {
    height: 1.1em;
    width: auto;
    vertical-align: -0.15em;
    margin-right: 0.35em;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 50px;
    padding: 0.85rem 1.6rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    font-weight: 700;
}

.btn-primary:hover {
    background: #f8f4ec;
    transform: translateY(-2px);
}

/* Carousel */
.carousel-section {
    padding: 3rem 0 2rem;
    background: var(--bg);
}

.carousel {
    position: relative;
    max-width: 520px;
    margin: 1rem auto 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: white;
    aspect-ratio: 1 / 1;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    color: var(--ink);
}

.carousel-btn:hover {
    background: white;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0 1.25rem;
    background: white;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dot.active {
    background: var(--accent);
}

/* Sections */
section {
    padding: 2rem 0;
}

section h2 {
    font-size: 1.9rem;
    font-weight: normal;
    margin: 0 0 1rem;
    text-align: center;
}

.intro p {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

/* Why */
.features {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.features li {
    padding: 0.7rem 0 0.7rem 1.8rem;
    position: relative;
    font-size: 1.1rem;
}

.features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
}

/* Buy section */
.buy {
    background: var(--paper);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.75rem 0 1rem;
}

.btn-store {
    background: white;
    color: var(--ink);
    border: 2px solid #e0d6c8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-store:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-store.preferred {
    background: var(--highlight);
    border-color: var(--warm);
    box-shadow: 0 4px 12px rgba(196, 165, 116, 0.3);
}

.local-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.worldwide-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
    font-family: system-ui, sans-serif;
}

/* Author */
.author p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
}

/* Footer */
footer {
    padding: 2rem 0 2.5rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-family: system-ui, sans-serif;
}

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

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-portrait {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-store {
        text-align: center;
    }
}