/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #5F7E46;
    --primary-dark: #4A6234;
    --primary-light: #E8F3E5;
    --secondary-color: #7FA970;
    --accent-color: #E89BA0;

    --text-dark: #2c3e50;
    --text-medium: #546e7a;
    --text-light: #7f8c8d;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #ecf0f1;

    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Orphan prevention: balance short text blocks */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    text-wrap: balance;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    text-wrap: pretty;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 540px;
    margin: 0 auto;
    text-wrap: balance;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.logo a:hover {
    text-decoration: none;
    opacity: 0.85;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-phone .phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--primary-dark);
    font-weight: 600;
    min-height: 44px;
}

.nav-phone .phone-link:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    margin-top: 80px;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Who I Help Section
   =================================== */
.who-i-help {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.help-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.help-card:hover {
    background-color: var(--primary-light);
}

.help-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.help-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.help-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0;
    text-wrap: pretty;
}

.therapy-image-section {
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
}

.therapy-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    text-wrap: pretty;
}

.therapy-list {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0;
}

.therapy-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.therapy-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===================================
   About / Meet Jenny Section
   =================================== */
.about {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

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

.about-text h2 {
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-wrap: pretty;
}

.intro-sub {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    text-wrap: pretty;
}

/* Credential badges row */
.credential-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.credential-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
    white-space: normal;
    min-height: 44px;
}

.badge-check {
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   Accordion
   =================================== */
.accordion {
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.accordion-toggle:hover {
    color: var(--primary-color);
}

.accordion-toggle[aria-expanded="true"] {
    color: var(--primary-color);
}

.accordion-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--text-medium);
}

.accordion-toggle[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.accordion-panel:not([hidden]) {
    max-height: 600px;
}

.accordion-panel[hidden] {
    display: block !important;
    max-height: 0;
    visibility: hidden;
}

.accordion-panel p {
    color: var(--text-medium);
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
    text-wrap: pretty;
}

.accordion-panel p:last-child {
    padding-bottom: 1rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-intro h2 {
    margin-bottom: 1rem;
}

.contact-intro p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    text-wrap: pretty;
}

.contact-info {
    margin-top: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background-color: var(--bg-white);
    border-radius: 8px;
}

.contact-detail svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.contact-detail a,
.contact-detail span {
    color: var(--primary-dark);
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--text-medium);
    font-size: 0.88rem;
    text-wrap: pretty;
}

.form-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-message svg {
    flex-shrink: 0;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.success svg {
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message.error svg {
    color: #dc3545;
}

.form-message strong {
    display: block;
    margin-bottom: 0.25rem;
}

.form-message p {
    margin: 0;
    font-size: 0.95rem;
    text-wrap: pretty;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-credential {
    font-size: 0.9rem;
}

.footer-contact h4,
.footer-social h4 {
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #A8D5A8;
}

.footer-contact a:hover {
    color: #C8E6C9;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ===================================
   Responsive — Tablet (≤ 992px)
   =================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image img {
        max-width: 420px;
        margin: 0 auto;
    }

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Responsive — Mobile (≤ 768px)
   =================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-phone {
        width: 100%;
    }

    .nav-phone .phone-link {
        justify-content: center;
        min-height: 44px;
    }

    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .about,
    .services,
    .who-i-help,
    .contact {
        padding: 3rem 0;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .credential-badges {
        gap: 0.5rem;
    }

    .credential-badge {
        font-size: 0.82rem;
        padding: 0.35rem 0.75rem;
        min-height: 44px;
    }
}

/* ===================================
   Responsive — Small Mobile (≤ 480px)
   =================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .help-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* ===================================
   Mobile Phone Link Enhancements
   =================================== */
@media (max-width: 768px) {
    .contact-detail a[href^="tel"],
    .form-message a[href^="tel"] {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-weight: 700;
        color: var(--primary-color);
        text-decoration: underline;
        text-underline-offset: 2px;
        min-height: 44px;
        padding: 0.25rem 0;
    }

    .footer-contact a[href^="tel"] {
        display: inline-flex;
        align-items: center;
        font-weight: 700;
        font-size: 1.05rem;
        min-height: 44px;
        padding: 0.25rem 0;
        letter-spacing: 0.01em;
    }

    .btn {
        min-height: 44px;
    }
}
