/*
Theme Name: Zen and Dao
Theme URI: https://www.zenanddao.com/
Author: Zen and Dao
Description: Ancient roots, living wellness. A WordPress theme for Zen and Dao in Vejano — where a fifteenth-century Casaforte, Traditional Chinese Medicine, and the Italian countryside become one integrated experience. Designed around Ma (間), the space between things. Warm paper, sumi ink, golden hour.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zen-and-dao
*/

/* ═══════════════════════════════════════════
   PALETTE — derived from the actual place
   Paper: handmade Italian carta / Japanese washi
   Ink: sumi — warm, not cold
   Warm: golden hour on tufa stone
   Forest: Lazio hills
   ═══════════════════════════════════════════ */
:root {
    --paper: #f5f0e8;
    --ink: #1c1917;
    --warm: #c8a262;
    --warm-dim: rgba(200, 162, 98, .12);
    --earth: #8b7d6b;
    --faint: #b8ad9e;
    --forest: #5a6b52;
    --wa: #25D366;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.9;
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Paper grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: .015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
img { display: block; max-width: 100%; height: auto; }

/* ── Typography ── */
.serif { font-family: 'Cormorant', Georgia, serif; }
.gara { font-family: 'EB Garamond', Georgia, serif; }
.eyebrow { font-size: 9.5px; letter-spacing: .6em; text-transform: uppercase; font-weight: 400; color: var(--earth); }
em { font-family: 'EB Garamond', serif; font-style: italic; color: var(--forest); }

/* ── Layout ── */
.pad { padding-inline: clamp(2rem, 6vw, 8rem); }
.space { height: clamp(5rem, 10vw, 10rem); }
.space-sm { height: clamp(3rem, 6vw, 6rem); }

/* ── Hairline rules ── */
.rule { display: block; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--warm-dim), transparent); }
.rule-short { display: block; width: 60px; height: 1px; background: var(--warm); opacity: .3; margin: 0 auto; }

/* ── Buttons — square, zen, not pill ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .8rem 1.6rem;
    border-radius: 0;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all .45s cubic-bezier(.25, .46, .45, .94);
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 8px 32px rgba(28,25,23,.25); }
.btn-wa { background: var(--wa); color: #fff; border-radius: 4px; }
.btn-wa:hover { box-shadow: 0 8px 32px rgba(37,211,102,.25); }
.btn-warm { background: var(--warm); color: var(--ink); }
.btn-warm:hover { box-shadow: 0 8px 32px rgba(200,162,98,.3); }
.btn-ghost { background: transparent; border: 1px solid rgba(28,25,23,.12); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-w { background: transparent; border: 1px solid rgba(245,240,232,.15); color: var(--paper); }
.btn-ghost-w:hover { border-color: rgba(245,240,232,.4); }

/* ── Scroll reveal ── */
.rv { opacity: 0; transform: translateY(24px); transition: all 1.2s cubic-bezier(.25,.46,.45,.94); }
.rv.vis { opacity: 1; transform: none; }

/* ══════ NAV ══════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
    transition: background .6s;
}
.nav.scrolled { background: rgba(245,240,232,.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.nav-logo { height: 28px; }
.nav-mid { display: flex; gap: 2.5rem; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 300; color: var(--earth); }
.nav-mid a { transition: color .3s; }
.nav-mid a:hover { color: var(--ink); }
.nav-end .btn { padding: .55rem 1rem; font-size: 10px; }

/* ══════ HERO ══════ */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 5rem; }
.hero-image { position: relative; overflow: hidden; margin: 0 clamp(1rem, 3vw, 3rem); }
.hero-image img { width: 100%; height: clamp(50vh, 65vw, 75vh); object-fit: cover; object-position: center 30%; border-radius: 6px; }
.hero-image::after { content: ''; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(180deg, transparent 50%, rgba(28,25,23,.4)); }
.hero-image .tagline {
    position: absolute; bottom: clamp(1.5rem, 3vw, 3rem); left: clamp(1.5rem, 3vw, 3rem); z-index: 2;
    font-family: 'Cormorant', serif; font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: .9; font-weight: 300; font-style: italic; color: var(--paper); max-width: 14ch;
}
.hero-below {
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 6rem);
    display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap;
}
.hero-below p { font-family: 'EB Garamond', serif; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.8; color: var(--earth); max-width: 32rem; font-style: italic; }
.hero-ctas { display: flex; gap: .4rem; flex-wrap: wrap; flex-shrink: 0; }

