/*
Theme Name: Fairy Fairytales
Theme URI: http://example.com/
Author: Ieva
Author URI: http://example.com/
Description: Custom theme for Fairy Fairytales
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fairyfairytales
*/

/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --bg-dark-green: #094507;
    --bg-light-green: #0c570a;
    --accent-orange: #f58d3d;
    --accent-orange-hover: #e07a2a;
    --text-cream: #fdfaf5;
    --text-dark: #2c2c2c;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-green);
    color: var(--text-cream);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: var(--text-cream);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Typography & Utils */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-orange);
}

.hidden {
    display: none !important;
}

/* =========================================
   BUTTONS & ANIMATIONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary, .cta-btn {
    background-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 141, 61, 0.4);
}

.btn-primary:hover, .cta-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 141, 61, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-secondary:hover {
    background-color: rgba(245, 141, 61, 0.1);
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 141, 61, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(245, 141, 61, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 141, 61, 0); }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(9, 69, 7, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo a {
    font-size: 1.8rem;
    color: var(--accent-orange);
    font-style: italic;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--accent-orange);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light-green);
    min-width: 200px;
    list-style: none;
    border-radius: var(--border-radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 1rem;
}

.dropdown-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent-orange);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
}

.lang-switcher button {
    background: none;
    border: none;
    color: var(--text-cream);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.6;
    transition: var(--transition);
}

.lang-switcher button.active {
    opacity: 1;
    color: var(--accent-orange);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-cream);
    border-radius: 3px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding: 120px 0 60px;
}

.hero-card {
    background-image: url('assets/images/jonukas.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.hero-card-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 500px;
}

.hero-subtitle {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hero-card-content h1 {
    color: var(--accent-orange);
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.btn-hero {
    background-color: var(--bg-dark-green);
    color: #fff;
    border-radius: 40px;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: none;
    transition: var(--transition);
}

.btn-hero:hover {
    background-color: var(--bg-light-green);
    transform: translateY(-2px);
}

/* =========================================
   ABOUT ME SECTION
   ========================================= */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light-green);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.placeholder-image {
    background-color: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
}

.placeholder-image .icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.2rem;
}

/* =========================================
   EXAMPLES SECTION
   ========================================= */
.examples-section {
    padding: 100px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tale-card {
    background-color: var(--bg-light-green);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tale-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.tale-card .card-image {
    aspect-ratio: 4/3;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

/* =========================================
   QUESTIONNAIRE FORM WIZARD
   ========================================= */
.questionnaire-section {
    padding: 100px 0;
    background-color: var(--bg-light-green);
}

.form-wrapper {
    background-color: var(--bg-dark-green);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: var(--accent-orange);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    border: 3px solid transparent;
}

/* Infant Style Pastel Rainbow Colors */
.step-indicator[data-step="1"] { background-color: #FDFD96; color: #333; }
.step-indicator[data-step="2"] { background-color: #FFB7B2; color: #333; }
.step-indicator[data-step="3"] { background-color: #E2F0CB; color: #333; }
.step-indicator[data-step="4"] { background-color: #B5EAD7; color: #333; }
.step-indicator[data-step="5"] { background-color: #C7CEEA; color: #333; }

/* Active States */
.step-indicator[data-step="1"].active { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(253, 253, 150, 0.8); }
.step-indicator[data-step="2"].active { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(255, 183, 178, 0.8); }
.step-indicator[data-step="3"].active { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(226, 240, 203, 0.8); }
.step-indicator[data-step="4"].active { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(181, 234, 215, 0.8); }
.step-indicator[data-step="5"].active { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(199, 206, 234, 0.8); }

.step-line {
    flex: 1;
    height: 4px;
    background-color: rgba(255,255,255,0.1);
    margin: 0 10px;
    border-radius: 2px;
}

/* Form Styles */
.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    border: 2px solid rgba(255,255,255,0.1);
    background-color: rgba(255,255,255,0.05);
    color: var(--text-cream);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background-color: rgba(255,255,255,0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--accent-orange);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.dynamic-field {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 2px dashed rgba(245, 141, 61, 0.5);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.form-actions .btn {
    min-width: 120px;
}

/* =========================================
   FOOTER & CONTACT
   ========================================= */
.site-footer {
    padding: 80px 0 30px;
    background-color: #052604;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.footer-form-section {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.footer-form-section h3 {
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.simple-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-info {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide for mobile by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark-green);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-card-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-card-content {
        padding: 30px;
        max-width: 100%;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .wizard-progress {
        padding: 0;
    }
    
    .step-indicator {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Header Book Button */
.header-book-btn {
    background-color: var(--accent-orange);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.header-book-btn:hover {
    background-color: #e07b2f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 141, 61, 0.4);
}

@media (max-width: 768px) {
    .header-book-btn {
        display: none; /* Hide on mobile so it doesn't clutter the header */
    }
}
