/* ==========================================================================
   3Winks Production — theme styles
   Colours & fonts come from theme.json presets, so every look
   (Ivory & Gold / Midnight Cinema / Sindoor) restyles everything below.
   ========================================================================== */

:root {
	--tw-ease: var(--wp--custom--ease, cubic-bezier(.2,.7,.1,1));
	--tw-header-h: var(--wp--custom--header-height, 84px);
	--tw-admin: var(--wp-admin--admin-bar--height, 0px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--white); }
img, video { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > main { min-height: 60vh; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.screen-reader-text:focus { clip: auto; }

/* --- Header ------------------------------------------------------------- */
.tw-header {
	position: sticky;
	top: var(--tw-admin);
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent);
	transition: background .5s var(--tw-ease), color .5s var(--tw-ease), border-color .5s var(--tw-ease), transform .5s var(--tw-ease);
}
.tw-header--overlay {
	position: fixed;
	left: 0; right: 0;
	background: transparent;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	border-bottom-color: transparent;
	color: #fff;
}
.tw-header--overlay a, .tw-header--overlay .wp-block-site-title a { color: inherit; }
.tw-header--overlay .wp-block-navigation__responsive-container-open { color: #fff; }
body.tw-scrolled .tw-header--overlay {
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	color: var(--wp--preset--color--contrast);
	border-bottom-color: color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent);
}
body.tw-scrolled .tw-header--overlay .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--contrast); }
body.tw-hide-header .tw-header { transform: translateY(-110%); }
.tw-header .wp-block-site-logo img { transition: filter .5s var(--tw-ease); }
.tw-header--overlay .wp-block-site-logo img { filter: brightness(0) invert(1); }
body.tw-scrolled .tw-header--overlay .wp-block-site-logo img { filter: none; }

.tw-header .wp-block-navigation-item__content { position: relative; padding-block: .35em; }
.tw-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--tw-ease);
}
.tw-header .wp-block-navigation-item__content:hover::after,
.tw-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: var(--wp--preset--spacing--50) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xxl);
	text-transform: none; letter-spacing: -0.01em;
}

/* --- Shutter ("wink") intro & page transitions ------------------------------ */
.tw-shutter { position: fixed; inset: 0; z-index: 9999; pointer-events: none; animation: tw-shutter-done 0s linear 2s forwards; }
.tw-seen .tw-shutter { animation-delay: .9s; }
.tw-shutter.is-closing { animation: none; visibility: visible; }
@keyframes tw-shutter-done { to { visibility: hidden; } }
.tw-shutter__lid {
	position: absolute; left: 0; right: 0; height: 50.5%;
	background: var(--wp--preset--color--contrast);
	transition: transform 1s var(--tw-ease);
}
.tw-shutter__lid--top { top: 0; }
.tw-shutter__lid--bottom { bottom: 0; }
.tw-shutter__mark {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	font-family: var(--wp--preset--font-family--display); font-style: italic;
	font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: .04em;
	color: var(--wp--preset--color--base);
	transition: opacity .4s ease, transform 1s var(--tw-ease);
}
/* Opens on its own via CSS (works even if JS fails). Repeat visits in a session open faster. */
.tw-shutter__lid--top { animation: tw-lid-up 1.15s var(--tw-ease) .7s both; }
.tw-shutter__lid--bottom { animation: tw-lid-down 1.15s var(--tw-ease) .7s both; }
.tw-shutter__mark { animation: tw-mark .7s ease .45s both; }
.tw-seen .tw-shutter__lid { animation-delay: .05s; animation-duration: .8s; }
.tw-seen .tw-shutter__mark { display: none; }
@keyframes tw-lid-up { to { transform: translateY(-101%); } }
@keyframes tw-lid-down { to { transform: translateY(101%); } }
@keyframes tw-mark { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) scale(.92); } }
/* Leaving the page: lids close, then the next page opens them again */
.tw-shutter.is-closing .tw-shutter__lid { animation: none; transform: none; transition: transform .5s var(--tw-ease); }
.tw-shutter.is-closing .tw-shutter__lid--top { animation: tw-lid-close-top .5s var(--tw-ease) both; }
.tw-shutter.is-closing .tw-shutter__lid--bottom { animation: tw-lid-close-bottom .5s var(--tw-ease) both; }
@keyframes tw-lid-close-top { from { transform: translateY(-101%); } to { transform: none; } }
@keyframes tw-lid-close-bottom { from { transform: translateY(101%); } to { transform: none; } }
.tw-shutter.is-closing .tw-shutter__mark { display: none; }

