/**
 * Main stylesheet for domain - financial audit company
 */

/* ---------- Base Styles ---------- */
:root {
    /* Color palette */
    --color-bg: #F9F7F1;
    --color-accent: #F26627;
    --color-heading: #2E4057;
    --color-button: #0097A7;
    --color-icon-bg: #E4E6C3;
    --color-text: #333333;
    --color-light: #FFFFFF;
    --color-grey: #757575;
    --color-border: #DDDDDD;
    
    /* Font families */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adds padding for anchor links to account for fixed header */
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-button);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 4rem 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-heading);
    color: var(--color-light);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.btn-secondary:hover {
    background-color: var(--color-heading);
    color: var(--color-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-button);
    color: var(--color-button);
}

.btn-outline:hover {
    background-color: var(--color-button);
    color: var(--color-light);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--color-heading);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-accent);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-toggle .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-heading);
    transition: all 0.3s ease;
}

.menu-toggle.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero-section {
    background-color: var(--color-light);
    padding: 5rem 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ---------- About Section ---------- */
.about-section {
    background-color: var(--color-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ---------- Services Section ---------- */
.services-section {
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    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.1);
}

.service-icon {
    width: 100%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.service-icon img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-icon img:hover {
    transform: scale(1.05);
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* ---------- Advantages Section ---------- */
.advantages-section {
    background-color: var(--color-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.advantage-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-icon-bg);
    opacity: 0.5;
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

/* ---------- Form Section ---------- */
.form-section {
    background-color: var(--color-light);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.audit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group:nth-child(1),
.form-group:nth-child(2),
.form-group:nth-child(3),
.form-submit {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-button);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

.form-submit {
    margin-top: 1rem;
    text-align: center;
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
    background-color: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-company {
    color: var(--color-grey);
    font-weight: 500;
}

/* ---------- FAQ Section ---------- */
.faq-section {
    background-color: var(--color-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    margin: 0;
    background-color: var(--color-bg);
    padding: 1rem 1.5rem;
    cursor: pointer;
    position: relative;
}

.faq-question a {
    color: var(--color-heading);
    text-decoration: none;
    display: block;
    padding-right: 2rem;
}

.faq-question a::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question a::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-heading);
    color: var(--color-light);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo a {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-info p {
    opacity: 0.8;
}

.footer-contact h3,
.footer-links h3,
.footer-legal h3 {
    color: var(--color-light);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.footer-contact ul,
.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact ul li,
.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.5rem;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
    color: var(--color-light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-popup p {
    margin: 0 1rem 0 0;
}

/* ---------- Responsive Design ---------- */
@media screen and (max-width: 1024px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--color-light);
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.open {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .main-nav li {
        margin: 0 0 1rem 0;
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .audit-form {
        grid-template-columns: 1fr;
    }
    
    .form-group:nth-child(1),
    .form-group:nth-child(2),
    .form-group:nth-child(3),
    .form-submit {
        grid-column: span 1;
    }
    
    .cookie-popup-inner {
        flex-direction: column;
    }
    
    .cookie-popup p {
        margin: 0 0 1rem 0;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
