/*
* File: style.css
* Description: Stylesheet for 'FinanChile' Financial Consulting Website
* Design System: Brutalism with Hyperrealistic Textures
* Color Scheme: Bright
* Animation Style: Smooth Transitions
*/

/* ----------------------------------------------------------------
  1. CSS Variables & Global Styles
-----------------------------------------------------------------*/
:root {
    --primary-color: #00d1b2; /* Bright Teal - from Bulma */
    --primary-color-dark: #00a38d;
    --accent-color: #ffdd57; /* Bright Yellow */
    --dark-bg: #1f1f1f;
    --light-bg: #f5f5f5;
    --text-dark: #222222;
    --text-light: #ffffff;
    --text-grey: #a0a0a0;
    --border-color: #4a4a4a;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --header-height: 5rem;
}

html {
    scroll-behavior: smooth;
    background-color: var(--light-bg);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-dark);
}

.title {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

.section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
  2. Header & Navigation
-----------------------------------------------------------------*/
.header.is-fixed-top {
    background-color: rgba(31, 31, 31, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: var(--header-height);
}

.navbar-item, .navbar-link {
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light) !important;
}

.logo:hover {
    color: var(--primary-color) !important;
}

/* Burger Menu for Mobile */
.navbar-burger {
    color: var(--text-light);
    height: var(--header-height);
    width: var(--header-height);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--dark-bg);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .navbar-item {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
}


/* ----------------------------------------------------------------
  3. Global UI Components (Buttons, Cards)
-----------------------------------------------------------------*/
/* Global Button Styles */
.button.is-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.button.is-primary.is-outlined.is-inverted {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.button.is-primary.is-outlined.is-inverted:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Global Card Styles */
.card {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.card .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 .card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1; /* Allows content to fill space */
}

/* ----------------------------------------------------------------
  4. Section Specific Styles
-----------------------------------------------------------------*/

/* --- Hero Section --- */
.hero#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero .title.is-1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-light); /* Enforce white text */
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-light); /* Enforce white text */
    max-width: 700px;
    margin: 1rem auto 2rem;
}

/* --- Mission Section --- */
#mission .card-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- Team Section --- */
#team .card .card-image .image.is-1by1 {
    padding-top: 100%;
    position: relative;
}

#team .card .card-image .image.is-1by1 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#team .card-content .subtitle {
    color: var(--primary-color);
}

/* --- Customer Stories Section --- */
#stories {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#stories .story-card {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2rem;
}

#stories .story-card p {
    color: var(--text-light);
}

#stories .story-card .has-text-right {
    color: var(--accent-color);
    font-style: italic;
}

/* --- Awards Section --- */
#awards .column p {
    color: #555;
}
#awards .column .is-size-5 {
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Sustainability Section --- */
#sustainability .tabs.is-toggle a {
    border-width: 2px;
    border-color: var(--border-color);
    color: var(--text-dark);
}
#sustainability .tabs.is-toggle li.is-active a {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}
.sustainability-content {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid #dbdbdb;
}

/* --- External Resources Section --- */
#resources .resource-item {
    background-color: #fff;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}
#resources .resource-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateX(5px);
}
#resources .resource-item a {
    text-decoration: none;
    display: block;
}
#resources .resource-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
#resources .resource-item p {
    color: #555;
}

/* --- Contact Section --- */
#contact-form .label {
    font-weight: 600;
    color: var(--text-dark);
}
#contact-form .input,
#contact-form .textarea {
    border: 2px solid #dbdbdb;
    border-radius: 4px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#contact-form .input:focus,
#contact-form .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

/* ----------------------------------------------------------------
  5. Footer
-----------------------------------------------------------------*/
.footer {
    background-color: var(--dark-bg);
    padding: 3rem 1.5rem 2rem;
}

.footer .title {
    color: var(--text-light);
}

.footer p, .footer ul li a {
    color: var(--text-grey);
}

.footer ul li a {
    padding: 0.3rem 0;
    display: inline-block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

/* ----------------------------------------------------------------
  6. Utility & Animation Classes
-----------------------------------------------------------------*/
/* For scroll animations (to be triggered by JS) */
.fade-in, .slide-up, .slide-from-left, .slide-from-right {
    /*opacity: 0;*/
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in { transform: translateY(20px); }
.slide-up { transform: translateY(50px); }
.slide-from-left { transform: translateX(-50px); }
.slide-from-right { transform: translateX(50px); }

.fade-in.is-visible, .slide-up.is-visible, .slide-from-left.is-visible, .slide-from-right.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Animation delays */
.fade-in-delay-1 { transition-delay: 0.2s; }
.slide-up-delay-1 { transition-delay: 0.2s; }
.slide-up-delay-2 { transition-delay: 0.4s; }

/* ----------------------------------------------------------------
  7. Specific Page Styles
-----------------------------------------------------------------*/

/* --- Privacy, Terms, and other content pages --- */
.content-page {
    padding-top: calc(var(--header-height) + 2rem); /* Avoid overlap with fixed header */
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px); /* Ensure it's not too short */
}

.content-page h1 {
    margin-bottom: 2rem;
}
.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- Success Page --- */
body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--dark-bg);
    text-align: center;
}
.success-container {
    background: #fff;
    padding: 3rem 4rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.success-container h1 {
    color: var(--primary-color);
}
.success-container p {
    margin-bottom: 2rem;
}