/* 
* Domain - Accounting Services Website
* Main Stylesheet
* Colors:
* Primary: #9FBF3B (bright olive)
* Accent: #3B2F63 (deep indigo)
* Background: #F8F6F1 (ecru)
* Text: #2E2E2E (graphite)
* Buttons: #FBAF5D (peach) with hover #FB965D (darker peach)
*/

/* ============= Base Styles ============= */
:root {
    --primary: #9FBF3B;
    --accent: #3B2F63;
    --background: #F8F6F1;
    --text: #2E2E2E;
    --button: #FBAF5D;
    --button-hover: #FB965D;
    --white: #FFFFFF;
    --light-gray: #E8E8E8;
    --gray: #888888;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 2rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding-bottom: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background: var(--primary);
}

ul {
    list-style: none;
}

.accent-color {
    color: var(--primary);
}

/* ============= Buttons ============= */
.btn-primary {
    display: inline-block;
    background-color: var(--button);
    color: var(--white);
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--button-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border: 2px solid var(--accent);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-nav {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-nav:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ============= Header & Navigation ============= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 2.5rem;
}

.main-nav ul li a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.main-nav ul li a:hover, 
.main-nav ul li a.active {
    color: var(--primary);
}

.main-nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-nav ul li a:hover::after, 
.main-nav ul li a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
}

/* Mobile Menu */
.menu-toggle {
    width: 3rem;
    height: 2.5rem;
    position: relative;
    cursor: pointer;
    display: block;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 0.3rem;
    background-color: var(--accent);
    position: absolute;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* Main content wrapper */
main {
    margin-top: 8rem; /* Header height + some space */
    min-height: calc(100vh - 8rem - 30rem); /* 30rem is approx footer height */
}

/* ============= Hero Section ============= */
.hero {
    background-color: var(--white);
    padding: 10rem 0 8rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--gray);
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============= About Section ============= */
.about {
    background-color: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
}

.about-list li span {
    margin-right: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
}

/* ============= Benefits Section ============= */
.benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit-card {
    background-color: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin: 0 auto 2rem;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(159, 191, 59, 0.1);
    border-radius: 50%;
}

.benefit-card h3 {
    margin-bottom: 1.5rem;
}

/* ============= Services Section ============= */
.services {
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 20rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 2rem 2rem 1rem;
}

.service-card ul {
    padding: 0 2rem 2rem;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.service-card ul li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-card .btn-secondary {
    margin: 0 2rem 2rem;
    display: inline-block;
}

/* ============= Contact Section ============= */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-form {
    background-color: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-errors {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid red;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: darkred;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1.6rem;
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(159, 191, 59, 0.2);
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    cursor: pointer;
}

.services-select {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services-select label {
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.services-select input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    cursor: pointer;
}

/* ============= Testimonials Section ============= */
.testimonials {
    background-color: var(--background);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.testimonial-slide {
    flex: 1 1 30rem;
    min-width: 30rem;
}

.testimonial-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-stars {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    margin-top: 2rem;
}

/* ============= FAQ Section ============= */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    background-color: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    position: relative;
    padding: 2rem;
    cursor: pointer;
}

.faq-question a {
    color: var(--text);
    font-weight: 600;
    display: block;
    width: 100%;
    text-decoration: none;
}

.faq-icon {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    padding: 0 2rem 2rem;
    max-height: 50rem;
}

.faq-item.active {
    box-shadow: var(--shadow);
}

.faq-item.active .faq-question a {
    color: var(--primary);
}

/* ============= CTA Section ============= */
.cta {
    background-color: var(--accent);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 3.6rem;
}

.cta p {
    font-size: 2rem;
    margin-bottom: 3rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============= Footer ============= */
.site-footer {
    background-color: var(--text);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-info h3 {
    color: var(--primary);
}

.footer-contact h4,
.footer-links h4,
.footer-legal h4 {
    color: var(--white);
    margin-bottom: 2rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============= Thank You Page ============= */
.thank-you {
    text-align: center;
    padding: 12rem 0;
}

.thank-you-content {
    max-width: 60rem;
    margin: 0 auto;
}

.thank-you-content.framed {
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 4rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.thank-you-icon {
    width: 10rem;
    height: 10rem;
    margin: 0 auto 3rem;
}

/* ============= Policy Pages ============= */
.policy-page {
    padding: 8rem 0;
}

.policy-content {
    max-width: 80rem;
    margin: 0 auto;
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.policy-section {
    margin-bottom: 4rem;
}

.policy-section h2 {
    color: var(--accent);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.policy-section h3 {
    margin-top: 2rem;
}

.policy-section ul, 
.policy-section ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.policy-section ul li, 
.policy-section ol li {
    margin-bottom: 1rem;
}

.policy-section ul li {
    list-style-type: disc;
    margin-left: 2rem;
}

.policy-section ol li {
    list-style-type: decimal;
    margin-left: 2rem;
}

.policy-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    font-style: italic;
    color: var(--gray);
}

/* ============= Cookie Popup ============= */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 2rem 0;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1.5rem;
}

/* ============= Animations ============= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PHP-based animation classes (no JS required) */
.animate-on-load {
    animation: fadeIn 1s ease forwards;
}

.hero-content h1 {
    animation: slideInLeft 1s ease 0.2s forwards;
}

.hero-content p {
    animation: slideInLeft 1s ease 0.4s forwards;
}

.hero-content .btn-primary {
    animation: slideInLeft 1s ease 0.6s forwards;
}

.hero-image {
    animation: slideInRight 1s ease 0.4s forwards;
}

/* ============= Responsive Design ============= */
@media (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px = 1rem */
    }
    
    section {
        padding: 6rem 0;
    }
    
    .hero {
        padding: 8rem 0 6rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px = 1rem */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 7.5rem;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.open {
        max-height: 50rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem 0;
    }
    
    .main-nav ul li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .policy-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 5rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        margin-top: 1.5rem;
        justify-content: center;
    }
    
    .service-card {
        max-width: 35rem;
        margin: 0 auto;
    }
    
    .benefit-card {
        max-width: 30rem;
        margin: 0 auto;
    }
}

/* Add visibility classes for PHP-based animations */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
