/*
* File: style.css
* Author: Business Coaching Inc.
* Description: Stylesheet for the Business Coaching website.
*/

/* -----------------------------------------------------------------------------
* CSS VARIABLES
* -------------------------------------------------------------------------- */
:root {
    /* Color Palette - Neutral */
    --color-background: #fdfdfd;
    --color-background-alt: #f4f5f7;
    --color-surface: #ffffff;
    --color-text-primary: #333333;
    --color-text-secondary: #6c757d;
    --color-primary: #4a5a75; /* Muted Slate Blue */
    --color-primary-dark: #3a475d;
    --color-accent: #8d9a7d; /* Muted Sage Green */
    --color-border: #e0e0e0;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --section-padding: 5rem 0;

    /* Borders & Shadows */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------------------------------------
* GLOBAL & BASE STYLES
* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* -----------------------------------------------------------------------------
* TYPOGRAPHY & HEADINGS
* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    color: #222222;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
    margin: var(--spacing-sm) auto 0;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-secondary);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -----------------------------------------------------------------------------
* LAYOUT & CONTAINERS
* -------------------------------------------------------------------------- */
.main-container {
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.column {
    flex: 1;
    min-width: 300px;
}

.is-two-thirds {
    flex-basis: 66.66%;
    max-width: 66.66%;
}

.section-padding { padding: var(--section-padding); }
.section-padding-alt {
    padding: var(--section-padding);
    background-color: var(--color-background-alt);
}

/* -----------------------------------------------------------------------------
* HEADER & NAVIGATION
* -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: top 0.3s ease;
}

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

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--spacing-xs) 0;
}

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

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

.nav-toggle { display: none; }

/* -----------------------------------------------------------------------------
* GLOBAL COMPONENTS (Buttons, Cards, Forms)
* -------------------------------------------------------------------------- */
.btn, button, input[type='submit'] {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 90, 117, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 90, 117, 0.4);
}

.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: perspective(1000px) translateY(-10px) rotateX(2deg);
    box-shadow: var(--box-shadow-hover);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* -----------------------------------------------------------------------------
* HERO SECTION
* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: #ffffff;
    opacity: 0.9;
}

/* -----------------------------------------------------------------------------
* ABOUT US SECTION
* -------------------------------------------------------------------------- */
.about-us-section .columns {
    align-items: center;
}

.image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-shape {
    width: 100%;
    max-width: 450px;
    height: 500px;
    border-radius: 60% 40% 30% 70% / 70% 30% 70% 40%;
    animation: morph 10s ease-in-out infinite alternate;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.bio-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 70% 30% 70% 40%; }
    50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 70% 30% 70% 40%; }
}

/* -----------------------------------------------------------------------------
* SERVICES SECTION
* -------------------------------------------------------------------------- */
.services-section .columns {
    gap: var(--spacing-lg);
}

.btn-modal {
    background: none;
    border: none;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    margin-top: var(--spacing-md);
    padding: var(--spacing-xs);
}

.btn-modal:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
* METHODOLOGY SECTION (TIMELINE)
* -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: var(--spacing-sm) 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--color-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: var(--spacing-md);
    background-color: var(--color-surface);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* -----------------------------------------------------------------------------
* BEHIND THE SCENES & PARALLAX
* -------------------------------------------------------------------------- */
.parallax-section {
    position: relative;
    padding: 8rem 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    text-align: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.content-on-image {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* -----------------------------------------------------------------------------
* EXTERNAL RESOURCES SECTION
* -------------------------------------------------------------------------- */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.resource-item {
    display: block;
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-surface);
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--color-primary);
}

.resource-item strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.resource-item span {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
* FAQ SECTION (ACCORDION)
* -------------------------------------------------------------------------- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: left;
    padding: var(--spacing-md) 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content p {
    padding: 0 0 var(--spacing-md);
    color: var(--color-text-secondary);
}

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

.form-group {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-background-alt);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group label {
    position: absolute;
    top: 14px;
    left: 14px;
    color: var(--color-text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--color-background-alt);
    padding: 0 5px;
    color: var(--color-primary);
}

.contact-form button {
    width: 100%;
}

/* -----------------------------------------------------------------------------
* FOOTER
* -------------------------------------------------------------------------- */
.site-footer {
    background-color: #22252a;
    color: #a9b3c1;
    padding: var(--spacing-xl) 0 0;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.footer-column p,
.footer-column ul,
.footer-column a {
    font-size: 0.9rem;
    color: #a9b3c1;
}

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

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid #3a4049;
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.85rem;
}

/* -----------------------------------------------------------------------------
* MODAL WINDOWS
* -------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modal-fade-in 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-secondary);
    border: none;
    background: none;
    cursor: pointer;
}

@keyframes modal-fade-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------------------
* SPECIAL PAGES (SUCCESS, PRIVACY, TERMS)
* -------------------------------------------------------------------------- */
.page-container {
    padding: 120px var(--spacing-lg) var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.page-container h1 { margin-bottom: var(--spacing-lg); }

.page-success {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

.page-success h1 { color: var(--color-accent); }

/* -----------------------------------------------------------------------------
* RESPONSIVE DESIGN
* -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 992px) {
    .is-two-thirds {
        flex-basis: 100%;
        max-width: 100%;
    }
    .about-us-section .columns {
        flex-direction: column-reverse;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1, .hero-title { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-surface);
        padding: var(--spacing-md);
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-menu.active {
        max-height: 500px; /* Arbitrary large value */
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-text-primary);
        position: relative;
        transition: background-color 0.2s;
    }
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--color-text-primary);
        left: 0;
        transition: transform 0.3s ease-in-out;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
    .nav-toggle.active .hamburger { background-color: transparent; }
    .nav-toggle.active .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
    .nav-toggle.active .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 10px;
    }
}