/*
* BrainTree Center - Main Stylesheet
* ---------------------------------
* This stylesheet contains all styles for the BrainTree Center website.
* It's organized in sections to make maintenance easier.
*
* Table of Contents:
* 1. Reset & Base Styles
* 2. Typography
* 3. Layout & Container
* 4. Header & Navigation
* 5. Page Headers
* 6. Main Content
* 7. Cards & Content Blocks
* 8. Service Styles
* 9. Area Styles
* 10. Team Styles
* 11. Form Styles
* 12. Footer
* 13. Media Queries
* 14. Animations & Effects
* 15. Utilities
*/

/*--------------------------------------------------------------
1. Reset & Base Styles
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/*--------------------------------------------------------------
2. Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    color: #5a7302;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

a {
    color: #5a7302;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #465a01;
}

/*--------------------------------------------------------------
3. Layout & Container
--------------------------------------------------------------*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding-top: 120px;
    min-height: calc(100vh - 120px - 100px); /* Viewport height minus header and footer */
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/*--------------------------------------------------------------
4. Header & Navigation
--------------------------------------------------------------*/
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo {
    height: 60px;
}

.logo-text {
    margin-left: 10px;
    font-size: 1.2rem;
    color: #5a7302;
}

/* Navigation */
nav {
    background-color: #5a7302;
}

nav ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #465a01;
    color: white;
}

nav a.active {
    background-color: #465a01;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5a7302;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #5a7302;
        display: none;
    }

    nav ul.show {
        display: block;
    }

    .menu-toggle {
        display: block;
    }
}

/*--------------------------------------------------------------
5. Page Headers
--------------------------------------------------------------*/
.page-header {
    background-color: #f0f7e0;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;
    background-image: linear-gradient(135deg, rgba(240, 247, 224, 0.9) 0%, rgba(224, 234, 207, 0.9) 100%);
    border-radius: 0 0 50% 50% / 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '🧠';
    position: absolute;
    font-size: 150px;
    opacity: 0.05;
    right: -20px;
    bottom: -20px;
    transform: rotate(-10deg);
    z-index: 0;
}

.page-header h1 {
    font-size: 3rem;
    color: #5a7302;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.page-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/*--------------------------------------------------------------
6. Main Content 
--------------------------------------------------------------*/
.hero {
    background-color: #f0f7e0;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #5a7302;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: #5a7302;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #465a01;
}

/*--------------------------------------------------------------
7. Cards & Content Blocks
--------------------------------------------------------------*/
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px 0;
}

.feature {
    flex-basis: calc(33.333% - 20px);
    background-color: white;
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.feature h3 {
    color: #5a7302;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/*--------------------------------------------------------------
8. Service Styles
--------------------------------------------------------------*/
.service-nav {
    background-color: #f0f7e0;
    padding: 20px 0;
    margin-bottom: 50px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.service-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.service-nav a {
    display: block;
    padding: 12px 20px;
    color: #5a7302;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
    background-color: white;
    box-shadow: 0 2px 8px rgba(90, 115, 2, 0.1);
}

.service-nav a:hover {
    background-color: #5a7302;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(90, 115, 2, 0.2);
}

.service-section {
    margin-bottom: 80px;
    scroll-margin-top: 140px; /* For smooth scrolling to anchors */
    position: relative;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: #5a7302;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.service-section h2 {
    color: #5a7302;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0eacf;
    position: relative;
}

.service-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #5a7302;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: #fafcf5;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f7e0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: #5a7302;
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 12px;
}

.service-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #5a7302;
}

.service-item p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

.service-item ul {
    margin-bottom: 20px;
    padding-left: 5px;
    list-style-type: none;
}

.service-item li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.service-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #5a7302;
    font-weight: bold;
}

.btn-contact {
    display: inline-block;
    background-color: #5a7302;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(90, 115, 2, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-contact:hover {
    background-color: #465a01;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 115, 2, 0.4);
}

.btn-contact::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    background-color: #465a01;
    transition: all 0.3s;
    z-index: -1;
    border-radius: 50px;
}

