/* =============================================================
   components.css
   Self-contained UI components — header, sections, CTA,
   button, footer, and utility classes.
   ============================================================= */

/* --- Header / nav -------------------------------------------- */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2.5rem;
    background: rgba(231, 220, 215, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 168, 148, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 18px rgba(106, 140, 121, 0.08);
    /* Shimmer overlay */
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

/* Brand: logo + title stack */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    z-index: 1;
}

.header-brand img {
    height: 48px;
    width: auto;
}

.header-titles h1 {
    font-size: 1.25rem;
    margin: 0;
    color: #3d5a47;
    letter-spacing: 0.04em;
}

.header-titles .subtitle {
    font-size: 0.72rem;
    color: #8ba894;
    margin: 0;
    letter-spacing: 0.03em;
    font-style: italic;
}

/* Nav links */
.site-nav {
    display: flex;
    align-items: center;
    z-index: 1;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.92rem;
    color: #4a5e52;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: color 0.2s, background 0.2s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3d5a47;
    background: rgba(139, 168, 148, 0.12);
}

.nav-links a.active {
    color: #3d5a47;
    font-weight: 700;
}

/* CTA link pill */
.nav-links .nav-cta {
    background: #6a8c79;
    color: white !important;
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.nav-links .nav-cta:hover {
    background: #3d5a47 !important;
    transform: translateY(-1px);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 2;
    /* Override global button styles */
    box-shadow: none;
    font-size: inherit;
    font-weight: inherit;
}

.nav-toggle:hover {
    background: rgba(139, 168, 148, 0.12);
    transform: none;
    box-shadow: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #4a5e52;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.subtitle {
    font-size: 0.72rem;
    color: #8ba894;
    margin: 0;
    letter-spacing: 0.03em;
    font-style: italic;
}

/* --- Content sections --------------------------------------- */

section {
    background: rgb(244,237,225);
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* --- Intro block -------------------------------------------- */

.intro {
    text-align: center;
    font-size: 1.3rem;
    color: #5a6c57;
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Decorative kanji watermark */
.intro::after {
    content: '心';
    position: absolute;
    font-size: 15rem;
    color: rgba(139, 168, 148, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.intro p {
    position: relative;
    z-index: 1;
}

/* --- Inline text helpers ------------------------------------ */

.kokoro-meaning {
    display: inline-block;
    font-size: 1rem;
    color: #6a8c79;
    margin: 0 0.5rem;
    vertical-align: middle;
}

.emphasis {
    font-style: italic;
    color: #5a6c57;
    font-weight: 600;
}

/* --- Service lists (replaces inline style="padding-left:40px") */

.service-list {
    padding-left: 40px;
    margin-bottom: 1.2rem;
}

/* --- Italic notes (replaces inline style="margin-top:2rem; font-style:italic; color:#5a6c57") */

.note-italic {
    margin-top: 2rem;
    font-style: italic;
    color: #5a6c57;
}

/* --- Details / accordion ------------------------------------ */

details {
    margin-bottom: 0.5rem;
}

details summary {
    cursor: pointer;
    padding: 0.4rem 0;
}

details p {
    padding-left: 30px;
    font-size: 0.9rem;
}

/* --- Call to action block ----------------------------------- */

.cta {
    text-align: center;
    padding: 4rem 2rem;
    background: rgb(199, 69, 76);
    border-radius: 15px;
    color: white;
    margin-top: 3rem;
    box-shadow: 0 10px 40px rgba(106, 140, 121, 0.3);
}

.cta h2 {
    color: white;
    border: none;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Section divider ---------------------------------------- */
.flourish {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}
.flourish-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(139, 168, 148, 0.4), transparent);
}
.flourish-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8ba894;
}


/* --- Button ------------------------------------------------- */

button {
    background: white;
    color: #6a8c79;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f5f7fa;
}

/* --- Footer ------------------------------------------------- */

footer {
    text-align: center;
    padding: 2rem;
    color: #5a6c57;
    font-size: 0.95rem;
}
