/* 
  Project: Wenrui Li Psychotherapist Website
  Design Source: Specific mockup templates provided by user
  Colors: 
    Background: #EAE5DD (Warm Off-white/Beige)
    Dark Section Bg: #111424 (Deep Navy/Charcoal)
    Accent Text/Lines: #4B2C52 (Deep Purple/Plum)
    Light Text on Dark: #F7F5F0
    Button Bg Gradient: Linear combinations of purples e.g. rgba(118,65,116, 0.9) #764174
*/

:root {
    --bg-color: #F2EBE1;
    /* Warmer cream/beige */
    --text-primary: #3A3238;
    --heading-color: #2D272B;
    --accent-purple: #703C6D;
    --accent-dark: #121524;
    --text-light: #F2EFE9;
    --border-color: #B29B82;
    /* Warmer gold/brown for borders */
    --border-light: #D6CBBF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --padding-section: 120px 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for the sticky navbar */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =======================================
   Typography & Universal Elements
   ======================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 500;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    font-weight: 400;
}

p {
    font-size: 1.1rem;
    color: #554D53;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.site-container {
    background-color: #F8F5F0;
    margin: 20px auto;
    border-radius: 0;
    max-width: 1400px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    /* Stronger shadow for floating effect */
    overflow: clip;
    /* clip instead of hidden to allow sticky to work */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle outer border */
}

/* Components */
.tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 400;
}

.border-tag {
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
}

.tag-light.border-tag {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 0 0 2px transparent;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(112, 60, 109, 0.95), rgba(89, 45, 86, 1));
    color: white;
    border: none;
    position: relative;
    /* Soft magenta/pink double glow */
    box-shadow: 0 15px 35px rgba(220, 130, 200, 0.35), 0 8px 15px rgba(112, 60, 109, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 0 2px rgba(112, 60, 109, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(220, 130, 200, 0.45), 0 12px 20px rgba(112, 60, 109, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 0 2px rgba(112, 60, 109, 0.4);
}

/* Base Arch styling */
.arch-container {
    border-radius: 300px 300px 0 0;
    overflow: hidden;
    position: relative;
}

.arch-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =======================================
   Navigation
   ======================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #F8F5F0;
    /* Matches the site container background */
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 1.05rem;
    color: #666;
    font-weight: 300;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #888;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--accent-purple);
}

.lang-btn.active {
    color: var(--heading-color);
    font-weight: 500;
}

.lang-divider {
    color: #CCC;
    user-select: none;
}

.nav-btn {
    font-size: 0.95rem;
    padding: 12px 24px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-purple);
    transition: 0.3s;
}

/* =======================================
   Hero Section
   ======================================= */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px 0 120px;
    /* Decreased top padding for smaller gap */
    min-height: 75vh;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    padding-bottom: 100px;
}

.hero-content h1 {
    color: var(--heading-color);
}

.hero-content p {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: flex-end;
    height: 100%;
    padding-left: 50px;
}

/* The double line arch effect from the design */
.hero-image-arch {
    width: 450px;
    height: 650px;
    border-radius: 300px 300px 0 0;
    border: 2px solid var(--border-color);
    /* Prominent gold/brown border */
    padding: 15px 15px 0 15px;
    /* Space between outer border and inner image */
    position: relative;
    border-bottom: none;
}

.hero-image-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 285px 285px 0 0;
}

/* =======================================
   Values Section
   ======================================= */
.values-section {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 100px 60px;
    text-align: center;
}

