/* Main styles for Horoskop Landing Page */
:root {
    --main-bg: #fdf0e0;
    --accent-1: #7b2cbf;
    --accent-2: #ff9f1c;
    --accent-3: #3d348b;
    --light-bg: #eaeaea;
    --text-color: #1e1e1e;
    --white: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-color);
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

a {
    color: var(--accent-3);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--accent-2);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    background-color: var(--accent-1);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
    display: inline-block;
    margin: auto;
    max-width: max-content;
}

.btn:hover {
    background-color: var(--accent-3);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-3);
}

.container > h2, 
.container > p {
    text-align: center;
}

section {
    padding: 5rem 0;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-1);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    font-weight: 500;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-checkbox {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/LriZc.jpg') center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    margin: 0 auto;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Service Section */
.about-service {
    background-color: var(--white);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Service Types Section */
.services {
    background-color: var(--main-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-rows: 200px 1fr auto;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-card h3 {
    color: var(--accent-3);
    margin-bottom: 0.5rem;
}

.service-card .btn {
    margin-top: 1rem;
}

/* Why Us Section */
.why-us {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.benefit-card {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--main-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: var(--accent-2);
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-3);
}

/* Examples Section */
.examples {
    background-color: var(--white);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.example-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.example-img {
    height: 200px;
    overflow: hidden;
}

.example-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.example-content {
    padding: 1.5rem;
}

/* FAQ Section */
.faq {
    background-color: var(--main-bg);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--light-bg);
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: block;
    color: var(--accent-3);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-answer {
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-checkbox {
    display: none;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-checkbox:checked ~ .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Form Section */
.contact-form {
    background-color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 3rem auto 0;
    background-color: var(--main-bg);
    border: 2px solid var(--accent-2);
    border-radius: 10px;
    padding: 2rem;
}

form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: var(--accent-3);
}

input, 
select, 
textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

select option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--accent-3);
    color: var(--white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    color: var(--accent-2);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col address {
    font-style: normal;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--white);
}

.footer-col a:hover {
    color: var(--accent-2);
}

.copyright {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-3);
    color: var(--white);
    padding: 1rem;
    z-index: 1001;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    width: 8rem;
}

/* Thanks Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    max-width: 600px;
    margin: 5rem auto;
    padding: 2rem;
    border: 2px solid var(--accent-2);
    border-radius: 10px;
    text-align: center;
    background-color: var(--white);
}

/* Policy Pages */
.policy-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.policy-container {
    max-width: 800px;
    margin: 5rem auto;
    padding: 2rem;
    border: 1px solid var(--accent-2);
    border-radius: 10px;
    background-color: var(--white);
}

.policy-container h1 {
    color: var(--accent-3);
    margin-bottom: 2rem;
    text-align: center;
}

.policy-container h2 {
    color: var(--accent-1);
    margin: 1.5rem 0 1rem;
}

.policy-container p {
    margin-bottom: 1rem;
}

.policy-container ul,
.policy-container ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-container li {
    margin-bottom: 0.5rem;
}

/* Blog Page */
.blog-header {
    background-color: var(--accent-3);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.blog-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.blog-article {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-article h2 {
    color: var(--accent-3);
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
    }

    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .thanks-section {
        height: auto;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
}