/* --- Scroll reveal ---------------------------------------------------------- */
.tw-motion .tw-r { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s var(--tw-ease), transform 1.1s var(--tw-ease); transition-delay: var(--tw-d, 0s); }
.tw-motion .tw-r.is-in { opacity: 1; transform: none; }
.tw-motion .tw-r-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--tw-ease); transition-delay: var(--tw-d, 0s); }
.tw-motion .tw-r-img img { transform: scale(1.12); transition: transform 2s var(--tw-ease); transition-delay: var(--tw-d, 0s); }
.tw-motion .tw-r-img.is-in { clip-path: inset(0 0 0 0); }
.tw-motion .tw-r-img.is-in img { transform: scale(1); }
.tw-motion .tw-words .tw-w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .9s var(--tw-ease), transform .9s var(--tw-ease); transition-delay: calc(var(--i) * 60ms); }
.tw-motion .tw-words.is-in .tw-w { opacity: 1; transform: none; }
.editor-styles-wrapper .tw-r, .editor-styles-wrapper .tw-r-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* --- Paragraph styles ------------------------------------------------------- */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--xs) !important;
	text-transform: uppercase; letter-spacing: .3em; font-weight: 600;
	color: var(--wp--preset--color--accent);
}
.is-style-eyebrow::before { content: ""; display: inline-block; width: 2.25em; height: 1px; background: currentColor; vertical-align: middle; margin-right: 1em; }
.has-text-align-center.is-style-eyebrow::after { content: ""; display: inline-block; width: 2.25em; height: 1px; background: currentColor; vertical-align: middle; margin-left: 1em; }
.is-style-lede {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.35; letter-spacing: -.005em;
}
.is-style-signature {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic; font-size: var(--wp--preset--font-size--xxl);
	color: var(--wp--preset--color--accent); line-height: 1.1;
}

/* --- Heading styles --------------------------------------------------------- */
.is-style-outline-text { color: transparent !important; -webkit-text-stroke: 1px var(--wp--preset--color--contrast); }
.has-white-color.is-style-outline-text, .has-base-color.is-style-outline-text { -webkit-text-stroke-color: currentColor; color: transparent !important; }
h1 em, h2 em, h3 em, .is-style-split-italic em { font-style: italic; color: var(--wp--preset--color--accent); }
.has-white-color em, .has-base-color em { color: inherit; }

