/**
 * Main stylesheet for accounting services website
 * Color Palette:
 * - Main background: #f3f0eb (warm sand)
 * - Accent color: #e5383b (bright red)
 * - Secondary color: #4d6a6d (deep teal)
 * - Headings: #101820 (coal black)
 * - Text: #3c3c3c (dark gray)
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-bg: #f3f0eb;
    --accent-color: #e5383b;
    --secondary-color: #4d6a6d;
    --heading-color: #101820;
    --text-color: #3c3c3c;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --border-radius: 16px; /* 2xl rounded corners */
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

section h2 {
    text-align: center;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    color: var(--heading-color);
    font-weight: 600;
    padding: 10px;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.nav-cta {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

.header-phone a {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

/* Benefits Section */
.benefits {
    background-color: var(--light-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    color: var(--secondary-color);
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-top: 15px;
}

.service-image {
    margin: -40px -30px 20px;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 20px 0;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
}

.faq-question a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    width: 100%;
}

.faq-answer {
    display: none;
    padding-top: 10px;
}

.faq-answer-visible {
    display: block;
}

.faq-item.active .faq-question::after {
    content: "-";
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
    width: auto;
}

/* Footer Styles */
.site-footer {
    background-color: var(--heading-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    color: #c0c0c0;
    max-width: 300px;
}

.footer-contact h3,
.footer-links h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 10px;
}

.footer-contact a,
.footer-links a {
    color: #c0c0c0;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #c0c0c0;
}

/* Legal Pages Styling */
.legal-page {
    background-color: var(--white);
    padding: 60px 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}

.legal-container h1 {
    color: var(--accent-color);
    margin-bottom: 30px;
}

.legal-container h2 {
    font-size: 1.8rem;
    margin-top: 30px;
}

.legal-container p,
.legal-container ul {
    margin-bottom: 20px;
}

.legal-container ul {
    margin-left: 20px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--white);
    max-width: 400px;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-link {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 80px 0;
}

.thank-you .container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(77, 106, 109, 0.2);
    position: relative;
    overflow: hidden;
}

.thank-you .container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
}

.thank-you h1 {
    color: var(--accent-color);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.thank-you p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.notification {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 0 auto 30px;
    max-width: 600px;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 0 auto 30px;
    max-width: 600px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.success-message p {
    margin: 0;
    font-size: 1.25rem;
}

.success-message svg {
    flex-shrink: 0;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--heading-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for thank you page */
@media (max-width: 768px) {
    .thank-you .container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .thank-you h1 {
        font-size: 2.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Error Messages */
.error-message {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.errors-list {
    background-color: #ffebee;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
}

.errors-list ul {
    margin-left: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .benefits-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Header Mobile Styling */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .header-phone {
        display: none;
    }
    
    /* Section Responsive */
    section {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .benefits-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .contact-form {
        padding: 25px;
    }
} 