/* style.css */

/* -------------------------------------------------------------------------- */
/*                                 CSS Variables                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Analogous Color Scheme & Accents */
    --color-base: #0D3B4A;           /* Dark Teal - Deepest background */
    --color-primary-1: #1A535C;      /* Medium Teal - Primary dark elements, header on scroll */
    --color-primary-2: #4ECDC4;      /* Lighter Teal/Aqua - Accents, highlights */
    --color-accent-primary: #F9A826; /* Warm Yellow/Orange - Main accent for buttons, CTAs */
    --color-accent-secondary: #FF6B6B;/* Coral - Secondary accent, optional */

    /* Text Colors */
    --color-text-light: #FFFFFF;
    --color-text-medium-light: #f0f0f0;
    --color-text-dark: #222222;      /* For main body text on light backgrounds */
    --color-text-medium-dark: #363636;/* Softer dark text */
    --color-text-grey: #7a7a7a;

    /* Background Colors */
    --color-bg-light: #f7f7f7;       /* Slightly off-white for light sections */
    --color-bg-grey-lighter: #ebebeb; /* Lighter grey for cards or subtle sections */
    --color-bg-dark: var(--color-base);

    /* Fonts */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Brutalism & Volumetric UI */
    --volumetric-shadow-color: rgba(0, 0, 0, 0.25);
    --volumetric-shadow-strong-color: rgba(0, 0, 0, 0.4);
    --volumetric-depth: 4px;
    --volumetric-depth-small: 2px;
    --border-strong: 2px solid var(--color-text-dark);
    --border-subtle: 1px solid rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 1.5rem;
    --spacing-xlarge: 2.5rem;

    /* Transitions - Non-linear */
    --transition-fast: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Back-out, good for pops */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Standard smooth */
}

/* -------------------------------------------------------------------------- */
/*                                Global Styles                               */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-light); /* Default page background */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.7;
    font-size: 1rem; /* Base font size for 16px */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-heading);
    color: var(--color-text-dark); /* Ensure high contrast for headings */
    font-weight: 700; /* Roboto Bold */
}

.title.is-1, .title.is-2 {
    font-weight: 900; /* Roboto Black for main titles */
}

p, .content p, .content li {
    font-family: var(--font-body);
    color: var(--color-text-medium-dark);
    margin-bottom: var(--spacing-medium);
}

.content ul.styled-list {
    list-style: none;
    padding-left: 0;
}

.content ul.styled-list li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5em;
}

.content ul.styled-list li::before {
    content: "›"; /* or "•", "✓" */
    position: absolute;
    left: 0;
    color: var(--color-accent-primary);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}


a {
    color: var(--color-primary-1);
    transition: var(--transition-smooth);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-primary);
    text-decoration: underline;
}

.has-text-link { /* Bulma override for better contrast if needed */
    color: var(--color-primary-1) !important;
}
.has-text-link:hover {
    color: var(--color-accent-primary) !important;
}
.has-text-link-dark { /* Custom class for links on light backgrounds */
    color: var(--color-primary-1) !important;
    font-weight: bold;
}
.has-text-link-dark:hover {
    color: var(--color-accent-primary) !important;
}

.section-title {
    font-weight: 900; /* Roboto Black */
    color: var(--color-text-dark);
    margin-bottom: 2rem !important; /* Increased margin for section titles */
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

/* Ensure .content from Bulma uses Lato for paragraphs and lists */
.content p,
.content ul,
.content ol,
.content dl {
    font-family: var(--font-body);
    font-size: 1.05rem; /* Slightly larger for readability */
}
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
}

/* Responsive typography */
@media screen and (max-width: 768px) {
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .title.is-3 { font-size: 1.75rem; }
    body { font-size: 0.95rem; }
}

