/*
* File: style.css
* Author: AI Assistant
* Description: Stylesheet for the ConsulFin Financial Consulting website.
* Design System: Creative
* Color Scheme: Monochrome
* Animation Style: Smooth Transitions
*/

/* ---------------------------------- */
/*          CSS VARIABLES             */
/* ---------------------------------- */

:root {
    /* Color Palette (Monochromatic with a primary accent) */
    --color-background: #ffffff;
    --color-surface: #f8f9fa;
    --color-border: #dee2e6;
    --color-text: #343a40;
    --color-text-light: #6c757d;
    --color-headings: #212529;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-primary: #0d6efd; /* A strong blue for accents and CTAs */
    --color-primary-dark: #0b5ed7;

    /* Typography */
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --section-padding: 6rem 0;
    --container-width: 1200px;
    --border-radius: 8px;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* ---------------------------------- */
/*          BASE & RESET              */
/* ---------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* ---------------------------------- */
/*        TYPOGRAPHY & LINKS          */
/* ---------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-headings);
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}

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

p {
    margin-bottom: 1rem;
    max-width: 75ch;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ---------------------------------- */
/*        LAYOUT & CONTAINERS         */
/* ---------------------------------- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem;
    color: var(--color-text-light);
}

/* ---------------------------------- */
/*        GLOBAL COMPONENTS           */
/* ---------------------------------- */

/* --- Buttons --- */
.button-primary, .button-secondary {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-timing);
    text-decoration: none !important;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.button-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button-primary.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.full-width {
    width: 100%;
}


/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--transition-timing);
}

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

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

.card-title {
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: auto;
    padding-bottom: 1rem;
}

/* ---------------------------------- */
/*          HEADER & NAV              */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    transition: all var(--transition-speed) var(--transition-timing);
}

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

.nav-logo {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-headings);
    text-decoration: none;
}
.nav-logo:hover {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) var(--transition-timing);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.button-primary {
    padding: 0.5rem 1.2rem;
}
.nav-link.button-primary:hover::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-headings);
    transition: all var(--transition-speed) var(--transition-timing);
}


/* ---------------------------------- */
/*           HERO SECTION             */
/* ---------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: var(--color-white);
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------- */
/*          MISSION SECTION           */
/* ---------------------------------- */
.mission-section {
    background-color: var(--color-surface);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-image-container .image-wrapper {
    transform: skewX(-8deg) scale(1.05); /* Skewed grid effect */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.mission-image-container .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transform: skewX(8deg) scale(1.15); /* Un-skew the image */
}

/* ---------------------------------- */
/*          HISTORY SECTION           */
/* ---------------------------------- */
.history-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border: 4px solid var(--color-primary);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-surface);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.timeline-date {
    font-family: var(--font-family-headings);
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-title {
    margin-bottom: 0.5rem;
}

/* ---------------------------------- */
/*         PROJECTS SECTION           */
/* ---------------------------------- */
.projects-section {
    background-color: var(--color-surface);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-timing);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.project-card .card-image {
    height: 250px;
}

.project-card .card-content {
    padding: 1.5rem;
    text-align: left;
}

/* ---------------------------------- */
/*         WEBINARS SECTION           */
/* ---------------------------------- */
.webinar-card .card-content {
    text-align: left;
    position: relative;
    padding-top: 3rem;
}

.webinar-date {
    position: absolute;
    top: 1.5rem;
    left: -1px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.3rem 1rem;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.webinar-card .button-secondary {
    margin-top: 1rem;
    align-self: flex-start;
}

/* ---------------------------------- */
/*        COMMUNITY SECTION           */
/* ---------------------------------- */
.community-section {
    color: var(--color-white);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.community-section .section-title {
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.testimonial {
    max-width: 750px;
    margin: 0 auto 3rem;
}

.testimonial blockquote {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 500;
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.testimonial cite {
    font-weight: 600;
    font-style: normal;
    display: block;
    text-align: left;
    padding-left: 2.25rem;
    color: #e0e0e0;
}

/* ---------------------------------- */
/*       RESOURCES SECTION            */
/* ---------------------------------- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) var(--transition-timing);
    text-decoration: none;
    color: var(--color-text);
}

.resource-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    text-decoration: none;
    color: var(--color-text);
}

.resource-card h4 {
    color: var(--color-headings);
    margin-bottom: 0.75rem;
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    flex-grow: 1;
}

.resource-card span {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
    align-self: flex-start;
}

/* ---------------------------------- */
/*          CONTACT SECTION           */
/* ---------------------------------- */
.contact-section {
    background-color: var(--color-surface);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}


/* ---------------------------------- */
/*               FOOTER               */
/* ---------------------------------- */

.footer {
    background-color: var(--color-headings);
    color: #adb5bd;
    padding: 4rem 0 2rem;
}

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

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.9rem;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

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


/* ---------------------------------- */
/*       OTHER PAGES & UTILITIES      */
/* ---------------------------------- */

/* For pages like privacy.html, terms.html */
.content-page {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
}

.content-page .container {
    max-width: 800px;
}
.content-page h1 {
    margin-bottom: 2rem;
}

/* For success.html page */
.fullscreen-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}
.fullscreen-centered h1 {
    color: var(--color-headings);
    margin-bottom: 1rem;
}
.fullscreen-centered p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/*        RESPONSIVE DESIGN           */
/* ---------------------------------- */

@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
    }
    h1, .hero-title { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .mission-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .mission-image-container {
        margin-top: 2rem;
        order: -1; /* Move image to top on smaller screens */
    }

    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item::after {
        left: 21px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 1rem 0;
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: 1rem 0;
    }
    .nav-link:hover::after {
        width: 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 80vh;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
}