/* 
 * domain.com - Financial Auditing Website
 * Responsive CSS Stylesheet
 */

/* ------------------------------
 * Color Variables
 * Deep Pistachio: #94C973
 * Electric Lavender: #B99AFF
 * Coral Rose: #F26D6D
 * Jet Black: #2D2D2D
 * Paper White: #F8F8F1
 * ------------------------------ */
:root {
    --color-primary: #94C973;
    --color-secondary: #B99AFF;
    --color-accent: #F26D6D;
    --color-dark: #2D2D2D;
    --color-light: #F8F8F1;
    --font-main: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --border-radius: 4px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ------------------------------
 * Reset & Base Styles
 * ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style: none;
}

/* ------------------------------
 * Typography
 * ------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    margin: 1rem auto 0;
}

/* ------------------------------
 * Container & Layout
 * ------------------------------ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: rgba(148, 201, 115, 0.1); /* Light primary color */
}

/* ------------------------------
 * Grid System
 * ------------------------------ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    flex: 1;
    padding: 0 1rem;
}

/* Grid columns */
.col-1 { flex-basis: 8.33333%; max-width: 8.33333%; }
.col-2 { flex-basis: 16.66667%; max-width: 16.66667%; }
.col-3 { flex-basis: 25%; max-width: 25%; }
.col-4 { flex-basis: 33.33333%; max-width: 33.33333%; }
.col-5 { flex-basis: 41.66667%; max-width: 41.66667%; }
.col-6 { flex-basis: 50%; max-width: 50%; }
.col-7 { flex-basis: 58.33333%; max-width: 58.33333%; }
.col-8 { flex-basis: 66.66667%; max-width: 66.66667%; }
.col-9 { flex-basis: 75%; max-width: 75%; }
.col-10 { flex-basis: 83.33333%; max-width: 83.33333%; }
.col-11 { flex-basis: 91.66667%; max-width: 91.66667%; }
.col-12 { flex-basis: 100%; max-width: 100%; }

/* ------------------------------
 * Buttons
 * ------------------------------ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-dark);
    color: white;
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--color-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ------------------------------
 * Header & Navigation
 * ------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 248, 241, 0.95);
    box-shadow: var(--box-shadow);
    z-index: 100;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    z-index: 101;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 1rem;
}

.nav-item a {
    color: var(--color-dark);
    font-weight: 500;
}

.nav-item a:hover {
    color: var(--color-primary);
}

.nav-item.active a {
    color: var(--color-primary);
}

.menu-toggle, .menu-icon {
    display: none;
}

/* ------------------------------
 * Hero Section
 * ------------------------------ */
.hero {
    padding: 10rem 0 8rem;
    background-image: linear-gradient(135deg, rgba(148, 201, 115, 0.1) 0%, rgba(185, 154, 255, 0.1) 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ------------------------------
 * Services
 * ------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(148, 201, 115, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-title {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* ------------------------------
 * About Section
 * ------------------------------ */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ------------------------------
 * Testimonials
 * ------------------------------ */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 5rem;
    line-height: 1;
    opacity: 0.1;
    font-family: var(--font-heading);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: 0.9rem;
    color: #666;
}

/* ------------------------------
 * Case Studies
 * ------------------------------ */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-study:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.case-desc {
    margin-bottom: 1.5rem;
}

/* ------------------------------
 * Blog
 * ------------------------------ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* ------------------------------
 * Contact Form
 * ------------------------------ */
.form-section {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(148, 201, 115, 0.2);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23666' d='M0 0l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-input {
    margin-right: 0.5rem;
}

.checkbox-label a {
    text-decoration: underline;
}

.form-submit {
    margin-top: 1.5rem;
}

/* ------------------------------
 * Footer
 * ------------------------------ */
.site-footer {
    background-color: var(--color-dark);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo .logo-text {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ------------------------------
 * Cookie Banner
 * ------------------------------ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-close {
    white-space: nowrap;
}

/* ------------------------------
 * Policy Pages
 * ------------------------------ */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-title {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-subtitle {
    margin-bottom: 1.2rem;
}

/* ------------------------------
 * Thank You Page
 * ------------------------------ */
.thank-you {
    text-align: center;
    padding: 8rem 0;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 2px solid var(--color-primary);
}

.thank-you-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.thank-you-desc {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ------------------------------
 * Utility Classes
 * ------------------------------ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ------------------------------
 * Responsive Styles
 * ------------------------------ */
@media (max-width: 991px) {
    /* Fix for horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 9rem 0 7rem;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .col {
        flex-basis: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 8rem 0 6rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .form-section {
        padding: 2rem;
    }
    
    /* Mobile Navigation */
    .menu-icon {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative;
        z-index: 101;
    }
    
    .menu-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--color-dark);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    
    .menu-icon span:nth-child(1) {
        top: 0px;
    }
    
    .menu-icon span:nth-child(2) {
        top: 9px;
    }
    
    .menu-icon span:nth-child(3) {
        top: 18px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 0.8rem 0;
        width: 100%;
    }
    
    .nav-item.cta-item {
        margin-top: 2rem;
    }
    
    .nav-item.cta-item a {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .hero {
        padding: 7rem 0 5rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
}
