/*------------------------------------------------------------------
[Master Stylesheet]

Project:     Psiche - Psychology Website
Version:     1.0
Author:      AI Assistant
-------------------------------------------------------------------*/

/*------------------------------------------------------------------
[Table of contents]

1.  Root & Variables
2.  Global Styles & Typography
3.  Utility Classes
4.  Header & Navigation
5.  Hero Section
6.  Section Styles (General)
7.  Component Styles
    - Buttons
    - Cards (Insights, Case Studies, Behind the Scenes)
    - Form Elements
    - Carousel Controls
8.  Section-Specific Styles
    - Innovation
    - Awards & Press
    - Customer Stories
    - External Resources
    - Contact
9.  Footer
10. Page Specific Styles (About, Legal, Success)
11. Animations & Transitions
12. Responsive Design (Media Queries)
-------------------------------------------------------------------*/

/* 1. Root & Variables */
:root {
    /* Tetradic Color Scheme */
    --primary-color: #5D9C59;   /* Calming Green */
    --secondary-color: #DFD8C8; /* Soft Beige */
    --accent-color-1: #659DBD;   /* Gentle Blue */
    --accent-color-2: #F7B1AB;   /* Subtle Coral */

    /* Grayscale & Text */
    --dark-text: #333333;
    --darker-text: #222222;
    --light-text: #FFFFFF;
    --muted-text: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;

    /* Typography */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* UI Elements */
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

/* 2. Global Styles & Typography */
body {
    font-family: var(--font-body);
    background-color: var(--light-text);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--darker-text);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

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

p {
    margin-bottom: 1rem;
    color: var(--muted-text);
}

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

a:hover {
    color: var(--darker-text);
    text-decoration: underline;
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

/* 3. Utility Classes */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

/* 4. Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-speed) ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--dark-text) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 2rem);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 5. Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 0;
    color: var(--light-text);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

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

.hero h1, .hero p {
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 6. Section Styles (General) */
.bg-light {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* 7. Component Styles */

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #4a7d46; /* Darken primary */
    border-color: #4a7d46;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card .card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card design */
    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.05);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Allows card body to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.25rem;
}

/* Behind the scenes card */
.card.text-center .card-image {
    height: 300px;
}

/* Case study card */
#case-studies .card {
    text-align: left;
}
#case-studies .card-image {
    height: auto;
}

@media (min-width: 768px) {
    #case-studies .card-image img {
        height: 100%;
    }
}


/* Form Elements */
.form-control {
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid #ced4da;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(93, 156, 89, 0.25);
}

.form-label {
    font-weight: 700;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--dark-text);
    border-radius: 50%;
    padding: 1rem;
    background-size: 50%;
}

/* 8. Section-Specific Styles */

/* Innovation */
.innovation-item .icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(93, 156, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.innovation-item .animated-icon {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
}

/* Awards & Press */
.press-logo {
    opacity: 0.6;
    transition: opacity var(--transition-speed) ease;
    filter: grayscale(100%);
}

.press-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Customer Stories */
#customer-stories .blockquote {
    font-size: 1.2rem;
    font-style: italic;
}
#customer-stories .blockquote-footer {
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
}

/* External Resources */
.list-group-item-action {
    transition: all var(--transition-speed) ease;
    border-color: #eee;
}

.list-group-item-action:hover {
    background-color: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    transform: translateX(5px);
}

/* 9. Footer */
.footer {
    background-color: var(--bg-dark);
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-link:hover {
    color: var(--light-text);
    text-decoration: underline;
}

/* 10. Page Specific Styles */
[data-barba-namespace="privacy"] section,
[data-barba-namespace="terms"] section {
    padding-top: 100px;
}

[data-barba-namespace="success"] section {
    min-height: 100vh;
}

/* 11. Animations & Transitions (Barba.js) */
.fade-transition {
    transition: opacity var(--transition-speed) ease;
}

.fade-transition.fade-leave-active,
.fade-transition.fade-enter-from {
    opacity: 0;
}

.fade-transition.fade-leave-to,
.fade-transition.fade-enter-active {
    opacity: 1;
}

/* 12. Responsive Design (Media Queries) */
@media (max-width: 991.98px) {
    .header {
        background-color: rgba(255, 255, 255, 1);
    }
    .navbar-collapse {
        margin-top: 1rem;
        background-color: #fff;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    .nav-link::after {
        display: none;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    .parallax-bg {
        background-attachment: scroll; /* Disables parallax on mobile for performance */
    }
}