/*
Theme Name: Meguri
Theme URI: https://meguri-care.jp/
Author: Meguri
Author URI: https://meguri-care.jp/
Description: リラクゼーションサロン「めぐり」のカスタムWordPressテーマ。緑と白を基調としたナチュラルデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meguri
*/

/* ======================================
   めぐり — リラクゼーションサロン
   Green & White theme
   ====================================== */

/* --- Custom Properties --- */
:root {
    /* Primary Greens */
    --green-deep: #2D5A45;
    --green-mid: #3D7A5F;
    --green-soft: #5A9E7F;
    --green-light: #8CC5A8;
    --green-pale: #C5E4D4;
    --green-mist: #E8F5EE;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8FAF9;
    --gray-100: #F1F4F2;
    --gray-200: #E2E8E5;
    --gray-400: #9AACA2;
    --gray-600: #5F7A6E;
    --gray-800: #2C3E36;
    --dark: #1A2E25;

    /* Accent */
    --accent: #C6A75E;

    /* UI */
    --shadow-sm: 0 4px 20px rgba(45, 90, 69, 0.05);
    --shadow-md: 0 8px 32px rgba(45, 90, 69, 0.08);

    /* Typography */
    --ff-serif: 'Noto Serif JP', serif;
    --ff-sans: 'Noto Sans JP', sans-serif;

    /* Spacing & Animation */
    --section-padding: clamp(80px, 10vw, 120px);
    --container-width: 1100px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--ff-sans);
    font-weight: 300;
    color: var(--gray-800);
    background: var(--off-white);
    line-height: 2;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

/* --- Utility --- */
.text-serif {
    font-family: var(--ff-serif);
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
    padding: 14px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    padding: 10px 0;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 40px);
}

.logo {
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.logo-main {
    font-family: var(--ff-serif);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--green-deep);
    transition: color 0.4s;
}

.logo-sub {
    font-family: var(--ff-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-soft);
    transition: color 0.4s;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

/* WordPress menu integration */
.nav .menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav .menu li a,
.nav-link {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

.nav .menu li a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--green-light);
    transition: width 0.3s var(--ease);
}

.nav .menu li a:hover,
.nav-link:hover {
    color: var(--green-deep);
}

.nav .menu li a:hover::after,
.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--green-soft);
    border: 1px solid var(--green-soft);
    border-radius: 50px;
    transition: all 0.3s;
}

.header-cta:hover {
    background: var(--green-soft);
    color: white;
}

/* Hidden checkbox for CSS-only mobile menu */
.menu-toggle-checkbox {
    display: none;
}

/* Mobile Icon (label) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--green-deep);
    transition: all 0.3s;
}

/* Hamburger → X animation when checkbox is checked */
.menu-toggle-checkbox:checked+.menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-checkbox:checked+.menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-checkbox:checked+.menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-parallax-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
}

.hero-bg-img {
    width: 100%;
    height: 120%;
    background:
        linear-gradient(160deg,
            hsl(152, 42%, 10%) 0%,
            hsl(148, 36%, 15%) 30%,
            hsl(155, 32%, 18%) 60%,
            hsl(145, 40%, 11%) 100%);
    background-size: cover;
    background-position: center;
    animation: zoomOut 20s ease-out forwards;
}

.hero-bg-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(140, 197, 168, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
}

.hero-bg-img::after {
    content: '';
    position: absolute;
    top: -20%;
    right: 10%;
    width: 40%;
    height: 120%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.02) 40%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 60%,
            transparent 100%);
    transform: rotate(-15deg);
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 28, 18, 0.6),
            rgba(10, 28, 18, 0.4) 50%,
            rgba(10, 28, 18, 0.55));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-subtitle {
    display: block;
    font-family: var(--ff-serif);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--green-pale);
    opacity: 0;
    animation: fadeUp 1s var(--ease) 0.5s forwards;
}

.hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.2;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 0.7s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 2.2;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    animation: fadeUp 1s var(--ease) 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--green-light);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Wave Dividers --- */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: -1px;
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(60px, 8vw, 90px);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--green-soft);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.section-title {
    font-family: var(--ff-serif);
    font-size: clamp(2rem, 5vw, 2.6rem);
    color: var(--green-deep);
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* --- Concept --- */
.concept {
    background-color: var(--white);
}

.concept-lead {
    font-family: var(--ff-serif);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-align: center;
    line-height: 2.4;
    letter-spacing: 0.1em;
    margin-bottom: 80px;
    color: var(--gray-800);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.concept-item {
    text-align: center;
}

.concept-icon {
    width: 80px;
    height: 80px;
    background: var(--green-mist);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-mid);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), color 0.3s;
}

.concept-item:hover .concept-icon {
    transform: translateY(-5px);
    color: var(--green-deep);
}

.concept-item h3 {
    font-family: var(--ff-serif);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--green-deep);
}

.concept-item p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 2;
}

/* --- Target (For Whom) --- */
.target {
    background-color: var(--green-mist);
    position: relative;
}

.target::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(45, 90, 69, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.target-list {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: clamp(40px, 6vw, 60px);
    box-shadow: var(--shadow-sm);
    border: 1px solid white;
}

.target-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--green-pale);
}

.target-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.check-icon {
    color: var(--green-soft);
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Menu --- */
.menu-section {
    background: var(--white);
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.menu-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-pale);
}

.menu-card.featured {
    background: linear-gradient(145deg, #fff, var(--green-mist));
    border: 1.5px solid var(--green-soft);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--green-mid);
    color: white;
    font-size: 0.7rem;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 0.1em;
}

.menu-content {
    text-align: center;
}

.menu-time {
    display: block;
    font-family: var(--ff-serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.menu-unit {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-left: 4px;
}

.menu-price {
    display: block;
    font-size: 1.4rem;
    font-family: var(--ff-serif);
    color: var(--green-mid);
    margin-bottom: 24px;
    font-weight: 500;
}

.menu-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 2;
}

/* --- Trial Card --- */
.trial-card {
    max-width: 680px;
    margin: 0 auto 50px;
    position: relative;
    background: linear-gradient(135deg, var(--green-deep), var(--green-light));
    border-radius: 16px;
    padding: 3px;
    box-shadow: 0 8px 30px rgba(45, 90, 69, 0.2);
}

.trial-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e8a44a, #d4882e);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 24px;
    border-radius: 30px;
    letter-spacing: 0.15em;
    box-shadow: 0 4px 12px rgba(212, 136, 46, 0.3);
    white-space: nowrap;
    z-index: 1;
}

.trial-inner {
    background: white;
    border-radius: 14px;
    padding: 40px 30px 30px;
    text-align: center;
}

.trial-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.trial-title {
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green-deep);
}

.trial-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.trial-time {
    font-family: var(--ff-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--green-deep);
    line-height: 1;
}

.trial-price {
    font-family: var(--ff-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: #d4882e;
    line-height: 1;
}

.trial-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.8;
}

@media (max-width: 600px) {
    .trial-header {
        flex-direction: column;
        gap: 12px;
    }

    .trial-time {
        font-size: 1.6rem;
    }

    .trial-price {
        font-size: 1.8rem;
    }
}

/* --- Therapist --- */
.therapist {
    background-color: var(--green-mist);
}

.therapist-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.therapist-img {
    position: relative;
}

.therapist-img img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.therapist-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--green-light);
    z-index: -1;
    border-radius: 12px;
}

.therapist-info h3 {
    font-family: var(--ff-serif);
    font-size: 1.6rem;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
    color: var(--green-deep);
}

.therapist-title {
    display: block;
    font-size: 0.85rem;
    color: var(--green-soft);
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.therapist-text {
    margin-bottom: 24px;
    color: var(--gray-600);
}

.therapist-profile-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--green-mid);
    border-bottom: 1px solid var(--green-mid);
    transition: color 0.3s;
}

.therapist-profile-link:hover {
    color: var(--green-deep);
    border-bottom-color: var(--green-deep);
}

/* --- Space --- */
.space {
    background-color: var(--white);
}

.space-content {
    position: relative;
}

.space-text {
    width: 45%;
    padding: 60px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    position: absolute;
    bottom: 40px;
    left: 40px;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.space-text p {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    line-height: 2.6;
    color: var(--gray-800);
}

.space-bg {
    height: 500px;
    background: var(--green-pale);
    border-radius: 12px;
    overflow: hidden;
}

.space-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Popular Articles --- */
.popular-articles {
    background-color: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border: 1px solid var(--gray-200);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.article-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-mist);
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.article-card:hover .article-card-thumb img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 24px;
}

