/* ============================================================
   ACTion Psychology - Main Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
    --color-dark:      #314a3c;
    --color-primary:   #62a165;
    --color-light:     #daebd5;
    --color-cream:     #fff7ef;
    --color-sage:      #d1ddcf;
    --color-white:     #ffffff;
    --color-text:      #2d2d2d;
    --color-text-muted: #666666;

    --font-base: 'Nunito', sans-serif;

    --radius:    10px;
    --radius-lg: 20px;
    --section-pad: 80px 0;
    --container-max: 1200px;
    --container-pad: 0 78px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

ul.wp-block-list { list-style: disc; padding-left: 1.5em; }

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-pad);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-base);
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.2;
}

.section-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-intro {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 720px;
}

.section-label {
    font-size: 48px;
    color: var(--color-dark);
    margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, background 0.2s;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.btn:hover { opacity: 0.88; }

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

.btn-light {
    background: var(--color-light);
    color: var(--color-dark);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    padding: 8px 20px;
}

.btn-sm {
    font-size: 13px;
    padding: 8px 16px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.wp-site-blocks { overflow: unset !important; }

/* Sticky sur le wrapper WordPress (template-part) */
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header {
    background-color: rgba(49, 74, 60, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* Compact on scroll — logo + padding réduits */
.site-header.scrolled .wp-block-site-logo img {
    height: 38px !important;
    transition: height 0.3s ease;
}
.site-header .wp-block-site-logo img {
    transition: height 0.3s ease;
}
.site-header.scrolled .nav-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Lien actif */
.site-header .wp-block-navigation-item__content.nav-active {
    opacity: 1 !important;
    border-bottom: 1px solid rgba(218, 235, 213, 0.5);
    padding-bottom: 2px;
}

.nav-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Logo */
.site-header .wp-block-site-logo { flex-shrink: 0; }
.site-header .wp-block-site-logo img { height: 53px; width: auto; }

/* Liens nav desktop */
.site-header .wp-block-navigation { flex: 1; justify-content: center; }
.site-header .wp-block-navigation .wp-block-navigation-item__content {
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0;
    white-space: nowrap;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover { opacity: 0.75; }

/* Overlay natif WP — fond vert foncé */
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
    background-color: #314a3c !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    color: #ffffff !important;
}

/* Boutons — toujours visibles, ne rétrécissent pas */
.site-header .wp-block-buttons { flex-shrink: 0; }
.site-header .wp-block-button__link { white-space: nowrap; }
.site-header .ap-btn-outline .wp-block-button__link {
    border: none !important;
    background: #daebd5 !important;
    color: #314a3c !important;
    border-radius: 10px !important;
}
.site-header .ap-btn-primary .wp-block-button__link {
    background: #62a165 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
}

/* Hamburger custom — caché par défaut (desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Croix quand menu ouvert */
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile — caché, s'ouvre en fixed au-dessus de tout */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #314a3c !important;
    padding: 100px 40px 40px;
    z-index: 9999;
    overflow-y: auto;
}
.site-header.nav-open .mobile-menu,
.mobile-menu.is-open { display: block; }

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 40px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 1;
}

.mobile-menu-link {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
}
.mobile-menu-link:hover { opacity: 0.75; }
.mobile-menu-btns {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    flex-wrap: wrap;
}
.mobile-menu-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
}
.mobile-menu-btn-outline {
    border: none;
    background: #daebd5;
    color: #314a3c;
}
.mobile-menu-btn-solid {
    background-color: #62a165;
    color: #ffffff;
}

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
    background: #eff7fe;
    overflow: hidden;
    padding: 60px 0 0;
}