/* Background image defaults */
[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* For images with text overlay, ensuring readability */
.hero[style*="background-image"],
.contact-cta-section[style*="background-image"],
.page-hero[style*="background-image"] {
    position: relative;
}

/*
.hero[style*="background-image"]::before,
.contact-cta-section[style*="background-image"]::before,
.page-hero[style*="background-image"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}
.hero-body, .contact-cta-section .container, .page-hero .hero-body {
    position: relative;
    z-index: 2;
}
This is already handled in HTML via linear-gradient in style attribute.
*/


/* -------------------------------------------------------------------------- */
/*                               Buttons                                      */
/* -------------------------------------------------------------------------- */
/* Global button styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: var(--border-strong);
    border-radius: 4px; /* Subtle border-radius */
    padding: 0.75em 1.75em;
    transition: var(--transition-fast);
    cursor: pointer;
    box-shadow: var(--volumetric-depth-small) var(--volumetric-depth-small) 0px 0px var(--volumetric-shadow-color);
    position: relative;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--volumetric-depth-small) + 2px) calc(var(--volumetric-depth-small) + 2px) 0px 0px var(--volumetric-shadow-strong-color);
}

.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translate(0px, 0px);
    box-shadow: 1px 1px 0px 0px var(--volumetric-shadow-strong-color);
}

/* Bulma button overrides and specific styles */
.button.is-primary {
    background-color: var(--color-primary-1);
    border-color: var(--color-text-dark); /* Brutalist border */
    color: var(--color-text-light);
}
.button.is-primary:hover {
    background-color: var(--color-primary-2);
    color: var(--color-text-dark);
}

.button.is-warning { /* Accent button */
    background-color: var(--color-accent-primary);
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
    font-weight: 900;
}
.button.is-warning:hover {
    background-color: #fbc02d; /* Slightly lighter yellow */
}

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


/* Volumetric styles for buttons with these classes */
.is-volumetric {
    box-shadow: var(--volumetric-depth) var(--volumetric-depth) 0px 0px var(--volumetric-shadow-color);
}
.is-volumetric:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--volumetric-depth) + 2px) calc(var(--volumetric-depth) + 2px) 0px 0px var(--volumetric-shadow-strong-color);
}
.is-volumetric:active {
    transform: translate(0px, 0px);
    box-shadow: var(--volumetric-depth-small) var(--volumetric-depth-small) 0px 0px var(--volumetric-shadow-strong-color);
}

.is-volumetric-accent { /* For accent buttons that need more pop */
    background-color: var(--color-accent-primary);
    color: var(--color-text-dark);
    border: 2px solid var(--color-text-dark);
    box-shadow: var(--volumetric-depth) var(--volumetric-depth) 0px 0px var(--color-text-dark); /* Stronger shadow */
}
.is-volumetric-accent:hover {
    background-color: #fdd835; /* Lighter yellow */
    box-shadow: calc(var(--volumetric-depth) + 2px) calc(var(--volumetric-depth) + 2px) 0px 0px var(--color-text-dark);
    transform: translate(-2px, -2px);
}
.is-volumetric-accent:active {
    box-shadow: var(--volumetric-depth-small) var(--volumetric-depth-small) 0px 0px var(--color-text-dark);
    transform: translate(0px, 0px);
}

.button .icon img {
    filter: brightness(0) invert(1); /* Make icons in buttons white if button has dark bg & light text */
}
.button.is-warning .icon img,
.button.is-volumetric-accent .icon img {
    filter: none; /* Revert for light bg buttons with dark icons/text */
}


/* -------------------------------------------------------------------------- */
/*                               Layout & Sections                            */
/* -------------------------------------------------------------------------- */
.section {
    padding: 3rem 1.5rem; /* Default Bulma padding, can be adjusted */
}
@media screen and (min-width: 1024px) {
    .section {
        padding: 4.5rem 3rem;
    }
}

.container {
    max-width: 1140px; /* Standard container width */
    margin-left: auto;
    margin-right: auto;
}

/* For pages like privacy & terms that need content offset from fixed header */
.page-hero + .section .content-section {
    padding-top: 0; /* Reset if they are the first section after a page-hero */
}

/* Apply top padding directly to main content area for privacy/terms pages */
main > section:first-child.section > .container.content-section.content {
    /* This is for specific cases where privacy/terms content starts immediately in a section */
}
/* The HTML uses <main><section class="hero is-medium..."><section class="section"><div class="container content-section">
So, for privacy.html and terms.html specifically, a general rule for their main content area if not a hero: */
body.privacy-page main .content-section,
body.terms-page main .content-section {
    padding-top: calc(60px + 2rem); /* Navbar height + some space */
}
@media screen and (min-width: 1024px) {
    body.privacy-page main .content-section,
    body.terms-page main .content-section {
        padding-top: calc(60px + 3rem); /* Navbar height for desktop */
    }
}
/* More robust solution for pages like privacy.html and terms.html:
   Add padding to their <main> or first actual content <section> */