.article-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--green-mid);
    background: var(--green-mist);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.article-card-title {
    font-family: var(--ff-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--green-deep);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.articles-more {
    text-align: center;
    margin-top: 48px;
}

.articles-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--green-mid);
    border: 1px solid var(--green-pale);
    padding: 14px 40px;
    border-radius: 50px;
    transition: all 0.3s;
}

.articles-more a:hover {
    background: var(--green-mist);
    border-color: var(--green-soft);
}

/* --- FAQ --- */
.faq {
    background-color: var(--off-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--green-pale);
}

.faq-item details {
    width: 100%;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 24px 30px;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--green-deep);
    list-style: none;
}

/* Hide default details marker */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: '';
}

.faq-toggle {
    width: 20px;
    height: 20px;
    min-width: 20px;
    position: relative;
    color: var(--green-soft);
    transition: transform 0.3s;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-toggle::before {
    width: 12px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 12px;
    transition: height 0.3s;
}

details[open] .faq-toggle {
    transform: rotate(90deg);
}

details[open] .faq-toggle::after {
    height: 0;
}

.faq-answer {
    padding: 0 30px 24px;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* --- Access & Reservation --- */
.access {
    background: linear-gradient(to bottom, var(--green-mist), var(--gray-100));
}

.access-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.access-info,
.reservation-info {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.info-title {
    font-family: var(--ff-serif);
    font-size: 1.4rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green-deep);
}

.info-icon {
    color: var(--green-soft);
}

.info-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 24px;
}

.info-dl dt {
    font-weight: 500;
    color: var(--green-mid);
}

.info-dl dd {
    color: var(--gray-600);
}

.reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    background: #06C755;
    color: white;
    font-weight: 500;
    margin-top: 32px;
    letter-spacing: 0.05em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.25);
}

/* --- Footer --- */
.footer {
    background: var(--green-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--ff-serif);
    font-size: 2rem;
    color: white;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--green-light);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* ======================================
   Blog Pages
   ====================================== */

/* --- Blog List --- */
.blog-header {
    padding-top: 140px;
    padding-bottom: 60px;
    background: linear-gradient(160deg, var(--green-mist) 0%, var(--green-pale) 100%);
    text-align: center;
}

.blog-header-label {
    display: inline-block;
    font-family: var(--ff-serif);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-soft);
    margin-bottom: 12px;
}

.blog-header h1 {
    font-family: var(--ff-serif);
    font-size: 2.2rem;
    color: var(--green-deep);
    letter-spacing: 0.15em;
}

.blog-header-desc {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding: var(--section-padding) 0;
}

.blog-posts {
    display: grid;
    gap: 32px;
}

/* --- Blog Card --- */
.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-post-card-link {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.blog-post-card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--green-mist);
}

.blog-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.blog-post-card:hover .blog-post-card-thumb img {
    transform: scale(1.05);
}

.blog-post-card-nothumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}

.blog-post-card-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-post-card-cat {
    font-size: 0.7rem;
    color: var(--green-mid);
    background: var(--green-mist);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.blog-post-card-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.blog-post-card-title {
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--green-deep);
    margin-bottom: 10px;
}

.blog-post-card-excerpt {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.blog-post-card-more {
    font-size: 0.8rem;
    color: var(--green-soft);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.blog-post-card:hover .blog-post-card-more {
    color: var(--green-deep);
}

/* Featured (first) card */
.blog-post-card--featured .blog-post-card-link {
    grid-template-columns: 1fr;
}

.blog-post-card--featured .blog-post-card-thumb {
    aspect-ratio: 16/8;
}

.blog-post-card--featured .blog-post-card-body {
    padding: 32px 36px 36px;
}

.blog-post-card--featured .blog-post-card-title {
    font-size: 1.4rem;
}

.blog-post-card--featured .blog-post-card-excerpt {
    -webkit-line-clamp: 3;
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--gray-400);
}

.blog-empty svg {
    margin-bottom: 24px;
    opacity: 0.5;
}

.blog-empty p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--gray-600);
}

