/* =========================================================================
   Dr. Rafael Yanez — ported design tokens & components
   Source palette (OKLCH) preserved as comments; hex fallbacks used for
   broad browser + Elementor compatibility.
   ========================================================================= */

:root {
	--radius: 0.25rem;

	/* oklch(0.08 0.005 60)  */ --yz-ink:        #020201;
	/* oklch(0.96 0.008 80)  */ --yz-foreground: #f5f1ec;
	/* oklch(0.96 0.012 85)  */ --yz-cream:      #f5f1e9;
	/* oklch(0.78 0.09 75)   */ --yz-gold:       #d9af75;
	/* oklch(0.11 0.006 60)  */ --yz-card:       #060403;
	/* oklch(0.18 0.008 60)  */ --yz-secondary:  #14110e;
	/* oklch(0.16 0.006 60)  */ --yz-muted:      #0f0d0b;
	/* oklch(0.65 0.015 75)  */ --yz-muted-fg:   #958e85;
	/* oklch(0.25 0.01 60)   */ --yz-scroll:     #25211d;

	--yz-border: rgba(245, 241, 236, 0.12);
	--yz-input:  rgba(245, 241, 236, 0.15);

	--font-sans:      "Poppins", system-ui, -apple-system, sans-serif;
	--font-serif:     "Poppins", system-ui, -apple-system, sans-serif;
	--font-signature: "Allura", cursive;
}

/* ---- Base ------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
	background-color: var(--yz-ink);
	color: var(--yz-foreground);
	font-family: var(--font-sans);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	letter-spacing: 0.005em;
}

/* Apply dark canvas to Astra's content wrappers so pages are edge-to-edge dark. */
.ast-container,
#page,
#content,
.site-content,
.ast-page-builder-template .site-content { background-color: var(--yz-ink); }

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.05;
	color: var(--yz-cream);
}

::selection { background: var(--yz-gold); color: var(--yz-ink); }

/* Refined scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--yz-ink); }
::-webkit-scrollbar-thumb {
	background: var(--yz-scroll);
	border-radius: 9999px;
	border: 2px solid var(--yz-ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--yz-gold); }

/* ---- Utility classes (mirrors the original) -------------------------- */
.yz-serif      { font-family: var(--font-serif); }
.yz-signature  { font-family: var(--font-signature); }
.yz-italic     { font-style: italic; }
.text-gold     { color: var(--yz-gold) !important; }
.text-cream    { color: var(--yz-cream) !important; }
.text-ink      { color: var(--yz-ink) !important; }
.bg-ink        { background-color: var(--yz-ink) !important; }
.bg-cream      { background-color: var(--yz-cream) !important; }
.bg-card       { background-color: var(--yz-card) !important; }

.label-eyebrow {
	font-family: var(--font-sans);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.35em;
	text-transform: uppercase;
}

/* Full-screen scene block (Hero / Smile / Locations / etc.) */
.scene {
	min-height: 100vh;
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem 1.5rem;
}
@media (min-width: 768px) { .scene { padding: 6rem 4rem; } }

/* Cream scenes flip text to ink */
.scene.bg-cream, .bg-cream { color: var(--yz-ink); }
.scene.bg-cream h1, .scene.bg-cream h2, .scene.bg-cream h3 { color: var(--yz-ink); }

/* ---- Animations ------------------------------------------------------- */
.fade-up { animation: yzFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in { animation: yzFadeIn 1.6s ease-out both; }
.slow-zoom { animation: yzSlowZoom 18s ease-out both alternate infinite; }
.marquee { display: flex; animation: yzMarquee 40s linear infinite; }

@keyframes yzFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes yzFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes yzSlowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes yzMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Reveal-on-scroll (driven by scroll-nav.js) */
.yz-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1), transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.yz-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.yz-reveal { opacity: 1; transform: none; transition: none; }
	.slow-zoom, .fade-up, .fade-in { animation: none; }
}

/* =========================================================================
   Scroll-progress side navigation (ported from SideNav.tsx)
   Markup is injected by scroll-nav.js from sections that carry [data-scene].
   ========================================================================= */
