/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2C3E50;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Header ===== */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.logo h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #2C3E50;
    margin: 0;
}

.logo-accent {
    color: #27AE60;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C3E50;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #27AE60;
}

.btn-nav {
    background-color: #27AE60;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-nav:hover {
    background-color: #229954;
    transform: translateY(-2px);
    color: #ffffff;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
    color: #ffffff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(39, 174, 96, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.95;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.badge span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Content Sections ===== */
.content-block {
    padding: 6rem 0;
    background-color: #ffffff;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2.25rem;
    color: #2C3E50;
    margin-bottom: 2rem;
}

.section-title.centered {
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #5a6c7d;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===== Two Column Layout ===== */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.column-text {
    padding-right: 2rem;
}

.text-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.column-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chart-illustration {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Methodology Section ===== */
.methodology-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.method-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #e8f8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: #27AE60;
}

.card-title {
    font-family: 'Merriweather', serif;
    font-size: 1.35rem;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 1rem;
}

/* ===== Science Section ===== */
.science-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.science-item {
    padding: 2rem;
    border-left: 4px solid #27AE60;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.science-item h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    color: #2C3E50;
    margin-bottom: 0.75rem;
}

.science-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a6c7d;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.faq-question {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2C3E50;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 1.75rem;
    font-weight: 300;
    color: #27AE60;
    transition: transform 0.3s ease;
}

details[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem 2rem 2rem;
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid #e8e8e8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===== Form Section ===== */
.form-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #e8f8f0 0%, #d4edda 100%);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-intro {
    font-size: 1.1rem;
    color: #5a6c7d;
    max-width: 700px;
    margin: 0 auto;
}

.biorhythm-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #27AE60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #27AE60;
}

.checkbox-label.consent {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label.consent span {
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    background-color: #27AE60;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(39, 174, 96, 0.3);
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-top: 1rem;
}

/* ===== Legal Disclaimer ===== */
.legal-disclaimer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    border-top: 1px solid #e8e8e8;
}

.legal-disclaimer p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #7f8c8d;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
    background-color: #2C3E50;
    color: #ecf0f1;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #bdc3c7;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #27AE60;
}

.footer-column ul li:not(:has(a)) {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-about {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #95a5a6;
    margin-bottom: 0.5rem;
}

/* ===== Cookie Notice Bar ===== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f1f1f1;
    border-top: 2px solid #e8e8e8;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-notice p {
    font-size: 0.85rem;
    color: #2C3E50;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.cookie-notice a {
    color: #27AE60;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-notice a:hover {
    color: #229954;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .column-text {
        padding-right: 0;
    }

    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .science-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav a {
        font-size: 0.875rem;
    }

    .btn-nav {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .badge {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .content-block,
    .methodology-section,
    .science-section,
    .faq-section,
    .form-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .biorhythm-form {
        padding: 2rem 1.5rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-notice p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.35rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        justify-content: center;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .badge {
        width: 100%;
        justify-content: center;
    }

    .method-card {
        padding: 2rem 1.5rem;
    }

    .biorhythm-form {
        padding: 1.5rem 1rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .cookie-notice {
        padding: 0.75rem 0;
    }

    .cookie-notice p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}
