/*
Theme Name: Noy Davidi
Description: תבנית קלה ומהירה לאתר של נוי דוידי – פסיכותרפיה גופנית. ללא בילדר, תואמת Elementor.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: noy-davidi
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Noto Sans Hebrew"; src: url("assets/fonts/noto-he.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Noto Sans Hebrew"; src: url("assets/fonts/noto-lat.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--cream: #fff8f1;
	--sand: #f3e4d2;
	--sand-deep: #e9d2b6;
	--gold: #e8c583;
	--navy: #0b2f5b;
	--ink: #2f3147;
	--bronze: #8a5522;
	--text: #3b342e;
	--muted: #6d6259;
	--white: #fff;
	--line: rgba(47, 49, 71, .14);

	--font-body: "Noto Sans Hebrew", "Heebo", Arial, sans-serif;
	--font-head: "Noto Sans Hebrew", "Heebo", Arial, sans-serif;

	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 18px 40px -22px rgba(47, 49, 71, .45);
	--container: 1160px;
	--gutter: clamp(20px, 5vw, 40px);
	--section: clamp(56px, 9vw, 112px);
	--header-h: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--bronze); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 18px; border-radius: 99px; transition: top .15s; }
.skip-link:focus { top: 12px; color: var(--cream); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tint { background: var(--sand); }

.eyebrow { font-size: .95rem; font-weight: 600; letter-spacing: .08em; color: var(--bronze); margin: 0 0 .5em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .section-title { margin: 0; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .6em 1.7em; border: 1.5px solid var(--navy); border-radius: 99px; background: var(--navy); color: var(--cream); font: 600 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateY(-1px); }
.btn svg { flex: none; }
.btn--small { min-height: 44px; padding: .4em 1.3em; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--outline-light { background: rgba(255, 248, 241, .08); border-color: rgba(255, 248, 241, .75); color: var(--cream); backdrop-filter: blur(4px); }
.btn--outline-light:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 241, .94); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -16px rgba(47, 49, 71, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-logo { display: block; flex: none; }
.site-logo img { width: auto; height: 56px; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.site-nav .menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; }
.site-nav .menu a { position: relative; display: block; padding: 10px 2px; color: var(--ink); font-weight: 500; text-decoration: none; }
.site-nav .menu a::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 2px; background: var(--bronze); transform: scaleX(0); transition: transform .2s; }
.site-nav .menu a:hover::after, .site-nav .menu .current-menu-item > a::after, .site-nav .menu .current_page_parent > a::after { transform: scaleX(1); }
.site-nav .menu .current-menu-item > a, .site-nav .menu .current_page_parent > a { color: var(--navy); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; margin-inline: auto; transition: transform .2s, background .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	:root { --header-h: 76px; }
	.site-logo img { width: auto; height: 44px; }
	.nav-toggle { display: block; }
	/* No backdrop-filter here: it would make the header the containing block of the fixed menu. */
	.site-header { background: var(--cream); backdrop-filter: none; }
	.site-nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 24px; padding: 24px var(--gutter) 40px; background: var(--cream); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
	.site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu a { padding: 16px 4px; font: 500 1.5rem var(--font-head); border-bottom: 1px solid var(--line); }
	.site-nav .menu a::after { display: none; }
	.site-nav__cta { min-height: 52px; }
	.nav-open { overflow: hidden; }
}

/* ---------- Leaf strip (the gold band) ---------- */
/* The SVG holds 12 evenly spaced leaves, so it tiles seamlessly: it always spans
   the full screen width and simply repeats when the screen is wider than one tile. */