.yz-sidenav {
	position: fixed;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 40;
	display: none;
	padding: 0.5rem 0;
}
@media (min-width: 1024px) { .yz-sidenav { display: block; } }
/* vertical rail behind the marks */
.yz-sidenav::before {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 1.25rem;
	bottom: 1.25rem;
	width: 1px;
	background: linear-gradient(to bottom, transparent, rgba(245,241,236,0.14) 12%, rgba(245,241,236,0.14) 88%, transparent);
}
.yz-sidenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--yz-sn-gap, 11px); }
.yz-sidenav a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.32rem;
	padding: 0.42rem 0 0.42rem 1.8rem;
	text-decoration: none;
	cursor: pointer;
}
.yz-sidenav .yz-sn-label {
	white-space: nowrap;
	transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .45s ease, color .45s ease;
	transform: translateX(0.75rem);
	opacity: 0;
	color: rgba(245,241,236,0.75);
	font-size: var(--yz-sn-fs, 13px); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
}
.yz-sidenav .yz-sn-label .yz-sn-num { margin-right: 0.72rem; color: var(--yz-gold); opacity:.65; font-variant-numeric: tabular-nums; }
.yz-sidenav a:hover .yz-sn-label { transform: translateX(0); opacity: 1; }
.yz-sidenav a.is-active .yz-sn-label { transform: translateX(0); opacity: 1; color: var(--yz-cream); }
.yz-sidenav a.is-active .yz-sn-num { opacity:1; }

.yz-sidenav .yz-sn-mark { position: relative; display: flex; height: 1.2rem; width: 1.5rem; align-items: center; justify-content: flex-end; }
.yz-sidenav .yz-sn-line { position: absolute; right: 0; height: 1px; width: var(--yz-sn-line, 12px); background: rgba(245,241,236,0.28); transition: width .45s cubic-bezier(.22,.61,.36,1), background .45s ease; }
.yz-sidenav a:hover .yz-sn-line { width: calc(var(--yz-sn-line, 12px) * 1.83); background: rgba(245,241,236,0.6); }
.yz-sidenav a.is-active .yz-sn-line { width: calc(var(--yz-sn-line, 12px) * 2.67); background: var(--yz-gold); }
.yz-sidenav .yz-sn-dot { position: absolute; right: 0; height: var(--yz-sn-dot, 9px); width: var(--yz-sn-dot, 9px); border-radius: 9999px; background: rgba(245,241,236,0.35); transform: scale(.7); transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .45s ease, box-shadow .45s ease; }
.yz-sidenav a:hover .yz-sn-dot { background: rgba(245,241,236,0.7); transform: scale(.85); }
.yz-sidenav a.is-active .yz-sn-dot { transform: scale(1.15); background: var(--yz-gold); box-shadow: 0 0 0 4px rgba(217,175,117,0.16), 0 0 14px rgba(217,175,117,0.7); }


/* =========================================================================
   Full-page snap scroll (JS-driven "slide" transition between sections)
   Applied by assets/js/scroll-nav.js on desktop viewports (>=1024px) when
   a page has 2+ top-level sections and the visitor has not requested
   reduced motion. Falls back to normal scrolling otherwise — nothing here
   applies until JS adds the classes below.
   ========================================================================= */
body.yz-snap-on { overflow: hidden !important; height: 100vh !important; }
.yz-snap-scene {
	position: fixed !important;
	top: 0 !important; left: 0 !important; right: 0 !important;
	width: 100% !important;
	height: 100vh !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
	transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
	z-index: 10;
}
.yz-snap-scene.is-active { z-index: 30; }
/* footer riding along as the final slide: park its content at the bottom
   of the full-height slide instead of leaving it stranded at the top */
.yz-snap-scene.yz-footer-slide { display: flex !important; flex-direction: column; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) {
	.yz-snap-scene { transition: none; }
}

/* Scroll cue (hero) */
.yz-scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); text-align: center; z-index: 10; }
.yz-scroll-cue .yz-line { margin: 0.75rem auto 0; height: 3rem; width: 1px; background: linear-gradient(to bottom, rgba(245,241,236,0.6), transparent); }

/* =========================================================================
   Services components (shortcode output) — matches services.index / $slug
   ========================================================================= */
.svc-list { border-top: 1px solid var(--yz-border); border-bottom: 1px solid var(--yz-border); }
.svc-row {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem;
	align-items: center; padding: 2.5rem 0; text-decoration: none;
	border-bottom: 1px solid var(--yz-border); transition: background-color 0.3s;
}
.svc-row:last-child { border-bottom: 0; }
.svc-row:hover { background: rgba(6,4,3,0.4); }
.svc-row-num { color: var(--yz-gold); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; }
.svc-row-title { font-family: var(--font-serif); color: var(--yz-cream); font-size: 1.875rem; transition: color 0.3s; }
.svc-row:hover .svc-row-title { color: var(--yz-gold); }
.svc-row-short { color: rgba(245,241,236,0.6); font-size: 0.95rem; line-height: 1.6; }
.svc-row-cta { color: rgba(245,241,236,0.8); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; transition: transform 0.3s; }
.svc-row:hover .svc-row-cta { transform: translateX(0.5rem); }
@media (min-width: 768px) {
	.svc-row { grid-template-columns: 1fr 4fr 5fr 2fr; gap: 2.5rem; padding: 3.5rem 0; }
	.svc-row-title { font-size: 3rem; }
	.svc-row-cta { text-align: right; }
}

