/* 
  Main Stylesheet
  domain - Horoskop Landing Page
*/

/* Base Styles and Reset */
:root {
    --color-bg: #F0F4F8;
    --color-heading: #242038;
    --color-accent-1: #FF6B6B;
    --color-accent-2: #FFD93D;
    --color-button: #2EC4B6;
    --color-button-hover: #25A99D;
    --color-text: #3B3C36;
    --color-light-text: #F0F4F8;
    --color-header-bg: #242038;
    --color-footer-bg: #1D1A2F;
    --color-light-bg: #E1E8EF;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --container-max-width: 1200px;
    --container-padding: 1rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    text-align: center;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent-1);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent-1);
    text-decoration: underline;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

.container > h2, .container > p {
    text-align: center;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--color-light-bg);
}

/* Header */
.header {
    background-color: var(--color-header-bg);
    color: var(--color-light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-light-text);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-light-text);
    text-decoration: none;
}

/* Navigation */
.nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav a {
    color: var(--color-light-text);
    text-decoration: none;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--color-accent-2);
}

.nav-btn {
    background-color: var(--color-button);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-btn:hover {
    background-color: var(--color-button-hover);
    color: var(--color-light-text);
    text-decoration: none;
}

/* Mobile Menu */
.menu-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
}

.menu-icon {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background-color: var(--color-light-text);
    transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-light-text);
    transition: var(--transition);
}

.menu-icon::before {
    transform: translateY(-8px);
}

.menu-icon::after {
    transform: translateY(8px);
}

/* Button Styles */
.btn {
    display: block;
    max-width: max-content;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-button);
    color: var(--color-light-text);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-button-hover);
    color: var(--color-light-text);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgb(0 0 0)), url('./img/WIZF2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-light-text);
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1, .hero p {
    color: var(--color-light-text);
}

.hero-container {
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin-top: 1.5rem;
}

/* Description Section */
.description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.description-image img {
    border-radius: var(--border-radius);
    width: 100%;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-rows: auto 1fr;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-accent-1);
    margin: 1rem 0;
}

.service-content .btn {
    margin-top: auto;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: var(--color-accent-2);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.step-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    background-color: var(--color-accent-1);
    color: var(--color-light-text);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
    top: -1.25rem;
    left: 2rem;
}

.step-card h3 {
    margin-top: 1rem;
}

/* FAQ Section */
.faq-container {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    display: block;
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.faq-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.faq-arrow::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: rotate(45deg);
    transition: var(--transition);
}

.faq-checkbox:checked + .faq-question .faq-arrow::before {
    transform: rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 1.5rem;
}

.faq-checkbox:checked + .faq-question + .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group select option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.form-btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-light-text);
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--color-light-text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-accent-2);
    text-decoration: underline;
}

.copyright {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-header-bg);
    color: var(--color-light-text);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 1001;
    display: none;
    max-width: 500px;
    min-width: 300px;
}

.cookie-content h3 {
    color: var(--color-light-text);
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: grid
    ;
        grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-top: 1.5rem;
}

.cookie-link {
    color: var(--color-light-text);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--color-accent-2);
}

/* Thanks Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
    
}

.thanks-container {
    max-width: 800px;

    margin: 5rem auto;
    border: 1px solid var(--color-accent-1);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Error Page */
.error-container {
    margin: 5rem auto;
    padding: 3rem;
    text-align: center;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.error-container ul {
    list-style-position: inside;
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
}

/* Policy Pages */
.policy-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}

.policy-content h2 {
    margin-top: 2rem;
}

.policy-content h3 {
    margin-top: 1.5rem;
}

.policy-content ul, .policy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Override for policy page body background */
body.policy-page {
    background-color: var(--color-bg);
}

/* Additional Pages */
.page-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .menu-toggle-label {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-header-bg);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        height: 100vh;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 15px;
    }
    
    .menu-checkbox:checked ~ .nav {
        max-height: 100vh;
    }
    
    .menu-checkbox:checked ~ .menu-toggle-label .menu-icon {
        background-color: transparent;
    }
    
    .menu-checkbox:checked ~ .menu-toggle-label .menu-icon::before {
        transform: rotate(45deg);
    }
    
    .menu-checkbox:checked ~ .menu-toggle-label .menu-icon::after {
        transform: rotate(-45deg);
    }
    
    .description-content {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .thanks-section {
        height: auto;
    }
    
    .policy-content, .page-content {
        padding: 2rem 1.5rem;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .service-card, .step-card, .advantage-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
}