.leaf-strip { width: 100%; height: 48px; background: #e8c583 url("assets/img/leaf-strip.svg") center / auto 100% repeat-x; }

/* ---------- Home: hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: min(78vh, 760px); color: var(--cream); isolation: isolate; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(28, 30, 48, .82) 0%, rgba(28, 30, 48, .35) 45%, rgba(28, 30, 48, .05) 75%); }
.hero__inner { padding-block: clamp(48px, 9vw, 96px); }
.hero__tag { font-size: 1rem; font-weight: 600; letter-spacing: .1em; margin: 0 0 .8em; opacity: .92; }
.hero__title { font-size: clamp(3rem, 8.5vw, 5.6rem); font-weight: 300; line-height: 1.05; color: var(--cream); margin: 0 0 .2em; }
.hero__sub { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 300; margin: 0 0 1.6em; max-width: 26ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home: about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__photo { position: relative; max-width: 420px; }
.about__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius); background: var(--sand-deep); z-index: -1; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__text .btn { margin-top: 12px; }

/* ---------- Home: quote ---------- */
.quote { position: relative; background: var(--ink); color: var(--cream); padding-block: var(--section); overflow: hidden; isolation: isolate; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/img/leaves.jpg") center / cover; opacity: .16; mix-blend-mode: luminosity; }
.quote__inner { display: grid; justify-items: center; text-align: center; gap: 28px; }
.quote__mark { width: 64px; height: 64px; filter: brightness(0) invert(1); opacity: .8; }
.quote__text { margin: 0; font: 300 clamp(1.4rem, 3.1vw, 2.2rem)/1.55 var(--font-head); max-width: 24em; }
.quote__text span { display: block; }
.quote__text span:first-child { color: var(--gold); }

/* ---------- Home: cards ---------- */
.cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.card::before { content: ""; width: 44px; height: 30px; margin-bottom: 18px; background: var(--bronze); -webkit-mask: url("assets/img/mark.png") center / contain no-repeat; mask: url("assets/img/mark.png") center / contain no-repeat; }
.card__title { font-size: 1.55rem; }
.card .prose { flex: 1; }
.card--accent { background: var(--navy); color: var(--cream); }
.card--accent .card__title { color: var(--cream); }
.card--accent::before { background: var(--gold); }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 26px; line-height: 1.5; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* ---------- Article cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.post-card:hover { transform: translateY(-4px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--sand-deep); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card__title { font-size: 1.4rem; margin-bottom: .5em; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--bronze); }
.post-card__excerpt { flex: 1; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--sand); }
.page-hero__inner { padding-block: clamp(40px, 6vw, 72px); text-align: center; }
.page-hero__title { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin: 0; }
.page-figure { margin: 0 0 40px; }
.page-figure img { width: 100%; border-radius: var(--radius); }

.prose { max-width: 68ch; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--bronze); }
.prose blockquote { margin: 1.6em 0; padding: 4px 22px; border-inline-start: 3px solid var(--gold); font: 400 1.3rem/1.6 var(--font-head); color: var(--ink); }
.prose .lead, .prose .is-style-lead { font-size: 1.3rem; line-height: 1.65; color: var(--ink); }
.entry-content .wp-block-image img, .entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-media-text { gap: 32px; margin-bottom: 2em; }
.entry-content .wp-block-media-text img { border-radius: var(--radius); }
.entry-content .wp-block-button__link { background: var(--navy); color: var(--cream); border-radius: 99px; padding: .8em 1.8em; font-weight: 600; }

.article__head { background: var(--sand); text-align: center; }
.article__head .container { padding-block: clamp(36px, 6vw, 64px); }
.article__title { font-size: clamp(2rem, 4.8vw, 3.1rem); margin-bottom: .4em; }
.article__meta { color: var(--muted); margin: 0; font-size: 1rem; }
.article__figure { margin-block: clamp(28px, 5vw, 56px) 0; }
.article__figure img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.article__body { padding-block: clamp(32px, 5vw, 56px) var(--section); }
.article__body .prose { font-size: 1.2rem; line-height: 1.85; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq__q { position: relative; padding: 20px 24px; padding-inline-end: 60px; font: 500 1.3rem/1.4 var(--font-head); color: var(--navy); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; position: absolute; inset-inline-end: 26px; top: 50%; width: 11px; height: 11px; border: solid var(--bronze); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 24px 24px; }

/* ---------- Contact ---------- */
.contact { background: var(--sand); padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__sub { color: var(--muted); margin-bottom: 1.5em; }
.form { display: grid; gap: 16px; }
.form__row { margin: 0; display: grid; gap: 6px; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: 1rem; color: var(--ink); }
.form input, .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid transparent; border-radius: var(--radius-sm); background: var(--white); font: inherit; color: var(--text); transition: border-color .15s; }
.form input[dir="ltr"] { text-align: end; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); }
.form__hint { margin: 0; font-size: .95rem; color: var(--muted); }
.form__hp { position: absolute; inset-inline-start: -9999px; }
.form .btn { justify-self: start; min-width: 160px; }
.form-note { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-note--ok { background: #e3f1e4; color: #1f5a2a; }
.form-note--error { background: #fbe6e2; color: #8c2a1b; }
.contact__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact__list { list-style: none; display: grid; gap: 4px; margin-top: 24px; }
.contact__list a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); font-weight: 500; text-decoration: none; }
.contact__list a:hover { color: var(--bronze); }
.contact__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--navy); flex: none; }