.hero-inner {
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.hero-content {
    flex: 0 0 42%;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.hero-heading {
    font-size: 74px;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 28px;
}

.hero-subtext {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.btn-hero-dark {
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    min-width: 220px;
    text-align: center;
}

.btn-hero-green {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    min-width: 220px;
    text-align: center;
}

.btn-hero-dark:hover,
.btn-hero-green:hover { opacity: 0.88; }

.hero-image {
    flex: 1;
    position: relative;
    min-height: 620px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Arche claire — grande, depasse au-dessus et sur les cotes */
.hero-arch-light {
    position: absolute;
    width: 420px;
    height: 560px;
    background: var(--color-light);
    border-radius: 210px 210px 0 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-45%);
    z-index: 0;
}

/* Arche sombre — plus petite, visible sur les cotes bas */
.hero-arch-dark {
    position: absolute;
    width: 320px;
    height: 420px;
    background: var(--color-dark);
    border-radius: 160px 160px 0 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-55%);
    z-index: 0;
}

/* Photo devant tout */
.hero-image img {
    position: relative;
    z-index: 1;
    height: 580px;
    width: auto;
    object-fit: cover;
    object-position: top;
}

/* ============================================================
   WHAT WE OFFER
   ============================================================ */
.section-what-we-offer {
    padding: var(--section-pad);
    background: var(--color-white);
}

.what-inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.what-content { flex: 1; }

.what-heading {
    font-size: 28px;
    margin-bottom: 20px;
}

.what-content p { margin-bottom: 16px; }

.what-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.what-list li { margin-bottom: 6px; }

.what-content .btn { margin-top: 24px; }

.what-image {
    flex: 0 0 486px;
}

.what-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 651px;
    object-fit: cover;
}

/* ============================================================
   OUR SERVICES
   ============================================================ */
.section-services {
    padding: var(--section-pad);
    background: var(--color-cream);
}

.section-services .section-title { text-align: center; }
.section-services .section-subtitle { text-align: center; }
.section-services .section-intro { text-align: center; margin: 0 auto 48px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
}

.service-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
}

.service-icon svg { width: 65px; height: 65px; }

.service-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ============================================================
   AREAS WE COMMONLY SUPPORT
   ============================================================ */
.section-areas {
    padding: var(--section-pad);
    background: var(--color-cream);
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.area-tag {
    background: var(--color-white);
    border: 1.5px solid var(--color-light);
    color: var(--color-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius);
}

.areas-note {
    margin-bottom: 32px;
    font-size: 16px;
}

/* ============================================================
   WSIB
   ============================================================ */
.section-wsib {
    padding: var(--section-pad);
    background: var(--color-white);
}

.wsib-inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.wsib-content { flex: 1; }
.wsib-content .section-title { margin-bottom: 20px; }
.wsib-content p { margin-bottom: 16px; }

.wsib-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 24px;
}

.wsib-content li { margin-bottom: 6px; }

.wsib-image { flex: 0 0 450px; }
.wsib-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 535px;
    object-fit: cover;
}

/* ============================================================
   OUR APPROACH
   ============================================================ */
.section-approach {
    padding: var(--section-pad);
    background: #f0f0ee;
}

.approach-inner {
    display: flex;
    gap: 80px;
    align-items: center;
}

.approach-content { flex: 1; }
.approach-content .section-title { margin-bottom: 20px; }
.approach-content p { margin-bottom: 16px; }

.approach-image { flex: 0 0 500px; }
.approach-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 543px;
    object-fit: cover;
}

/* ============================================================
   THERAPISTS
   ============================================================ */
.section-therapists {
    padding: var(--section-pad);
    background: var(--color-cream);
}

.therapists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.therapist-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.therapist-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 32px auto 0;
    background: var(--color-light);
}

.therapist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.therapist-info {
    padding: 20px 32px 32px;
}

.therapist-info h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.therapist-title {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px !important;
}

.therapist-info p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.therapist-rate {
    font-size: 13px;
    font-weight: 700;
    background: var(--color-cream);
    padding: 8px 16px;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 16px;
}

/* ============================================================
   INTERNSHIP
   ============================================================ */
.section-internship {
    padding: var(--section-pad);
    background: var(--color-white);
}

.internship-inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.internship-content { flex: 1; }
.internship-content .section-title { margin-bottom: 20px; }
.internship-content p { margin-bottom: 16px; }
.internship-content .btn { margin-top: 8px; }

.internship-image { flex: 0 0 450px; }
.internship-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 481px;
    object-fit: cover;
}

/* ============================================================
   GETTING STARTED
   ============================================================ */
.section-getting-started {
    padding: var(--section-pad);
    background: var(--color-light);
    text-align: center;
}

.section-getting-started .section-title { text-align: center; }
.section-getting-started .section-intro { margin: 0 auto 40px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.step-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: left;
}

