/*
Theme Name: Casa Nirvana
Description: One-page theme for Casa Nirvana – where love is served as food. Works with TranslatePress (English / Portuguese).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: casanirvana
License: GPL-2.0-or-later
*/

:root {
	--gold: #c59d5f;
	--gold-light: #d0aa71;
	--gold-dark: #9a7130;
	--brown: #543c17;
	--cream: #f9f4ee;
	--blue: #517392;
	--ink: #191919;
	--header-h: 96px;
	--header-h-sticky: 68px;
	--font-script: 'Kaushan Script', cursive;
	--font-script-alt: 'Playball', cursive;
	--font-body: 'Cabin', sans-serif;
	--font-sans: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-sticky); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--brown);
	background: #fff;
	text-align: center;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
p { font-family: var(--font-body); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; position: relative; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Loader ---------- */
.loader {
	position: fixed; inset: 0; z-index: 1000;
	display: grid; place-items: center;
	background: var(--cream);
	transition: opacity .5s ease, visibility .5s ease;
}
.loader img { width: 120px; animation: pulse 1.4s ease-in-out infinite; }
.loaded .loader { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .7; } }

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	transition: background-color .3s ease, box-shadow .3s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	height: var(--header-h);
	transition: height .3s ease;
}
.logo img { width: 150px; height: auto; transition: width .3s ease; }
.site-header.is-sticky { background: rgba(81, 115, 146, .85); box-shadow: 0 0 10px rgba(0, 0, 0, .12); }
.site-header.is-sticky .header-inner { height: var(--header-h-sticky); }
.site-header.is-sticky .logo img { width: 110px; }

.main-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
	display: block;
	padding: 10px 16px;
	font-family: var(--font-sans);
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	position: relative;
	transition: color .2s ease;
}
.main-nav a::after {
	content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
	height: 1px; background: currentColor;
	transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold); }