/* ---------- CTA band (inner pages) ---------- */
.cta-band { background: var(--navy); color: var(--cream); padding-block: clamp(40px, 6vw, 64px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band__title { color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .3em; }
.cta-band__text { margin: 0; max-width: 46ch; opacity: .9; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.cta-band .btn:hover { background: var(--white); }
.cta-band .btn--ghost { background: transparent; color: var(--cream); border-color: rgba(255, 248, 241, .6); }
.cta-band .btn--ghost:hover { background: var(--cream); color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 248, 241, .86); padding-block: clamp(48px, 7vw, 72px) 24px; font-size: 1.02rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer__brand img { filter: brightness(0) invert(1); opacity: .85; margin-bottom: 12px; }
.site-footer__name { font: 500 1.5rem var(--font-head); color: var(--cream); margin-bottom: .3em; }
.site-footer__name span { display: block; font: 400 .95rem var(--font-body); letter-spacing: .12em; opacity: .75; }
.site-footer .menu, .site-footer__contact { list-style: none; display: grid; gap: 4px; }
.site-footer .menu a, .site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 248, 241, .16); font-size: .92rem; opacity: .8; }
.site-footer__bottom p { margin: 0; }

.wa-float { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border-radius: 99px; background: var(--white); text-decoration: none; }
.nav-links .current { background: var(--navy); color: var(--cream); }

/* Pages built with Elementor get the full width, no theme wrappers. */
.site-main--elementor { min-height: 40vh; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.cards__grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards__grid .card--accent { grid-column: 1 / -1; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	body { font-size: 1.0625rem; }
	.about__grid, .contact__grid, .cards__grid, .post-grid, .post-grid--two { grid-template-columns: minmax(0, 1fr); }
	.about__photo { max-width: 320px; margin-inline: auto; }
	.about__photo::before { inset: 14px -14px -14px 14px; }
	.hero { min-height: 82vh; }
	.hero__actions .btn { flex: 1 1 100%; }
	.form__pair { grid-template-columns: 1fr; }
	.form .btn, .cta-band__actions, .cta-band__actions .btn { width: 100%; }
	.leaf-strip { height: 34px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.article__body .prose { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.hero__media { display: none; }
	.hero { background: var(--ink) url("assets/img/hero-poster.jpg") center / cover; }
}

/* Logged-in view: keep the sticky header below the WordPress admin bar. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Motion: soft reveals, hover micro-interactions, page fades ---------- */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }

/* Gentle cross-fade between pages (browsers without support just navigate). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }

/* Scroll reveal. Only active when JS is running (html.js), so content is never hidden without it. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero entrance */
@keyframes nd-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes nd-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__media { animation: nd-settle 3.2s var(--ease) both; }
.hero__tag, .hero__title, .hero__sub, .hero__actions { animation: nd-rise 1.1s var(--ease) both; }
.hero__tag { animation-delay: .25s; }
.hero__title { animation-delay: .4s; }
.hero__sub { animation-delay: .6s; }
.hero__actions { animation-delay: .8s; }
.page-hero__title, .article__title { animation: nd-rise .9s var(--ease) both; animation-delay: .1s; }

/* Buttons */
.btn { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(11, 47, 91, .7); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(-3px); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow { background: linear-gradient(currentColor, currentColor) right 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; padding-bottom: 2px; }
.link-arrow:hover { background-size: 100% 1.5px; }

/* Header */
.site-logo img { transition: transform .5s var(--ease); }
.site-logo:hover img { transform: scale(1.05) rotate(-2deg); }
.site-nav .menu a { transition: color .25s; }
.site-nav .menu a::after { transform-origin: right; transition: transform .35s var(--ease); }

/* Cards */
.card, .post-card, .faq__item { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover, .post-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -26px rgba(47, 49, 71, .55); }
.card::before { transition: transform .5s var(--ease); transform-origin: bottom center; }
.card:hover::before { transform: scale(1.12) rotate(-4deg); }
.post-card__media img { transition: transform .9s var(--ease); }
.post-card__title a { transition: color .25s; }

/* Portrait frame drifts slightly on hover */
.about__photo::before { transition: transform .6s var(--ease); }
.about__photo:hover::before { transform: translate(8px, 8px); }
.about__photo img, .contact__photo img, .article__figure img { transition: transform .9s var(--ease); }
.about__photo { overflow: visible; }
.contact__photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact__photo img { box-shadow: none; }
.contact__photo:hover img { transform: scale(1.03); }

/* FAQ */
.faq__item:hover { transform: translateY(-2px); }
.faq__q { transition: color .25s; }
.faq__q:hover { color: var(--bronze); }
@keyframes nd-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq__item[open] .faq__a { animation: nd-open .45s var(--ease) both; }

/* Contact */
.contact__icon { transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.contact__list a:hover .contact__icon { background: var(--navy); color: var(--cream); transform: scale(1.08); }
.form input, .form textarea { transition: border-color .25s, box-shadow .25s; }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 4px rgba(11, 47, 91, .1); }

/* Footer links */
.site-footer a { transition: color .25s; }
.site-footer .menu a, .site-footer__contact a { transition: color .25s, transform .3s var(--ease); }
.site-footer .menu a:hover, .site-footer__contact a:hover { transform: translateX(-4px); }

/* WhatsApp button: one soft ring, slow */
@keyframes nd-ring { 0% { box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45), 0 0 0 0 rgba(31, 168, 85, .35); } 70%, 100% { box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45), 0 0 0 16px rgba(31, 168, 85, 0); } }
.wa-float { animation: nd-ring 4s var(--ease) 2s infinite; transition: transform .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { opacity: 1; transform: none; }
	@view-transition { navigation: none; }
}

/* ---------- Mobile: centred layout ---------- */
@media (max-width: 720px) {
	.hero__inner, .about__text, .card, .post-card__body, .section-head, .contact__form > .section-title, .contact__sub,
	.cta-band__inner, .site-footer__grid, .site-footer__bottom, .faq__q { text-align: center; }
	.hero__sub, .cta-band__text, .prose { margin-inline: auto; }
	.hero__actions, .cta-band__actions { justify-content: center; }
	.section-head { flex-direction: column; align-items: center; }
	.about__text .btn { margin-inline: auto; }
	.card { align-items: center; }
	.card .link-arrow, .post-card .link-arrow { align-self: center; }
	.check-list { justify-items: center; }
	.check-list li { padding-inline-start: 0; }
	.check-list li::before { display: none; }
	.check-list li + li { padding-top: 12px; border-top: 1px solid rgba(255, 248, 241, .18); }
	.contact__list { justify-items: center; }
	.form .btn { justify-self: center; }
	.form__hint { text-align: center; }
	.cta-band__inner { flex-direction: column; }
	.site-footer__brand img { margin-inline: auto; }
	.site-footer .menu, .site-footer__contact { justify-items: center; }
	.site-footer__bottom { flex-direction: column; align-items: center; }
	.faq__q { padding-inline: 48px; }
	.page-figure, .about__photo { margin-inline: auto; }
}

/* Mobile: every text block and the logos are centred. */
@media (max-width: 720px) {
	.site-main, .site-footer, .cta-band { text-align: center; }
	.prose ul, .prose ol { padding-inline-start: 0; list-style-position: inside; }
	.prose blockquote { border-inline-start: 0; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); padding: 18px 8px; }
	.faq__a { text-align: center; }
	.form label { text-align: center; }
	.form input, .form textarea, .form input[dir="ltr"] { text-align: center; }
	.contact__list a { justify-content: center; }
	.entry-content .wp-block-image, .entry-content figure { margin-inline: auto; }
	.entry-content img { margin-inline: auto; }
	.quote__mark, .site-footer__brand img { margin-inline: auto; }
}
/* Header logo sits in the middle on phones and tablets; the menu button stays at the side. */
@media (max-width: 900px) {
	.site-header__inner { position: relative; justify-content: flex-end; }
	.site-logo { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(50%, -50%); }
	.site-nav { text-align: center; }
}

/* ---------- Page with featured image: image right, text left ---------- */
.page-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.page-split__media { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; max-width: 420px; }
.page-split__media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius); background: var(--sand-deep); z-index: -1; transition: transform .6s var(--ease); }
.page-split__media:hover::before { transform: translate(8px, 8px); }
.page-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) {
	.page-split { grid-template-columns: minmax(0, 1fr); }
	.page-split__media { position: relative; top: auto; max-width: 320px; margin-inline: auto; }
	.page-split__media::before { inset: 14px -14px -14px 14px; }
}