/* ══════ INSCRIPTION ══════ */
.inscription { text-align: center; padding: 0 clamp(2rem, 12vw, 16rem); }
.inscription .serif { font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.2; font-weight: 300; font-style: italic; max-width: 22ch; margin: 0 auto; }
.inscription p { font-size: clamp(.95rem, 1.1vw, 1.02rem); color: var(--earth); max-width: 32rem; margin: 1.5rem auto 0; line-height: 2; }

/* ══════ ROOMS ══════ */
.rooms-section { padding: 0 clamp(2rem, 5vw, 6rem); }
.rooms-section .eyebrow { margin-bottom: clamp(2rem, 4vw, 4rem); }
.room { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-bottom: clamp(4rem, 8vw, 8rem); }
.room.flip { grid-template-columns: .8fr 1.2fr; }
.room.flip .r-img { order: 2; }
.room.flip .r-text { order: 1; text-align: right; }
.room.flip .r-text .tags, .room.flip .r-text .r-ctas { justify-content: flex-end; }
.r-img { position: relative; }
.r-img img { width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: 4px; }
.r-img .label { position: absolute; bottom: 1rem; left: 1rem; font-family: 'EB Garamond', serif; font-size: 11px; color: rgba(245,240,232,.7); letter-spacing: .1em; font-style: italic; }
.r-text { padding-top: clamp(1rem, 3vw, 3rem); }
.r-text .eyebrow { margin-bottom: .6rem; }
.r-text h3 { font-family: 'Cormorant', serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; font-style: italic; line-height: 1; margin-bottom: 1rem; }
.r-text p { font-size: .98rem; color: var(--earth); max-width: 24rem; line-height: 2; }
.tags { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1.2rem 0 1.5rem; }
.tag { font-size: 10px; padding: .35rem .6rem; letter-spacing: .05em; border: 1px solid rgba(28,25,23,.1); color: var(--earth); }
.r-ctas { display: flex; gap: .4rem; }

/* ══════ SCROLL IMAGE — region/fullbleed ══════ */
.scroll-img { position: relative; margin: 0 clamp(1rem, 3vw, 3rem); overflow: hidden; border-radius: 4px; }
.scroll-img img { width: 100%; height: clamp(45vh, 50vw, 70vh); object-fit: cover; }
.scroll-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(28,25,23,.55)); }
.scroll-img .overlay-text { position: absolute; bottom: clamp(2rem, 4vw, 4rem); left: clamp(2rem, 5vw, 5rem); z-index: 2; max-width: 30rem; }
.scroll-img .overlay-text h2 { font-family: 'Cormorant', serif; font-size: clamp(2rem, 4.5vw, 4.5rem); font-weight: 300; font-style: italic; color: var(--paper); line-height: .95; margin-bottom: 1rem; }
.scroll-img .overlay-text p { color: rgba(245,240,232,.5); font-family: 'EB Garamond', serif; font-size: 1rem; font-style: italic; }
.scroll-img .dist-card { position: absolute; bottom: clamp(2rem, 4vw, 4rem); right: clamp(2rem, 5vw, 5rem); z-index: 2; background: rgba(245,240,232,.9); backdrop-filter: blur(16px); border-radius: 6px; padding: 1.3rem 1.5rem; }
.dist-card .eyebrow { margin-bottom: .6rem; color: var(--forest); }
.dists { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .5rem; font-size: 11.5px; color: var(--earth); font-weight: 300; }

/* ══════ ACTIVITIES ══════ */
.h-scroll { padding: clamp(4rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6rem) clamp(2rem, 5vw, 6rem); }
.h-scroll h2 { font-family: 'Cormorant', serif; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 300; font-style: italic; margin-bottom: 1.5rem; color: var(--earth); }
.track { display: flex; gap: .6rem; overflow-x: auto; padding-right: 3rem; -ms-overflow-style: none; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 clamp(150px, 17vw, 220px); position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 2/3; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.25,.46,.45,.94); }
.card:hover img { transform: scale(1.03); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28,25,23,.5)); }
.card .name { position: absolute; bottom: .8rem; left: .8rem; z-index: 2; font-family: 'Cormorant', serif; font-size: 1rem; color: rgba(245,240,232,.75); font-style: italic; }