.btn-contact:hover::after {
    left: 0;
    width: 100%;
}

.service-cta {
    text-align: center;
    margin: 80px 0 40px;
    padding: 50px 30px;
    background-color: #f0f7e0;
    border-radius: 15px;
    background-image: linear-gradient(135deg, #f0f7e0 0%, #e0eacf 100%);
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-color: rgba(90, 115, 2, 0.1);
    border-radius: 50%;
}

.service-cta::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background-color: rgba(90, 115, 2, 0.1);
    border-radius: 50%;
}

.service-cta p {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

@media (min-width: 1200px) {    
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-section {
        padding: 40px 50px;
    }
}

/*--------------------------------------------------------------
9. Area Styles
--------------------------------------------------------------*/
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.area-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(240, 247, 224, 0.5);
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.area-img {
    height: 180px;
    width: 100%;
    background-image: linear-gradient(135deg, #e0eacf 0%, #f0f7e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a7302;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.area-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-image: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
}

.area-img span {
    transform: scale(1);
    transition: transform 0.4s ease;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.area-card:hover .area-img span {
    transform: scale(1.2);
}

.area-content {
    padding: 30px;
    position: relative;
}

.area-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #5a7302;
    border-radius: 3px;
}

.area-content h2 {
    color: #5a7302;
    margin-bottom: 20px;
    font-size: 1.6rem;
    text-align: center;
}

.area-content p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

.read-more {
    display: inline-block;
    color: #5a7302;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 30px;
    background-color: #f0f7e0;
    box-shadow: 0 3px 10px rgba(90, 115, 2, 0.1);
}

.read-more:hover {
    color: white;
    background-color: #5a7302;
    box-shadow: 0 5px 15px rgba(90, 115, 2, 0.2);
    transform: translateY(-3px);
}

@media (min-width: 1200px) {    
    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*--------------------------------------------------------------
10. Team Styles
--------------------------------------------------------------*/
.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    color: #5a7302;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0eacf;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

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

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    background-color: #e0eacf;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.about-image span {
    font-size: 5rem;
    color: #5a7302;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.value-card h3 {
    color: #5a7302;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #5a7302;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 300px));
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.team-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.team-photo {
    height: 180px;
    background-color: #e0eacf;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #5a7302;
}

.team-photo span {
    font-size: 4rem;
    color: #5a7302;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    color: #5a7302;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.team-info p.position {
    font-style: italic;
    margin-bottom: 15px;
    color: #666;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
}

/*--------------------------------------------------------------
11. Form Styles
--------------------------------------------------------------*/
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

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

.contact-info h2 {
    color: #5a7302;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0eacf;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    color: #5a7302;
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.info-item h3 span {
    margin-right: 10px;
    font-size: 1.5rem;
}

.info-item p {
    margin-bottom: 5px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: #5a7302;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0eacf;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

.form-control:focus {
    border-color: #5a7302;
    outline: none;
    box-shadow: 0 0 5px rgba(90, 115, 2, 0.3);
}

.submit-btn {
    background-color: #5a7302;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #465a01;
}

.map-container {
    margin-top: 40px;
    height: 400px;
    background-color: #e0eacf;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a7302;
    font-size: 1.5rem;
    text-align: center;
}

/* Business hours */
.business-hours {
    margin-top: 40px;
}

.business-hours h2 {
    color: #5a7302;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0eacf;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.hours-table tr {
    border-bottom: 1px solid #ddd;
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 12px 5px;
}

.hours-table td:first-child {
    font-weight: 600;
    color: #5a7302;
    width: 40%;
}

/*--------------------------------------------------------------
12. Footer
--------------------------------------------------------------*/
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex-basis: calc(33.333% - 30px);
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #f0f7e0;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

/*--------------------------------------------------------------
13. Media Queries
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .footer-section {
        flex-basis: calc(50% - 15px);
    }

    .service-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .service-nav a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .feature, .footer-section {
        flex-basis: 100%;
    }

    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
14. Animations & Effects
--------------------------------------------------------------*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/*--------------------------------------------------------------
15. Utilities
--------------------------------------------------------------*/
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}