/* --- Image styles ----------------------------------------------------------- */
.wp-block-image.is-style-wink-zoom { overflow: hidden; }
.wp-block-image.is-style-wink-zoom img { transition: transform 1.8s var(--tw-ease), filter 1.2s var(--tw-ease); }
.wp-block-image.is-style-wink-zoom:hover img { transform: scale(1.06); }
.wp-block-image.is-style-polaroid { background: #fff; padding: 12px 12px 54px; box-shadow: var(--wp--preset--shadow--print); transform: rotate(var(--tw-tilt, -2deg)); transition: transform .8s var(--tw-ease); }
.wp-block-image.is-style-polaroid:hover { transform: rotate(0) translateY(-4px); }
.wp-block-image.is-style-polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.15rem; color: #333; margin: 0; }
.wp-block-image.is-style-polaroid { position: relative; }
.wp-block-image.is-style-arch img { border-radius: 1000px 1000px 3px 3px; }
.wp-block-image.is-style-arch.tw-r-img { clip-path: none !important; }

/* --- Cover styles ----------------------------------------------------------- */
.wp-block-cover.is-style-ken-burns .wp-block-cover__image-background,
.wp-block-cover.is-style-ken-burns .wp-block-cover__video-background { animation: tw-kenburns 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes tw-kenburns { from { transform: scale(1); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.wp-block-cover.is-style-parallax-soft { overflow: hidden; }
.wp-block-cover.is-style-parallax-soft .wp-block-cover__image-background { will-change: transform; height: 120%; top: -10%; }

/* YouTube embed as full-bleed cover background (pattern: hero film) */
.tw-yt-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tw-yt-bg iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); border: 0; }

/* --- Group styles ----------------------------------------------------------- */
.is-style-grain { position: relative; isolation: isolate; }
.is-style-grain::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.is-style-card { background: var(--wp--preset--color--base-2); padding: var(--wp--preset--spacing--50); border-radius: var(--wp--custom--radius); }
.is-style-sticky { position: sticky; top: calc(var(--tw-header-h) + var(--tw-admin) + 2rem); align-self: flex-start; }

.is-style-marquee { overflow: hidden; display: block !important; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.is-style-marquee .tw-marquee-track { display: inline-flex; gap: var(--wp--preset--spacing--50); align-items: center; animation: tw-marquee var(--tw-marquee-speed, 45s) linear infinite; padding-right: var(--wp--preset--spacing--50); }
.is-style-marquee .tw-marquee-track > * { margin: 0 !important; flex: 0 0 auto; white-space: nowrap; }
.is-style-marquee:hover .tw-marquee-track { animation-play-state: paused; }
@keyframes tw-marquee { to { transform: translateX(-50%); } }

/* --- Buttons ---------------------------------------------------------------- */
.wp-block-button__link { transition: background-color .45s var(--tw-ease), color .45s var(--tw-ease), border-color .45s var(--tw-ease), transform .45s var(--tw-ease); }
.wp-block-button__link:active { transform: scale(.98); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: currentColor; border-color: currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-arrow > .wp-block-button__link {
	background: transparent !important; color: currentColor !important; border: 0 !important; border-radius: 0;
	padding: 0 0 .5em !important; box-shadow: inset 0 -1px 0 currentColor;
}
.wp-block-button.is-style-arrow > .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: .9em; transition: transform .45s var(--tw-ease); }
.wp-block-button.is-style-arrow > .wp-block-button__link:hover::after { transform: translateX(6px); }
.wp-block-button.is-style-ghost > .wp-block-button__link { background: rgba(255,255,255,.04) !important; color: #fff !important; border-color: rgba(255,255,255,.6) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wp-block-button.is-style-ghost > .wp-block-button__link:hover { background: #fff !important; color: #111 !important; border-color: #fff !important; }

/* --- Gallery styles --------------------------------------------------------- */
.wp-block-gallery.is-style-masonry { display: block !important; columns: 3 260px; column-gap: var(--wp--style--gallery-gap-default, 1rem); }
.wp-block-gallery.is-style-masonry > .wp-block-image { width: 100% !important; margin: 0 0 var(--wp--style--gallery-gap-default, 1rem) !important; break-inside: avoid; display: block; }
.wp-block-gallery.is-style-masonry > .wp-block-image img { height: auto !important; width: 100% !important; object-fit: initial !important; }
.wp-block-gallery.is-style-film-strip { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.wp-block-gallery.is-style-film-strip > .wp-block-image { flex: 0 0 min(72vw, 460px) !important; width: auto !important; scroll-snap-align: start; }
.wp-block-gallery.is-style-film-strip > .wp-block-image img { aspect-ratio: 4/5; object-fit: cover; }

/* --- Separator, list, columns ---------------------------------------------- */
.wp-block-separator.is-style-ornament { border: 0 !important; background: none !important; height: auto; text-align: center; color: var(--wp--preset--color--accent); opacity: 1; }
.wp-block-separator.is-style-ornament::before { content: "✦"; font-size: 1rem; letter-spacing: 1.2em; padding-left: 1.2em; }
.wp-block-separator.is-style-ornament::after { content: none; }
ul.is-style-checks { list-style: none; padding-left: 0; }
ul.is-style-checks li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
ul.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .75em; width: 1em; height: 1px; background: var(--wp--preset--color--accent); }
.wp-block-columns.is-style-divided > .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--line); padding-left: var(--wp--preset--spacing--40); }
@media (max-width: 781px) { .wp-block-columns.is-style-divided > .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--40); } }

/* --- Details / FAQ ---------------------------------------------------------- */
.wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--xl); line-height: 1.25; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-weight: 300; font-size: 1.6rem; line-height: 1; transition: transform .4s var(--tw-ease); color: var(--wp--preset--color--accent); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--contrast-2); max-width: 62ch; }