.blog-empty-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--green-soft);
    border: 1px solid var(--green-soft);
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s;
}

.blog-empty-link:hover {
    background: var(--green-soft);
    color: white;
}

/* --- Single Post --- */
.single-header {
    padding-top: 140px;
    padding-bottom: 40px;
    background: var(--green-mist);
}

.single-header .container {
    max-width: 800px;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.single-cat {
    font-size: 0.75rem;
    color: var(--green-mid);
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 14px;
    border-radius: 20px;
}

.single-date {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.single-title {
    font-family: var(--ff-serif);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--green-deep);
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-padding) 0;
}

.single-thumbnail {
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
}

.single-body {
    font-size: 1rem;
    line-height: 2.4;
    color: var(--gray-800);
}

.single-body h2 {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    color: var(--green-deep);
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-pale);
}

.single-body h3 {
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    color: var(--green-deep);
    margin: 36px 0 16px;
}

.single-body p {
    margin-bottom: 24px;
}

.single-body img {
    border-radius: 8px;
    margin: 32px 0;
}

.single-body blockquote {
    border-left: 3px solid var(--green-light);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--green-mist);
    border-radius: 0 8px 8px 0;
    color: var(--gray-600);
}

.single-body ul,
.single-body ol {
    margin: 16px 0 24px 24px;
    list-style: disc;
}

.single-body li {
    margin-bottom: 8px;
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.sidebar-widget-title {
    font-family: var(--ff-serif);
    font-size: 1.1rem;
    color: var(--green-deep);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-pale);
}

.sidebar-popular-list {
    list-style: none;
}

.sidebar-popular-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-popular-item:last-child {
    border-bottom: none;
}

.sidebar-popular-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--green-mist);
}

.sidebar-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-popular-title {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-cat-list {
    list-style: none;
}

.sidebar-cat-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-cat-list li:last-child {
    border-bottom: none;
}

.sidebar-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-600);
    transition: color 0.3s;
}

.sidebar-cat-list a:hover {
    color: var(--green-deep);
}

.sidebar-cat-count {
    font-size: 0.75rem;
    background: var(--green-mist);
    color: var(--green-mid);
    padding: 2px 10px;
    border-radius: 10px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pagination a {
    background: white;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    background: var(--green-mist);
    border-color: var(--green-soft);
    color: var(--green-deep);
}

.pagination .current {
    background: var(--green-mid);
    color: white;
    border: 1px solid var(--green-mid);
}

/* --- 404 --- */
.page-404 {
    padding-top: 160px;
    padding-bottom: var(--section-padding);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-404 h1 {
    font-family: var(--ff-serif);
    font-size: 6rem;
    color: var(--green-pale);
    line-height: 1;
    margin-bottom: 16px;
}

.page-404 p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.page-404 a {
    display: inline-flex;
    padding: 14px 36px;
    background: var(--green-mid);
    color: white;
    border-radius: 50px;
    transition: background 0.3s;
}

.page-404 a:hover {
    background: var(--green-deep);
}

/* --- Responsive --- */
@media (max-width: 900px) {

    .menu-list,
    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .therapist-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .therapist-img {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .space-text {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        bottom: -40px;
        padding: 40px;
    }

    .space {
        padding-bottom: 120px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-post-card {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: 0.4s;
        z-index: 999;
    }

    /* Background overlay inside nav - tap to close */
    .nav-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .nav .menu {
        position: relative;
        z-index: 1;
    }

    .menu-toggle-checkbox:checked~.nav {
        opacity: 1;
        pointer-events: auto;
    }

    .nav .menu {
        flex-direction: column;
        gap: 30px;
    }

    .nav .menu li a {
        font-size: 1.2rem;
        color: var(--green-deep) !important;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--green-deep) !important;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .access-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-card-link {
        grid-template-columns: 1fr;
    }

    .blog-post-card-body {
        padding: 24px;
    }

    .blog-post-card--featured .blog-post-card-thumb {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 600px) {

    .menu-list,
    .concept-grid {
        grid-template-columns: 1fr;
    }

    .hero-bg-img {
        animation: none;
        transform: scale(1);
    }
}

/* --- Animation Utilities --- */
/* JS adds .js-ready to body; without JS everything stays visible */
body.js-ready .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

body.js-ready .fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}