/* Main styles for domain.com - Romanian Accounting Services */

/* Base styles */
:root {
    --primary-gradient: linear-gradient(135deg, #3FD0C9, #7D3AC1);
    --accent-color: #FF7A29;
    --text-color: #FFFFFF;
    --secondary-text: #CCCCCC;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-gradient);
    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(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #ff8c43;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

/* Burger menu for mobile */
.menu-toggle {
    display: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 21px;
}

.menu-toggle-label span,
.menu-toggle-label span::before,
.menu-toggle-label span::after {
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle-label span {
    top: 9px;
}

.menu-toggle-label span::before {
    content: "";
    top: -9px;
}

.menu-toggle-label span::after {
    content: "";
    top: 9px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    
}

/* Services Section */
.services {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card img {
    height: 50%;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Advantages Section */
.advantages {
    padding: 5rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.advantage-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.testimonial-card {
    padding: 1.5rem;
}

/* Form Section */
.contact-form-section {
    padding: 5rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        var(--primary-gradient) border-box;
    border-radius: var(--radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    color: #333;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    color: #333;
}

.form-select option {
    background-color: white;
    color: #333;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.form-check-label {
    color: #333;
    font-size: 0.9rem;
}

.form-check-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background-color: var(--accent-color);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    display: none;
}

.faq-label {
    display: block;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    font-weight: bold;
}

.faq-label::after {
    content: "+";
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 var(--radius) var(--radius);
}

.faq-question:checked + .faq-label::after {
    transform: rotate(45deg);
}

.faq-question:checked + .faq-label {
    border-radius: var(--radius) var(--radius) 0 0;
}

.faq-question:checked ~ .faq-content {
    max-height: 500px;
    padding: 1rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--text-color);
    padding: 1.5rem;
    z-index: 1100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-text {
    margin-right: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.cookie-accept {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.cookie-decline {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

/* Thank you page */
.thank-you-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 8rem auto 5rem;
    max-width: 600px;
    border: 3px solid transparent;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) padding-box,
        var(--primary-gradient) border-box;
    border-radius: var(--radius);
    padding: 3rem;
}

/* Policy pages */
.policy-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 8rem auto 5rem;
    max-width: 800px;
}

.policy-container h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .menu-toggle-label {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
    }
    
    .nav-list a {
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        max-height: 300px;
        padding: 1rem 0;

    }
    
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .hero {
        height: 80vh;
    }
}
