/* === Zen Calm Design System === */
:root {
    --primary: #166534; /* Green 800 */
    --secondary: #15803d; /* Green 700 */
    --accent: #854d0e; /* Amber 800 */
    --background: #fefce8; /* Yellow 50 - warm cream */
    --surface: #ffffff; /* White */
    --card: #f0fdf4; /* Green 50 */
    --text: #1c1917; /* Stone 900 */
    --muted: #78716c; /* Stone 500 */
    
    --font-headings: 'Noto Serif', serif;
    --font-body: 'Noto Sans', sans-serif;
    
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;

    --border-radius: 12px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease-in-out;
}

/* === Global Styles & Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    background-color: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: var(--fw-semibold);
    color: var(--primary);
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; color: var(--secondary); margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover, a:focus { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); }
ul { list-style: none; }
section { padding: 5rem 0; }

/* === Animation === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Header === */
.header {
    background-color: var(--background);
    padding: 1.5rem 0;
    border-bottom: 1px solid #e7e5e4; /* Stone 200 */
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    background-color: rgba(254, 252, 232, 0.85);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: var(--fw-semibold);
    color: var(--primary);
}
.logo:hover { color: var(--primary); }
.navigation a {
    margin-left: 2rem;
    font-weight: var(--fw-medium);
    position: relative;
}
.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.navigation a:hover::after { width: 100%; }

/* === Hero Section === */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 2rem;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-text h1 {
    color: var(--primary);
}
.hero-text p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.hero-image img {
    box-shadow: var(--shadow-medium);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--surface);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-soft);
    animation: breathing 3s ease-in-out infinite;
}
.cta-button:hover {
    background-color: var(--secondary);
    box-shadow: var(--shadow-medium);
    animation-play-state: paused;
}

@keyframes breathing {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === Quote Section === */
.quote-section {
    background-color: var(--card);
}
.quote-section blockquote {
    text-align: center;
    font-family: var(--font-headings);
    font-size: 2rem;
    color: var(--primary);
    max-width: 800px;
    margin: 0 auto;
    border: none;
    padding: 0;
}
.quote-section cite {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--muted);
    font-style: normal;
}

/* === Intro & AI Section === */
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.intro-container.reverse {
    grid-template-columns: 1.2fr 1fr;
}
.intro-container.reverse .intro-image {
    grid-column: 1;
    grid-row: 1;
}
.intro-container.reverse .intro-text {
    grid-column: 2;
}

/* === Psychological Traps Section === */
.traps-section {
    background-color: var(--surface);
}
.traps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.card {
    background-color: var(--card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #dcfce7; /* Green 100 */
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #dcfce7; /* Green 100 */
    border-radius: 50%;
    margin-bottom: 1.5rem;
}
.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--secondary);
}
.card h3 {
    color: var(--primary);
}
.card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.solution {
    font-weight: var(--fw-medium);
    color: var(--secondary);
    font-size: 0.95rem !important;
}

/* === Techniques Section === */
.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -1rem auto 3rem;
    font-size: 1.1rem;
    color: var(--muted);
}
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.technique-item {
    text-align: center;
}
.technique-item img {
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}
.technique-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* === Mindset Timeline Section === */
.timeline-section {
    background-color: var(--card);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #dcfce7; /* Green 100 */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--surface);
    border: 4px solid var(--secondary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--surface);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}
.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* === Exercises Section === */
.exercises-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.exercise-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent);
}
.exercise-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* === Books Section === */
.books-section {
    background-color: var(--surface);
}
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.book-card {
    text-align: center;
}
.book-card img {
    margin-bottom: 1rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}
.book-card:hover img {
    transform: scale(1.05) translateY(-5px);
}
.book-card h3 { font-size: 1.25rem; }
.book-card p { font-size: 0.9rem; color: var(--muted); }

/* === FAQ Section === */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-container details {
    background-color: var(--surface);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #dcfce7; /* Green 100 */
}
.faq-container summary {
    padding: 1.5rem;
    font-weight: var(--fw-medium);
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq-container summary::-webkit-details-marker { display: none; }
.faq-container summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--secondary);
    transition: transform 0.2s;
}
.faq-container details[open] summary::after {
    transform: rotate(45deg);
}
.faq-container p {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
}

/* === Contact Section === */
.contact-section {
    background-color: var(--card);
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.contact-info ul { margin-top: 2rem; }
.contact-info li { margin-bottom: 0.75rem; color: var(--muted); }
.contact-info li strong { color: var(--text); }

/* === Footer === */
.footer {
    background-color: var(--primary);
    color: #dcfce7; /* Green 100 */
    padding-top: 4rem;
    font-size: 0.95rem;
}
.footer a { color: var(--surface); }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-col h4 {
    color: var(--surface);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-headings);
}
.footer-col ul li { margin-bottom: 0.5rem; }
.disclaimer { font-style: italic; font-size: 0.9rem; margin-top: 1rem; }
.footer-bottom {
    border-top: 1px solid #14532d; /* Green 900 */
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #a7f3d0; /* Green 200 */
}


/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-container, .intro-container, .intro-container.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .intro-container.reverse .intro-image { grid-column: 1; }
    .intro-container.reverse .intro-text { grid-column: 1; }
    .hero-image { margin-top: 2rem; }
    .traps-grid { grid-template-columns: 1fr 1fr; }
    .books-grid { grid-template-columns: 1fr 1fr; }
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { left: 20px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { text-align: left; }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }
    section { padding: 3rem 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .header .container { flex-direction: column; gap: 1rem; }
    .navigation a { margin: 0 0.75rem; }
    .traps-grid, .exercises-grid, .books-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
}

/* === Contact Form Styles (Auto-Injected) === */
.contact-form-wrapper {
    background-color: var(--surface, #ffffff);
    padding: 2.5rem;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--primary, #333);
}

.contact-form-wrapper p {
    margin-bottom: 2rem;
    color: var(--text, #666);
    opacity: 0.8;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text, #333);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd; /* Fallback border */
    border-radius: var(--border-radius, 4px);
    background-color: var(#ffffff, #fff);
    color: var(--text, #333);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary, #007bff);
    box-shadow: 0 0 0 3px var(--primary);
}

.contact-form .submit-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--primary, #007bff);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius, 4px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.contact-form .submit-button:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.contact-form .submit-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
