/* ============================================
   Safe Haven Therapy - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --sage: #7A9E7E;
    --sage-light: #A8C5AB;
    --sage-dark: #5C7E60;
    --cream: #FAF7F2;
    --warm-white: #FFFDF9;
    --beige: #E8DFD0;
    --beige-light: #F2EDE5;
    --text-dark: #3A3A3A;
    --text-medium: #5A5A5A;
    --text-light: #7A7A7A;
    --accent: #C4956A;
    --accent-hover: #B07D52;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--warm-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a {
    color: var(--sage-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

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

section {
    padding: 100px 0;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sage);
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1.25rem;
}

.section-description {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--sage-light);
    margin: 1.5rem auto 2rem;
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
    background-color: var(--sage);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--sage-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--sage-dark);
    border: 2px solid var(--sage);
    padding: 12px 34px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline-custom:hover {
    background-color: var(--sage);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- Navigation ---------- */
.navbar {
    background-color: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-dark) !important;
}

.navbar-brand span {
    color: var(--accent);
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-medium) !important;
    padding: 8px 20px !important;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--sage-dark) !important;
}

.navbar-nav .nav-link.active {
    font-weight: 500;
}

.navbar .btn-primary-custom {
    padding: 10px 28px;
    font-size: 0.85rem;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

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

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige-light) 50%, var(--warm-white) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(122, 158, 126, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .accent {
    color: var(--sage);
}

.hero .lead {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: 30px;
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-lg);
}

/* ---------- Welcome Section ---------- */
.welcome {
    background-color: var(--warm-white);
    text-align: center;
}

.welcome-text {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-medium);
}

.welcome-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--sage-dark);
    max-width: 600px;
    margin: 2.5rem auto 0;
    line-height: 1.5;
}

/* ---------- About Preview ---------- */
.about-preview {
    background-color: var(--cream);
}

.about-image {
    border-radius: 20px;
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.credential-badge {
    background-color: var(--warm-white);
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--sage-dark);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Services Section ---------- */
.services {
    background-color: var(--warm-white);
    text-align: center;
}

.service-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--sage);
}

.service-card h4 {
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- Specialties List ---------- */
.specialties {
    background-color: var(--cream);
    text-align: center;
}

.specialty-tag {
    display: inline-block;
    background-color: var(--warm-white);
    border: 1px solid var(--border-light);
    padding: 10px 24px;
    border-radius: 50px;
    margin: 6px;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.specialty-tag:hover {
    background-color: var(--sage);
    color: #fff;
    border-color: var(--sage);
}

/* ---------- How It Works ---------- */
.how-it-works {
    background-color: var(--warm-white);
    text-align: center;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--sage);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-card h4 {
    margin-bottom: 0.75rem;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-light);
    font-size: 1.5rem;
}

/* ---------- Telehealth Banner ---------- */
.telehealth-banner {
    background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.telehealth-banner h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.telehealth-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.telehealth-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.telehealth-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff;
}

/* ---------- Hours & Info ---------- */
.info-section {
    background-color: var(--cream);
}

.info-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.info-card h3 {
    margin-bottom: 1.5rem;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 500;
    color: var(--text-dark);
}

.hours-list .time {
    color: var(--text-medium);
}

.hours-list .closed {
    color: var(--accent);
}

.fee-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sage-dark);
}

.fee-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ---------- Contact CTA ---------- */
.contact-cta {
    background-color: var(--warm-white);
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.contact-method {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    min-width: 220px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}

.contact-method h4 {
    color: var(--text-dark);
}

.contact-method p {
    color: var(--text-medium);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background-color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: var(--sage);
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-method a {
    color: var(--sage-dark);
    font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer h5 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--sage-light);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige-light) 100%);
    padding: 140px 0 80px;
    text-align: center;
}

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

.page-hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- About Page ---------- */
.about-full {
    background-color: var(--warm-white);
}

.about-full .about-image {
    border-radius: 20px;
}

.modality-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.modality-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--sage-light);
}

.modality-card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.modality-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* ---------- Services Page ---------- */
.service-detail {
    background-color: var(--warm-white);
}

.service-detail-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-md);
}

.service-detail-card h3 {
    margin-bottom: 1rem;
}

/* ---------- Fees Page ---------- */
.fees-section {
    background-color: var(--warm-white);
}

.fee-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
}

.fee-card:hover {
    box-shadow: var(--shadow-md);
}

.fee-card .price {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--sage-dark);
    margin: 1rem 0;
}

.fee-card .price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fee-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.fee-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-medium);
}

.fee-card ul li:last-child {
    border-bottom: none;
}

.insurance-note {
    background-color: var(--cream);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
}

/* ---------- Contact Page ---------- */
.contact-section {
    background-color: var(--warm-white);
}

.contact-form-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
}

.contact-form-card .form-control {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--cream);
}

.contact-form-card .form-control:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.15);
    background-color: #fff;
}

.contact-form-card .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-card {
    background-color: var(--cream);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background-color: var(--warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
    font-size: 1.1rem;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--sage);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--sage-dark);
    transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }
    section { padding: 70px 0; }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

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

    .hero-image {
        margin-top: 3rem;
    }

    .step-connector {
        display: none;
    }

    .navbar-collapse {
        background-color: var(--warm-white);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    section { padding: 60px 0; }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-method {
        width: 100%;
        max-width: 320px;
    }

    .welcome-quote {
        font-size: 1.4rem;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 1.9rem;
    }

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

    .info-card {
        padding: 2rem;
    }

    .contact-form-card {
        padding: 2rem;
    }
}
