/* EstConsultores - style.css */
/* Design System: Minimalist with Eco-minimalism elements */
/* Color Scheme: Complementary */
/* Animation Style: Morphing (smooth transitions, hover effects) */
/* Fonts: Archivo Black (headings), Roboto (body) */

:root {
    --primary-color: #00695C; /* Dark Cyan/Teal */
    --primary-color-rgb: 0, 105, 92;
    --primary-darker: #004D40;
    --accent-color: #FFB74D;  /* Warm Orange/Amber */
    --accent-darker: #FFA000; 

    --text-color-light-bg: #363636; /* Default text on light backgrounds */
    --text-color-medium-contrast: #555555; /* For subtitles or less prominent text */
    --text-color-dark-bg: #FFFFFF;
    --heading-color: #222222; 

    --background-color-light: #F8F9FA; 
    --background-color-page: #FFFFFF; 
    --background-color-dark-section: #2C3E50; /* Example for a dark section if needed */
    
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --border-radius: 8px;
    --border-radius-small: 4px;
    --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.12);

    --header-height: 5rem; /* Approx 80px, adjust if needed */
    --section-padding-y: 4rem;
    --section-padding-x: 1.5rem;
}

/* Global Styles & Resets */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-body);
    color: var(--text-color-light-bg);
    background-color: var(--background-color-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: normal; /* Archivo Black is already bold */
}
.title {
    color: var(--heading-color); /* Ensure Bulma title uses custom color */
}
.subtitle {
    color: var(--text-color-medium-contrast); /* Softer color for subtitles */
    font-family: var(--font-body); /* Subtitles often better in body font */
    font-weight: 400;
}

/* Paragraphs and Content */
p, .content p {
    font-family: var(--font-body);
    color: var(--text-color-light-bg);
    margin-bottom: 1rem;
}
.content {
    font-size: 1rem;
}
.content h1, .content h2, .content h3, .content h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
}

/* Links */
a {
    color: var(--primary-color);
    transition: color 0.3s ease, opacity 0.3s ease;
}
a:hover {
    color: var(--primary-darker);
    opacity: 0.85;
}

/* Sections */
.section {
    padding: var(--section-padding-y) var(--section-padding-x);
    position: relative; /* For potential absolute positioned elements */
}
.section.has-background-light {
    background-color: var(--background-color-light) !important; /* Override Bulma if necessary */
}
.section-title {
    text-align: center;
    margin-bottom: 2.5rem; /* Space below title */
    font-size: 2.5rem; /* Default section title size */
    color: var(--heading-color);
}
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .section {
        padding: calc(var(--section-padding-y) * 0.75) var(--section-padding-x);
    }
}

/* Header & Navigation */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.95); /* Slight transparency for eco-minimalist glass effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: var(--header-height);
    z-index: 1000; /* Ensure it's above other content */
}
.header .navbar {
    min-height: var(--header-height);
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    font-weight: bold; /* Archivo Black is bold, but explicit */
}
.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-color-light-bg);
    transition: color 0.3s ease;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}
.navbar-burger {
    color: var(--primary-color);
    height: var(--header-height); /* Ensure burger aligns */
    width: var(--header-height);
}
.navbar-burger span {
    background-color: var(--primary-color);
    height: 2px;
}
@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,.1);
        padding: 0.5rem 0;
        border-bottom-left-radius: var(--border-radius-small);
        border-bottom-right-radius: var(--border-radius-small);
    }
    .navbar-menu .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}


/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--border-radius-small);
    padding: 0.75em 1.5em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border-width: 2px; /* For outlined buttons to match thickness */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.button:focus, button:focus {
    outline: none;
}
.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}
.button.is-primary:hover, .button.is-primary:focus {
    background-color: var(--primary-darker);
    border-color: var(--primary-darker);
    color: var(--text-color-dark-bg);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover, .button.is-primary.is-outlined:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-light);
}
.button.is-large {
    font-size: 1.1rem;
    padding: 1em 2em;
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    /* Parallax effect if needed via JS or simple CSS */
    /* background-attachment: fixed; */ /* Simple parallax, can conflict with complex JS parallax */
}
.hero-title {
    font-size: 3.5rem; /* Large, impactful */
    margin-bottom: 1rem;
    color: var(--text-color-dark-bg) !important; /* STROGO: White text */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Ensure readability */
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color-dark-bg) !important; /* STROGO: White text */
    font-family: var(--font-body);
    font-weight: 400;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4); /* Ensure readability */
}
.hero-shape-divider {
    position: absolute;
    bottom: -1px; /* Ensure it sits flush or slightly overlaps */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg); /* If SVG is drawn upside down */
}
.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px); /* Adjust for slight scaling issues */
    height: 80px; /* Adjust height as needed */
}
.hero-shape-divider .shape-fill {
    fill: var(--background-color-page); /* Color of the next section or page background */
}
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-shape-divider svg {
        height: 50px;
    }
}

