:root {
    --primary-color: #3A506B; /* Dusty Blue - Retro */
    --primary-color-dark: #2E4057;
    --secondary-color: #E07A5F; /* Terracotta Orange - Accent, CTA */
    --secondary-color-dark: #D46A4D;
    --accent-color: #F9C74F; /* Mustard Yellow - Accent */
    --text-color: #333333;
    --text-light-color: #FFFFFF;
    --bg-color: #F7F5F2; /* Off-white/Light Beige - Retro */
    --card-bg-color: #FFFFFF;
    --border-color: #D1D1D1;
    --section-title-color: #222222;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover-color: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-small: 6px;
    --font-family-headings: 'Montserrat', sans-serif;
    --font-family-body: 'Merriweather', serif;
}

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

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

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--section-title-color);
}

.title {
    font-weight: 700;
}

.subtitle {
    font-weight: 400;
    color: var(--text-color);
}

.section-title {
    color: var(--section-title-color) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 1rem; /* Default Bulma title spacing is a bit much */
}
.section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem; /* Default Bulma subtitle spacing */
    line-height: 1.7;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: var(--secondary-color-dark);
}

/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 600;
    border-radius: 25px; /* Retro pill shape */
    padding: 0.8em 1.8em;
    transition: all 0.25s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}
.button:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--secondary-color), 0 2px 4px var(--shadow-color);
}
.button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px var(--shadow-color);
}
.button.is-primary, button.is-primary, input[type="submit"].is-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light-color);
}
.button.is-primary:hover, button.is-primary:hover, input[type="submit"].is-primary:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-hover-color);
}
.button.is-link.is-outlined {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: none;
}
.button.is-link.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-hover-color);
}

