:root {
    /* Light mode – warm, open, clean (shibui-inspired purity & minimalism) */
    --bg: #fafaf8;
    --surface: #ffffff;
    --text-primary: #1a1f2e;
    --text-secondary: #4f5b6d;
    --accent: #5c8a8c;
    --accent-hover: #477276;
    --subtle: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.05);
    --header-bg: rgba(255, 255, 255, 0.98);
}

/* ==================== Base & Typography ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ==================== Reusable Blocks ==================== */
section,
.card,
.hero {
    background: var(--surface);
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

a,
button {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover,
button:hover {
    color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', Georgia, serif;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* ==================== Header & Navigation ==================== */
header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 1rem;
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.9rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4); /* subtle legibility */
    color: var(--text-primary);
    margin-right: auto;           /* pushes everything else to the right */
    padding-right: 1.5rem;        /* extra space to the right of logo */
}

.logo {
    position: relative;                /* for layering */
    background-image: url('../images/cherry_blossom_subtle.png');
    background-size: cover;
    background-position: center;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav Links (desktop) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    margin: 0;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ==================== Hero & Content ==================== */
.hero {
    position: relative;
    text-align: center;
    padding: 10rem 1.5rem 8rem;
    color: white; /* text on image */
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/tomakomai_hero.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* very subtle – adjust 0.15–0.35 */
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25); /* soft darken */
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4); /* subtle legibility */
}

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

.lead {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

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

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

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

.btn.secondary:hover {
    background: var(--accent);
    color: white;
}

/* Video */
.video-section {
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Teaser Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    padding: 2rem;
    text-align: center;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* ==================== Footer ==================== */
footer {
    background: var(--surface);
    color: var(--text-secondary);
    padding: 4rem 1.5rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--subtle);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    text-align: center; /* mobile-first centered */
}

.footer-column h4 {
    font-family: 'Noto Serif JP', serif;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.verse-column blockquote {
    font-style: italic;
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    border-left: 3px solid var(--accent);
    font-size: 1.1rem;
    line-height: 1.6;
}

.verse-column cite {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--subtle);
    font-size: 0.95rem;
}

.footer-bottom .heart {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-style: italic;
}

.church-address {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===================== About ==================== */
.about-hero {
    padding: 8rem 1.5rem 6rem; /* slightly shorter than home hero */
}

.family-section {
    padding-top: 2rem;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.family-photo {
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
    box-shadow: 0 6px 20px var(--shadow);
    margin-bottom: 1.2rem;
}

.testimonies {
    background: var(--bg) /* or var(--bg) */;
    padding: 6rem 1.5rem;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 0.6rem;
    box-shadow: 0 4px 16px var(--shadow);
    line-height: 1.8;
}

.testimonial p {
    margin-bottom: 1.8rem;
}

.testimonial p:last-child {
    margin-bottom: 0;
}

.testimonial h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.calling {
    text-align: center;
}

.calling-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.calling-images img {
    width: 100%;
    max-width: 420px;
    border-radius: 0.6rem;
    box-shadow: 0 4px 16px var(--shadow);
}

.deputation {
    text-align: center;
    background: var(--surface);
}

.deputation .cta {
    font-size: 1.2rem;
    margin: 1.5rem 0 2rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== Beliefs =================== */
.beliefs-hero {
    padding: 8rem 1.5rem 6rem;
}

.beliefs {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.belief-card {
    background: var(--surface);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0.6rem;
    box-shadow: 0 4px 16px var(--shadow);
    line-height: 1.8;
}

.belief-card p {
    margin-bottom: 1.8rem;
}

.belief-card p:last-child {
    margin-bottom: 0;
}

.belief-card h2 {
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 2rem;
}

.belief-card blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent);
    font-style: italic;
    background: var(--surface);
    border-radius: 0.4rem;
}

.beliefs-closing {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

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

details.belief-card {
    background: var(--surface);
    margin-bottom: 1.5rem;
    border-radius: 0.6rem;
    box-shadow: 0 4px 16px var(--shadow);
    overflow: hidden;
}

summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: var(--surface);
    transition: background 0.3s ease;
    list-style: none;
}

summary:hover {
    background: rgba(var(--accent), 0.1);
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    background: var(--accent);
    color: #fafaf8;
}

details[open] summary h2 {
    color: #fafaf8;
}

summary::after {
    content: "▼";
    float: right;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}

/* ==================== Support =================== */
.support-hero {
    padding: 8rem 1.5rem 6rem;
}

.deputation-info {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.giving-options {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.partner-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 0.6rem;
    box-shadow: 0 4px 16px var(--shadow);
}

.partner-card.prayer {
    border-left: 6px solid var(--accent);
}

.partner-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.venmo-qr {
    text-align: center;
    margin: 1.5rem 0;
}

.qr-image {
    width: 220px;
    height: auto;
    border-radius: 0.6rem;
    box-shadow: 0 4px 12px var(--shadow);
    margin-bottom: 1rem;
    border: 2px solid var(--subtle);
}

.note {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.cta-section {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--surface);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ================ Music Ministry ================ */
.music-hero {
    padding: 8rem 1.5rem 6rem;
}

.discography {
    padding: 4rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.album-card {
    background: var(--surface);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.album-card:hover {
    transform: translateY(-6px);
}

.album-cover {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1; /* square covers look best */
    object-fit: cover;
}

.album-info {
    padding: 1.8rem 1.8rem 2.5rem;
}

.album-info h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.year {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.streaming {
    margin: 1.8rem 0;
}

.streaming h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.lyrics-section {
    margin-top: 2rem;
    background: var(--surface);
    border-radius: 0.6rem;
}

.lyrics-section summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--subtle);
    border-radius: 0.6rem 0.6rem 0 0;
}

.lyrics-content {
    padding: 1.5rem;
}

.lyrics-content h4 {
    margin: 1.5rem 0 0.8rem;
    color: var(--accent);
}

.lyrics-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* ==================== Contact =================== */
.contact-hero {
    padding: 8rem 1.5rem 6rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 0.6rem;
    box-shadow: 0 4px 16px var(--shadow);
    text-align: center;
}

.contact-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-form-note,
.social-updates {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.contact-form-note ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 1.5rem auto;
    max-width: 600px;
    text-align: left;
}

.social-links {
    margin-top: 1.5rem;
}

/* ================== Newsletters ================= */
.newsletters-hero {
    padding: 8rem 1.5rem 6rem;
}

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

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.newsletter-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 6px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.newsletter-card:hover {
    transform: translateY(-6px);
}

.newsletter-date {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 500;
}

.newsletter-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.teaser {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.archive-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== Mobile Menu ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-left: 1rem;            /* separation from theme toggle */
    }

    .logo {
        padding-right: 1rem;          /* less on mobile, but still some space */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 1.5rem;
        box-shadow: 0 8px 20px var(--shadow);
        gap: 1.2rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    #theme-toggle {
        margin-left: 0.8rem;
    }

    .footer-column {
        text-align: left;
    }

    .verse-column {
        text-align: center;
    }
}

/* ==================== General Sections ==================== */
section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}