/* ---------- Elementor-built pages ---------- */
.nd-mark-light img { filter: brightness(0) invert(1); opacity: .8; }
.site-main--elementor .elementor-widget-html, .site-main--elementor .elementor-widget-shortcode { width: 100%; }
.site-main--elementor .prose { max-width: none; }
.site-main--elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.site-main--elementor .elementor-button { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.site-main--elementor .elementor-button:hover { transform: translateY(-2px); }
.site-main--elementor .card .elementor-button:hover { transform: none; }
.site-main--elementor .elementor-accordion .elementor-accordion-item { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); border: 0; }
.site-main--elementor .elementor-accordion .elementor-tab-title { padding: 20px 24px; }
.site-main--elementor .elementor-accordion .elementor-tab-content { padding: 0 24px 24px; border-top: 0; }
.entry-content--elementor { max-width: none; }
.entry-content--elementor .e-con { padding-inline: 0; }
@media (max-width: 720px) {
	.site-main--elementor .elementor-widget-button .elementor-button { width: 100%; }
	.site-main--elementor .card .elementor-button { width: auto; }
	.site-main--elementor .elementor-icon-list-items { align-items: center; }
}

/* Contact details built with the Elementor icon list: round white icon chips. */
.nd-contact-list .elementor-icon-list-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); flex: none; transition: background .3s var(--ease), transform .3s var(--ease); }
.nd-contact-list .elementor-icon-list-item > a { align-items: center; font-weight: 500; text-decoration: none; }
.nd-contact-list .elementor-icon-list-item > a:hover .elementor-icon-list-icon { transform: scale(1.08); }
.nd-contact-list .elementor-icon-list-text { direction: ltr; unicode-bidi: plaintext; }
@media (max-width: 720px) { .nd-contact-list .elementor-icon-list-items { align-items: center; } }
/* Contact section photo: keep a calm landscape crop whatever image is chosen. */
#contact .elementor-widget-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Header call button + mobile header layout ---------- */
/* Thin line phone icon in the header colour, on the navy button. */
.header-cta svg, .site-nav__cta svg { width: 18px; height: 18px; stroke: var(--cream); stroke-width: 1.4; }
.header-cta:hover svg, .site-nav__cta:hover svg { transform: none; }
.header-cta { display: none; }

