/* 
 * Domain - Accounting Services Website
 * Main Stylesheet
 */

:root {
    /* Color palette */
    --primary: #3C0D45;    /* Dark plum */
    --accent: #00E6D3;     /* Neon turquoise */
    --secondary: #E9D8A6;  /* Warm sand/beige */
    --background: #F3F0FA; /* Light lavender */
    --text: #1C1C1C;       /* Graphite text */

    /* Font sizes */
    --fs-xl: clamp(2.5rem, 5vw, 4rem);
    --fs-l: clamp(1.8rem, 4vw, 2.5rem);
    --fs-m: clamp(1.2rem, 3vw, 1.8rem);
    --fs-s: clamp(1rem, 2vw, 1.2rem);
    --fs-xs: clamp(0.8rem, 1.5vw, 1rem);
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary);
    font-weight: 700;
}

h1 {
    font-size: var(--fs-xl);
}

h2 {
    font-size: var(--fs-l);
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin-top: 10px;
}

h3 {
    font-size: var(--fs-m);
}

p {
    margin-bottom: 1rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--fs-m);
    font-weight: 700;
    color: var(--primary);
}

.logo a {
    color: inherit;
}

/* Navigation */
.nav-checkbox {
    display: none;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--primary);
    font-weight: 600;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background-image: url('../img/ROUVJ.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 13, 69, 0.7); /* Semi-transparent overlay */
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: var(--fs-m);
    margin-bottom: 2rem;
}

/* Section styling */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

/* Services Cards */
.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.testimonial-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
}

/* Certificates & Partners */
.certificates {
    background-color: white;
    padding: 3rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Form */
.form-section {
    background-color: white;
    padding: 5rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: var(--fs-xs);
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 6px;
}

/* FAQ Section */
.faq-section {
    background-color: var(--background);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    background-color: white;
    border: none;
    font-size: var(--fs-s);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(0, 230, 211, 0.1);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-checkbox {
    display: none;
}

.faq-answer {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question::after {
    content: '-';
}

.faq-content {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--secondary);
}

.footer-col a:hover {
    color: var(--accent);
}

.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: 20px;
    left: 20px;
    right: 20px;
    padding: 15px;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    max-width: 400px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
    flex-direction: column;
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-text {
    margin-right: 20px;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    margin: 8rem auto 5rem;
    max-width: 600px;
    padding: 3rem;
    background-color: white;
    border: 1px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.policy-container h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-container p, .policy-container ul, .policy-container ol {
    margin-bottom: 1rem;
}

.policy-container ul, .policy-container ol {
    margin-left: 1.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
        position: relative;
    }
    
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--primary);
        transition: all 0.3s;
    }
    
    .nav-toggle span {
        top: 13px;
    }
    
    .nav-toggle span::before {
        content: '';
        top: -8px;
    }
    
    .nav-toggle span::after {
        content: '';
        bottom: -8px;
    }
    
    .nav-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-checkbox:checked ~ .nav-menu {
        max-height: 100dvh;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu li {
        margin: 0;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    .nav-checkbox:checked ~ .nav-toggle span {
        background-color: transparent;
    }
    
    .nav-checkbox:checked ~ .nav-toggle span::before {
        transform: rotate(45deg) translate(3px, 7px);
    }
    
    .nav-checkbox:checked ~ .nav-toggle span::after {
        transform: rotate(-45deg) translate(3px, -7px);
    }
    
    .hero {
        padding: 6rem 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