/* ══════ RHYTHM ══════ */
.rhythm { padding: 0 clamp(2rem, 5vw, 6rem); display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.rhythm h2 { font-family: 'Cormorant', serif; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 300; font-style: italic; position: sticky; top: 5rem; }
.step { display: flex; gap: 1rem; padding: 1.8rem 0; border-bottom: 1px solid rgba(200,162,98,.1); }
.step:last-child { border-bottom: none; }
.step-n { font-family: 'Cormorant', serif; font-size: 2.5rem; font-weight: 300; color: var(--warm); opacity: .3; line-height: .8; width: 1.8rem; flex-shrink: 0; }
.step strong { font-weight: 400; display: block; margin-bottom: .15rem; font-size: .9rem; }
.step p { color: var(--earth); font-size: .9rem; margin: 0; line-height: 1.95; }

/* ══════ WELLNESS ══════ */
.wellness-section { padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 6rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.wellness-section h2 { font-family: 'Cormorant', serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; font-style: italic; line-height: 1.05; margin-bottom: 1.2rem; }
.wellness-section p { font-size: .98rem; color: var(--earth); max-width: 28rem; line-height: 2; }
.well-pills { display: flex; flex-wrap: wrap; gap: .2rem; margin: 1.2rem 0 1.8rem; }
.well-img { position: relative; border-radius: 4px; overflow: hidden; }
.well-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.well-img .float { position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem; background: rgba(28,25,23,.45); backdrop-filter: blur(16px); border-radius: 4px; padding: 1rem; color: var(--paper); }
.float .gara { font-family: 'EB Garamond', serif; font-size: 1rem; font-style: italic; display: block; margin-bottom: .2rem; color: var(--warm); }
.float p { font-size: .8rem; color: rgba(245,240,232,.5); margin: 0 0 .4rem; line-height: 1.6; }

/* ══════ HOST ══════ */
.host-section { padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 6rem); display: grid; grid-template-columns: .45fr 1.55fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.host-portrait { position: sticky; top: 5rem; }
.host-portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 4px; }
.host-text .eyebrow { margin-bottom: .8rem; }
.host-text h2 { font-family: 'Cormorant', serif; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 300; font-style: italic; line-height: .96; margin-bottom: 1.8rem; }
.host-text p { color: var(--earth); font-size: .98rem; max-width: 38rem; line-height: 2; }
.host-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(200,162,98,.1); }
.host-cols h4 { font-family: 'Cormorant', serif; font-size: 1.3rem; font-weight: 400; font-style: italic; margin-bottom: .3rem; color: var(--warm); }
.host-cols p { font-size: .88rem; }

/* ══════ CTA BAND ══════ */
.cta-band { position: relative; overflow: hidden; border-radius: 4px; margin: 0 clamp(1rem, 3vw, 3rem); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.cta-band::after { content: ''; position: absolute; inset: 0; background: rgba(28,25,23,.55); }
.cta-inner { position: relative; z-index: 2; padding: clamp(3rem, 6vw, 6rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { color: var(--warm); opacity: .5; margin-bottom: 1.5rem; }
.cta-inner h2 { font-family: 'Cormorant', serif; font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 300; font-style: italic; color: var(--paper); line-height: .96; margin-bottom: 1.2rem; max-width: 18ch; }
.cta-inner p { color: rgba(245,240,232,.4); font-family: 'EB Garamond', serif; font-size: 1rem; font-style: italic; margin-bottom: 2rem; max-width: 28rem; }
.cta-row { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }

/* ══════ PAGE TEMPLATES ══════ */
.page-hero { padding: clamp(8rem, 14vw, 12rem) 0 clamp(3rem, 5vw, 5rem); border-bottom: 1px solid var(--warm-dim); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-family: 'Cormorant', serif; font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 300; font-style: italic; line-height: .95; max-width: 16ch; }
.page-content { padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 6vw, 6rem); }
.page-body { max-width: 640px; }
.page-body h2 { font-family: 'Cormorant', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; font-style: italic; margin: 2.5rem 0 1rem; }
.page-body h3 { font-family: 'Cormorant', serif; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 400; font-style: italic; margin: 2rem 0 .8rem; color: var(--warm); }
.page-body p { color: var(--earth); line-height: 2; font-size: .98rem; }
.page-body ul { margin: .5rem 0 1.5rem; padding-left: 1rem; }
.page-body li { color: var(--earth); margin-bottom: .4rem; font-size: .95rem; line-height: 1.8; }
.page-body a { color: var(--forest); border-bottom: 1px solid var(--warm-dim); }
.page-body a:hover { color: var(--ink); }
.page-sidebar { position: sticky; top: 5rem; padding: 1.5rem; background: var(--warm-dim); border-radius: 4px; }
.page-sidebar h3 { font-family: 'Cormorant', serif; font-size: 1.3rem; font-weight: 400; font-style: italic; margin-bottom: 1rem; }
.page-sidebar .info-row { margin-bottom: .8rem; }
.page-sidebar .info-label { font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: var(--earth); display: block; margin-bottom: .15rem; }
.page-sidebar .info-value { font-size: .9rem; color: var(--ink); }
.page-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }

/* Treatment cards */
.treatment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 2rem 0; }
.treatment-card { padding: 1.2rem; border: 1px solid rgba(28,25,23,.06); transition: border-color .3s; }
.treatment-card:hover { border-color: var(--warm-dim); }
.treatment-card .eyebrow { margin-bottom: .4rem; }
.treatment-card .serif { font-size: 1.3rem; font-weight: 400; font-style: italic; line-height: 1.15; margin-bottom: .5rem; display: block; }
.treatment-card p { font-size: .85rem; color: var(--earth); line-height: 1.7; margin: 0; }

