/* 
 * Main stylesheet for Domain - Accounting Services in Canada
 * Color Palette:
 * - Background: #0C1B2A (dark blue gradient)
 * - Main accent: #EAB308 (bright yellow)
 * - Text: #F3F4F6 (light gray)
 * - Buttons: gradient from #EAB308 to #FACC15
 * - Block backgrounds: #1E293B and semi-transparent white (#FFFFFF33)
 */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #F3F4F6;
    background-color: #0C1B2A;
    background-image: linear-gradient(to bottom, #0C1B2A, #16293F);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #EAB308;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: #FACC15;
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #F3F4F6;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    text-align: center;
    color: #EAB308;
}

/* Buttons */
.button, 
button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to right, #EAB308, #FACC15);
    color: #0C1B2A;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button:hover, 
button:hover {
    background: linear-gradient(to right, #FACC15, #FCD34D);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.button.secondary {
    background: transparent;
    border: 2px solid #EAB308;
    color: #EAB308;
}

.button.secondary:hover {
    background: rgba(234, 179, 8, 0.1);
    color: #FACC15;
    border-color: #FACC15;
}

/* Header Styles */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(12, 27, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    color: #EAB308;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: #F3F4F6;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #EAB308;
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a:focus::after {
    width: 100%;
}

.menu a.cta-button {
    background: linear-gradient(to right, #EAB308, #FACC15);
    color: #0C1B2A;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
}

.menu a.cta-button:hover {
    background: linear-gradient(to right, #FACC15, #FCD34D);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.menu a.cta-button::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
}

.menu-checkbox {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #EAB308;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 10px;
}

.menu-icon span:nth-child(3) {
    top: 20px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #1E293B;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    color: #F3F4F6;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

/* Mobile menu toggle functionality using :checked state */
#menu-toggle:checked ~ .mobile-menu {
    display: block;
}

#menu-toggle:checked + label span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

#menu-toggle:checked + label span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + label span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(12, 27, 42, 0.8), rgba(12, 27, 42, 0.9)), url('../img/jws51N.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Account for fixed header */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #F3F4F6;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #EAB308;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    background-color: #1E293B;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Advantages Section */
.advantages {
    background: linear-gradient(rgba(12, 27, 42, 0.9), rgba(12, 27, 42, 0.9)), url('../img/jU9dLu.jpg') no-repeat center center/cover;
    position: relative;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-item {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: #EAB308;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #EAB308;
}

.advantage-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #F3F4F6;
}

/* Services Section */
.services {
    background-color: #1E293B;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: #EAB308;
}

.service-image {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.service-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
}

.service-img:hover {
    transform: scale(1.05);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #F3F4F6;
}

.service-description {
    color: #D1D5DB;
}

/* Process Section */
.process {
    background-color: #0C1B2A;
    position: relative;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 30px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #EAB308;
    z-index: 1;
}

.process-step {
    display: flex;
    gap: 30px;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #EAB308, #FACC15);
    border-radius: 50%;
    font-weight: bold;
    color: #0C1B2A;
    font-size: 1.2rem;
    z-index: 2;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #F3F4F6;
}

.step-description {
    color: #D1D5DB;
}

/* Contact Form Section */
.contact {
    background: linear-gradient(rgba(12, 27, 42, 0.9), rgba(12, 27, 42, 0.9)), url('../img/jqFBnb.jpg') no-repeat center center/cover;
    position: relative;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(30, 41, 59, 0.9);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(234, 179, 8, 0.3);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #F3F4F6;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 5px;
    color: #F3F4F6;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #EAB308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input {
    margin-top: 6px;
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.error-message {
    background-color: rgba(220, 38, 38, 0.2);
    color: #FECACA;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 3px solid #DC2626;
}

/* Testimonials Section */
.testimonials {
    background-color: #1E293B;
}

.testimonial-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    position: relative;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: #D1D5DB;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: rgba(234, 179, 8, 0.2);
    position: absolute;
    top: 10px;
    left: 10px;
    line-height: 1;
}

.testimonial-content::after {
    content: '"';
    font-size: 3rem;
    color: rgba(234, 179, 8, 0.2);
    position: absolute;
    bottom: 0;
    right: 20px;
    line-height: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author-name {
    font-weight: bold;
    color: #EAB308;
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: #F3F4F6;
    opacity: 0.8;
}

/* FAQ Section */
.faq {
    background-color: #0C1B2A;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #F3F4F6;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

.faq-question:hover {
    background-color: rgba(234, 179, 8, 0.1);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #EAB308;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

/* Use PHP checkbox hack for FAQ toggle */
.faq-toggle {
    display: none;
}

.faq-toggle:checked + .faq-question {
    background-color: rgba(234, 179, 8, 0.1);
}

.faq-toggle:checked + .faq-question::after {
    content: '−';
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 20px;
}

/* Footer Styles */
.site-footer {
    background-color: #0A1522;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(234, 179, 8, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: #EAB308;
    margin-bottom: 15px;
}

.footer-description {
    color: #D1D5DB;
    margin-bottom: 20px;
}

.footer-contact h3,
.footer-nav h3,
.footer-legal h3 {
    color: #F3F4F6;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

.footer-contact h3::after,
.footer-nav h3::after,
.footer-legal h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #EAB308;
}

.footer-contact ul,
.footer-nav ul,
.footer-legal ul {
    list-style: none;
}

.footer-contact li,
.footer-nav li,
.footer-legal li {
    margin-bottom: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact .icon {
    font-size: 1.2rem;
    color: #EAB308;
}

.footer-contact a {
    color: #D1D5DB;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #EAB308;
    text-decoration: underline;
}

.footer-nav a,
.footer-legal a {
    color: #D1D5DB;
    text-decoration: none;
    position: relative;
    padding-left: 15px;
}

.footer-nav a::before,
.footer-legal a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #EAB308;
    transition: all 0.3s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: #EAB308;
}

.footer-nav a:hover::before,
.footer-legal a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #D1D5DB;
    font-size: 0.9rem;
}

/* Policy Pages Styles */
.policy-page {
    padding: 150px 0 80px;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(30, 41, 59, 0.9);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.policy-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #F3F4F6;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.policy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #EAB308, #FACC15);
    border-radius: 3px;
}

.policy-content {
    color: #D1D5DB;
}

.policy-content h2 {
    color: #EAB308;
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.policy-content h3 {
    color: #F3F4F6;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.policy-content p {
    margin-bottom: 15px;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content a {
    color: #EAB308;
    text-decoration: underline;
}

.policy-content a:hover {
    color: #FACC15;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1E293B;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cookie-link {
    color: #D1D5DB;
    text-decoration: underline;
}

.cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to right, #EAB308, #FACC15);
    color: #0C1B2A;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-button:hover {
    background: linear-gradient(to right, #FACC15, #FCD34D);
    transform: translateY(-3px);
}

/* Thank You Page */
.thank-you {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(12, 27, 42, 0.9), rgba(12, 27, 42, 0.9)), url('../img/jyY44Q.jpg') no-repeat center center/cover;
}

.thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(30, 41, 59, 0.9);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(234, 179, 8, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
}

.thank-you-icon {
    font-size: 5rem;
    color: #EAB308;
    margin-bottom: 20px;
}

.thank-you-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #F3F4F6;
}

.thank-you-message {
    color: #D1D5DB;
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .process-steps::before {
        left: 19px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }

    .advantages-list,
    .services-list,
    .testimonial-list {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 20px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .process-step {
        flex-direction: column;
        padding-left: 20px;
    }

    .step-number {
        position: absolute;
        left: 0;
        top: 0;
    }

    .process-steps::before {
        left: 19px;
        height: calc(100% - 40px);
        top: 20px;
    }

    .policy-container {
        padding: 30px 15px;
    }
}
