/* ==========================================================================
   1. CSS VARIABLES & THEME SETUP
   ========================================================================== */
:root {
    /* Analogous Color Scheme (Blue-Green-Teal) */
    --bg-color: #e0e5ec;
    --primary-color: #2a7a9e;
    --secondary-color: #3b8fa3;
    --accent-color: #00c4a7;
    --text-color: #4a5a6a;
    --header-text-color: #2c3e50;
    --white-color: #FFFFFF;
    --error-color: #e74c3c;

    /* Neumorphism Shadows */
    --light-shadow-color: rgba(255, 255, 255, 0.8);
    --dark-shadow-color: rgba(163, 177, 198, 0.6);
    --neumorphic-shadow-convex: 10px 10px 20px var(--dark-shadow-color), -10px -10px 20px var(--light-shadow-color);
    --neumorphic-shadow-concave: inset 8px 8px 16px var(--dark-shadow-color), inset -8px -8px 16px var(--light-shadow-color);

    /* Typography */
    --font-header: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Borders */
    --border-radius-soft: 15px;
    --border-radius-sharp: 8px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   2. BASE & RESET STYLES
   ========================================================================== */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-header);
    color: var(--header-text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.title.is-1, .title.is-2 {
    font-weight: 700;
}

.section-title {
    margin-bottom: 3rem !important;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

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

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

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(163, 177, 198, 0.4);
    transition: top 0.3s ease-in-out;
}

.navbar {
    background: transparent;
}

.navbar-item.logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--header-text-color);
}

.logo-highlight {
    color: var(--accent-color);
    margin-left: 5px;
}

.navbar-item {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--header-text-color);
    transition: all var(--transition-speed) ease;
    position: relative;
}

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

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.navbar-item:hover::after {
    width: 50%;
}

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

/* Responsive navigation */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--bg-color);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
    }
    .navbar-item {
        padding: 1rem 1.5rem;
    }
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(42, 122, 158, 0.7), rgba(0, 196, 167, 0.5));
    z-index: 1;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title, .hero-subtitle {
    color: var(--white-color) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
}

.hero-subtitle {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   6. GLOBAL COMPONENTS (Buttons, Forms, Cards)
   ========================================================================== */

/* --- General Buttons --- */
.button, button, input[type='submit'] {
    border: none;
    outline: none;
    border-radius: var(--border-radius-soft);
    background: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-convex);
    color: var(--primary-color);
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.button:hover, button:hover, input[type='submit']:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 15px 15px 25px var(--dark-shadow-color), -15px -15px 25px var(--light-shadow-color);
}

.button:active, button:active, input[type='submit']:active {
    box-shadow: var(--neumorphic-shadow-concave);
    transform: translateY(2px);
    color: var(--secondary-color);
}

.button.is-large.hero-button {
    background: var(--accent-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 196, 167, 0.4);
}

.button.is-large.hero-button:hover {
    background: var(--white-color);
    color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 196, 167, 0.6);
}

/* --- Forms --- */
.input, .textarea {
    background: var(--bg-color);
    border: none;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow-concave);
    color: var(--text-color);
    padding: 1.5rem;
    transition: box-shadow var(--transition-speed) ease;
}

.input::placeholder, .textarea::placeholder {
    color: #9fb1c7;
}

.input:focus, .textarea:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-concave), 0 0 0 3px rgba(42, 122, 158, 0.3);
}

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

/* --- Cards --- */
.card {
    background: var(--bg-color);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow-convex);
    height: 100%;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.card:hover {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
    box-shadow: 20px 20px 30px var(--dark-shadow-color), -20px -20px 30px var(--light-shadow-color);
}

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

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    width: 100%;
}

/* ==========================================================================
   7. SECTION-SPECIFIC STYLES
   ========================================================================== */
.section {
    padding: 6rem 1.5rem;
}

/* --- Our Process Section --- */
.process-card .card-image img {
    border-radius: var(--border-radius-soft) var(--border-radius-soft) 0 0;
}
.process-card .title.is-4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Types/Pricing Section (Accordion & Switch) --- */
.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--neumorphic-shadow-convex);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-header);
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.accordion-header .icon {
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: var(--bg-color);
    padding: 0 1.5rem;
}

.accordion-content p {
    margin-bottom: 1rem;
}

/* Switch Component */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #dde2e9;
    border-radius: var(--border-radius-soft);
}
.switch-label { color: var(--text-color); }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; box-shadow: var(--neumorphic-shadow-concave); }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* --- Community Section --- */
.testimonial-card {
    text-align: left;
}
.testimonial-card .media-left img {
    box-shadow: var(--neumorphic-shadow-convex);
}

/* --- Press Section --- */
.press-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.press-logo img {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: filter var(--transition-speed) ease;
}
.press-logo img:hover {
    filter: grayscale(0%) opacity(1);
}

/* --- Resources Section --- */
.resource-link {
    display: block;
    padding: 1.5rem;
    border-radius: var(--border-radius-soft);
    background: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-convex);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    height: 100%;
}
.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 25px var(--dark-shadow-color), -15px -15px 25px var(--light-shadow-color);
    color: var(--accent-color);
}
.resource-link strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

.footer .footer-title {
    color: var(--header-text-color);
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    margin: 0;
}

.footer li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

.footer .content p {
    margin-top: 3rem;
    border-top: 1px solid var(--dark-shadow-color);
    padding-top: 2rem;
}

/* ==========================================================================
   9. OTHER PAGES (SUCCESS, LEGAL)
   ========================================================================== */
/* --- Success Page --- */
.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}
.success-card {
    max-width: 600px;
    padding: 3rem;
}
.success-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page-content {
    padding-top: 120px; /* Header height + buffer */
    padding-bottom: 4rem;
}
.legal-page-content h1, .legal-page-content h2 {
    margin-bottom: 1rem;
}
.legal-page-content p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN
   ========================================================================== */
@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .process-card, .testimonial-card {
        margin-bottom: 2rem;
    }
    .columns.is-multiline .column {
        margin-bottom: 1.5rem;
    }
}