/* Generic Card Styles */
.card {
    background-color: var(--background-color-page);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row have same height if needed by Bulma columns */
    overflow: hidden; /* Ensures content respects border-radius */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.card .card-image { /* Bulma's .card-image or custom .image-container */
    position: relative;
    overflow: hidden; /* Important for object-fit and border-radius */
}
.card .card-image img { /* General styling for images in cards */
    display: block;
    width: 100%;
    object-fit: cover; /* Default for most card images */
    border-top-left-radius: var(--border-radius); /* If image is at the very top */
    border-top-right-radius: var(--border-radius);
}
.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill available space */
    display: flex;
    flex-direction: column;
}
.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    margin-top: auto; /* Pushes content down if card header exists, or if title/subtitle are short */
}
.card .card-content p:last-child {
    margin-bottom: 0;
}

/* Methodology Section Cards */
.methodology-card {
    text-align: center;
}
.methodology-card .card-image figure {
    margin: 0 auto 1rem auto; /* Center icon */
}
.methodology-card .card-image img {
    border-radius: 0; /* Icons typically don't need rounded corners */
    height: auto; /* Let icon size be intrinsic or set by Bulma figure class */
    object-fit: contain;
}
.methodology-card .card-content .title {
    font-size: 1.25rem;
}

/* Clientele Section (Swiper Logos) */
.clientele-swiper .card {
    box-shadow: none; /* Simpler look for logo carousel */
    background-color: transparent; /* Or a very light background */
}
.clientele-swiper .card:hover {
    transform: none; /* No hover effect for simple logos */
    box-shadow: none;
}
.clientele-swiper .card .card-image { /* Container for logo */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    min-height: 100px; /* Consistent height for logo area */
}
.clientele-swiper .card .card-image img {
    width: auto;
    max-width: 160px;
    height: 60px; /* Fixed height for logos */
    object-fit: contain;
    border-radius: 0;
}
.clientele-swiper .card .card-content {
    text-align: center;
    padding-top: 0.5rem; /* Less padding if only title/subtitle */
}
.clientele-swiper .card .card-content .title {
    font-size: 1.1rem;
}
.clientele-swiper .card .card-content .subtitle {
    font-size: 0.85rem;
}

/* Success Stories & News Cards */
.success-story-card .card-image img,
.news-card .card-image img {
    height: 220px; /* Fixed height for cover images */
    object-fit: cover;
}
.news-card .card-content .subtitle { /* For publish date */
    font-size: 0.8rem;
    color: var(--text-color-medium-contrast);
    margin-bottom: 0.5rem;
}
.read-more {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    display: inline-block;
    margin-top: 0.75rem;
}
.read-more:hover {
    color: var(--accent-darker);
    text-decoration: underline;
    letter-spacing: 0.5px;
}

/* External Resources Cards */
.resource-card {
    background-color: var(--background-color-light); /* Differentiate slightly */
}
.resource-card .card-content .title a {
    font-size: 1.15rem;
    color: var(--primary-color);
}
.resource-card .card-content .title a:hover {
    color: var(--accent-darker);
}
.resource-card .card-content p:not(.title) {
    font-size: 0.9rem;
    color: var(--text-color-medium-contrast);
}

/* Swiper Carousel Styles */
.swiper-container {
    width: 100%;
    padding-top: 1rem; /* Space for pagination/title */
    padding-bottom: 3rem; /* Space for pagination */
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Make cards in a row stretch to same height */
}
.swiper-pagination-bullet {
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}
.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    color: var(--accent-darker);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.5rem !important; /* Adjust Swiper icon size */
}

