/* style.css */

/* --- 1. CSS Variables --- */
:root {
    --primary-color: #0D9488; /* Teal */
    --accent-color: #F97316;  /* Orange */
    --dark-text: #1F2937;
    --body-text: #4B5563;
    --light-bg: #F9FAFB;
    --white-color: #FFFFFF;
    --border-color: #E5E7EB;

    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --transition-bouncy: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --transition-smooth: all 0.3s ease-in-out;
}

/* --- 2. General & Body Styles --- */
html {
    scroll-behavior: smooth;
    background-color: var(--white-color);
}

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background-color: var(--white-color);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* --- 3. Typography (Bulma Overrides & Additions) --- */
.title, .subtitle, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--dark-text);
    font-weight: 700;
}

.title.is-1 { font-size: 3.5rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 2rem !important; }
.title.is-4 { color: var(--dark-text); }
p, .content, .label { font-family: var(--font-body); }
a { color: var(--primary-color); transition: var(--transition-smooth); }
a:hover { color: var(--accent-color); }

/* --- 4. Header & Navigation --- */
.header {
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    background: transparent;
}
.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-item, .navbar-link {
    font-family: var(--font-header);
    font-weight: 700;
    transition: var(--transition-smooth);
    color: var(--white-color);
}
.header.is-scrolled .navbar-item, .header.is-scrolled .navbar-link {
    color: var(--dark-text);
}
.navbar-item:hover, .navbar-link:hover {
    background-color: transparent !important;
    color: var(--accent-color) !important;
}

.navbar-brand .navbar-item {
    font-size: 1.5rem;
}
.navbar-burger {
    color: var(--white-color);
}
.header.is-scrolled .navbar-burger {
    color: var(--dark-text);
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(10, 10, 10, 0.9);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 8px 8px;
    }
    .navbar-menu .navbar-item {
        color: var(--white-color);
    }
}

/* --- 5. Global Components --- */
/* Buttons */
.button.is-primary {
    background-color: var(--primary-color);
    border: none;
    font-family: var(--font-header);
    font-weight: 700;
}
.button.is-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.interactive-button {
    transition: var(--transition-bouncy);
}

/* Form Inputs */
.input.interactive-input, .textarea.interactive-input {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
.input.interactive-input:focus, .textarea.interactive-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
    outline: none;
}
.label {
    color: var(--dark-text);
    font-weight: 700;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}
.interactive-card {
    transition: var(--transition-smooth);
}
.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin: 0 auto;
}
.card-content {
    flex-grow: 1; /* Allows content to take up remaining space */
}

/* --- 6. Section Styles --- */
.section {
    padding: 6rem 1.5rem;
}
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }
}

/* Hero Section */
.hero.is-fullheight {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}
/* Dark Overlay for Readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}
.hero .hero-body {
    position: relative;
    z-index: 2;
}
.hero .title, .hero .subtitle {
    color: var(--white-color);
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
}
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
}

/* Curved Sections */
.curved-section {
    position: relative;
    background-color: var(--light-bg);
}
.curved-section::before {
    content: '';
    position: absolute;
    top: -1px; /* Overlap slightly */
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    clip-path: path('M0,100 C150,0 350,0 500,0 S850,0 1000,0 V100 H0 Z');
    transform: scaleX(2.5); /* Adjust scale for wider screens */
}

.curved-section-reverse {
    position: relative;
}
.curved-section-reverse::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--light-bg);
    clip-path: path('M0,0 C150,100 350,100 500,100 S850,100 1000,100 V0 H0 Z');
    transform: scaleX(2.5);
}

#services.has-background-light,
#events.has-background-light,
#pricing.has-background-light,
#resources.has-background-light {
    background-color: var(--light-bg) !important;
}

/* Pricing Section */
#pricing .card {
    border: 2px solid var(--border-color);
}
#pricing .card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: center;
}

/* Clientele Section */
#clientele img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-smooth);
}
#clientele img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 7. Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 8. Footer --- */
.footer {
    background-color: var(--dark-text);
    color: var(--border-color);
}
.footer .title {
    color: var(--white-color);
}
.footer a {
    color: var(--border-color);
}
.footer a:hover {
    color: var(--accent-color);
}
.footer .content p {
    color: var(--border-color);
}

/* --- 9. Additional Page Styles --- */

/* Success Page */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--light-bg);
    padding: 2rem;
}
.success-page-container .box {
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.success-page-container .icon {
    color: var(--primary-color);
}

/* Legal Pages (Privacy, Terms) & Other Content Pages */
.content-page-section {
    padding-top: 150px; /* Space for fixed header */
    padding-bottom: 6rem;
}
.content-page-section .content h1,
.content-page-section .content h2,
.content-page-section .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Contact Page specific */
.contact-page-section .contact-info p {
    margin-bottom: 1rem;
}
.contact-page-section .contact-info .icon {
    color: var(--primary-color);
    margin-right: 1rem;
}

/* About Page specific */
#team .card {
    text-align: center;
}
#team .card-image {
    padding-top: 1.5rem;
}
#team .card-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Barba.js Transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease;
}

.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}