/* 
   Domain - Accounting Services Website
   Color Palette:
   - Main background: #F5F7FB (icy white-blue)
   - Accents: #FF7F50 (coral), #2C3E50 (dark blue), #F1C40F (sunny yellow)
   - Text: #222222 (dark gray)
   - Buttons: gradient from #FF7F50 to #F1C40F
*/

/* Base Styles */
:root {
    --background: #F5F7FB;
    --coral: #FF7F50;
    --dark-blue: #2C3E50;
    --yellow: #F1C40F;
    --text: #222222;
    --light-text: #666666;
    --white: #FFFFFF;
    --light-gray: #EEEEEE;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--yellow);
}

section {
    padding: 80px 0;
}

.btn, button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to right, var(--coral), var(--yellow));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover, button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--coral);
    color: var(--coral);
}

.btn-outline:hover {
    background-color: var(--coral);
    color: var(--white);
}

.icon {
    width: 24px;
    height: 24px;
    fill: var(--coral);
    vertical-align: middle;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    color: var(--coral);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: var(--dark-blue);
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--coral);
}

.cta-button {
    background: linear-gradient(to right, var(--coral), var(--yellow));
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

/* PHP-based Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 200;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    position: absolute;
    height: 3px;
    width: 30px;
    background-color: var(--coral);
    transition: transform 0.3s ease;
}

.menu-icon {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon::before {
    content: "";
    top: -10px;
}

.menu-icon::after {
    content: "";
    bottom: -10px;
}

.menu-toggle:checked ~ .menu-button .menu-icon {
    background-color: transparent;
}

.menu-toggle:checked ~ .menu-button .menu-icon::before {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle:checked ~ .menu-button .menu-icon::after {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background) 0%, #e6eaf0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-title {
    text-align: center;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 3;
}

.about-image {
    flex: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Benefits Section */
.benefits {
    background-color: var(--background);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--coral);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--light-text);
    margin-bottom: 0;
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    background-color: var(--background);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(135deg, var(--background) 0%, #e6eaf0 100%);
    padding: 80px 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--coral) 0%, var(--yellow) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--white);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--white);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%232C3E50' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text);
}

.checkbox-group label a {
    color: var(--text);
    text-decoration: underline;
}

.form-group button {
    width: 100%;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--coral), var(--yellow));
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Footer Styles */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item .icon {
    margin-right: 10px;
    fill: var(--coral);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 10px;
}

.footer-section.links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section.links a:hover {
    color: var(--coral);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 15px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-consent.show {
    display: block;
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.policy-container h1 {
    margin-bottom: 30px;
    text-align: center;
}

.policy-container h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-container ul, .policy-container ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Thank You Page */
.thanks-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background) 0%, #e6eaf0 100%);
}

.thanks-container {
    text-align: center;
    padding: 50px 40px;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid var(--coral);
}

.thanks-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px dashed var(--coral);
    border-radius: calc(var(--radius-lg) - 10px);
    pointer-events: none;
}

.thanks-container::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--yellow);
    border-radius: calc(var(--radius-lg) - 15px);
    pointer-events: none;
}

.thanks-content {
    position: relative;
    z-index: 1;
}

.thanks-container h1 {
    color: var(--coral);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.thanks-container h1::after {
    content: '';
    display: block;
    width: 70%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--yellow), transparent);
    margin: 10px auto 0;
}

.thanks-container p {
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-button {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .policy-container {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