.svc-highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.svc-highlights li { display: flex; align-items: flex-start; gap: 0.75rem; font-family: var(--font-serif); font-size: 1.25rem; color: var(--yz-cream); }
.svc-highlights .svc-dash { margin-top: 0.85rem; height: 1px; width: 1.5rem; flex-shrink: 0; background: var(--yz-gold); }

.svc-related { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--yz-border); }
@media (min-width: 768px) { .svc-related { grid-template-columns: repeat(3, 1fr); } }
.svc-related-card { background: var(--yz-ink); padding: 2.5rem; text-decoration: none; transition: background-color 0.3s; display: block; }
.svc-related-card:hover { background: var(--yz-card); }
.svc-related-num { color: var(--yz-gold); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; }
.svc-related-card h3 { margin: 1rem 0 0; font-family: var(--font-serif); font-size: 1.5rem; color: var(--yz-cream); }
.svc-related-card:hover h3 { color: var(--yz-gold); }
.svc-related-card p { margin: 0.75rem 0 0; font-size: 0.9rem; line-height: 1.6; color: rgba(245,241,236,0.6); }

/* Gold divider + outline button helpers reusable in Elementor */
.yz-rule-gold { height: 1px; width: 6rem; background: rgba(217,175,117,0.6); }
.yz-rule-ink  { height: 1px; width: 6rem; background: rgba(2,2,1,0.3); }
.yz-btn-outline {
	display: inline-block; border: 1px solid rgba(245,241,236,0.3);
	padding: 1.25rem 2rem; color: var(--yz-cream); text-decoration: none;
	font-size: 0.7rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase;
	transition: all 0.3s;
}
.yz-btn-outline:hover { border-color: var(--yz-gold); background: var(--yz-gold); color: var(--yz-ink); }
/* Stat blocks (about) */
.yz-stat-num { font-family: var(--font-serif); font-size: 3.5rem; color: var(--yz-gold); line-height: 1; }
.yz-stat-label { margin-top: 0.75rem; color: rgba(245,241,236,0.6); font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; }

/* Credentials list (about) */
.yz-creds { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 1px solid rgba(217,175,117,0.4); }
.yz-creds li { font-family: var(--font-serif); font-size: 1.25rem; color: rgba(245,241,236,0.9); margin-bottom: 1.25rem; }

/* Contact form (native, styled to match) */
.yz-contact-form label { display: block; margin-bottom: 1.75rem; }
.yz-contact-form .yz-flabel { color: rgba(245,241,236,0.5); font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; }
.yz-contact-form input,
.yz-contact-form textarea {
	width: 100%; margin-top: 0.5rem; background: transparent; border: 0;
	border-bottom: 1px solid rgba(245,241,236,0.2); padding: 0.75rem 0;
	font-family: var(--font-serif); font-size: 1.125rem; color: var(--yz-cream); outline: none;
	transition: border-color 0.3s;
}
.yz-contact-form input:focus, .yz-contact-form textarea:focus { border-color: var(--yz-gold); }
.yz-contact-submit {
	display: flex; width: 100%; align-items: center; justify-content: space-between;
	border: 1px solid rgba(245,241,236,0.3); padding: 1.25rem 1.5rem; background: transparent;
	color: var(--yz-cream); cursor: pointer; transition: all 0.3s;
	font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
}
.yz-contact-submit:hover { border-color: var(--yz-gold); background: var(--yz-gold); color: var(--yz-ink); }

/* =========================================================================
   Header (ported from TopBar.tsx)
   ========================================================================= */
.yz-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem 2.5rem; transition: all 0.5s;
	background: transparent;
}
.yz-header.scrolled, .yz-header.open {
	background: rgba(2,2,1,0.85); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(245,241,236,0.1); padding-top: 1rem; padding-bottom: 1rem;
}
.yz-brand {
	color: var(--yz-cream); text-decoration: none;
	font-size: 0.7rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase;
	transition: color 0.3s;
}
.yz-brand:hover { color: var(--yz-gold); }
.yz-nav { display: none; align-items: center; gap: 2rem; }
.yz-nav a {
	color: rgba(245,241,236,0.7); text-decoration: none;
	font-size: 0.7rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase;
	transition: color 0.3s;
}
.yz-nav a:hover, .yz-nav a.current-menu-item, .yz-nav a[aria-current="page"] { color: var(--yz-gold); }
@media (min-width: 768px) { .yz-nav { display: flex; } .yz-burger { display: none; } }