/* ══════ FOOTER ══════ */
.site-footer { padding: 2.5rem clamp(2rem, 5vw, 6rem); display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 2rem; color: var(--faint); font-size: 11px; }
.site-footer .gara { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--earth); margin-bottom: .2rem; display: block; }
.site-footer p { font-size: .78rem; max-width: 22rem; line-height: 1.8; }
.footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 11px; letter-spacing: .06em; }
.footer-nav a { transition: color .3s; }
.footer-nav a:hover { color: var(--ink); }

/* ══════ RESPONSIVE ══════ */
@media (max-width: 1024px) {
    .room, .room.flip { grid-template-columns: 1fr; }
    .room.flip .r-img { order: 0; }
    .room.flip .r-text { order: 0; text-align: left; padding-top: 1.5rem; }
    .room.flip .r-text .tags, .room.flip .r-text .r-ctas { justify-content: flex-start; }
    .r-text { padding-top: 1.5rem; }
    .rhythm, .wellness-section, .host-section { grid-template-columns: 1fr; }
    .host-portrait { position: relative; top: auto; max-width: 300px; }
    .rhythm h2 { position: relative; top: auto; margin-bottom: 1rem; }
    .nav-mid { display: none; }
    .scroll-img .dist-card { position: relative; right: auto; bottom: auto; margin: 2rem clamp(2rem, 5vw, 5rem) 0; }
    .scroll-img .overlay-text { position: relative; bottom: auto; left: auto; padding: 2rem clamp(2rem, 5vw, 5rem); }
    .scroll-img::after { display: none; }
    .scroll-img { display: flex; flex-direction: column; }
    .scroll-img img { height: 50vh; }
    .page-grid { grid-template-columns: 1fr; }
    .page-sidebar { position: relative; top: auto; }
    .treatment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero-image .tagline { font-size: 2.6rem; }
    .dists { grid-template-columns: 1fr; }
    .host-cols { grid-template-columns: 1fr; }
    .card { flex: 0 0 150px; }
    .cta-row { flex-direction: column; }
    .site-footer { flex-direction: column; }
    .hero-below { flex-direction: column; }
    .treatment-grid { grid-template-columns: 1fr; }
}


/* ======================================================
   INTEGRATION / HISTORY / WELLNESS ENHANCEMENTS  
   ====================================================== */

:root {
    --sage: #8a9a7b;
    --earth: #6b5b4f;
    --gold-soft: rgba(200, 162, 98, .18);
    --mist: rgba(90, 107, 82, .06);
}

.philosophy {
    background: var(--mist);
    border-top: 1px solid var(--gold-soft);
    border-bottom: 1px solid var(--gold-soft);
    margin: 2rem 0;
}

.timeline { position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--warm-dim), transparent);
    z-index: 0;
}

.inscription { position: relative; }
.inscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 2.5rem;
    background: linear-gradient(to bottom, transparent, var(--warm));
}

.wellness-section {
    background: linear-gradient(180deg, var(--paper) 0%, rgba(200,162,98,.04) 50%, var(--paper) 100%);
}

.host-section {
    background: linear-gradient(135deg, var(--paper) 0%, rgba(90,107,82,.03) 100%);
}

.enso { transition: opacity .8s ease; }
.enso:hover { opacity: .15; }

.tags .tag, .well-pills .tag {
    transition: all .3s ease;
}
.tags .tag:hover {
    background: var(--gold-soft);
    border-color: var(--warm);
}
.well-pills .tag:hover {
    background: rgba(138,154,123,.1);
    border-color: var(--sage);
}

.btn-ghost:hover {
    background: var(--gold-soft);
    border-color: var(--warm);
}

.card:hover {
    transform: translateY(-2px);
    transition: transform .3s ease;
}

.step-no {
    color: var(--warm);
}

.site-footer {
    border-top: 1px solid var(--warm-dim);
}