/* Elementor's site-wide button style also hits plain <button> tags: keep the menu button clean. */
.site-header .nav-toggle, .site-header .nav-toggle:hover, .site-header .nav-toggle:focus { background: transparent; padding: 0; border: 0; border-radius: 50%; box-shadow: none; }

@media (max-width: 900px) {
	/* Logo on the right; call button and menu button grouped on the left. */
	.site-header__inner { justify-content: flex-start; gap: 6px; }
	.site-logo { position: static; transform: none; }
	.site-logo img { height: 34px; }
	.header-cta { display: inline-flex; margin-inline-start: auto; min-height: 42px; padding: .35em 1em; font-size: .95rem; white-space: nowrap; }
	.site-nav__cta { display: none; }
}
@media (max-width: 359px) {
	.header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.header-cta { padding-inline: .8em; }
}

/* Mobile header order (right to left): menu button, logo, call button. */
@media (max-width: 900px) {
	.site-header .nav-toggle { order: -1; margin-inline-start: -8px; }
	.site-logo picture { display: block; }
}

/* Mobile header: the logo sits centred in the space between the menu button and the call button. */
@media (max-width: 900px) {
	.site-logo { margin-inline: auto; }
	.header-cta { margin-inline-start: 0; }
}

/* ================= Mobile refinements ================= */