.yz-burger {
	display: flex; flex-direction: column; gap: 6px; height: 36px; width: 36px;
	align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.yz-burger span { height: 1px; width: 24px; background: var(--yz-cream); transition: transform 0.3s; }
.yz-mobile { display: none; flex-direction: column; gap: 1rem;
	position: absolute; left: 0; right: 0; top: 100%;
	background: rgba(2,2,1,0.95); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(245,241,236,0.1); padding: 1.5rem 2.5rem; }
.yz-header.open .yz-mobile { display: flex; }
.yz-mobile a { color: var(--yz-cream); text-decoration: none;
	font-size: 0.7rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; }
.yz-mobile a:hover { color: var(--yz-gold); }
@media (min-width: 768px) { .yz-mobile { display: none !important; } }

/* push content below the fixed header on inner pages (homepage hero is full-bleed) */
body.yz-offset .site-content, body.yz-offset #content { padding-top: 0; }

/* =========================================================================
   Footer (ported from SiteFooter.tsx)
   ========================================================================= */
.yz-footer { border-top: 1px solid rgba(245,241,236,0.1); background: var(--yz-ink); }
.yz-footer-grid {
	max-width: 80rem; margin: 0 auto; padding: 5rem 2.5rem;
	display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 768px) { .yz-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.yz-footer-brand h3 { margin: 1rem 0 0; font-family: var(--font-serif); font-size: 2rem; color: var(--yz-cream); }
.yz-footer-desc { margin-top: 1.5rem; max-width: 24rem; font-size: 0.9rem; line-height: 1.7; color: rgba(245,241,236,0.6); }
.yz-footer-h { color: rgba(245,241,236,0.4) !important; margin-bottom: 1.25rem; }
.yz-footer ul { list-style: none; margin: 0; padding: 0; }
.yz-footer ul li { font-family: var(--font-serif); color: rgba(245,241,236,0.8); margin-bottom: 0.75rem; }
.yz-footer ul li span { font-size: 0.85rem; color: rgba(245,241,236,0.5); }
.yz-footer ul li a { color: rgba(245,241,236,0.8); text-decoration: none; }
.yz-footer ul li a:hover { color: var(--yz-gold); }
.yz-footer-bottom {
	border-top: 1px solid rgba(245,241,236,0.1); padding: 1.5rem 2.5rem;
	max-width: 80rem; margin: 0 auto;
	display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center;
}
.yz-footer-bottom .label-eyebrow { color: rgba(245,241,236,0.4); }
@media (min-width: 768px) { .yz-footer-bottom { flex-direction: row; justify-content: space-between; } }


/* ===== Sticky header scrolled state (GSAP/motion layer) ===== */
#yz-header{transition:background-color .4s ease,backdrop-filter .4s ease,padding .4s ease,box-shadow .4s ease;will-change:background-color,backdrop-filter;}
#yz-header.scrolled,#yz-header.elementor-sticky--effects{background-color:rgba(2,2,1,.82)!important;-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);box-shadow:0 1px 0 rgba(217,175,117,.14),0 18px 40px -28px rgba(0,0,0,.8);}
#yz-header.scrolled{padding-top:.5rem!important;padding-bottom:.5rem!important;}
@media (prefers-reduced-motion:reduce){#yz-header{transition:none;}}

/* ===== Footer enhancement ===== */
.yz-footer,.elementor-location-footer{position:relative;overflow:hidden;}
.elementor-location-footer:before{content:'';position:absolute;inset:0 0 auto 0;height:1px;background:linear-gradient(90deg,transparent,rgba(217,175,117,.5),transparent);}
.elementor-location-footer:after{content:'';position:absolute;left:50%;bottom:-40%;width:120%;height:80%;transform:translateX(-50%);background:radial-gradient(ellipse at center,rgba(217,175,117,.08),transparent 70%);pointer-events:none;}
.elementor-location-footer a{transition:color .25s ease,letter-spacing .25s ease;}
.elementor-location-footer a:hover{letter-spacing:.3px;}

/* GSAP reveal: prevent flash before JS sets opacity */
.js-gsap .site-content .e-con.e-parent>.e-con-inner>.e-con{opacity:1;}

/* motion-noscript-guard: never hide content if JS/GSAP is absent */
no-js .e-con, .no-js .elementor-widget{opacity:1!important;transform:none!important;}


/* screenshot-fixes-v1 */
header.elementor-location-header{background:transparent!important;}
#yz-header:not(.scrolled):not(.elementor-sticky--effects){background-color:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
.single-service .elementor-widget-theme-post-title,.single-service .e-con.e-parent:first-of-type{padding-top:1.5rem;}
html{scroll-padding-top:100px;}
.elementor-location-footer .e-con.e-parent{padding-top:4rem!important;padding-bottom:2rem!important;}

/* header-offset-v2: push ALL page content below the fixed header */
:root{--yz-header-h:104px;}
@media(max-width:1024px){:root{--yz-header-h:88px;}}
@media(max-width:767px){:root{--yz-header-h:72px;}}
.site-content,#content{padding-top:var(--yz-header-h);}
html{scroll-padding-top:calc(var(--yz-header-h) + 8px);}