/* Header & Navbar */
.navbar {
    background-color: rgba(253, 240, 224, 0.85); /* Light beige semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 0.5rem 0;
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active { /* .is-active for current page not used in this HTML */
    color: var(--secondary-color);
    background-color: transparent;
}
.navbar-dropdown .navbar-item {
    color: var(--primary-color);
}
.navbar-dropdown .navbar-item:hover {
    color: var(--secondary-color);
    background-color: rgba(224, 122, 95, 0.1); /* Light secondary bg on hover */
}
.navbar-burger span {
    background-color: var(--primary-color);
    height: 2px;
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.05);
}
.navbar-menu.is-active {
    background-color: var(--bg-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}
.logo-accent {
    color: var(--secondary-color);
}

/* Hero Section */
.hero.is-fullheight-with-navbar {
    background-attachment: fixed; /* Basic parallax */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-body {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content-overlay {
    background-color: rgba(46, 64, 87, 0.6); /* Darker primary with alpha */
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.hero-title {
    color: var(--text-light-color) !important;
    font-size: 2.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    line-height: 1.2;
}
.hero-subtitle {
    color: var(--text-light-color) !important;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-top: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}
@media screen and (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-content-overlay { padding: 1.5rem; }
}


/* General Section Styling */
.section {
    padding: 4rem 1.5rem; /* Bulma's default */
}

/* "Curved Grid" elements - using border-radius on sections */
/* Sections requiring curved edges should have a distinct background-color */
.workshops-section, .external-resources-section { background-color: var(--card-bg-color); }
.expertise-section, .contact-section { background-color: var(--bg-color); }
/* Add other section specific BGs here if they need curves */

.section-curved-top {
    border-top-left-radius: 80px 40px;
    border-top-right-radius: 80px 40px;
    padding-top: calc(4rem + 20px);
    margin-top: -39px; /* Must be 1px less than curve height to avoid line */
    position: relative;
    z-index: 10; /* Ensure it's above previous flat section */
}
.section-curved-bottom {
    border-bottom-left-radius: 80px 40px;
    border-bottom-right-radius: 80px 40px;
    padding-bottom: calc(4rem + 20px);
    margin-bottom: -39px;
    position: relative;
    z-index: 10;
}
/* To make this work, the body BG must be visible or sections carefully ordered */
/* This works best if sections alternate between bg-color and card-bg-color */


/* Card Styles */
.card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 12px var(--shadow-color);
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* For child border-radius */
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px var(--shadow-hover-color);
}
.card .card-image { /* Container */
   /* Ensure this container allows img to fill it */
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card .card-content .title.is-4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1.3;
}
.card .card-content .subtitle.is-6 {
    color: var(--secondary-color);
    font-weight: 600;
}
.card .card-content .content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-top: 0.5rem;
    flex-grow: 1; /* Allow content to take space */
}
.card .card-content .button {
    margin-top: 1rem; /* Space above button */
    align-self: flex-start; /* Align button to the start */
}

/* Specific Card Type examples */
.process-card .card-content { text-align: center; }
.process-card .title.is-4 { color: var(--primary-color); }

.workshop-card .card-image figure.is-4by3 { /* Bulma aspect ratio */ }

.case-study-card { /* Columns inside card for layout */ }

.testimonial-card .media-left figure.is-96x96 img {
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}
.testimonial-card .card-content { text-align: left; }

.expertise-card .card-image figure.is-1by1 { /* Square images */ }
.expertise-card .card-content { text-align: center; padding: 1rem; }
.expertise-card .title.is-5 { margin-top: 0.5rem; color: var(--primary-color); }

/* Press Section Logos */
.press-logos img {
    max-height: 60px;
    width: auto;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.press-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.press-logos .is-size-7 {
    color: #777;
}

/* External Resources Section */
.external-resources-section ul { list-style: none; padding-left: 0; }
.resource-item {
    background-color: var(--card-bg-color);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-small);
    box-shadow: 0 3px 6px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}
.resource-item:hover { box-shadow: 0 5px 10px var(--shadow-hover-color); }
.resource-item a strong {
    color: var(--primary-color);
    font-size: 1.15rem;
}
.resource-item a:hover strong { color: var(--secondary-color); }
.resource-item p { margin-top: 0.4rem; font-size: 0.9rem; color: #555; }


/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    background-color: var(--card-bg-color);
}
.faq-question {
    background-color: transparent;
    color: var(--primary-color);
    text-align: left;
    padding: 1rem 1.5rem;
    font-weight: 600;
    justify-content: space-between;
    border: none;
    border-radius: 0;
    width: 100%;
}
.faq-question:hover { background-color: rgba(var(--primary-color-rgb, 58, 80, 107), 0.05); }
.faq-question .icon svg { transition: transform 0.3s ease; }
.faq-question.active .icon svg { transform: rotate(180deg); }
.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: none;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    line-height: 1.7;
}
.faq-answer.active { display: block; }


/* Contact Form */
.contact-section .label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.contact-section .input, .contact-section .textarea {
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}
.contact-section .input:focus, .contact-section .textarea:focus {
    border-color: var(--primary-color);
    /* --primary-color-rgb: 58, 80, 107 */
    box-shadow: 0 0 0 0.125em rgba(58, 80, 107, 0.2);
}
.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.contact-details strong { color: var(--primary-color); }

/* Footer */
.footer {
    background-color: var(--primary-color-dark);
    color: #E0E0E0;
    padding: 3rem 1.5rem 2rem; /* More padding top, less bottom */
}
.footer .title.is-5 {
    color: var(--text-light-color);
    margin-bottom: 1rem;
}
.footer ul { list-style: none; padding-left: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a {
    color: #D0D0D0;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}
.footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.footer .content.has-text-centered p {
    color: #B0B0B0;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Modals */
.modal-card { border-radius: var(--border-radius); overflow: hidden; }
.modal-card-head, .modal-card-foot {
    background-color: var(--bg-color);
    border-color: var(--border-color);
}
.modal-card-title { color: var(--primary-color); font-weight: 600; }
.modal-card-body { background-color: var(--card-bg-color); color: var(--text-color); }
.modal-card-foot .button.is-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light-color);
}
.modal-card-foot .button.is-success:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
}

/* Privacy & Terms Pages */
body.privacy-page main, body.terms-page main, body.about-page main, body.contacts-page main {
    padding-top: calc(3.25rem + 3.25rem + 20px); /* Navbar height + section padding + extra */
    padding-bottom: 3rem; /* Ensure space before footer */
}
body.privacy-page .container, body.terms-page .container, body.about-page .container, body.contacts-page .container {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
}
body.privacy-page h1, body.terms-page h1, body.about-page h1, body.contacts-page h1 { /* For single page titles */
    margin-bottom: 1.5rem;
}

/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page main { /* Assumes header/footer are outside main */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-content {
    background-color: var(--card-bg-color);
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-hover-color);
    max-width: 500px;
}
.success-content .icon svg { /* Assuming SVG icon */
    width: 60px;
    height: 60px;
    fill: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.success-content .title { margin-bottom: 0.75rem; }
.success-content p { margin-bottom: 1.5rem; font-size: 1.05rem;}

/* Animate on Scroll (for GSAP) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    /* GSAP will handle the transition, or you can add CSS fallback:
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; */
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text Selection Color */
::selection {
    background-color: var(--secondary-color);
    color: var(--text-light-color);
}

/* Read more links */
a.read-more-link {
    color: var(--secondary-color);
    font-weight: bold;
    position: relative;
    padding-bottom: 2px; /* Space for the underline */
}
a.read-more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color-dark);
    transition: width 0.3s ease-out;
}
a.read-more-link:hover::after {
    width: 100%;
}

/* General content links if not buttons */
.content a:not(.button) {
    color: var(--secondary-color);
    font-weight: 600; /* Make them a bit more prominent */
}
.content a:not(.button):hover {
    text-decoration: underline;
    color: var(--secondary-color-dark);
}

/* Parallax Section base (GSAP will enhance) */
.parallax-section {
    /* background-attachment: fixed; /* Simple parallax if GSAP not used/failed */
    /* background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
    /* GSAP will likely manipulate background-position or a child element's transform */
}
html,body{
    overflow-x: hidden;
}