/* 
   Domain - Financial Audit Website
   Main Stylesheet
   Colors:
   - Deep Blue: #002e5d
   - Lemon Yellow: #ffe600
   - Soft Teal: #00bfa6
   - Light Ivory: #fefcf9
   - Graphite Black: #1c1c1c
*/

/* Base styles and resets */
:root {
    --blue: #002e5d;
    --yellow: #ffe600;
    --teal: #00bfa6;
    --ivory: #fefcf9;
    --black: #1c1c1c;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 6px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--ivory);
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--blue);
    font-weight: 700;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--yellow);
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--teal);
}

ul {
    list-style: none;
}

section {
    padding: 3rem 0;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--teal);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--blue);
}

.btn-primary:hover {
    background-color: var(--blue);
    color: white;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 46, 93, 0.95);
    padding: 1rem;
    color: white;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content a {
    color: var(--yellow);
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 120px;
}

/* Navigation */
.main-nav {
    position: relative;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    position: absolute;
    top: -35px;
    right: 0;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 110;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background-color: var(--blue);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu li a {
    font-weight: 600;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--yellow);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link:before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23002e5d'%3E%3Cpath d='M20,15.5c-1.2,0-2.4-0.2-3.5-0.6c-0.4-0.1-0.8,0-1.1,0.3l-2.2,2.2c-2.8-1.5-5.2-3.8-6.8-6.8l2.2-2.2c0.3-0.3,0.4-0.7,0.3-1.1C8.5,6.4,8.3,5.2,8.3,4c0-0.6-0.4-1-1-1H4c-0.6,0-1,0.4-1,1c0,9.4,7.6,17,17,17c0.6,0,1-0.4,1-1v-3.5C21,15.9,20.6,15.5,20,15.5z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Hero Section */
.hero {
    background-color: white;
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-content .btn {
    align-self: flex-start;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: skew(-3deg);
    transition: var(--transition);
    animation: slideIn 1s ease-out 0.3s backwards;
}

.hero-image:hover {
    transform: skew(-3deg) scale(1.02);
}

/* About Section */
.about {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Benefits Section */
.benefits {
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
}

.benefit-card {
    background-color: var(--ivory);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    background-color: var(--yellow);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--blue);
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.service-comparison {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.service-card.featured {
    border: 2px solid var(--yellow);
    transform: translateY(-10px);
}

.service-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--yellow);
    color: var(--blue);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

.service-card h3 {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 0;
    background-color: var(--blue);
    color: white;
}

.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card ul {
    padding: 1.5rem;
    margin: 0;
}

.service-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

.service-footer {
    background-color: var(--ivory);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--medium-gray);
}

.service-footer p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--ivory);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-content {
    position: relative;
    padding-left: 2rem;
}

.testimonial-content:before {
    content: """;
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: var(--yellow);
    line-height: 1;
    font-family: serif;
    opacity: 0.7;
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--blue);
}

.author-position {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Order Form Section */
.order-form {
    background-color: var(--light-gray);
    position: relative;
}

.order-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 191, 166, 0.1) 0%, rgba(255, 230, 0, 0.1) 100%);
    z-index: 0;
    pointer-events: none;
}

.order-form .container {
    position: relative;
    z-index: 1;
}

form {
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input:not([type="checkbox"]),
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 191, 166, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}

.form-group.checkbox input {
    margin-top: 0.3rem;
    width: auto;
}

/* FAQ Section */
.faq {
    background-color: white;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--ivory);
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 1rem;
    background-color: white;
}

.faq-toggle:checked + .faq-question:after {
    transform: rotate(45deg);
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 1000px;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--teal);
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.site-footer {
    background-color: var(--blue);
    color: white;
    padding: 3rem 0 1rem;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-summary {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
}

.footer-section h3 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--yellow);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.contact-info svg {
    color: var(--yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Policy Pages - Unified Styling */
.policy {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.policy h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
}

.last-updated {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: right;
}

.policy-content h2 {
    color: var(--blue);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
}

.policy-content h2:after {
    display: none;
}

.policy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
}

.policy-content address {
    margin-bottom: 1.5rem;
    font-style: normal;
}

/* Thank You Page */
.thank-you {
    padding: 5rem 0;
    background-color: var(--light-gray);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.thank-you-icon {
    color: var(--teal);
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

.thank-you h1 {
    color: var(--blue);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.thank-you p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(50px) skew(-3deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) skew(-3deg);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-comparison {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-slider {
        flex-direction: row;
    }
    
    .testimonial-card {
        flex: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    /* Fixed mobile layout issues */
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .header-contact {
        display: none;
    }
    
    .nav-toggle-label {
        display: flex;
    }
    
    /* Modified mobile menu to slide from right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px; /* Start off-screen */
        background-color: white;
        width: 80%;
        max-width: 300px;
        height: 100vh; /* Full height */
        flex-direction: column;
        padding: 80px 1.5rem 1.5rem; /* Add top padding for header */
        gap: 0.5rem;
        box-shadow: var(--shadow);
        transform: none; /* Remove translateY */
        opacity: 1;
        transition: right 0.3s ease; /* Smoother transition */
        z-index: 100;
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    /* Animate hamburger icon */
    .nav-toggle:checked ~ .nav-toggle-label span {
        background-color: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        bottom: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .nav-toggle:checked ~ .nav-menu {
        right: 0; /* Slide in from right */
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-image {
        height: auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        transform: none;
    }
    
    .hero-image:hover {
        transform: none;
    }
    
    .benefit-card:hover {
        transform: none;
    }
    
    .testimonial-content {
        padding-left: 1rem;
    }
    
    .testimonial-content:before {
        font-size: 3rem;
        top: -10px;
        left: -5px;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Fix horizontal scrolling for elements */
    .policy-content {
        width: 100%;
        padding: 1.5rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .site-header, 
    .site-footer, 
    .cookie-consent {
        display: none;
    }
    
    body {
        color: black;
        background-color: white;
    }
    
    .container {
        width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
} 