/*
* File: style.css
* Author: FinanConsult Web Development
* Description: Main stylesheet for the Financial Consulting Website.
*/

/* ===================================================================
   1. CSS Variables & Root Configuration
   =================================================================== */

:root {
    /* Color Palette (Split-Complementary) */
    --color-primary-dark: #0A2540; /* Deep Navy Blue */
    --color-primary-light: #2c5b92;
    --color-secondary: #00A79D;    /* Vibrant Teal */
    --color-secondary-dark: #007a72;
    --color-accent: #FF8C42;       /* Warm Orange */
    --color-accent-dark: #e0722a;

    /* Background & Text Colors */
    --color-bg-dark: #051422;      /* Near Black Blue */
    --color-bg-light: #F8F9FA;     /* Off-White */
    --color-text-dark: #212529;    /* Dark Gray for text on light bg */
    --color-text-light: #E0E0E0;   /* Light Gray for text on dark bg */
    --color-white: #FFFFFF;
    --color-border: rgba(255, 255, 255, 0.2);

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

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 30px rgba(10, 37, 64, 0.25);
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===================================================================
   2. Base & Reset Styles
   =================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-family-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===================================================================
   3. Typography
   =================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.section-light h1, .section-light h2, .section-light h3 {
    color: var(--color-text-dark);
    text-shadow: none;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

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

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ===================================================================
   4. Layout & Helpers (Container, Section, Columns)
   =================================================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

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

.section-light p {
    color: #555;
}

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

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #adb5bd;
}

.section-light .section-subtitle {
    color: #6c757d;
}

/* Column system based on HTML structure */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.column {
    padding: 0 1rem;
    flex-grow: 1;
    flex-basis: 0;
}

.is-multiline {
    flex-wrap: wrap;
}

.is-half {
    flex: none;
    width: 50%;
}

.is-one-third {
    flex: none;
    width: 33.3333%;
}

.is-two-thirds {
    flex: none;
    width: 66.6667%;
}


/* ===================================================================
   5. Global Components (Buttons, Forms)
   =================================================================== */

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

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

.button:active {
    transform: translateY(-1px);
    box-shadow: none;
}

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

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

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

.button-accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
}

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

.section-light .button-secondary {
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

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

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

.button-full {
    width: 100%;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group-inline {
    display: flex;
    gap: 1.5rem;
}
.form-group-inline .form-group {
    flex: 1;
}

.contact-form label, .contact-form-page label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-light);
}
.contact-form-page label {
    color: var(--color-text-dark);
}

input[type="text"],
input[type="email"],
input[type="subject"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form-page input, .contact-form-page select, .contact-form-page textarea {
    background-color: var(--color-bg-light);
    border: 1px solid #ccc;
    color: var(--color-text-dark);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.contact-form-page input::placeholder, .contact-form-page textarea::placeholder {
    color: #999;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 167, 157, 0.3);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.contact-form-page select {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* ===================================================================
   6. Header & Navigation
   =================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.navbar-brand {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
}
.navbar-brand:hover {
    color: var(--color-white);
}

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

.navbar-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    position: relative;
}

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

.navbar-nav a:hover:not(.button) {
    color: var(--color-white);
}

.navbar-nav a:hover:not(.button)::after {
    width: 100%;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu span {
    width: 2rem;
    height: 3px;
    background: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* ===================================================================
   7. Hero Section
   =================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(5, 20, 34, 0.8) 0%, rgba(10, 37, 64, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    color: var(--color-white); /* Strict requirement */
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--color-white); /* Strict requirement */
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* ===================================================================
   8. Cards (Generic & Specific)
   =================================================================== */

/* --- Base Card Style --- */
.card {
    background-color: var(--color-primary-dark);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
    display: flex; /* STRICT */
    flex-direction: column; /* STRICT */
    text-align: center; /* STRICT */
}

.section-light .card {
    background-color: var(--color-white);
}

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

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

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

.image-container { /* STRICT */
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

/* --- Glassmorphism Card (Features) --- */
.glass-card {
    background: rgba(44, 91, 146, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    align-items: center; /* STRICT */
}
.glass-card .card-icon {
    padding-top: 2rem;
}
.glass-card .card-content {
    align-items: center; /* STRICT */
}
.glass-card h3 {
    margin: 1rem 0;
}

/* --- Price Card --- */
.price-card {
    padding: 2rem;
    border: 2px solid transparent;
    align-items: center; /* STRICT */
}
.price-card h3 {
    font-size: 1.3rem;
    color: var(--color-text-dark);
}
.price-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 1.5rem 0;
}
.price-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}
.price-card ul {
    list-style: none;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}
.price-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}
.price-card ul li:first-child {
    border-top: 1px solid #e9ecef;
}
.price-card.featured {
    border-color: var(--color-secondary);
    transform: scale(1.05);
    position: relative;
}
.featured-tag {
    position: absolute;
    top: -15px;
    background: var(--color-secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}
.price-card.featured .price {
    color: var(--color-secondary);
}

/* --- Blog & Event Cards --- */
.blog-card, .event-card {
    align-items: stretch; /* Override for cards with images on top */
    text-align: left;
}
.blog-card .card-content, .event-card .card-content {
    text-align: left;
}
.blog-category, .event-date {
    display: inline-block;
    background-color: rgba(0, 167, 157, 0.1);
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.event-card .card-content {
    display: flex;
    flex-direction: column;
}
.event-card h3 {
    margin-top: 0.5rem;
}
.event-card .button {
    margin-top: auto;
    align-self: flex-start;
}
.read-more {
    font-weight: 600;
    color: var(--color-accent);
    display: inline-block;
    margin-top: 1rem;
}
.read-more:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* --- Team Card --- */
.team-card {
    text-align: center;
    align-items: center; /* STRICT */
}
.team-card .image-container {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    margin-top: 2rem;
}
.team-card .image-container img {
    border-radius: 50%;
}
.team-card h3 {
    margin-top: 1.5rem;
    color: var(--color-text-dark);
}
.team-card span {
    color: var(--color-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===================================================================
   9. Section-Specific Styles
   =================================================================== */

/* --- Our Process --- */
.process-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.process-wrapper::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-secondary);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.process-step {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}
.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}
.process-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
    background: var(--color-secondary);
    border-radius: 50%;
    text-align: center;
    z-index: 1;
}
.process-step:nth-child(odd) .process-number {
    right: -30px;
}
.process-step:nth-child(even) .process-number {
    left: -30px;
}
.process-content h3 {
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

/* --- Partners --- */
.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.partners-logos img {
    max-height: 50px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition-smooth);
}
.partners-logos img:hover {
    opacity: 1;
}

/* --- External Resources --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.resource-card {
    display: block;
    padding: 2rem;
    background: rgba(44, 91, 146, 0.15);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    color: var(--color-text-light);
}
.resource-card:hover {
    background: rgba(44, 91, 146, 0.3);
    border-color: var(--color-secondary);
    transform: translateY(-5px);
}
.resource-card h4 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
.resource-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}
.resource-card .resource-url {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* --- Contact Section --- */
#contact {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 20, 34, 0.9);
}
.contact-container {
    position: relative;
    z-index: 2;
}
.contact-info h2 {
    color: var(--color-white);
}
.contact-info p {
    color: var(--color-text-light);
    line-height: 1.8;
}
.glass-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
}

/* --- Contact Page --- */
#contact-page .contact-details-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    height: 100%;
}
#contact-page .contact-details-card h3 {
    color: var(--color-primary-dark);
}
#contact-page .contact-details-card p {
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

