/*
Theme Name: Etoile Muse
Theme URI: https://etoilemuse.com
Author: Etoile Muse
Description: An elegant WordPress block theme for Etoile Muse talent agency. Features warm beige backgrounds, gold accents, and refined serif typography evoking cinematic sophistication.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etoile-muse
Tags: full-site-editing, block-patterns, wide-blocks, custom-colors, custom-fonts, editor-style
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ---------- Base typography polish ---------- */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
}

/* ---------- Link underline treatments ---------- */

.wp-site-blocks a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):not(.wp-block-site-title a) {
	text-decoration: none;
	transition: var(--wp--custom--transition--default);
}

.wp-site-blocks a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):not(.wp-block-site-title a):hover {
	color: var(--wp--preset--color--gold);
}

/* ---------- Navigation polish ---------- */

.wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	opacity: 0.85;
	transition: var(--wp--custom--transition--default);
}

.wp-block-navigation .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	width: 0;
	height: 1px;
	background-color: var(--wp--preset--color--gold);
	transition: var(--wp--custom--transition--smooth);
	transform: translateX(-50%);
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	opacity: 1;
	color: var(--wp--preset--color--gold);
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after {
	width: 100%;
}

/* Sticky header support */
.site-header-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(15, 7, 5, 0.65);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(253, 246, 236, 0.1);
	transition: var(--wp--custom--transition--default);
}

/* ---------- Button variants ---------- */

.wp-block-button__link {
	transition: var(--wp--custom--transition--smooth);
	position: relative;
	overflow: hidden;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--gold-glow);
}

/* Outline style — gold border on transparent */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--cream-white);
	background: rgba(201, 168, 76, 0.05);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--espresso);
}

/* Secondary / subtle button variant */
.wp-block-button.is-style-secondary .wp-block-button__link {
	border: 1.5px solid rgba(253, 246, 236, 0.4);
	color: var(--wp--preset--color--cream-white);
	background: transparent;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--cream-white);
	background: var(--wp--preset--color--cream-white);
	color: var(--wp--preset--color--espresso);
}

/* Buttons on light backgrounds */
.has-warm-cream-background-color .wp-block-button__link,
.has-cream-white-background-color .wp-block-button__link,
.has-parchment-background-color .wp-block-button__link {
	color: var(--wp--preset--color--espresso);
}

.has-warm-cream-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-cream-white-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-parchment-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--espresso);
	border-color: var(--wp--preset--color--gold);
}

.has-warm-cream-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-cream-white-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-parchment-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--espresso);
}

/* ---------- Hero section ---------- */

.hero-section .wp-block-cover {
	min-height: 100vh !important;
}

.hero-section .wp-block-cover__image-background {
	animation: etoile-subtle-zoom 20s infinite alternate linear;
}

@keyframes etoile-subtle-zoom {
	0% { transform: scale(1.05); }
	100% { transform: scale(1.1); }
}

.hero-kicker {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	letter-spacing: var(--wp--custom--letter-spacing--widest);
	opacity: 0.9;
}

.hero-headline {
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(176, 112, 64, 0.3);
	text-indent: 0.15em;
}

.hero-description {
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	opacity: 0.88;
}

/* ---------- Section headings — decorative accent lines ---------- */

.section-heading {
	position: relative;
	display: inline-block;
}

.section-heading::after {
	content: '';
	display: block;
	width: 3rem;
	height: 1px;
	background: var(--wp--preset--color--gold);
	margin-top: var(--wp--preset--spacing--20);
}

.section-heading-center::after {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Image treatments ---------- */

.wp-block-image img {
	transition: var(--wp--custom--transition--smooth);
}

.wp-block-image:hover img {
	transform: scale(1.02);
}

/* Square portrait crops for team/stars cards */
.portrait-square img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

/* Film project card thumbnails */
.project-card img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

/* ---------- Card treatments ---------- */

.card-warm {
	background: var(--wp--preset--color--cream-white);
	border-radius: 4px;
	overflow: hidden;
	transition: var(--wp--custom--transition--smooth);
	box-shadow: var(--wp--preset--shadow--soft);
}

.card-warm:hover {
	box-shadow: var(--wp--preset--shadow--medium);
	transform: translateY(-4px);
}

/* Card on dark backgrounds */
.card-dark {
	background: rgba(44, 26, 14, 0.6);
	border: 1px solid rgba(201, 168, 76, 0.15);
	border-radius: 4px;
	overflow: hidden;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: var(--wp--custom--transition--smooth);
}

.card-dark:hover {
	border-color: rgba(201, 168, 76, 0.35);
	box-shadow: var(--wp--preset--shadow--gold-glow);
	transform: translateY(-4px);
}

/* ---------- Stat counters ---------- */

.stat-counter {
	text-align: center;
}

.stat-counter .stat-number {
	font-family: var(--wp--preset--font-family--accent);
	font-size: var(--wp--preset--font-size--display);
	color: var(--wp--preset--color--gold);
	line-height: var(--wp--custom--line-height--tight);
	font-weight: 400;
}

.stat-counter .stat-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
	margin-top: var(--wp--preset--spacing--10);
}

/* ---------- Genre / meta tags ---------- */

.genre-tag {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 99px;
	padding: 0.25rem 0.85rem;
	line-height: 1.4;
}

/* ---------- Date badges for news cards ---------- */

.date-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--espresso);
	border-radius: 4px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	line-height: var(--wp--custom--line-height--tight);
	min-width: 3.5rem;
}