.step-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.step-number {
    font-weight: 800;
    font-size: 22px;
    color: var(--color-dark);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ============================================================
   FEES & INSURANCE
   ============================================================ */
.section-fees {
    padding: var(--section-pad);
    background: var(--color-dark);
    color: var(--color-white);
}

.section-fees .section-title { color: var(--color-white); }
.section-fees .section-intro { color: rgba(255,255,255,0.8); max-width: 800px; }

.fees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.fee-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
}

.fee-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-light);
    margin-bottom: 12px;
}

.fee-label {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

.fees-note {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    max-width: 800px;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq.wp-block-group,
#therapists.wp-block-group + .wp-block-group,
#contact.wp-block-group {
    border-top: 1px solid #D7E3EF;
}

.section-faq {
    padding: var(--section-pad);
    background: var(--color-white);
}

.faq-list {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-dark);
    cursor: pointer;
    text-align: left;
    gap: 20px;
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform 0.25s;
}

.faq-icon::before { width: 20px; height: 2px; top: 9px; left: 0; }
.faq-icon::after  { width: 2px; height: 20px; top: 0; left: 9px; }

.faq-item.faq-open .faq-icon::after { transform: rotate(90deg); }

.faq-answer {
    display: none;
    padding: 0 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 900px;
}

.faq-item.faq-open .faq-answer { display: block; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
    padding: var(--section-pad);
    background: #fff7ef;
}

.contact-inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-form-wrap { flex: 1; }
.contact-form-wrap .section-title { margin-bottom: 12px; }
.contact-form-wrap > p { margin-bottom: 32px; }

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

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

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

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-base);
    font-size: 15px;
    padding: 10px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: var(--radius);
    outline: none;
    background: var(--color-white);
    transition: border-color 0.2s;
}

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

.form-checkbox { flex-direction: row !important; align-items: center; gap: 10px !important; }
.form-checkbox input { width: 18px; height: 18px; }
.form-checkbox label { font-weight: 600 !important; }

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 700;
}

.form-success { background: var(--color-light); color: var(--color-dark); }

.contact-info { flex: 0 0 400px; }

.contact-hours h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-hours ul { display: flex; flex-direction: column; gap: 8px; }