.main-nav a.is-current::after { transform: scaleX(1); }
.main-nav a:not([href]) { cursor: default; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px; padding: 10px;
	background: transparent; border: 0; cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-open .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- TranslatePress floating language switcher ---------- */
/* Sits between the logo and the menu, like the original site. */
.trp-floating-switcher { --left: 34% !important; z-index: 1001 !important; }

/* ---------- Section titles ---------- */
.section { position: relative; padding: 90px 0; }
.section-title { margin-bottom: 24px; }
.script-title {
	font-family: var(--font-script);
	font-weight: 400;
	font-size: 58px;
	line-height: 1.25;
	color: var(--gold);
}
.decor-title {
	display: inline-block;
	position: relative;
	margin: 8px 46px 0;
	font-family: var(--font-sans);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--brown);
}
.decor-title::before, .decor-title::after {
	content: ''; position: absolute; top: 50%;
	width: 26px; height: 6px; margin-top: -3px;
	border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.decor-title::before { left: -46px; }
.decor-title::after { right: -46px; }
.separator {
	height: 24px; margin: 14px auto 10px;
	background-repeat: no-repeat; background-position: center; background-size: contain;
}

/* ---------- Two-column layout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.col-text .text { text-align: left; }
.col-text .text p { font-size: 16px; line-height: 1.6; margin-bottom: 14px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	height: 100vh; height: 100svh;
	min-height: 520px;
	overflow: hidden;
	color: #fff;
	display: grid; place-items: center;
}
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
	background-size: cover; background-position: center;
	opacity: 0; transform: scale(1.06);
	transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { background: #000; opacity: .4; }
.hero-title { position: relative; z-index: 2; padding: 0 20px; max-width: 620px; }
.hero-title h1 {
	font-family: var(--font-script);
	font-weight: 400;
	font-size: 56px;
	line-height: 1.35;
	letter-spacing: 2px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.hero-tagline {
	margin-top: 14px;
	font-family: var(--font-sans);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.brush {
	position: absolute; left: 0; right: 0; z-index: 3;
	height: 87px;
	background-repeat: no-repeat; background-size: 100% 100%;
	pointer-events: none;
}
.brush-bottom { bottom: -1px; background-image: url(assets/img/brush-bottom.png); }
.brush-top { top: -2px; height: 80px; background-image: url(assets/img/brush-top.png); background-position: bottom; }

/* ---------- Intro ---------- */
.section-intro { background: var(--cream) url(assets/img/texture3.jpg) center / cover; padding: 110px 0 150px; }
.section-intro .col-text { padding-top: 10px; }

.carousel { position: relative; }
.carousel-track { display: grid; }
.carousel-slide {
	grid-area: 1 / 1;
	width: 100%;
	opacity: 0; transition: opacity .6s ease;
}
.carousel-slide.is-active { opacity: 1; }
.carousel-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .85); color: var(--brown);
	cursor: pointer; opacity: 0;
	transition: opacity .25s ease, background .25s ease;
}
.carousel:hover .carousel-btn, .carousel-btn:focus-visible { opacity: 1; }
.carousel-btn:hover { background: var(--gold); color: #fff; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* ---------- Opening hours (parallax) ---------- */
.parallax { overflow: hidden; color: #fff; }
.parallax-bg {
	position: absolute; left: 0; right: 0; top: -20%; bottom: -20%;
	background-size: cover; background-position: center;
	will-change: transform;
}
.section-hours { padding: 150px 0 130px; }
.section-hours::after {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%);
}
.hours-inner { z-index: 2; max-width: 560px; }
.section-hours .script-title { color: #fff; font-size: 52px; text-transform: uppercase; letter-spacing: 1px; }
.hours-list { list-style: none; margin: 0; padding: 0; font-family: var(--font-script); font-size: 20px; line-height: 1.7; }
.hours-list li { display: flex; justify-content: center; gap: .4em; }
.hours-list .closed { font-style: italic; color: var(--gold-light); }
.hours-note { margin-top: 18px; font-family: var(--font-script); font-size: 17px; }
.section-hours, .section-hours * { text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }

/* ---------- Values ---------- */
.section-values { background-size: cover; background-position: center; }
.section-values .decor-title { max-width: 900px; }
.values {
	max-width: 900px; margin: 40px auto 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.value { padding: 0 10px; }
.value img {
	width: 100%; max-width: 160px; margin: 0 auto 10px;
	border-radius: 50%; aspect-ratio: 1; object-fit: cover;
	transition: transform .3s ease;
}
.value:hover img { transform: scale(1.05); }
.value-name { font-family: var(--font-script-alt); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ink); padding: 8px 0; }
.value-info { font-family: var(--font-sans); font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--gold-dark); }

/* ---------- Ethics ---------- */
.section-ethics { background: #fff; padding: 60px 0 90px; }
.collage { width: 100%; max-width: 600px; }

/* ---------- Signage ---------- */
.section-signage img { width: 100%; height: auto; }

/* ---------- Contact ---------- */
.section-contact { padding: 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.map { align-self: stretch; min-height: 400px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85); transition: filter .4s ease; }
.map:hover iframe { filter: none; }
.contact-info { padding: 60px 24px; }
.contact-info .separator { height: 30px; }
.contact-info address, .contact-info p { font-family: var(--font-body); font-style: normal; font-size: 16px; line-height: 1.65; margin-bottom: 10px; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--gold); }
.directions {
	display: inline-block; margin-top: 6px; padding: 10px 26px;
	border: 1px solid var(--gold); border-radius: 30px;
	color: var(--gold-dark); font-family: var(--font-sans); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 14px;
	transition: background .25s ease, color .25s ease;
}
.contact-info a.directions:hover { background: var(--gold); color: #fff; }

/* ---------- Jobs ---------- */
.section-jobs { border-top: 1px solid #ebebeb; padding: 40px 0 70px; }
.section-jobs h3 { font-family: var(--font-sans); font-weight: 400; font-size: 32px; margin-bottom: 26px; }
.job-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px; }
.joblink { font-family: var(--font-body); color: var(--ink); text-underline-offset: 3px; }
.joblink:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #000; color: #919191; }
.site-footer::before {
	content: ''; position: absolute; top: -30px; left: 50%;
	width: 80px; height: 80px; margin-left: -40px; border-radius: 50%; background: #000;
}
.site-footer::after {
	content: ''; position: absolute; top: 0; left: 50%;
	width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold);
}
.footer-inner { padding: 70px 24px 50px; }
.footer-title { color: #fff; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-contacts li { padding: 4px 20px; position: relative; }
.footer-contacts li + li::before {
	content: ''; position: absolute; top: 50%; left: 0;
	width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: #919191;
}
.footer-contacts a { color: #919191; text-decoration: none; transition: color .3s ease; }
.footer-contacts a:hover { color: var(--gold); }
.footer-bottom { background: #111; padding: 30px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.copyright { font-family: var(--font-script-alt); color: #fff; letter-spacing: 1px; }
.copyright span { color: var(--gold); }
.to-top {
	position: relative; overflow: hidden;
	font-family: var(--font-script-alt); font-size: 18px; color: var(--gold); text-decoration: none;
}
.to-top-label { display: inline-block; transition: opacity .2s ease, transform .2s ease; }
.to-top-icon { position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -11px; opacity: 0; transform: translateY(100%); transition: opacity .3s ease, transform .3s ease; }
.to-top:hover .to-top-label { opacity: 0; transform: translateY(-100%); }
.to-top:hover .to-top-icon { opacity: 1; transform: none; }

/* ---------- Generic pages (e.g. Specials) ---------- */
.page-main { padding: calc(var(--header-h-sticky) + 60px) 0 90px; background: var(--cream) url(assets/img/texture3.jpg) center / cover; min-height: 70vh; }
.page-content { max-width: 900px; }
.entry-content { text-align: left; font-family: var(--font-body); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
	.main-nav a { padding: 10px 11px; font-size: 15px; }
	.trp-floating-switcher { --left: 26% !important; }
}

@media (max-width: 960px) {
	:root { --header-h: 76px; --header-h-sticky: 64px; }
	.site-header { background: rgba(81, 115, 146, .85); }
	.logo img, .site-header.is-sticky .logo img { width: 100px; }
	.nav-toggle { display: block; }
	.main-navigation {
		position: absolute; top: 100%; left: 0; right: 0;
		background: rgba(81, 115, 146, .97);
		max-height: 0; overflow: hidden;
		transition: max-height .35s ease;
	}
	.nav-open .main-navigation { max-height: 80vh; }
	.main-nav { flex-direction: column; gap: 0; padding: 8px 0 16px; }
	.main-nav a { padding: 14px 24px; font-size: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
	.main-nav a::after { display: none; }
	.main-nav a.is-current { color: var(--gold-light); }
	.trp-floating-switcher { --left: calc(50% - 20px) !important; }

	.two-col { grid-template-columns: 1fr; gap: 36px; }
	.section-ethics .col-media { order: 2; }
	.collage { margin: 0 auto; }
	.values { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
	.hero-title h1 { font-size: 50px; }
	.contact-grid { grid-template-columns: 1fr; }
	.contact-info { order: -1; padding: 60px 24px 40px; }
	.map { min-height: 340px; }
}

@media (max-width: 600px) {
	.section { padding: 64px 0; }
	.section-intro { padding: 70px 0 110px; }
	.section-hours { padding: 120px 0 100px; }
	.container { padding-left: 20px; padding-right: 20px; }
	.script-title { font-size: 44px; }
	.section-hours .script-title { font-size: 38px; }
	.decor-title { font-size: 15px; margin: 6px 36px 0; }
	.decor-title::before, .decor-title::after { width: 20px; }
	.decor-title::before { left: -32px; }
	.decor-title::after { right: -32px; }
	.hero-title h1 { font-size: 40px; }
	.hero-tagline { font-size: 16px; }
	.brush { height: 50px; }
	.brush-top { height: 46px; }
	.col-text .text p { font-size: 16px; }
	.carousel-btn { opacity: 1; width: 34px; height: 34px; }
	.value img { max-width: 130px; }
	.value-name { font-size: 22px; }
	.value-info { font-size: 15px; }
	.section-signage img { height: 240px; object-fit: cover; }
	.section-jobs h3 { font-size: 26px; }
	.footer-contacts { flex-direction: column; }
	.footer-contacts li + li::before { display: none; }
	.footer-bottom-inner { flex-direction: column; }
}

@media (max-width: 380px) {
	.values { grid-template-columns: 1fr; }
}