/* Header call button: phone icon only, as a round button. */
@media (max-width: 900px) {
	.header-cta { width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
	.header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

	/* Mobile menu opens softly, one item after the other. */
	.site-nav { transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
	.site-nav .menu li { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
	.site-nav.is-open .menu li { opacity: 1; transform: none; }
	.site-nav.is-open .menu li:nth-child(1) { transition-delay: .12s; }
	.site-nav.is-open .menu li:nth-child(2) { transition-delay: .22s; }
	.site-nav.is-open .menu li:nth-child(3) { transition-delay: .32s; }
	.site-nav.is-open .menu li:nth-child(4) { transition-delay: .42s; }
	.site-nav.is-open .menu li:nth-child(5) { transition-delay: .52s; }
	.site-nav.is-open .menu li:nth-child(6) { transition-delay: .62s; }
	.site-nav.is-open .menu li:nth-child(n+7) { transition-delay: .72s; }
}

@media (max-width: 767px) {
	/* Home page: every text is centred. */
	.home .site-main--elementor,
	.home .site-main--elementor .elementor-heading-title,
	.home .site-main--elementor .elementor-widget-text-editor,
	.home .site-main--elementor .elementor-button-wrapper { text-align: center; }
	.home .site-main--elementor .elementor-icon-list-items { align-items: center; }
	.home .site-main--elementor .elementor-icon-list-item, .home .site-main--elementor .elementor-icon-list-item > a { justify-content: center; }

	/* Home hero (first section): the title block sits at the top, in navy, over the
	   bright sky above the mountains; the two buttons stay at the bottom, side by side. */
	.home .site-main--elementor .elementor > .e-con:first-child { --justify-content: flex-start; --padding-top: 36px; }
	.home .site-main--elementor .elementor > .e-con:first-child > .e-con-inner { justify-content: flex-start; min-height: inherit; }
	.home .site-main--elementor .elementor > .e-con:first-child > .e-con-inner > .elementor-widget-heading .elementor-heading-title { color: var(--navy) !important; }
	.home .site-main--elementor .elementor > .e-con:first-child > .e-con-inner > .e-con { margin-top: auto; --flex-wrap: nowrap; flex-wrap: nowrap; --justify-content: center; justify-content: center; --gap: 8px; gap: 8px; }
	.home .site-main--elementor .elementor > .e-con:first-child .elementor-widget-button { width: auto; flex: 0 1 auto; }
	.home .site-main--elementor .elementor > .e-con:first-child .elementor-widget-button .elementor-button { width: auto; padding: 13px 16px; font-size: 15px; white-space: nowrap; }

	/* Portrait photo 35% smaller on phones (home "about" block and the About page). */
	.site-main--elementor .elementor > .e-con:nth-child(2) > .e-con-inner > .e-con:first-child .elementor-widget-image img { width: 65%; }
	.about__photo, .page-split__media { max-width: 208px; }

	/* Contact section: a slightly deeper sand so it reads as its own block. */
	#contact, .contact { background-color: #ead4b8 !important; }
}

/* Desktop header: the menu sits centred in the space between the logo and the call button. */
@media (min-width: 901px) {
	/* No fixed gaps on either side, so the free space splits exactly in half. */
	.site-header__inner { gap: 0; }
	.site-nav { flex: 1; gap: 0; }
	.site-nav .menu { margin-inline: auto; padding-inline: 24px; }
}