main.privacy-main, main.terms-main {
    padding-top: 100px; /* As requested */
}


/* -------------------------------------------------------------------------- */
/*                                 Header / Navbar                            */
/* -------------------------------------------------------------------------- */
.header.is-fixed-top .navbar {
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
    box-shadow: none;
}

.header.is-fixed-top .navbar.is-scrolled {
    background-color: var(--color-primary-1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-text-light); /* For transparent header over dark hero */
}
.navbar.is-scrolled .navbar-item,
.navbar.is-scrolled .navbar-link {
    color: var(--color-text-light); /* Stays light on scrolled dark header */
}

.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active {
    background-color: transparent !important; /* Brutalist: no bg change on hover */
    color: var(--color-accent-primary) !important;
}
.navbar.is-scrolled .navbar-item:hover,
.navbar.is-scrolled .navbar-link:hover,
.navbar.is-scrolled .navbar-item.is-active {
    color: var(--color-accent-primary) !important;
}


.logo-text {
    font-size: 1.8rem !important;
    font-weight: 900 !important; /* Roboto Black */
    color: var(--color-text-light) !important;
}
.logo-text span {
    color: var(--color-accent-primary) !important;
}
.navbar.is-scrolled .logo-text {
    color: var(--color-text-light) !important;
}
.navbar.is-scrolled .logo-text span {
    color: var(--color-accent-primary) !important;
}

.navbar-burger {
    color: var(--color-text-light);
}
.navbar-burger:hover {
    background-color: rgba(255,255,255,0.1);
}
.navbar.is-scrolled .navbar-burger {
    color: var(--color-text-light);
}

/* Burger menu active state */
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        background-color: var(--color-primary-1); /* Dark background for mobile menu */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-top: 2px solid var(--color-accent-primary);
    }
    .navbar-menu.is-active .navbar-item {
        color: var(--color-text-light) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-menu.is-active .navbar-item:hover,
    .navbar-menu.is-active .navbar-item.is-active {
        background-color: rgba(255,255,255,0.05) !important;
        color: var(--color-accent-primary) !important;
    }
    .navbar-menu .buttons .button { /* Ensure buttons in mobile menu are styled well */
        width: 100%;
        margin-top: var(--spacing-small);
    }
}


/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
}
.hero .main-title {
    color: var(--color-text-light) !important; /* Explicitly white as requested */
    font-size: 3.5rem;
    margin-bottom: var(--spacing-medium);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero .subtitle {
    color: var(--color-text-medium-light) !important; /* Explicitly light for readability */
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xlarge);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .hero .main-title { font-size: 2.8rem; }
    .hero .subtitle { font-size: 1.1rem; }
}

.statistical-widgets-hero .stat-widget {
    padding: var(--spacing-medium);
    border-left: 3px solid var(--color-accent-primary);
    margin: 0 var(--spacing-small);
}
.statistical-widgets-hero .stat-widget .title {
    color: var(--color-text-light) !important;
    margin-bottom: 0.25rem;
    font-weight: 900;
}
.statistical-widgets-hero .stat-widget .heading {
    color: var(--color-text-medium-light) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Scroll Down Indicator Animation */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-light);
    border-radius: 12px;
    opacity: 0.7;
}
.scroll-down-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    animation: scrollIndicatorAnimation 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes scrollIndicatorAnimation {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.5; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}


/* -------------------------------------------------------------------------- */
/*                                Card Styles                                 */
/* -------------------------------------------------------------------------- */
.card {
    background-color: var(--color-text-light);
    border: var(--border-strong);
    border-radius: 6px; /* Slightly more pronounced for brutalist touch */
    box-shadow: var(--volumetric-depth) var(--volumetric-depth) 0 0 var(--volumetric-shadow-color);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a row */
    overflow: hidden; /* Ensure content respects border-radius */
}
.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: calc(var(--volumetric-depth) + 3px) calc(var(--volumetric-depth) + 3px) 0 0 var(--volumetric-shadow-strong-color);
}

