/*
* File: style.css
* Author: AI Assistant
* Description: Stylesheet for the 'Consulting & Accounting' website.
*/

/* -------------------------------------------------------------------
    1. CSS Variables & Root Styles
------------------------------------------------------------------- */
:root {
    /* Color Palette - Complementary (Blue & Gold/Amber) */
    --primary-color: #0d47a1; /* Deep Corporate Blue */
    --accent-color: #ffab00;  /* Vibrant Gold/Amber */
    --accent-color-darker: #ff8f00; /* Darker Gold for hover */
    
    /* Neutral & Text Colors */
    --text-dark: #212121;      /* Very Dark Grey (almost black) */
    --text-medium: #5f6368;   /* Medium Grey */
    --text-light: #ffffff;      /* Pure White */
    
    /* Background Colors */
    --bg-light: #f8f9fa;      /* Off-white/Light Grey */
    --bg-dark: #1a1a1a;       /* Dark background for contrast sections */
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing & Borders */
    --section-padding: 6rem 0;
    --border-radius: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

/* -------------------------------------------------------------------
    2. Global Styles & Typography
------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-dark .section-title,
.bg-dark h3,
.bg-dark p,
.bg-dark li {
    color: var(--text-light);
}
.bg-dark .contact-info strong {
    color: var(--accent-color);
}

/* -------------------------------------------------------------------
    3. Buttons & Interactive Elements
------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------
    4. Header & Navigation
------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-dark);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}

/* -------------------------------------------------------------------
    5. Hero Section
------------------------------------------------------------------- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-light);
    text-align: center;
    padding: var(--section-padding);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 71, 161, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: var(--text-light);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* -------------------------------------------------------------------
    6. Card Component (Used for Features, Portfolio, etc.)
------------------------------------------------------------------- */
.features-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 1rem;
}

.card-content p {
    flex-grow: 1;
}


/* -------------------------------------------------------------------
    7. Methodology Section (Asymmetric & Accordion)
------------------------------------------------------------------- */
.asymmetric-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}

.accordion-content p {
    padding-bottom: 1.5rem;
}

.parallax-image-wrapper {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.parallax-image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

/* -------------------------------------------------------------------
    8. Awards & Press Section
------------------------------------------------------------------- */
.awards-press-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.awards-column ul {
    list-style: none;
}

.awards-column li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.animated-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.press-quote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.press-quote p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.press-quote footer {
    font-weight: 600;
    color: var(--text-dark);
}

/* -------------------------------------------------------------------
    9. Resources Section
------------------------------------------------------------------- */
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -3rem auto 4rem auto;
}

.resource-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

.resource-item:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transform: translateX(5px);
}

.resource-item h4 a {
    color: var(--text-dark);
}
.resource-item h4 a:hover {
    color: var(--primary-color);
}

/* -------------------------------------------------------------------
    10. Contact Section
------------------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info ul {
    list-style: none;
    margin: 2rem 0;
}
.contact-info li {
    margin-bottom: 1rem;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #757575;
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #bdbdbd;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0 0.5rem;
    color: var(--accent-color);
}

.contact-form button {
    width: 100%;
}

/* -------------------------------------------------------------------
    11. Footer
------------------------------------------------------------------- */
.site-footer {
    background-color: var(--bg-dark);
    color: #bdbdbd;
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-column p {
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a {
    color: #bdbdbd;
}

.footer-column ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #424242;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------
    12. Special Page Styles (Success, Privacy, etc.)
------------------------------------------------------------------- */
.page-container {
    padding-top: var(--header-height); /* Offset for fixed header */
}

.static-page-content {
    min-height: calc(100vh - var(--header-height) - 250px); /* 250px approx footer height */
    padding: 4rem 0;
}

.static-page-content h1 {
    margin-bottom: 2rem;
}

.static-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.success-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-light);
    text-align: center;
}

.success-container {
    background: var(--text-light);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.success-container h1 {
    color: var(--primary-color);
}


/* -------------------------------------------------------------------
    13. Responsive Design & Media Queries
------------------------------------------------------------------- */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
    }

    h1 { font-size: 2.8rem; }
    .hero-title { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .asymmetric-layout {
        grid-template-columns: 1fr;
    }
    
    .asymmetric-content.image-content {
        order: -1;
    }

    .parallax-image-wrapper {
        height: 350px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 100%;
        height: 100vh;
        background-color: var(--text-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        display: flex;
    }

    .main-nav.nav-active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .main-nav a {
        font-size: 1.5rem;
        color: var(--text-dark);
    }
    
    .burger-menu {
        display: block;
    }
    
    .burger-menu.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active .burger-bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        padding-left: 0;
    }
}