.contact-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Footer contact icons via attribute selectors */
.site-footer a[href^="tel:"],
.site-footer a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-footer {
    background: var(--color-dark);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo img { height: 53px; width: auto; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 15px;
    transition: color 0.2s;
}

.footer-contact-item:hover { color: var(--color-light); }
.footer-contact-item svg { stroke: currentColor; flex-shrink: 0; }

/* ============================================================
   CONTACT FORM 7
   ============================================================ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    font-family: var(--font-base);
    font-size: 15px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: var(--radius);
    background: var(--color-white);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: var(--color-primary); }

.wpcf7 input[type="submit"] {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    padding: 12px 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wpcf7 input[type="submit"]:hover { opacity: 0.88; }

.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: none !important;
    background: var(--color-light);
    color: var(--color-dark);
    font-weight: 700;
}

.cf7-notice {
    background: var(--color-cream);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 14px;
}

/* ============================================================
   PAGE TEMPLATE (Gutenberg)
   ============================================================ */
.page-content {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.page-title {
    font-size: 42px;
    margin-bottom: 32px;
    color: var(--color-dark);
}

.page-body h2 { font-size: 28px; margin: 32px 0 16px; }
.page-body h3 { font-size: 22px; margin: 24px 0 12px; }
.page-body p  { margin-bottom: 16px; line-height: 1.7; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 16px; }
.page-body li { margin-bottom: 6px; }

/* --- Gutenberg button block styles (frontend + editor) --- */
.wp-block-button .wp-block-button__link,
.editor-styles-wrapper .wp-block-button .wp-block-button__link {
    background: var(--color-primary);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
}
.wp-block-button.is-style-primary .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-primary .wp-block-button__link {
    background: #62a165 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700;
}
.wp-block-button.ap-btn-dark .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.ap-btn-dark .wp-block-button__link {
    background: #314a3c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 14px !important;
    padding: 10px 20px !important;
}
.wp-block-button.is-style-light .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-light .wp-block-button__link {
    background: #daebd5 !important;
    color: #314a3c !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700;
}
.wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #314a3c !important;
    border: 2px solid #314a3c !important;
    border-radius: 10px !important;
    font-weight: 700;
}

/* --- Gutenberg block support --- */
.page-body .wp-block-image img { border-radius: var(--radius); }
.page-body .wp-block-button__link {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: 10px 20px;
    font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1074px) {
    :root { --container-pad: 0 40px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .therapists-grid { grid-template-columns: repeat(2, 1fr); }
    .fees-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { flex: 1; }
    .hero-image-bg { width: 400px; }
}

@media (max-width: 1000px) {
    .nav-inner { padding-left: 24px !important; padding-right: 24px !important; }

    /* Montrer le hamburger, cacher nav links */
    .nav-toggle { display: flex !important; order: 3; }
    .site-header .nav-links-block { display: none !important; }
    /* Logo à gauche, hamburger à droite */
    .site-header .nav-inner { justify-content: space-between !important; }
    .site-header .wp-block-site-logo { order: 1; }
    .site-header .wp-block-buttons { order: 2; }
}

@media (max-width: 600px) {
    /* Sur petit mobile, cacher les boutons header — ils sont dans le menu mobile */
    .site-header .wp-block-buttons { display: none !important; }
    .site-header .nav-inner { justify-content: space-between !important; }
    .nav-toggle { order: 2; }
}

@media (max-width: 1100px) {
    .hero-inner { flex-direction: column; gap: 40px; }
    .hero-image-bg { display: none; }
    .hero-heading { font-size: 48px; line-height: 1.15; }
    .hero-content { flex: unset; }

    .what-inner,
    .wsib-inner,
    .approach-inner,
    .internship-inner,
    .contact-inner { flex-direction: column; gap: 40px; }

    .what-image,
    .wsib-image,
    .approach-image,
    .internship-image { flex: unset; width: 100%; }

    .what-image img,
    .wsib-image img,
    .approach-image img,
    .internship-image img { height: 300px; }

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

    .section-title { font-size: 32px; }
    .hero-heading { font-size: 42px; }

    .form-row { flex-direction: column; }
    .contact-info { flex: unset; width: 100%; }
}

/* ============================================================
   BLOCK PATTERNS
   ============================================================ */

/* Hero */
.wp-block-group.ap-hero { background: #fff7ef; overflow: hidden; }

/* Colonnes hero : 40% texte / 60% image */
.ap-hero .wp-block-columns > .wp-block-column:first-child { flex-basis: 40% !important; }
.ap-hero .wp-block-columns > .wp-block-column.ap-hero-image-col { flex-basis: 60% !important; }

.ap-hero-image-col {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
}

.ap-hero-image-col .wp-block-image { margin: 0; width: 100%; }

.ap-hero-image-col .wp-block-image img {
    display: block;
    width: 100% !important;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
}


/* Hero buttons */
.ap-hero .wp-block-buttons {
    gap: 25px !important;
}
.ap-hero .wp-block-button.ap-btn-dark {
    width: 100%;
}
.ap-hero .wp-block-button.ap-btn-dark .wp-block-button__link {
    background: #314a3c !important;
    color: #fff !important;
    width: 100%;
    text-align: center;
    font-size: 28px !important;
    font-weight: 600 !important;
}
.ap-hero .wp-block-button.ap-btn-green .wp-block-button__link {
    font-size: 28px !important;
    font-weight: 600 !important;
}
.wp-block-button.ap-btn-green .wp-block-button__link {
    background: #62a165 !important;
    color: #fff !important;
    min-width: 200px;
}

/* Commun : cartes à contenu aligné à gauche */
.wp-block-column.ap-service-card,
.wp-block-column.ap-therapist-card {
    background: #fff;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
}
.wp-block-column.ap-therapist-card .ap-therapist-rate {
    margin-top: auto !important;
}
.wp-block-column.ap-therapist-card .ap-booking-note {
    font-size: 13px;
    color: #314a3c;
    font-style: italic;
    margin-bottom: 0 !important;
}
.wp-block-column.ap-service-card figure.wp-block-image,
.wp-block-column.ap-therapist-card figure.wp-block-image {
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Spécifique service card */
.wp-block-column.ap-service-card {
    border-radius: 20px;
    padding: 32px 24px;
}

/* Spécifique therapist card */
.wp-block-column.ap-therapist-card {
    border-radius: 10px;
    padding: 40px 40px 40px 50px;
}
/* Annule le margin-block-start automatique de Gutenberg entre chaque bloc */
.ap-therapist-card > * + * {
    margin-block-start: 0 !important;
}
.ap-therapist-card .ap-therapist-photo img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}
.ap-therapist-rate {
    background: #62a165;
    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px !important;
}

/* Section divider */
.wp-block-separator.ap-section-divider {
    border: none;
    height: 1px;
    background-color: #d1ddcf !important;
    color: #d1ddcf !important;
    opacity: 1;
    margin-top: 0;
    margin-bottom: 0;
}

/* Split layout image columns — image s'adapte au texte, pas l'inverse */
.wp-block-column.ap-image-col {
    align-self: stretch !important;
    position: relative;
}
.wp-block-column.ap-image-col figure.wp-block-image {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}
.wp-block-column.ap-image-col figure.wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 16px !important;
}
.wp-block-column.ap-image-col--top figure.wp-block-image img {
    object-position: top !important;
}

/* Step cards */
.wp-block-column.ap-step-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
}
.ap-step-icon {
    width: 65px;
    height: 65px;
    background: #daebd5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.ap-step-icon img {
    width: 33px;
    height: 33px;
    object-fit: contain;
}

/* Fee cards */
.wp-block-column.ap-fee-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px 20px;
    align-self: stretch !important;
}
#fees .wp-block-columns {
    align-items: stretch !important;
}
#fees .wp-block-column {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
}
#fees .wp-block-column > .wp-block-group {
    flex: 1 !important;
}

