/*
================================================
  STYLE.CSS
  Theme: Proceso de Consultoría de Negocios
  Design System: Retro + Biomorphic
  Color Scheme: Tetradic
  Animation Style: 3D Effects
================================================
*/

/* ======== CSS VARIABLES ======== */
:root {
    /* Tetradic Color Scheme */
    --primary-color: #C84B31; /* Burnt Orange */
    --secondary-color: #2D4263; /* Dark Slate Blue */
    --accent-color-1: #1985A1; /* Teal */
    --accent-color-2: #ECDBBA; /* Cream/Beige */

    /* Text & Backgrounds */
    --text-dark: #222222;
    --text-light: #FFFFFF;
    --text-muted: #555555;
    --background-light: #F9F5F0;
    --background-dark: var(--secondary-color);
    --border-color: #e0e0e0;
    
    /* Fonts */
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Spacing & Borders */
    --section-padding: 6rem 1.5rem;
    --card-border-radius: 12px;
    --button-border-radius: 50px; /* Rounded buttons */
}

/* ======== GENERAL & BODY STYLES ======== */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
     }
}

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

.title {
    color: var(--text-dark) !important; /* Override Bulma */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.subtitle {
    color: var(--text-muted) !important; /* Override Bulma */
    font-family: var(--font-body);
    font-weight: 400;
}

p {
    margin-bottom: 1.25rem;
}

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

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

/* ======== HEADER & NAVBAR ======== */
.navbar.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.navbar-burger {
    color: var(--secondary-color);
}

/* ======== BUTTONS ======== */
.button {
    font-family: var(--font-headings);
    border-radius: var(--button-border-radius);
    font-weight: 600;
    padding: 1.5em 2.5em;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateZ(0); /* Promotes hardware acceleration */
    border: 2px solid transparent;
}

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

.button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button.is-primary:hover {
    background-color: #e05a46;
    border-color: #e05a46;
}

/* ======== SECTION STYLES ======== */
.section {
    padding: var(--section-padding);
}

/* ======== HERO SECTION ======== */
#hero .hero-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero .title.is-1 {
    font-size: 4rem;
    color: var(--text-light) !important;
    margin-bottom: 1.5rem;
}

#hero .subtitle.is-3 {
    color: var(--text-light) !important;
    max-width: 800px;
    margin: 0 auto 2rem;
}

@media screen and (max-width: 768px) {
    #hero .title.is-1 {
        font-size: 2.5rem;
    }
    #hero .subtitle.is-3 {
        font-size: 1.25rem;
    }
}

/* ======== CARDS ======== */
.card {
    background-color: var(--text-light);
    border-radius: var(--card-border-radius);
    box-shadow: 0 8px 16px rgba(45, 66, 99, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    height: 100%; /* Ensure cards in a row have same height */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) rotateY(-2deg);
    box-shadow: 0 15px 30px rgba(45, 66, 99, 0.2);
}

.card .image-container {
    height: 250px; /* Fixed height for consistent card appearance */
    width: 100%;
    overflow: hidden;
}

.card .card-image img, .card .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.card .card-content {
    text-align: left;
    padding: 2rem;
    flex-grow: 1; /* Allow content to grow and push footer down */
}

/* Team section specific card centering */
#team .card {
    text-align: center;
}
#team .card-content .media {
    justify-content: center;
    text-align: center;
}

/* ======== TIMELINE SECTION ======== */
.timeline .timeline-item .timeline-marker {
    background-color: var(--secondary-color);
}
.timeline .timeline-item.is-primary .timeline-marker {
    background-color: var(--accent-color-1);
}
.timeline .timeline-header .tag {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* ======== STATISTICS SECTION ======== */
#statistics {
    background: var(--background-dark);
    color: var(--text-light);
}

#statistics .level-item .heading {
    color: var(--accent-color-2);
    font-family: var(--font-body);
    font-weight: 500;
}

#statistics .level-item .title {
    font-size: 3.5rem;
    color: var(--text-light);
    font-weight: 700;
}

/* ======== RESOURCES SECTION ======== */
.resource-card {
    background-color: var(--background-light);
    border-left: 5px solid var(--accent-color-1);
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.resource-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.resource-card .resource-title {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.resource-card .resource-description {
    color: var(--text-muted);
}

/* ======== CLIENTELE SECTION ======== */
#clientele img {
    transition: all 0.4s ease;
    max-width: 150px;
}
#clientele img:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* ======== CONTACT FORM ======== */
.modern-input {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 75, 49, 0.25);
}

.label {
    font-weight: 600;
    color: var(--text-dark);
}

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

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

.footer a {
    color: var(--accent-color-2) !important;
    transition: color 0.3s ease;
}

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

.footer .content p {
    color: var(--accent-color-2);
}

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

/* ======== SPECIFIC PAGE STYLES ======== */
/* for success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
    padding: 2rem;
}
.success-page-container .icon {
    color: var(--primary-color);
    font-size: 5rem;
}

/* for privacy.html, terms.html */
.static-content-page {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.static-content-page .content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.static-content-page .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ======== ANIMATIONS ON SCROLL ======== */
/* ScrollReveal.js will handle this, but we set initial state */
.scroll-reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ======== RESPONSIVE DESIGN ======== */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
    }
    .navbar-menu.is-active {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
    .title {
        font-size: 2rem !important;
    }
    .subtitle {
        font-size: 1.1rem !important;
    }
    #statistics .level.is-mobile {
        flex-direction: column;
    }
    #statistics .level-item {
        margin-bottom: 2rem;
    }
    #statistics .level-item:last-child {
        margin-bottom: 0;
    }
    .footer {
        text-align: center;
    }
    .footer .columns {
        flex-direction: column;
    }
}