/* ============================================================
   WIGGLEWORM MEDIA — Main Stylesheet
   Colors: Teal (primary), white (secondary), cobalt accents
   Mobile-first. Scroll-driven. Light, airy, inviting.
   ============================================================ */

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

:root {
    --teal: #008B8B;
    --teal-dark: #006666;
    --teal-light: #20B2AA;
    --cobalt: #1B4F9B;
    --cobalt-light: #2E6FCF;
    --white: #FFFFFF;
    --off-white: #F7FAFA;
    --black: #111111;
    --gray-dark: #333333;
    --gray-mid: #777777;
    --gray-light: #CCCCCC;
    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --header-height: 50px;
    --transition: 0.4s ease;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

/* --- Header --- */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--teal);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
}

.header-title-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--teal);
}

/* --- Menu Toggle --- */
.menu-toggle {
    background: none; border: none; cursor: pointer;
    padding: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1001;
}
.menu-bar { display: block; width: 20px; height: 2px; background: var(--teal); transition: transform 0.3s, opacity 0.3s; }
.menu-toggle.open .menu-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .menu-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999; background: rgba(255, 255, 255, 0.97);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.menu-list { list-style: none; text-align: center; }
.menu-list li { margin: 6px 0; }
.menu-link {
    font-size: 18px; font-weight: 600; color: var(--gray-dark);
    padding: 8px 16px; display: inline-block; min-height: 44px; line-height: 28px;
}
.menu-link:hover { color: var(--teal); text-decoration: none; }

/* --- Progress Bar --- */
.progress-bar { position: fixed; right: 0; top: var(--header-height); bottom: 0; width: 3px; z-index: 900; background: rgba(0, 0, 0, 0.05); }
.progress-fill { width: 100%; background: linear-gradient(180deg, var(--teal), var(--cobalt)); height: 0%; transition: height 0.1s; }

/* --- Scroll Sections --- */
.scroll-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: calc(var(--header-height) + 20px) 20px 40px 20px;
}
.section-content { max-width: 700px; width: 100%; }
.centered { text-align: center; }

/* Section themes */
.section-hero { background: var(--white); }
.section-light { background: var(--white); }
.section-teal { background: var(--teal); color: var(--white); }

/* --- Scroll Animations --- */
.section-text {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-text.visible { opacity: 1; transform: translateY(0); }

/* --- Hero --- */
.hero-logo { margin-bottom: 24px; }
.logo-img { width: 160px; height: auto; margin: 0 auto; display: block; }
.hero-title {
    font-size: 24px; font-weight: 700; letter-spacing: 4px;
    color: var(--teal); margin-bottom: 8px;
}
.hero-tagline {
    font-size: 18px; font-weight: 300; color: var(--gray-mid);
    letter-spacing: 1px; font-style: italic;
}

/* --- Text Styles --- */
.text-lead {
    font-size: 20px; font-weight: 300; line-height: 1.5;
    color: var(--gray-dark); margin-bottom: 16px;
}
.text-body { font-size: 15px; line-height: 1.7; color: var(--gray-dark); margin-bottom: 14px; }
.text-body-muted { font-size: 14px; color: var(--gray-mid); margin-bottom: 14px; font-style: italic; }
.text-body-light { font-size: 16px; color: rgba(255, 255, 255, 0.8); margin-bottom: 8px; }

.text-sub { font-size: 16px; color: var(--gray-mid); margin-bottom: 24px; }

.text-statement {
    font-size: 28px; font-weight: 700; color: var(--white);
    margin-bottom: 12px; letter-spacing: 1px;
}
.text-statement-dark {
    font-size: 24px; font-weight: 700; color: var(--teal);
    margin-bottom: 16px;
}

.text-accent-light { font-size: 20px; font-weight: 600; color: var(--white); margin-top: 16px; }
.text-accent-dark { font-size: 16px; font-weight: 600; color: var(--teal); margin-top: 16px; }

/* --- Section Headings --- */
.section-heading {
    font-size: 12px; font-weight: 700; letter-spacing: 3px;
    color: var(--teal); text-transform: uppercase;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
}
.section-heading-light {
    font-size: 12px; font-weight: 700; letter-spacing: 3px;
    color: var(--white); text-transform: uppercase;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

/* --- Book Cards --- */
.book-card {
    border: 1px solid #E0E0E0; border-left: 4px solid var(--teal);
    padding: 20px; margin-bottom: 14px; border-radius: 4px; background: var(--off-white);
}
.book-card--featured { border-left-color: var(--cobalt); background: #F0F5FF; }
.book-title { font-size: 17px; font-weight: 700; color: var(--gray-dark); margin-bottom: 4px; }
.book-series { font-size: 12px; color: var(--gray-mid); margin-bottom: 6px; }
.book-hook { font-size: 14px; color: var(--gray-dark); font-style: italic; margin-bottom: 8px; }
.book-release { font-size: 13px; font-weight: 700; color: var(--cobalt); letter-spacing: 1px; }
.book-availability { font-size: 12px; color: var(--gray-mid); margin-top: 4px; }
.book-status { font-size: 12px; color: var(--gray-mid); font-style: italic; }

/* --- Support Box --- */
.support-box {
    background: var(--off-white); border: 1px solid #E0E0E0;
    padding: 20px; border-radius: 6px; margin: 16px 0;
}
.support-list { padding-left: 20px; margin-bottom: 12px; }
.support-list li { font-size: 14px; color: var(--gray-dark); margin-bottom: 6px; }

/* --- Timeline --- */
.timeline { margin-top: 24px; }
.timeline-item {
    display: flex; gap: 16px; padding: 10px 0;
    border-left: 2px solid var(--teal); padding-left: 16px; margin-left: 8px;
}
.timeline-year {
    font-size: 13px; font-weight: 700; color: var(--teal);
    min-width: 70px; flex-shrink: 0;
}
.timeline-event { font-size: 14px; color: var(--gray-dark); }

/* --- Contact Form (teal section) --- */
.contact-form { max-width: 500px; margin: 20px 0; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: rgba(255, 255, 255, 0.9); margin-bottom: 4px;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; font-size: 14px; font-family: var(--font-main);
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px;
    background: rgba(255, 255, 255, 0.15); color: var(--white);
    min-height: 48px;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--white); background: rgba(255, 255, 255, 0.2); }
.form-group textarea { min-height: 120px; resize: vertical; }

.btn { display: inline-block; padding: 12px 24px; font-size: 14px; font-weight: 600; border: none; border-radius: 4px; cursor: pointer; min-height: 48px; letter-spacing: 1px; }
.btn-white { background: var(--white); color: var(--teal); }
.btn-white:hover { background: var(--off-white); text-decoration: none; }

/* --- Contact Info --- */
.contact-info { margin: 24px 0; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.contact-info strong { color: var(--white); }

/* --- Footer --- */
.footer-section { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-links { display: flex; gap: 16px; margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.footer-links a:hover { color: var(--white); }
.copyright { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* --- Desktop --- */
@media (min-width: 768px) {
    .header-title-text { font-size: 16px; letter-spacing: 3px; }
    .hero-title { font-size: 32px; }
    .hero-tagline { font-size: 20px; }
    .logo-img { width: 200px; }
    .text-lead { font-size: 24px; }
    .text-statement { font-size: 36px; }
    .text-statement-dark { font-size: 28px; }
    .section-content { max-width: 800px; }
    .scroll-section { padding: 60px 40px; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 36px; letter-spacing: 6px; }
    .text-lead { font-size: 26px; }
    .text-statement { font-size: 40px; }
}