/* --- Utilities you can add in Advanced → Additional CSS class --------------- */
.tw-num { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--xxxl); line-height: 1; color: var(--wp--preset--color--accent); font-style: italic; }
.tw-full-h { min-height: 100svh !important; }
.tw-tilt-l { --tw-tilt: -3deg; } .tw-tilt-r { --tw-tilt: 3deg; }
.tw-hover-lift { transition: transform .6s var(--tw-ease), box-shadow .6s var(--tw-ease); }
.tw-hover-lift:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--soft); }
.tw-scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: .75rem; font-size: var(--wp--preset--font-size--xs); letter-spacing: .3em; text-transform: uppercase; }
.tw-scroll-cue::after { content: ""; width: 1px; height: 54px; background: currentColor; transform-origin: top; animation: tw-cue 2.2s var(--tw-ease) infinite; }
@keyframes tw-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.tw-story-card { position: relative; overflow: hidden; }
.tw-story-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.tw-story-card .wp-block-post-featured-image img { aspect-ratio: 4/5; object-fit: cover; transition: transform 1.8s var(--tw-ease); }
.tw-story-card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.tw-price { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--xxl); line-height: 1; }
.tw-badge { display: inline-block; padding: .4em .9em; border: 1px solid currentColor; border-radius: 999px; font-size: var(--wp--preset--font-size--xs); letter-spacing: .2em; text-transform: uppercase; }
.tw-stars { color: var(--wp--preset--color--accent); letter-spacing: .25em; }

/* Film embed frame */
.tw-film .wp-block-embed__wrapper, .tw-film iframe { border-radius: var(--wp--custom--radius); overflow: hidden; }
.tw-film { box-shadow: var(--wp--preset--shadow--soft); }

/* --- Floating WhatsApp ------------------------------------------------------ */
.tw-float-wa {
	position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 60;
	display: inline-flex; align-items: center; gap: .65rem;
	padding: .8rem 1.15rem .8rem .9rem; border-radius: 999px;
	background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--xs); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; text-decoration: none;
	box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
	transition: transform .5s var(--tw-ease), background .4s ease;
}
.tw-float-wa svg { color: #25D366; flex: none; }
.tw-float-wa:hover { transform: translateY(-3px); color: var(--wp--preset--color--base); }
@media (max-width: 600px) { .tw-float-wa span { display: none; } .tw-float-wa { padding: .85rem; } }

/* --- Footer ----------------------------------------------------------------- */
.tw-footer a { text-decoration: none; }
.tw-footer a:hover { text-decoration: underline; }
.tw-footer .tw-mega { font-family: var(--wp--preset--font-family--display); line-height: .85; letter-spacing: -.03em; }

/* --- Posts / single story --------------------------------------------------- */
.wp-block-post-content > .wp-block-image, .wp-block-post-content > .wp-block-gallery { margin-block: var(--wp--preset--spacing--50); }
.single-post .wp-block-post-content > p:first-of-type::first-letter { font-family: var(--wp--preset--font-family--display); float: left; font-size: 4.6em; line-height: .8; padding: .08em .12em 0 0; color: var(--wp--preset--color--accent); }
.single-post .wp-block-post-content > p { font-size: var(--wp--preset--font-size--lg); }

/* --- Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.tw-shutter { display: none !important; }
	.tw-motion .tw-r, .tw-motion .tw-r-img, .tw-motion .tw-words .tw-w { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.tw-motion .tw-r-img img { transform: none !important; }
}

/* --- Small helpers ---------------------------------------------------------- */
.tw-dim { opacity: .62; }
.tw-footer-bottom { border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.tw-footer .tw-mega a { text-decoration: none; }
.tw-footer .tw-mega a:hover { color: var(--wp--preset--color--accent); }
body.tw-scrolled .tw-header--overlay .is-style-ghost > .wp-block-button__link { color: var(--wp--preset--color--contrast) !important; border-color: var(--wp--preset--color--contrast) !important; background: transparent !important; }
body.tw-scrolled .tw-header--overlay .is-style-ghost > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; }
@media (max-width: 781px) { .tw-hide-mobile { display: none !important; } }
@media (min-width: 782px) { .tw-only-mobile { display: none !important; } }
@media (min-width: 782px) { .tw-offset { margin-top: var(--wp--preset--spacing--60) !important; } }
.tw-play a { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); color: #fff !important; text-decoration: none; font-size: 1.4rem; padding-left: 6px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255,255,255,.08); transition: transform .6s var(--tw-ease), background .4s ease; }
.tw-play a:hover { transform: scale(1.08); background: rgba(255,255,255,.2); }
.tw-film-cover .wp-block-cover__image-background { transition: transform 2s var(--tw-ease); }
.tw-film-cover:hover .wp-block-cover__image-background { transform: scale(1.04); }

/* Full-bleed sections sit flush against each other and the footer */
.wp-site-blocks > footer, .wp-site-blocks > main + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull + .alignfull, .wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }
.page-template-page-landing .wp-site-blocks > main { margin-block-start: 0; }
.tw-header .wp-block-site-title { white-space: nowrap; }
.tw-header .wp-block-button__link { white-space: nowrap; }
