/* Kind Minds - Calming Light Brown Theme */

:root {
    /* Light brown color palette */
    --color-bg: #fdf8f3;
    --color-bg-light: #f5ebe0;
    --color-bg-hover: #e8d6cb;
    --color-primary: #8b7364;
    --color-primary-light: #a68c7d;
    --color-secondary: #a68c7d;
    --color-accent: #c4a494;
    --color-text: #5d4e42;
    --color-text-light: #6d5e53;
    --color-white: #ffffff;
    --color-border: #d4c4b9;
    --color-border-light: #e8dcd5;
    --shadow-subtle: rgba(93, 78, 66, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px var(--shadow-subtle);
    /* Title left, links right */
}

/* Ensure nav links are consistently on the right for all pages (desktop only) */
@media (min-width: 769px) {
    nav .nav-links {
        margin-left: auto;
    }
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    padding: 1.75rem 2rem 1.5rem 2rem;
    text-align: center;
}

/* Logo image - responsive scaling */
.hero img {
    max-width: 400px;
    width: auto !important;
    height: auto !important;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.25rem;
    color: var(--color-primary);
    margin-bottom: 0.125rem;  /* 50% smaller gap from logo */
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.35rem;
    color: var(--color-text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

/* Intro */
.intro {
    text-align: center;
    padding: 3rem 0;
}

.intro h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* Services */
.services {
    background-color: var(--color-bg-light);
}

/* Therapists section */
.therapists {
    background-color: var(--color-bg-light);
}

.therapists h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Make grid responsive - switch to 1 column on small screens */
@media (max-width: 850px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--color-bg);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border-light);
    /* Fixed width to maintain 3 cards per row */
    width: 30%;
    min-width: 280px;
    max-width: 30%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-subtle);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    font-size: 1.05rem;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-text-light);
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-values h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.about-values ul {
    list-style: none;
}

.about-values li {
    padding: 0.75rem 0;
    color: var(--color-text-light);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-border-light);
}

.about-values li:last-child {
    border-bottom: none;
}

/* Contact section */
.contact-hero {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.contact-content {
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form h2,
.contact-info h2 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--color-primary);
    font-weight: 400;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 115, 100, 0.15);
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.9rem 2.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.contact-info .info-item {
    margin-bottom: 1.5rem;
}

.contact-info .info-item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.contact-info .info-item p {
    color: var(--color-text-light);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--color-bg-light);
    padding: 2rem;
    text-align: center;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide nav title on mobile */
    .nav-title {
        display: none;
    }
    
    /* Make nav links the only thing showing in nav bar */
    nav {
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    /* Homepage hero improvements - make logo larger and text smaller */
    .hero img {
        max-width: 350px !important;
        max-height: 220px !important;
    }

    .hero h1 {
        font-size: 2.75rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    /* Make "Find Support You Trust" (intro h2) smaller on mobile */
    .intro h2 {
        font-size: 1.5rem !important; /* smaller than desktop 2rem */
    }

    /* Improve mobile spacing */
    .hero {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text h2,
    .about-values h3,
    .contact-form h2,
    .contact-info h2 {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    section {
        padding: 3.5rem 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Flash messages */
.contact-flash-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}
.contact-flash-messages .flash-message {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: 400;
}
.flash-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.flash-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Modal Styles for Services */
.service-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.6);
}

.service-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-modal-content {
    background-color: var(--color-bg);
    margin: 2% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border-light);
}

.service-modal-title {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.75rem;
    font-weight: 400;
}

.service-modal-close {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.service-modal-close:hover {
    color: var(--color-primary);
}

.service-modal-body {
    margin-bottom: 1.5rem;
}

.service-modal-body img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px var(--shadow-subtle);
}

.service-modal-body p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    white-space: pre-line;
}

.service-modal-body p.short {
    font-size: 1rem;
}

.service-modal-body p.long {
    font-size: 0.95rem;
}

.service-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 0 1rem;
    }
}