.value-item {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-icon {
    width: 90px;
    height: 90px;
    background-color: rgba(112, 60, 109, 0.15);
    /* Soft purple bg circle */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.value-icon svg {
    width: 40px;
    height: 40px;
}

.value-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.value-item p {
    font-size: 1.05rem;
    line-height: 1.5;
}

/* =======================================
   About Section (Dark Theme)
   ======================================= */
.dark-bg {
    background-color: var(--accent-dark);
    color: var(--text-light);
}

.about-section {
    display: flex;
    padding: 0 60px;
    align-items: center;
    gap: 80px;
}

.about-image-container {
    flex: 0.8;
    align-self: flex-end;
}

/* Arch going from bottom up, slightly different padding style based on screenshot */
.about-image-arch {
    width: 100%;
    max-width: 450px;
    height: 600px;
    border-radius: 300px 300px 0 0;
    border: 2px solid var(--border-color);
    /* Matching gold/brown border */
    padding: 0;
    margin-top: 60px;
    margin-left: 20px;
}

.about-image-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 298px 298px 0 0;
    padding: 15px 15px 0 15px;
    /* Inward padding */
}

.about-content {
    flex: 1.2;
    padding: 100px 0;
    max-width: 600px;
}

.about-content h2 {
    color: var(--text-light);
    margin-bottom: 40px;
}

.about-text-content {
    margin-bottom: 40px;
}

.about-text-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.credentials {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.credential-item i {
    font-size: 1.2rem;
}

/* =======================================
   Services Section
   ======================================= */
.services-section {
    padding: 120px 60px;
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.section-header h2 {
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-image-arch {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    border-radius: 300px 300px 0 0;
    border: 2px solid var(--border-color);
    /* Matching border */
    padding: 15px 15px 0 15px;
    margin-bottom: 30px;
    overflow: hidden;
}

.service-image-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 298px 298px 0 0;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
}

/* =======================================
   Process / How It Works
   ======================================= */
.process-section {
    padding: 80px 60px 120px 60px;
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    line-height: 1;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

.process-btn-container {
    margin-top: 80px;
}

/* =======================================
   FAQ Section
   ======================================= */
.faq-section {
    padding: 80px 60px 120px 60px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 35px 0;
    /* More spacing */
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
    color: var(--heading-color);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--heading-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.faq-answer p {
    padding-top: 15px;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* =======================================
   Contact Section
   ======================================= */
.contact-section {
    padding: 80px 60px 120px 60px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.contact-form label {
    font-size: 0.95rem;
    color: var(--heading-color);
    font-weight: 500;
}

.required {
    color: var(--accent-purple);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 10px;
    padding: 16px 40px;
}

.form-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.form-status.success {
    display: block;
    background-color: #E6F4EA;
    color: #137333;
    border: 1px solid #CEEAD6;
}

.form-status.error {
    display: block;
    background-color: #FCE8E6;
    color: #C5221F;
    border: 1px solid #FAD2CF;
}

/* =======================================
   Footer
   ======================================= */
.site-footer {
    background-color: var(--accent-dark);
    color: var(--text-light);
    padding: 80px 60px 40px 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

.footer-left {
    max-width: 350px;
}

.footer-desc {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-links-container {
    display: flex;
    gap: 80px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 300;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* =======================================
   Responsive Design (Media Queries)
   ======================================= */
@media (max-width: 1024px) {
    .site-container {
        margin: 0;
    }

    .hero {
        flex-direction: column;
        padding-top: 20px;
        padding-left: 60px;
        text-align: center;
    }

    .hero-content {
        padding-bottom: 40px;
    }

    .hero-image-container {
        align-self: center;
        padding-left: 0;
    }

    .about-section {
        flex-direction: column;
        gap: 40px;
    }

    .about-image-container {
        align-self: center;
        order: 2;
    }

    .about-content {
        order: 1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 20px 30px;
    }

    .nav-links,
    .nav-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 20px 30px;
    }

    .hero-image-arch {
        width: 100%;
        max-width: 400px;
        height: 500px;
    }

    .values-section {
        flex-direction: column;
        gap: 50px;
        padding: 60px 30px;
    }

    .about-section {
        padding: 60px 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    .contact-container {
        padding: 0 20px;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 50px;
    }

    .footer-links-container {
        flex-direction: column;
        gap: 40px;
    }
}