/* Volumetric cards - if a separate class is used or for deeper effect */
.is-volumetric-card {
    background-color: var(--color-text-light);
    border: 2px solid var(--color-text-dark);
    border-radius: 0; /* Sharper edges for brutalism */
    box-shadow: 6px 6px 0px 0px var(--color-text-dark); /* Strong, solid shadow */
    transition: transform 0.15s linear, box-shadow 0.15s linear;
}
.is-volumetric-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px 0px var(--color-text-dark);
}

.card .card-image { /* Bulma's .card-image */
    border-bottom: var(--border-strong);
    overflow: hidden; /* To contain the image properly */
    margin: 0; /* Reset margin if any */
    padding: 0; /* Reset padding */
    display: flex; /* For centering the figure */
    justify-content: center; /* For centering the figure */
    align-items: center; /* For centering the figure */
}
.card.is-volumetric-card .card-image {
    border-bottom: 2px solid var(--color-text-dark);
}

.card .card-image .image-container { /* Custom container if used inside .card-image */
    /* Already handled by STROGO rules in HTML, but can add defaults */
    width: 100%;
    position: relative;
}

.card .card-image figure.image { /* Bulma's figure.image inside card-image */
    margin: 0 auto; /* Center figure if it's not full width */
    width: 100%;
    /* Fixed height for image containers in cards (e.g. projects, gallery items if fixed aspect ratio not desired) */
    /* height: 200px; Example, adjust as needed per card type */
    display: block; /* Ensure figure behaves as a block */
}
.card .card-image figure.image.is-4by3, /* Bulma aspect ratio classes */
.card .card-image figure.image.is-1by1 {
    /* These will maintain aspect ratio, fixed height not needed unless override */
}
.card .card-image img {
    width: 100%;
    height: 100%; /* Make image fill the figure */
    object-fit: cover;
    display: block;
    border-radius: 0; /* Images inside cards shouldn't have their own radius usually */
}

.card .card-content {
    padding: var(--spacing-large);
    flex-grow: 1; /* Allows content to fill space if cards are equal height */
    display: flex;
    flex-direction: column;
    text-align: left; /* Default text align for content */
}
.is-volumetric-card .card-content {
    padding: var(--spacing-medium);
}

.card .card-content .title,
.card .card-content .subtitle {
    margin-bottom: var(--spacing-medium);
}
.card .card-content .title {
    font-size: 1.4rem;
    color: var(--color-text-dark);
}
.card .card-content .subtitle {
    font-size: 0.9rem;
    color: var(--color-text-grey);
}
.card .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-medium-dark);
}

/* Centering content and images in cards as per STROGO rules */
.card.team-member-card, .card.process-card { /* For cards that need centered content */
    align-items: center; /* Center items for flex-direction column */
    text-align: center;
}
.card.team-member-card .card-image,
.card.process-card .card-image {
    border-bottom: none; /* No border for profile pics or icons */
    padding-top: var(--spacing-large); /* Space for icon/image */
}
.card.team-member-card .card-image figure.image,
.card.process-card .card-image figure.image {
    /* width and height for these images are set in HTML or specific classes */
    /* e.g., is-96x96, is-64x64 */
    margin: 0 auto var(--spacing-medium) auto; /* Center and add bottom margin */
}
.card.team-member-card .card-image img.is-rounded {
    border: 3px solid var(--color-text-light);
    box-shadow: 0 0 0 2px var(--color-accent-primary);
}


/* Specific card types */
.project-card .card-image figure.image { /* Projects might have a standard aspect ratio */
   /* height: 220px; /* Example fixed height for project card images */
}

.testimonial-card .media-left {
    margin-right: var(--spacing-medium);
}
.testimonial-card .media-left figure.image {
    width: 96px;
    height: 96px;
}
.testimonial-card .content {
    font-style: italic;
    padding-top: var(--spacing-small);
    border-top: 1px solid var(--color-bg-grey-lighter);
    margin-top: var(--spacing-medium);
    color: var(--color-text-medium-dark);
}

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

.media-card .card-image {
    padding: var(--spacing-medium);
    border-bottom: none;
}

