/* style.css */

/* --- 1. CSS Variables --- */
:root {
    /* Analogous Color Scheme */
    --primary-color: #4f46e5;      /* Vibrant Indigo */
    --primary-darker: #4338ca;    /* Darker Indigo */
    --secondary-color: #0891b2;    /* Vibrant Cyan */
    --accent-color: #db2777;       /* Vibrant Pink */

    /* Backgrounds */
    --bg-light: #f8fafc;           /* Almost White */
    --bg-dark: #0f172a;            /* Very Dark Slate Blue */
    --bg-dark-secondary: #1e293b;   /* Slate Blue */
    --bg-glass: rgba(15, 23, 42, 0.7); /* Glassmorphism background */
    
    /* Text */
    --text-light: #e2e8f0;         /* Light Gray */
    --text-dark: #334155;          /* Dark Slate Gray */
    --text-white: #ffffff;
    --text-headings: #1e293b;     /* Darker for contrast on light bg */
    
    /* Fonts */
    --font-headings: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;
    
    /* UI Elements */
    --border-radius: 12px;
    --card-shadow: 0 8px 16px rgba(15, 23, 42, 0.1), 0 4px 6px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 12px 24px rgba(15, 23, 42, 0.15), 0 6px 8px rgba(15, 23, 42, 0.1);
    --header-height: 80px;
}

/* --- 2. Global Styles & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--text-headings);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; height: auto; display: block; }

/* --- 3. Layout & Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--text-white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: #64748b;
}

.section-dark .section-description {
    color: var(--text-light);
}

.columns {
    display: grid;
    gap: 2rem;
}

/* --- 4. Components --- */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-headings);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card layouts */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.read-more {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1rem;
    display: inline-block;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: var(--border-radius);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0 0.25rem;
    background-color: var(--bg-light);
    color: #94a3b8;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:focus + label, 
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-light);
}

.footer-column a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--bg-dark-secondary);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- 5. Section Specific Styles --- */

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(15, 23, 42, 0.7), rgba(79, 70, 229, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
}

/* Methodology Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.progress-indicator-container {
    height: 8px;
    width: 100%;
    background-color: #334155;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 4px;
    width: 0; /* JS will animate this */
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Stories Section */
.slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.custom-slider {
    overflow: hidden;
}

.slide {
    text-align: center;
    padding: 2rem;
    background: var(--bg-dark-secondary);
    border-radius: var(--border-radius);
}

.customer-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--secondary-color);
}

.slide blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.slide blockquote footer {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Resources Section */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    display: block;
    background-color: var(--bg-dark-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-left: 4px solid transparent;
}

.resource-item:hover {
    transform: translateY(-5px);
    background-color: #334155;
    border-left-color: var(--accent-color);
}

.resource-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.resource-item p {
    margin-bottom: 0;
    color: var(--text-light);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-light);
    margin: 15% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-dark);
}

/* Specific Page Styles */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: var(--bg-dark);
    color: var(--text-white);
}

.success-page .content-wrapper {
    max-width: 600px;
}
.success-page h1 { color: var(--text-white); }
.success-page p { color: var(--text-light); }

.legal-page-content {
    padding-top: calc(var(--header-height) + 4rem); /* Header height + extra space */
    padding-bottom: 4rem;
}

.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- 6. Responsiveness --- */
@media (min-width: 768px) {
    .columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .columns.trio {
        grid-template-columns: repeat(3, 1fr);
    }

    .columns .is-two-thirds {
        grid-column: span 2; /* For a 3-column grid */
    }
    
    /* Adjust for 2-column About Us grid */
    #about .columns {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
    #blog .columns {
        grid-template-columns: repeat(3, 1fr);
    }
    #workshops .columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .process-steps, #blog .columns, #workshops .columns, .resource-list {
        grid-template-columns: 1fr;
    }

}