/* 
 * domain - Professional Accounting Services
 * Main stylesheet
 */

/* Base Styles */
:root {
    --primary-bg: #ffffff;
    --primary-accent: #174873;
    --secondary-accent: #E5EEF5;
    --text-color: #1a1a1a;
    --border-color: #cccccc;
    --button-hover: #113656;
    --section-spacing: 5rem;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-bg);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--button-hover);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: var(--section-spacing) 0;
}

/* Header Styles */
header {
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-accent);
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--primary-accent);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--button-hover);
    color: white;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-button span {
    height: 3px;
    width: 100%;
    background-color: var(--primary-accent);
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    background-color: var(--secondary-accent);
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.about-text {
    flex: 1;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--secondary-accent);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--primary-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3,
.service-card p,
.service-card .service-price,
.service-card .cta-button {
    margin: 1rem;
}

.service-price {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary-accent);
}

.service-card .cta-button {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Cases Section */
.cases-section {
    background-color: var(--secondary-accent);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--primary-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.case-content {
    padding: 1.5rem;
}

.case-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.1rem;
}

/* Education Section */
.education-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    background-color: var(--secondary-accent);
    padding: 2rem;
    border-radius: 8px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    background-color: var(--secondary-accent);
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
}

details[open] summary:after {
    content: '-';
}

.faq-answer {
    padding: 1.5rem;
    background-color: var(--primary-bg);
}

/* Contact Form Section */
.contact-section {
    background-color: var(--secondary-accent);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

select {
    color: black;
    background-color: white;
}

option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.submit-button {
    background-color: var(--primary-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--button-hover);
}

/* Footer Styles */
footer {
    background-color: var(--primary-accent);
    color: white;
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

address {
    font-style: normal;
    line-height: 1.8;
}

address a {
    color: rgba(255, 255, 255, 0.8);
}

address a:hover {
    color: white;
}

.footer-description p {
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    display: none;
}

.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-button {
    background-color: var(--primary-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-button:hover {
    background-color: var(--button-hover);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-button {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-bg);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .menu-toggle:checked ~ .menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }
}