/* Hours title */
#contact .ap-hours-table + h3,
#contact h3 { font-size: 25px; font-weight: 800; color: #314a3c; margin-bottom: 20px; }

/* Hours table */
.ap-hours-table table { border-collapse: collapse; width: 100%; }
.ap-hours-table td {
    padding: 6px 0;
    border: none;
    font-size: 23px;
    color: #314a3c;
}
.ap-hours-table td:first-child { font-weight: 700; padding-right: 24px; }
.ap-hours-table td:last-child { text-align: left; }

/* FAQ details block */
.wp-block-details summary {
    font-weight: 700;
    color: #314a3c;
    padding: 18px 0;
    font-size: 20px;
    cursor: pointer;
    list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
    content: '+';
    float: right;
    font-size: 20px;
    font-weight: 400;
}
.wp-block-details[open] summary::after { content: '−'; }

/* Images en colonne split : 50% sur mobile */
@media (max-width: 781px) {
    .wp-block-columns .wp-block-column .wp-block-image {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
    /* Hero : réduire le padding de la colonne texte sur mobile */
    .ap-hero .wp-block-columns > .wp-block-column:first-child {
        padding-top: 32px !important;
        padding-bottom: 16px !important;
    }
    /* Image hero : 75% de largeur sur mobile */
    .ap-hero-image-col .wp-block-image {
        max-width: 75% !important;
    }
    /* Icônes step cards : garder alignées à gauche avec le texte */
    .ap-step-card .wp-block-image {
        max-width: 65px !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    /* Annule le position absolute sur mobile — image s'affiche normalement sous le texte */
    .wp-block-column.ap-image-col {
        align-self: auto !important;
        position: static !important;
        width: 100% !important;
        flex-basis: 100% !important;
    }
    .wp-block-column.ap-image-col figure.wp-block-image {
        position: static !important;
        inset: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        max-width: 80% !important;
    }
    .wp-block-column.ap-image-col figure.wp-block-image img {
        width: 100% !important;
        height: 240px !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }
}

/* Responsive padding for section groups on small screens */
@media (max-width: 768px) {
    .wp-block-group[style*="padding-left:78px"],
    .wp-block-group[style*="padding-left: 78px"] {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    /* Our Approach: le cover block a aussi 78px en inline style */
    .ap-approach .wp-block-cover {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    /* Forcer les colonnes à prendre toute la largeur sur mobile */
    .ap-approach .wp-block-column {
        flex-basis: 100% !important;
    }
    /* Supprimer le padding global du inner-container (has-global-padding) */
    .ap-approach .wp-block-cover__inner-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Réduire le padding interne de la carte */
    .ap-approach .wp-block-cover__inner-container .wp-block-group {
        padding: 24px !important;
    }
    .ap-approach .wp-block-heading { font-size: 28px !important; }
    .ap-approach p { font-size: 16px !important; }

    /* Footer : empiler en colonne et centrer */
    .site-footer.is-layout-flex,
    .site-footer.wp-block-group {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
        gap: 24px;
    }
    /* Centrer les liens contact dans le groupe interne */
    .site-footer .wp-block-group.is-layout-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
    }
}
@media (min-width: 769px) and (max-width: 1074px) {
    .wp-block-group[style*="padding-left:78px"],
    .wp-block-group[style*="padding-left: 78px"] {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    .ap-approach .wp-block-cover {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* ============================================================
   CONTACT FORM 7
   ============================================================ */
.wpcf7 .cf7-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.wpcf7 .cf7-col {
    flex: 1;
}
.wpcf7 label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #314a3c;
    margin-bottom: 4px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    background: #c5d4c0;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #314a3c;
    box-sizing: border-box;
}
.wpcf7 textarea {
    height: 140px;
    resize: vertical;
    margin-top: 4px;
}
.wpcf7 .cf7-checkbox {
    margin-bottom: 16px;
}
.wpcf7 .cf7-checkbox .wpcf7-list-item {
    margin: 0;
}
.wpcf7 .cf7-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}
.wpcf7 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #314a3c;
    flex-shrink: 0;
}
.wpcf7 input[type="submit"] {
    display: block;
    margin: 24px auto 0;
    background: #314a3c;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.wpcf7 input[type="submit"]:hover { opacity: 0.85; }

@media (max-width: 600px) {
    .wpcf7 .cf7-row { flex-direction: column; gap: 0; }
}

.cf7-required {
    color: #e05252;
    margin-left: 2px;
}

/* ============================================================
   NAV — Séparateur Resources
   ============================================================ */
.nav-links-block .ap-nav-resources {
    position: relative;
    padding-left: 24px !important;
    margin-left: 8px;
}
.nav-links-block .ap-nav-resources::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background: rgba(218, 235, 213, 0.35);
    pointer-events: none;
}

/* Mobile : léger séparateur au-dessus de Resources */
.ap-mobile-resources {
    border-top: 1px solid rgba(218, 235, 213, 0.2) !important;
    margin-top: 8px !important;
    padding-top: 20px !important;
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
/* Annule le padding que WordPress injecte sur les enfants d'un layout constrained */
.ap-resources-crisis > *,
.ap-resources-ottawa > *,
.ap-resources-toronto > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ap-resources-crisis h1 {
    color: #daebd5;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}
.ap-resources-crisis > p,
.ap-resources-crisis .section-crisis-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin-bottom: 32px;
    line-height: 1.65;
}

.ap-resources-jump {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ap-resources-jump a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #daebd5;
    border: 1px solid rgba(218, 235, 213, 0.35);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}
.ap-resources-jump a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ap-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.ap-resource-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ap-resource-card h3 {
    font-size: 17px;
    font-weight: 800 !important;
    color: #314a3c;
    line-height: 1.3;
    margin: 0;
}
.ap-resource-card h3 a {
    color: #314a3c;
    font-weight: 800 !important;
    text-decoration: none;
}
.ap-resource-card h3 a:hover {
    color: #62a165;
    text-decoration: underline;
}

.ap-resource-card .ap-resource-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #666666;
    margin: 0;
    flex: 1;
}

.ap-resource-contact {
    font-size: 14px;
    color: #314a3c;
    font-weight: 600;
    line-height: 1.75;
    border-top: 1px solid #eaf0ea;
    padding-top: 10px;
    margin-top: 4px;
}
.ap-resource-contact a {
    color: #314a3c;
    text-decoration: none;
}
.ap-resource-contact a:hover {
    color: #62a165;
    text-decoration: underline;
}

/* Cartes dans section sage : fond blanc légèrement teinté */
.ap-resources-toronto .ap-resource-card {
    background: #f5f9f5;
}

@media (max-width: 900px) {
    .ap-resources-grid {
        grid-template-columns: 1fr;
    }
    .ap-resources-crisis h1 {
        font-size: 32px;
    }
}
