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

:root {
    --primary-yellow: #FFD700;
    --warm-orange: #FFA500;
    --soft-yellow: #FFF8DC;
    --light-cream: #FFFAF0;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent-gold: #DAA520;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--warm-orange), var(--primary-yellow));
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--text-light);
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    transform: scale(1.1);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background-image: url('../images/book-cover.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.6), rgba(255, 165, 0, 0.7));
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.hero-content {
    text-align: center;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.bilingual-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.bilingual-title .english {
    display: block;
    color: var(--warm-orange);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.bilingual-title .spanish {
    display: block;
    color: var(--accent-gold);
    font-style: italic;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.subtitle .english,
.subtitle .spanish {
    display: block;
    line-height: 1.5;
}

.subtitle .spanish {
    font-style: italic;
    color: var(--accent-gold);
    margin-top: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

.tagline .english,
.tagline .spanish {
    display: block;
    line-height: 1.5;
}

.tagline .spanish {
    color: var(--accent-gold);
    margin-top: 0.3rem;
}

/* Waitlist Section */
.waitlist-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--soft-yellow), var(--light-cream));
}

.waitlist-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid var(--primary-yellow);
}

.waitlist-card h2 {
    text-align: center;
    color: var(--warm-orange);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.waitlist-card h2 .english,
.waitlist-card h2 .spanish-sub {
    display: block;
}

.waitlist-card h2 .spanish-sub {
    font-size: 2rem;
    color: var(--accent-gold);
    font-style: italic;
    margin-top: 0.5rem;
}

.waitlist-card > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.waitlist-card p .spanish-sub {
    display: block;
    font-style: italic;
    color: var(--accent-gold);
    margin-top: 0.5rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--warm-orange);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.field-hint {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-top: 0.3rem;
}

.optional-label {
    font-size: 0.85rem;
    font-weight: normal;
    color: #999;
    font-style: italic;
}

.btn-submit {
    background: linear-gradient(135deg, var(--warm-orange), var(--primary-yellow));
    color: var(--text-light);
    padding: 1.2rem 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-submit .english,
.btn-submit .spanish-cta {
    display: block;
    line-height: 1.3;
}

.btn-submit .spanish-cta {
    font-size: 1rem;
    font-style: italic;
    margin-top: 0.2rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.form-message {
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    font-weight: bold;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

/* Synopsis Sections */
.synopsis {
    padding: 4rem 0;
}

.english-section {
    background: linear-gradient(to bottom, var(--light-cream), var(--soft-yellow));
}

.spanish-section {
    background: linear-gradient(to bottom, var(--soft-yellow), var(--light-cream));
}

.synopsis-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
}

.language-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--warm-orange), var(--primary-yellow));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.synopsis-content h2 {
    color: var(--warm-orange);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.synopsis-content h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.synopsis-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.dedication {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    padding: 2rem;
    border-left: 4px solid var(--primary-yellow);
    margin: 2rem 0;
    border-radius: 10px;
}

.dedication p {
    margin-bottom: 0;
}

.cta-text {
    font-weight: bold;
    color: var(--warm-orange);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--warm-orange), var(--primary-yellow));
    padding: 4rem 0;
    text-align: center;
    color: var(--text-light);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section h2 .english,
.cta-section h2 .spanish-cta {
    display: block;
}

.cta-section h2 .spanish-cta {
    font-size: 2rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-section p .spanish-cta {
    display: block;
    font-style: italic;
    margin-top: 0.5rem;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--warm-orange);
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta .english,
.btn-cta .spanish-cta {
    display: block;
}

.btn-cta .spanish-cta {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 0.2rem;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #3a3a3a);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-logo .logo-img {
    max-width: 150px;
    height: auto;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: var(--primary-yellow);
    text-decoration: none;
}

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

.footer-links p {
    margin-bottom: 0.5rem;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Sticky Mobile CTA Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--warm-orange), var(--primary-yellow));
    padding: 0.85rem 1rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-cta-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-cta-btn {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix iOS background-attachment bug */
@supports (-webkit-overflow-scrolling: touch) {
    .hero {
        background-attachment: scroll;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        flex: 1;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 10px;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        order: 3;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1.25rem;
        font-size: 1.1rem;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        background-attachment: scroll;
        min-height: 60vh;
    }

    .hero-overlay {
        min-height: 60vh;
        padding: 2rem 0;
    }

    .bilingual-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 1.75rem;
        margin: 0 4px;
    }

    .waitlist-section {
        padding: 2.5rem 0;
    }

    .waitlist-card {
        padding: 1.75rem;
    }

    .waitlist-card h2 {
        font-size: 1.9rem;
    }

    .waitlist-card h2 .spanish-sub {
        font-size: 1.5rem;
    }

    .synopsis {
        padding: 2.5rem 0;
    }

    .synopsis-content {
        padding: 1.75rem;
    }

    .language-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .synopsis-content h2 {
        font-size: 1.9rem;
    }

    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }

    .cta-section h2 .spanish-cta {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .btn-cta {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        display: block;
        margin: 1.5rem auto 0;
        max-width: 320px;
        text-align: center;
    }

    .btn-cta .spanish-cta {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .mobile-cta-bar {
        display: block;
    }

    /* Push page content up so sticky bar doesn't overlap */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-overlay {
        min-height: 50vh;
    }

    .hero-content {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .bilingual-title {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .waitlist-section {
        padding: 2rem 0;
    }

    .waitlist-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .waitlist-card h2 {
        font-size: 1.6rem;
    }

    .waitlist-card h2 .spanish-sub {
        font-size: 1.3rem;
    }

    /* 16px min font size on inputs prevents iOS auto-zoom */
    .form-group input,
    .form-group select {
        font-size: 16px;
        min-height: 48px;
        padding: 0.75rem;
    }

    .btn-submit {
        min-height: 54px;
        width: 100%;
        font-size: 1.15rem;
    }

    .synopsis {
        padding: 2rem 0;
    }

    .synopsis-content {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .synopsis-content h2 {
        font-size: 1.6rem;
    }

    .synopsis-content h3 {
        font-size: 1.2rem;
    }

    .synopsis-content p {
        font-size: 1rem;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section h2 .spanish-cta {
        font-size: 1.2rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .btn-cta {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .footer {
        padding: 2rem 0;
    }
}