/* Contact Section */
.contact-section {
    /* background-color: var(--background-color-light); */ /* Already set in HTML */
}
.contact-section .map-container img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 350px; /* Limit map height */
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
}
.contact-section .icon-text .icon img {
    width: 20px; /* Consistent icon size */
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
    /* filter for eco-minimalism tint is in inline style, keep it there or move to CSS */
}
.contact-form-styled .label {
    font-weight: 700;
    color: var(--heading-color);
}
.contact-form-styled .input, .contact-form-styled .textarea {
    border-radius: var(--border-radius-small);
    border: 1px solid #dbdbdb;
    box-shadow: var(--box-shadow-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form-styled .input:focus, .contact-form-styled .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color-rgb), 0.25);
}
.contact-form-styled .input::placeholder, .contact-form-styled .textarea::placeholder {
    color: #a0a0a0; /* Lighter placeholder text */
}
.contact-form-styled .checkbox input[type="checkbox"] {
    margin-right: 0.5em;
}
.contact-form-styled .checkbox a {
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: var(--heading-color); /* Dark footer for contrast */
    color: var(--text-color-dark-bg);
    padding: 3rem 1.5rem 2rem; /* Less bottom padding */
}
.footer .title.is-5.footer-title { /* Override Bulma's .title color for footer */
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    opacity: 0.9;
}
.footer p, .footer ul li {
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent text */
    font-size: 0.95rem;
}
.footer a {
    color: var(--accent-color);
    font-weight: bold;
}
.footer a:hover {
    color: var(--accent-darker);
    text-decoration: underline;
}
.footer .social-links {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
.footer .social-links li {
    margin-bottom: 0.5rem;
}
.footer .social-links li a { /* Text-based social links */
    color: var(--accent-color); /* Use accent color for social links */
    font-weight: normal;
}
.footer .social-links li a:hover {
    color: var(--text-color-dark-bg);
}
.footer .content p { /* For copyright */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Animate on Scroll Placeholders */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1); /* Smoother transform */
}
.animate-on-scroll.is-visible { /* Class to be added by JS (ScrollTrigger) */
    opacity: 1;
    transform: translateY(0);
}

/* Barba.js Page Transitions (Basic Fade) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease-in-out;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* Specific Page Styles */
/* Success Page Styling */
body.success-page-body { /* Add this class to body on success.html */
    display: flex;
    flex-direction: column; /* Ensure header/footer can exist if added */
    min-height: 100vh;
}
.success-page-content { /* Wrap content of success page in this div */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-page-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.success-page-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}
.success-page-content .button {
    margin-top: 1rem;
}

/* Privacy & Terms Page Styling */
body.privacy-page-body .main-content-area, /* Add class to body, wrap content */
body.terms-page-body .main-content-area {
    padding-top: 3rem; /* Additional padding below fixed header */
    padding-bottom: 3rem;
}
.main-content-area .container { /* Content container for privacy/terms */
    max-width: 800px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}
.main-content-area h1, .main-content-area h2 {
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}
.main-content-area p, .main-content-area li {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Cookie Consent Popup (Referenced from HTML, minimal overrides if any) */
#cookieConsentPopup {
    /* Styles are mostly inline in HTML */
    /* Ensure it's above Barba transitions if they conflict */
    z-index: 9999 !important; 
}
#cookieConsentPopup p a {
    color: var(--accent-color) !important; /* Override for link color */
}
#cookieConsentPopup #acceptCookieButton {
    background-color: var(--primary-color) !important;
}
#cookieConsentPopup #acceptCookieButton:hover {
    background-color: var(--primary-darker) !important;
}

/* Utility Classes */
.has-text-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 1023px) {
    .columns.is-vcentered.is-multiline .column.is-two-thirds,
    .columns.is-vcentered.is-multiline .column.is-one-third {
        text-align: center; /* Center content in columns on mobile */
    }
    .columns.is-vcentered.is-multiline .column.is-one-third .card-image img,
    .columns.is-vcentered.is-multiline .column.is-one-third img {
        margin-left: auto;
        margin-right: auto;
        max-width: 80%;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .contact-section .columns {
        flex-direction: column-reverse; /* Show form below contact info on mobile */
    }
    .contact-section .column.is-half {
        width: 100%; /* Full width columns on mobile */
    }
    .footer .columns {
        text-align: center;
    }
    .footer .columns .column {
        margin-bottom: 1.5rem;
    }
}