/*
    style.css
    Theme: Educational Trading Programs in Argentina
    Design System: Minimalist with Dynamic Color Transitions
    Color Scheme: Complementary
    Fonts: Montserrat (Headings), Merriweather (Body)
*/

/* ----------------------------------------------------------------
    1. CSS Variables & Global Styles
------------------------------------------------------------------- */
:root {
    --primary-color: #F4A261; /* Vibrant Orange/Gold */
    --secondary-color: #0A2342; /* Deep Navy Blue */
    --accent-color: #E76F51; /* Coral Accent */
    
    --background-light: #F8F9FA;
    --background-dark: #0A2342;

    --text-dark: #222222;
    --text-body: #363636;
    --text-light: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    --border-radius: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s ease;
}

/* Global Reset & Base Styles */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light);
}

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

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

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

a {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

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

.section {
    padding: 6rem 1.5rem;
}

/* ----------------------------------------------------------------
    2. Header & Navigation
------------------------------------------------------------------- */
.navbar.is-fixed-top {
    background-color: transparent;
    transition: background-color var(--transition-speed);
}

.navbar.is-fixed-top.is-scrolled {
    background: linear-gradient(90deg, rgba(10,35,66,0.98) 0%, rgba(15,45,80,0.95) 100%);
    box-shadow: var(--shadow-light);
}

.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    color: var(--text-light);
    transition: color var(--transition-speed);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--secondary-color);
        box-shadow: var(--shadow-strong);
    }
}

/* ----------------------------------------------------------------
    3. Hero Section
------------------------------------------------------------------- */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#hero .title, #hero .subtitle {
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ----------------------------------------------------------------
    4. General Components (Buttons, Cards, Forms)
------------------------------------------------------------------- */

/* Global Button Styles */
.button.is-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--text-light);
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--shadow-light);
}

.button.is-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: var(--text-light);
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards in a row have same height */
    text-align: center;
}

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

.card .image-container {
    height: 220px; /* Fixed height for consistent image sizes */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .card-image img, .card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill the space */
}

/* Special card for testimonials */
#clientele .card-content .image-container {
    height: auto; /* Let Bulma's class control the size */
    width: auto;
    margin-bottom: 1rem;
}

#clientele .image.is-128x128 img {
    border: 4px solid var(--primary-color);
}

/* Resource Card Styles */
.resource-card a {
    text-decoration: none;
}

.resource-card .title:hover {
    color: var(--accent-color);
}

/* Form Styles */
.contact-form .input, .contact-form .textarea {
    border-radius: var(--border-radius);
    border: 1px solid #dbdbdb;
    box-shadow: none;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    font-family: var(--font-body);
}

.contact-form .input:focus, .contact-form .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(244, 162, 97, 0.25);
}

.contact-form .label {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

/* ----------------------------------------------------------------
    5. Section Specific Styles
------------------------------------------------------------------- */
#history img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
}

#events .box {
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: box-shadow var(--transition-speed);
}

#events .box:hover {
    box-shadow: var(--shadow-strong);
}

/* ----------------------------------------------------------------
    6. Footer
------------------------------------------------------------------- */
.footer {
    background-color: var(--background-dark);
    padding: 4rem 1.5rem 4rem;
    color: var(--text-light);
}

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

.footer a {
    color: var(--text-light);
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer a:hover {
    color: var(--text-light);
    opacity: 1;
}

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

/* ----------------------------------------------------------------
    7. Utility & Page-Specific Styles
------------------------------------------------------------------- */
/* Animation class for scroll-triggered effects */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles for static pages like privacy.html, terms.html */
.static-page-content {
    padding-top: 10rem; /* Push content below fixed navbar */
    padding-bottom: 5rem;
    min-height: 80vh;
}

/* Styles for success.html */
body.success-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, var(--secondary-color), #2c3e50);
    text-align: center;
}

.success-container {
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    color: var(--text-dark);
}

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

/* ----------------------------------------------------------------
    8. Responsive Adjustments
------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    .section {
        padding: 4rem 1rem;
    }
    h1.title.is-1 {
        font-size: 2.5rem;
    }
    h2.title.is-2 {
        font-size: 2rem;
    }

    .static-page-content {
        padding-top: 8rem;
    }
}