.media-card .card-content .title {
    font-size: 1.2rem;
    line-height: 1.4;
}


/* Read more link style */
.read-more-link {
    display: inline-block;
    margin-top: var(--spacing-medium);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.read-more-link:hover {
    color: var(--color-primary-1);
    text-decoration: none; /* No underline, maybe arrow? */
    transform: translateX(3px);
}
.read-more-link::after {
    content: " →";
    display: inline-block;
    transition: var(--transition-smooth);
}
.read-more-link:hover::after {
    transform: translateX(4px);
}
.button.volumetric-button-link { /* For "Leia mais" that are styled as buttons */
    margin-top: var(--spacing-medium);
    font-size: 0.9rem;
    padding: 0.5em 1em;
}

/* -------------------------------------------------------------------------- */
/*                          Our Process Section                               */
/* -------------------------------------------------------------------------- */
.process-card .card-image figure.image {
    width: 64px; /* As per HTML */
    height: 64px;
    margin-bottom: 0; /* Icon is close to title */
}
.process-card .card-content .title {
    margin-top: var(--spacing-small); /* Space between icon and title */
}
.volumetric-icon-container { /* For icons that need a volumetric feel */
    background-color: var(--color-accent-primary); /* Or another color */
    padding: 10px;
    border-radius: 8px; /* Or 0 for sharper brutalist */
    border: 2px solid var(--color-text-dark);
    box-shadow: 3px 3px 0 var(--color-text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.volumetric-icon-container img {
    filter: brightness(0) invert(1); /* If icon is dark and bg is light accent */
    /* Adjust if icon color should be different */
}


/* -------------------------------------------------------------------------- */
/*                             Gallery Section                                */
/* -------------------------------------------------------------------------- */
.gallery-item img {
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
    cursor: pointer;
    border: 2px solid var(--color-text-dark); /* Brutalist border for gallery images */
}
.gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Modal for Gallery */
.modal.is-active { /* Ensure modal is visible */
    display: flex;
}
.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
}
.modal-content img {
    object-fit: contain;
    max-width: 100%;
    max-height: calc(90vh - 40px); /* Bulma modal close button space */
    border: 3px solid var(--color-text-light);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.modal-close {
    background-color: rgba(10,10,10,.3) !important; /* Softer close button background */
}
.modal-close:hover {
    background-color: rgba(10,10,10,.5) !important;
}

/* -------------------------------------------------------------------------- */
/*                             Accolades Section                              */
/* -------------------------------------------------------------------------- */
.accolade-icon-container img {
    border: 3px solid var(--color-accent-primary);
    padding: var(--spacing-medium);
    border-radius: 50%; /* Circular badges */
    background-color: var(--color-bg-grey-lighter);
}

/* -------------------------------------------------------------------------- */
/*                             Contact Page/Form                              */
/* -------------------------------------------------------------------------- */
#contactForm .label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#contactForm .input,
#contactForm .textarea,
#contactForm .select select {
    font-family: var(--font-body);
    border: var(--border-strong) !important; /* Bulma uses .input, .textarea directly */
    border-radius: 4px;
    box-shadow: inset 2px 2px 0px 0px rgba(0,0,0,0.05) !important; /* Inner shadow for depth */
    padding: 0.75em 1em;
    font-size: 1rem;
    transition: var(--transition-smooth);
}
#contactForm .input:focus, #contactForm .input.is-focused,
#contactForm .textarea:focus, #contactForm .textarea.is-focused,
#contactForm .select select:focus, #contactForm .select select.is-focused,
#contactForm .select.is-active select {
    border-color: var(--color-accent-primary) !important;
    box-shadow: inset 2px 2px 0px 0px rgba(0,0,0,0.05), 0 0 0 2px var(--color-accent-primary) !important;
}
/* Custom select wrapper for styling arrow */
.custom-select-wrapper {
    position: relative;
}
.custom-select-wrapper::after { /* Custom arrow for select */
    content: "▼";
    font-size: 0.8em;
    color: var(--color-text-dark);
    position: absolute;
    right: 1.125em;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 4; /* Above Bulma's default */
}
.select.is-fullwidth select.custom-select { /* Ensure it overrides Bulma */
    width: 100%;
    -webkit-appearance: none; /* Remove default arrow */
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5em; /* Space for custom arrow */
}


/* Custom Checkbox */
.custom-checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px; /* Space for custom checkbox */
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: var(--color-text-medium-dark);
}
.custom-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.custom-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--color-bg-grey-lighter);
    border: 2px solid var(--color-text-dark);
    border-radius: 3px;
    transition: all 0.2s ease;
}
.custom-checkbox-container:hover input ~ .custom-checkmark {
    background-color: #ccc;
}
.custom-checkbox-container input:checked ~ .custom-checkmark {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}
.custom-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.custom-checkbox-container input:checked ~ .custom-checkmark:after {
    display: block;
}
.custom-checkbox-container .custom-checkmark:after { /* Checkmark style */
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-text-dark);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.contact-info-box {
    background-color: var(--color-bg-grey-lighter);
    padding: var(--spacing-large);
    border-radius: 6px;
    border: var(--border-strong);
}
.contact-info-box.is-volumetric-card {
    background-color: var(--color-bg-light); /* Or a specific color */
}
.contact-info-box .icon-text .icon img {
    /* Icons in contact info box, ensure they are visible */
}