/* ===================================================================
   10. Footer
   =================================================================== */

.site-footer {
    background-color: var(--color-primary-dark);
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}
.footer-col p {
    color: var(--color-text-light);
    opacity: 0.8;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul a {
    color: var(--color-text-light);
    opacity: 0.8;
}
.footer-col ul a:hover {
    color: var(--color-secondary);
    opacity: 1;
}
.social-links a { /* Text-only social links */
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-light);
    opacity: 0.8;
}
.social-links a:hover {
    color: var(--color-secondary);
    opacity: 1;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    opacity: 0.6;
}

/* ===================================================================
   11. Special Pages (Success, Legal)
   =================================================================== */

/* --- Success Page --- */
.success-page-body {
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.success-card {
    background-color: var(--color-primary-dark);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}
.success-card h1 {
    color: var(--color-white);
    margin: 1.5rem 0 1rem 0;
}
.success-card p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}
.success-icon svg {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw 0.5s ease-out forwards;
}
@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* --- Legal Pages (Privacy, Terms) & Page Headers --- */
.page-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-header .hero-overlay {
    background: linear-gradient(0deg, rgba(5, 20, 34, 0.9) 0%, rgba(10, 37, 64, 0.7) 100%);
}
.page-header h1, .page-header p {
    position: relative;
    z-index: 2;
}
.legal-page {
    padding: calc(var(--header-height) + 4rem) 0 4rem 0; /* IMPORTANT */
    background-color: var(--color-white);
    color: var(--color-text-dark);
}
.legal-page h1, .legal-page h2 {
    color: var(--color-text-dark);
    text-shadow: none;
    margin-bottom: 1.5rem;
}
.legal-page p {
    color: #555;
    margin-bottom: 1.5rem;
}

/* ===================================================================
   12. Responsive Design
   =================================================================== */

@media (max-width: 992px) {
    .columns .is-half,
    .columns .is-one-third,
    .columns .is-two-thirds {
        width: 50%;
    }
    .process-wrapper::after { left: 30px; }
    .process-step { width: 100%; padding-left: 80px; text-align: left !important; left: 0 !important; margin-bottom: 2rem; }
    .process-number { left: 0 !important; }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-primary-dark);
        transition: right 0.4s ease-in-out;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .navbar-menu.active {
        right: 0;
    }
    .navbar-nav {
        flex-direction: column;
        gap: 2rem;
    }
    .navbar-nav a {
        font-size: 1.5rem;
    }
    .burger-menu {
        display: flex;
    }
    .burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    
    .columns .column {
        width: 100% !important;
        flex: none;
        margin-bottom: 2rem;
    }
    .columns .column:last-child {
        margin-bottom: 0;
    }
    .form-group-inline {
        flex-direction: column;
        gap: 0;
    }
    #contact .columns {
        flex-direction: column;
    }
}