/* style.css */

/* --- CSS Variables --- */
:root {
    /* Tetradic Color Scheme */
    --primary-color: #0D47A1; /* Deep Professional Blue */
    --secondary-color: #FF6F00; /* Energetic Orange */
    --accent-color-1: #2E7D32; /* Growth Green */
    --accent-color-2: #6A1B9A; /* Wisdom Purple */

    /* Text & Backgrounds */
    --text-color: #333333;
    --text-color-light: #FFFFFF;
    --background-color: #FFFFFF;
    --background-light: #F8F9FA;
    --border-color: #DDDDDD;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* UI Elements */
    --border-radius: 8px;
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

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

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

.main-container {
    background-color: var(--background-color);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: #222222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-title {
    margin-bottom: 3rem !important;
    position: relative;
    padding-bottom: 1rem;
}

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

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

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

/* --- Layout & Sections --- */
.section {
    padding: 6rem 1.5rem;
}

/* --- Header & Navigation --- */
.header.is-fixed-top {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-item {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all var(--transition-speed);
}

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

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

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

/* --- Hero Section --- */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero .title {
    color: var(--text-color-light);
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .subtitle {
    color: var(--text-color-light);
    opacity: 0.9;
    max-width: 800px;
    margin: 1.5rem auto 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* --- Global Button Styles --- */
.button {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: #0a3a81; /* Darker primary */
    color: var(--text-color-light);
}

.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* --- History Section & Statistical Widgets --- */
.statistical-widgets {
    margin-top: 4rem;
}
.stat-widget {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}
.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}
.stat-widget .title {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Cards (Services, Testimonials) --- */
.card {
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures border-radius applies to image */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card .card-image {
    width: 100%;
    text-align: center;
}

.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
}

.card .card-content {
    flex-grow: 1; /* Allows content to fill space */
    text-align: left;
    padding: 1.5rem;
}
.card .card-content .title {
    margin-bottom: 1rem;
}

.testimonial-card {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.testimonial-card .is-italic {
    font-size: 1.2rem;
    line-height: 1.6;
}
.testimonial-card p {
    color: var(--text-color-light);
}

/* --- Accordion --- */
.accordion {
    max-width: 800px;
    margin: 2rem auto;
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color var(--transition-speed);
}
.accordion-header:hover {
    background-color: #f0f0f0;
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-speed);
}
.accordion-header.is-active::after {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed), padding var(--transition-speed);
    padding: 0 1.5rem;
}
.accordion-content p {
    padding-bottom: 1.5rem;
}

/* --- Customer Stories --- */
.story-box {
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}
.is-offset-one-third .story-box {
    border-left: none;
    border-right: 5px solid var(--secondary-color);
}
.story-box img.is-rounded {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Press Section --- */
.press-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.press-logos .image {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed);
}
.press-logos .image:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Contact Form & Toggle Switch --- */
.contact-form {
    background: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-form .input, .contact-form .textarea, .contact-form .select select {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all var(--transition-speed);
    font-size: 1.1rem;
}

.contact-form .input:focus, .contact-form .textarea:focus, .contact-form .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(13, 71, 161, 0.25);
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.toggle-switch input[type="checkbox"] {
    display: none;
}
.toggle-switch .slider {
    position: relative;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border-radius: 28px;
    transition: background-color var(--transition-speed);
    margin-right: 10px;
}
.toggle-switch .slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 4px;
    left: 4px;
    transition: transform var(--transition-speed);
}
.toggle-switch input:checked + .slider {
    background-color: var(--accent-color-1);
}
.toggle-switch input:checked + .slider::before {
    transform: translateX(22px);
}

/* --- Footer --- */
.footer {
    background-color: #222222;
    color: #ccc;
    padding: 4rem 1.5rem;
}
.footer .title {
    color: var(--text-color-light);
}
.footer p, .footer a {
    color: #ccc;
}
.footer a:hover {
    color: var(--secondary-color);
}
.footer ul {
    list-style: none;
    margin: 0;
}
.footer li {
    margin-bottom: 0.5rem;
}

/* --- Animation on Scroll --- */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page-Specific Styles --- */
/* success.html */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--background-light);
}
.success-content {
    background: var(--background-color);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
}
.success-content .icon {
    color: var(--accent-color-1);
    font-size: 5rem;
    margin-bottom: 2rem;
}
/* privacy.html, terms.html */
.static-page-content {
    padding-top: 100px; /* Adjust for fixed header */
    padding-bottom: 4rem;
}
.static-page-content h1, .static-page-content h2, .static-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- Media Queries --- */
/* Tablet */
@media screen and (max-width: 1023px) {
    .section {
        padding: 4rem 1.5rem;
    }
    .hero .title {
        font-size: 3rem;
    }
    .story-box, .is-offset-one-third .story-box {
        border: none;
        border-top: 4px solid var(--primary-color);
    }
    .is-offset-one-third {
        margin-left: 0;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .hero .title {
        font-size: 2.5rem;
    }
    .hero .subtitle {
        font-size: 1.2rem;
    }
    .navbar-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
    }
    .footer .columns {
        text-align: center;
    }
    .press-logos {
        gap: 1rem;
    }
    .press-logos .image {
        flex-basis: 40%;
    }
}