/* -------------------------------------------------------------------------- */
/*                                  Footer                                    */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-medium-light);
    padding: 3rem 1.5rem 2rem; /* Less bottom padding */
}
.footer .title {
    color: var(--color-text-light) !important;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-medium);
}
.footer .logo-text { /* Logo in footer */
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: var(--color-text-light) !important;
}
.footer .logo-text span {
    color: var(--color-accent-primary) !important;
}

.footer p, .footer li {
    font-size: 0.9rem;
    color: var(--color-text-medium-light);
}
.footer a.has-text-light {
    color: var(--color-text-medium-light) !important;
    transition: var(--transition-smooth);
}
.footer a.has-text-light:hover {
    color: var(--color-accent-primary) !important;
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: var(--spacing-small);
}

/* Social media text links in footer */
.footer .social-link {
    font-family: var(--font-body);
    font-weight: 400; /* Lato Regular for social links */
    text-transform: none; /* No uppercase for social links */
    letter-spacing: normal;
    margin: 0 var(--spacing-small);
    display: inline-block; /* To allow margin */
    padding: 2px 0;
    position: relative;
}
.footer .social-link::after { /* Subtle underline effect */
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--color-accent-primary);
    transition: width .3s ease;
}
.footer .social-link:hover::after {
    width: 100%;
    left: 0;
    background: var(--color-accent-primary);
}
.footer .social-link:first-child {
    margin-left: 0;
}

.footer hr {
    background-color: rgba(255,255,255,0.1) !important;
    height: 1px;
    margin: 2rem 0;
}
.footer .content.has-text-centered p {
    font-size: 0.85rem;
    color: var(--color-text-grey) !important;
}
.footer .is-small { /* For simplified footers */
    padding: 1.5rem 1.5rem;
}

/* -------------------------------------------------------------------------- */
/*                         Page Specific Styles                             */
/* -------------------------------------------------------------------------- */

/* Success Page (success.html) */
body.success-page .hero.is-fullheight-with-navbar { /* Specific class for success page body */
    min-height: 100vh; /* Ensure it takes full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
}
body.success-page .hero-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
/* Simpler footer for success page, if current one is too complex */
body.success-page .footer.is-small {
    position: absolute; /* Or fixed, depending on desired behavior */
    bottom: 0;
    width: 100%;
}

/* Privacy & Terms Pages (privacy.html, terms.html) */
/* Content padding from header handled by main.privacy-main, main.terms-main */
/* Specific styling for their content if needed: */
.privacy-main .content, .terms-main .content {
    max-width: 800px; /* Readable line length for text-heavy pages */
    margin-left: auto;
    margin-right: auto;
}
.privacy-main .content h2, .terms-main .content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.privacy-main .content h3, .terms-main .content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}
.privacy-main .content p, .terms-main .content p,
.privacy-main .content ul, .terms-main .content ul {
    margin-bottom: 1.25rem;
}


