/* Main styles for domain website */
:root {
    --bg-color: #fdf6ec;
    --accent-color: #ff5a5f;
    --text-color: #333333;
    --heading-color: #2c2c2c;
    --button-color: #005f73;
    --gradient-start: #fdf6ec;
    --gradient-end: #ffe4c4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

a {
    color: var(--button-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--button-color);
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 80px;
}

/* Offset anchor targets to account for fixed header */
#about, #benefits, #services, #testimonials, #faq, #contact {
    scroll-margin-top: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--button-color);
}

.nav-menu {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--button-color);
}

/* Form Styles */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-check {
    display: flex;
    align-items: start;
    margin-bottom: 0.5rem;
}

.form-check input {
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
    scroll-margin-top: 80px; /* Adăugăm offset pentru a compensa header-ul fixat la navigarea cu ancore */
}

section:nth-child(odd) {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
}

/* Footer Styles */
footer {
    background-color: var(--heading-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
    padding-right: 1rem;
}

.footer-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-menu {
    list-style-type: none;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #ddd;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    display: none;
}

.cookie-popup.show {
    display: flex;
}

.cookie-text {
    flex: 1;
    padding-right: 1rem;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    background: white;
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active:after {
    transform: rotate(45deg);
}

.faq-answer {
    background: #f9f9f9;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 1rem;
    max-height: 500px;
}

/* Policy Pages */
.policy-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-col {
        flex: 0 0 100%;
    }
    
    .cookie-popup {
        flex-direction: column;
    }
    
    .cookie-text {
        margin-bottom: 1rem;
        padding-right: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slideUp {
    animation: slideUp 0.5s ease-out;
}

/* Service Cards */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Testimonials */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-item {
    text-align: center;
    padding: 2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
}

/* Benefits */
.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.benefit-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