.date-badge .date-day {
	font-family: var(--wp--preset--font-family--accent);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

.date-badge .date-month {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.7rem;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
}

/* ---------- Read more links ---------- */

.read-more-link {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--terracotta);
	text-decoration: none;
	transition: var(--wp--custom--transition--default);
	position: relative;
}

.read-more-link::after {
	content: ' \2192';
	transition: var(--wp--custom--transition--default);
}

.read-more-link:hover {
	color: var(--wp--preset--color--gold);
}

.read-more-link:hover::after {
	padding-left: 0.25rem;
}

/* ---------- Contact form styling ---------- */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	background: var(--wp--preset--color--cream-white);
	border: 1px solid var(--wp--preset--color--parchment);
	border-radius: 4px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--espresso);
	transition: var(--wp--custom--transition--default);
	line-height: var(--wp--custom--line-height--body);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--gold);
	box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

.contact-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.contact-form label {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
	margin-bottom: var(--wp--preset--spacing--10);
}

.contact-form .submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2.5rem;
	border-radius: 99px;
	border: 1.5px solid var(--wp--preset--color--gold);
	background: transparent;
	color: var(--wp--preset--color--espresso);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
	cursor: pointer;
	transition: var(--wp--custom--transition--smooth);
}

.contact-form .submit-btn:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--espresso);
	box-shadow: var(--wp--preset--shadow--gold-glow);
	transform: translateY(-2px);
}

/* ---------- Social media icons ---------- */

.social-icons {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: center;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 50%;
	color: var(--wp--preset--color--gold);
	transition: var(--wp--custom--transition--smooth);
	text-decoration: none;
}

.social-icons a:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--espresso);
}

.wp-block-social-links .wp-social-link {
	transition: var(--wp--custom--transition--smooth);
}

.wp-block-social-links .wp-social-link:hover {
	transform: translateY(-2px);
	opacity: 1;
}

/* ---------- Separator / divider refinement ---------- */

.wp-block-separator {
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 5rem;
}

.wp-block-separator.is-style-dots::before {
	color: var(--wp--preset--color--gold);
}

/* ---------- Cover overlay refinement ---------- */

.wp-block-cover .wp-block-cover__inner-container {
	z-index: 2;
}

/* ---------- Columns responsive ---------- */

@media (max-width: 781px) {
	.wp-block-columns.team-cards {
		flex-wrap: wrap;
	}

	.wp-block-columns.team-cards .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--30)) !important;
	}
}

@media (max-width: 600px) {
	.wp-block-columns.team-cards .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Quote accent polish ---------- */

.wp-block-quote {
	position: relative;
}

.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--gold);
	display: block;
	margin-top: var(--wp--preset--spacing--20);
}

.wp-block-quote cite::before {
	content: '\2014\00a0';
}

/* ---------- Pullquote refinement ---------- */

.wp-block-pullquote blockquote::before {
	content: '\201C';
	font-family: var(--wp--preset--font-family--accent);
	font-size: 4rem;
	color: var(--wp--preset--color--gold);
	opacity: 0.4;
	line-height: 1;
	display: block;
	margin-bottom: var(--wp--preset--spacing--10);
}

/* ---------- Footer styling ---------- */

.site-footer a {
	transition: var(--wp--custom--transition--default);
}

.site-footer a:hover {
	color: var(--wp--preset--color--gold);
}

.site-footer .footer-credit {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--warm-gray);
	opacity: 0.8;
}

.site-footer .footer-credit a {
	color: var(--wp--preset--color--gold);
	text-decoration: none;
}

.site-footer .footer-credit a:hover {
	color: var(--wp--preset--color--cream-white);
}

/* ---------- Gold accent rule — reusable horizontal line ---------- */

.gold-rule {
	width: 3rem;
	height: 1px;
	background: var(--wp--preset--color--gold);
	border: none;
}

.gold-rule-center {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Elegant list styling ---------- */

.elegant-list li {
	padding-block: var(--wp--preset--spacing--10);
	border-bottom: 1px solid rgba(201, 168, 76, 0.15);
	list-style: none;
}

.elegant-list li:last-child {
	border-bottom: none;
}

.elegant-list li::before {
	content: '\2022';
	color: var(--wp--preset--color--gold);
	margin-right: 0.5rem;
}

/* ---------- Image hover overlay for portfolio/project images ---------- */

.image-hover-overlay {
	position: relative;
	overflow: hidden;
}

.image-hover-overlay::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(44, 26, 14, 0.5) 0%, transparent 50%);
	opacity: 0;
	transition: var(--wp--custom--transition--smooth);
}

.image-hover-overlay:hover::after {
	opacity: 1;
}

/* ---------- Scroll indicator animation (hero) ---------- */

@keyframes etoile-scroll-hint {
	0%, 100% { transform: translateY(0); opacity: 0.6; }
	50% { transform: translateY(8px); opacity: 1; }
}

.scroll-indicator {
	animation: etoile-scroll-hint 2s ease-in-out infinite;
	color: var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Selection color ---------- */

::selection {
	background: rgba(201, 168, 76, 0.25);
	color: var(--wp--preset--color--espresso);
}

/* ---------- Focus accessibility ---------- */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* ---------- Loop layout utilities ---------- */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid rgba(201, 168, 76, 0.15);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--gold);
	opacity: 0.15;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: 50%;
	background: var(--wp--preset--color--warm-cream);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}