/*
* File: style.css
* Author: AI Assistant
* Description: Styles for the 'Financial Planning' website.
*/

/* -------------------------------------------------------------------
    1. CSS Variables & Root Styles
------------------------------------------------------------------- */

:root {
    /* Color Palette - Neutral Corporate */
    --primary-color: #0d6efd; /* A standard, trustworthy blue */
    --primary-hover-color: #0b5ed7;
    --secondary-color: #6c757d; /* Neutral gray for accents */
    --background-light: #f8f9fa; /* Light gray for section backgrounds */
    --background-dark: #212529; /* Dark gray for footer */
    --text-dark: #343a40; /* Primary text color */
    --text-light: #f8f9fa; /* Text on dark backgrounds */
    --border-color: #dee2e6;
    --white: #ffffff;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing & Borders */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
}

/* -------------------------------------------------------------------
    2. General Body & Typography
------------------------------------------------------------------- */

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    padding-top: 70px; /* Offset for fixed header */
    -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);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

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

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

/* -------------------------------------------------------------------
    3. Global Component Styles
------------------------------------------------------------------- */

/* ----- Buttons ----- */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-width: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ----- Cards ----- */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures content respects border-radius */
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    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.card-body, .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer elements like buttons to align */
    align-items: center;
}

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

/* ----- Forms ----- */
.form-control {
    border-radius: var(--border-radius-md);
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}


/* -------------------------------------------------------------------
    4. Sections
------------------------------------------------------------------- */

/* ----- Header ----- */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width .3s;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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


/* ----- Hero Section ----- */
.hero {
    min-height: 90vh;
    position: relative;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero .lead {
    color: var(--text-light);
    max-width: 800px;
    margin: 1.5rem auto;
}

/* ----- Parallax Background Utility ----- */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* ----- Insights (Accordion) ----- */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--primary-color);
    box-shadow: inset 0 -1px 0 var(--border-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* ----- Team Section ----- */
#team .card {
    background-color: transparent;
    box-shadow: none;
}
#team .card-image {
    height: auto; /* override default card height */
}

#team .img-fluid.rounded-circle {
    width: 180px;
    height: 180px;
    object-fit: cover;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

/* ----- Contact Section ----- */
#contact .card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
}

/* ----- Gallery Section ----- */
#gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow-hover);
}

/* -------------------------------------------------------------------
    5. Footer
------------------------------------------------------------------- */

footer {
    background-color: var(--background-dark);
    color: var(--text-light);
}

footer h5 {
    color: var(--white);
    letter-spacing: 1px;
}

footer p {
    color: var(--secondary-color);
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------------
    6. Specific Page Styles
------------------------------------------------------------------- */

/* ----- Success Page ----- */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}
.success-page h1 {
    color: var(--primary-color);
}

/* ----- Static Content Pages (Privacy, Terms) ----- */
.static-page-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.static-page-container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------
    7. Responsive Design
------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    body {
        padding-top: 60px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 80vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    footer .text-start, footer .text-end {
        text-align: center !important;
    }
}