/* -------------------------------------------------------------------------- */
/*                           Animations & Interactions                        */
/* -------------------------------------------------------------------------- */
/* Non-linear movement for AOS if default easing is not enough */
[data-aos] {
    /* Example: AOS uses its own easing, but transitions can be non-linear */
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* EaseOutBack */
}

/* Button bounce/pulse for specific CTAs (to be triggered by Anime.js or CSS keyframes) */
.anim-button-bounce:hover { /* Simple CSS hover example, JS can do more */
    animation: buttonBounce 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes buttonBounce {
    0%, 100% { transform: scale(1) translate(-2px, -2px); } /* Keep hover transform */
    50% { transform: scale(1.05) translate(-2px, -2px); }
}

.anim-button-pulse {
    animation: buttonPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes buttonPulse {
    0%, 100% { box-shadow: 6px 6px 0px 0px var(--color-text-dark), 0 0 0 0 rgba(var(--color-accent-primary-rgb, 249, 168, 38), 0.4); }
    70% { box-shadow: 6px 6px 0px 0px var(--color-text-dark), 0 0 0 10px rgba(var(--color-accent-primary-rgb, 249, 168, 38), 0); }
}
/* Need --color-accent-primary-rgb for keyframes if using accent for pulse */
:root {
    --color-accent-primary-rgb: 249, 168, 38;
}

/* -------------------------------------------------------------------------- */
/*                            Parallax (Simple CSS)                           */
/* -------------------------------------------------------------------------- */
/* For simple parallax on specific sections. More complex parallax needs JS. */
.parallax-section {
    background-attachment: fixed;
}

/* -------------------------------------------------------------------------- */
/*                         Glassmorphism (Example)                            */
/* -------------------------------------------------------------------------- */
/* Apply to specific elements like modals, info boxes if desired */
.is-glassmorphic {
    background: rgba(255, 255, 255, 0.1); /* Adjust alpha for desired transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px; /* Glassmorphism often has rounded corners */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
/* Ensure text on glassmorphic elements has good contrast */
.is-glassmorphic, .is-glassmorphic .title, .is-glassmorphic .subtitle, .is-glassmorphic p {
    /* color: var(--color-text-light); /* If background behind glass is dark */
    /* color: var(--color-text-dark);  /* If background behind glass is light */
}

/* -------------------------------------------------------------------------- */
/*                            Helper/Utility Classes                          */
/* -------------------------------------------------------------------------- */
.roboto-bold { font-family: var(--font-heading); font-weight: 700; }
.roboto-black { font-family: var(--font-heading); font-weight: 900; }
.lato-regular { font-family: var(--font-body); font-weight: 400; }
.lato-bold { font-family: var(--font-body); font-weight: 700; }

.custom-hr {
    border: none;
    height: 2px;
    background-color: var(--color-text-dark);
    margin: 3rem auto;
    width: 50%;
    opacity: 0.5;
}

/* Make sure specific Bulma overrides like .has-text-centered are respected */
.has-text-centered {
    text-align: center !important;
}

/* Fix for potential Bulma .column padding issues on mobile */
@media screen and (max-width: 768px) {
    .columns.is-mobile > .column {
        /* padding: 0.75rem; /* Default Bulma mobile column padding, ensure it's what you want */
    }
}

/* Final Check on Contrasts */
/* For light backgrounds (default or .has-background-light) */
.has-background-light, .has-background-white, .section:not([class*="has-background-"]) {
    /* Ensure text is dark */
}
.has-background-light .title, .has-background-light .subtitle, .has-background-light p,
.has-background-white .title, .has-background-white .subtitle, .has-background-white p,
.section:not([class*="has-background-"]) .title,
.section:not([class*="has-background-"]) .subtitle,
.section:not([class*="has-background-"]) p {
    color: var(--color-text-dark); /* Or medium-dark for p */
}
.section:not([class*="has-background-"]) p {
    color: var(--color-text-medium-dark);
}


/* For dark backgrounds */
.has-background-dark .title, .has-background-dark .subtitle, .has-background-dark p,
.has-background-primary-dark .title, .has-background-primary-dark .subtitle, .has-background-primary-dark p {
    color: var(--color-text-light); /* or medium-light for p */
}
.has-background-dark p, .has-background-primary-dark p {
    color: var(--color-text-medium-light);
}
.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #100e0e;
}