/* ============================================
   The Father - Ultra-Simplified Mobile-First CSS
   ============================================ */

:root {
    --primary-blue: #1E3A8A;
    --accent-gold: #D4AF37;
    --text-black: #000000;
    --text-grey: #333333;
    --text-light-grey: #666666;
    --background-white: #FFFFFF;
    --light-grey: #F8F8F8;
    --border-grey: #E5E5E5;
    --divider-grey: #EEEEEE;
    --font-serif: 'Georgia', 'Playfair Display', serif;
    --font-sans: 'Lato', 'Open Sans', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-black);
    background-color: var(--background-white);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-black);
    line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: var(--spacing-lg); }
h2 { font-size: 1.5rem; margin-bottom: var(--spacing-lg); }
h3 { font-size: 1.2rem; margin-bottom: var(--spacing-md); }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: var(--spacing-sm); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-grey);
    line-height: 1.8;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============================================
   NAVIGATION - MOBILE FIRST (DEFAULT)
   ============================================ */

.navbar {
    background-color: var(--background-white);
    border-bottom: 1px solid var(--divider-grey);
    padding: var(--spacing-sm) var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-black);
    text-decoration: none;
}

/* HAMBURGER - VISIBLE BY DEFAULT ON MOBILE */
.hamburger {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    gap: 6px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-black);
    transition: all 0.3s ease;
    border-radius: 1px;
    display: block;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* NAV MENU - HIDDEN BY DEFAULT ON MOBILE */
.nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background-white);
    flex-direction: column;
    list-style: none;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    overflow-y: auto;
    z-index: 99;
}

/* SHOW MENU WHEN ACTIVE */
.nav-menu.active {
    display: flex;
}

.nav-link {
    color: var(--text-grey);
    font-size: 1rem;
    padding: var(--spacing-sm);
    border-radius: 2px;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-blue);
}

/* ============================================
   DESKTOP NAVIGATION (900px+)
   ============================================ */

@media (min-width: 900px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        gap: var(--spacing-lg);
        overflow-y: visible;
    }
    
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.5rem; }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background-color: var(--background-white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--divider-grey);
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-style: italic;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button.primary {
    background-color: var(--primary-blue);
    color: var(--background-white);
}

.cta-button.primary:hover,
.cta-button.primary:focus {
    background-color: var(--accent-gold);
    color: var(--text-black);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background-color: var(--primary-blue);
    color: var(--background-white);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.book-section {
    text-align: center;
    background-color: var(--light-grey);
}

.book-container {
    max-width: 300px;
    margin: 0 auto;
}

.book-cover {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.continue-section {
    background-color: var(--background-white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   CARDS
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background-color: var(--light-grey);
    padding: var(--spacing-lg);
    border-radius: 4px;
    border-left: 4px solid var(--primary-blue);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--light-grey);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    border-top: 1px solid var(--divider-grey);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-light-grey);
    margin-bottom: var(--spacing-sm);
}

footer a {
    color: var(--primary-blue);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

button:focus,
a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .cta-button {
        display: block;
        width: 100%;
    }
}
