/* Eros Talent theme styles. Tokens come from theme.json (--wp--preset--*). */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
:where(p, li, figcaption) { max-width: var(--wp--custom--measure); }
:where(.has-text-align-center) :is(p, li) { margin-inline: auto; }
h1, h2, h3 { text-wrap: balance; }
h2 { margin-block-end: var(--wp--preset--spacing--30); }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }
img { height: auto; }
::selection { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--velvet); }

/* Dark sections: links and buttons adapt */
.has-velvet-background-color, .has-espresso-background-color { color: var(--wp--preset--color--cream); }
.has-velvet-background-color a:not(.wp-element-button):hover,
.has-espresso-background-color a:not(.wp-element-button):hover { color: var(--wp--preset--color--gold-light); }

/* ---------- Header ---------- */
.eros-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  min-height: var(--wp--custom--header-height);
  display: flex; align-items: center;
  color: var(--wp--preset--color--cream);
  background: rgba(28,23,20,.94);
  transition: background .3s ease, box-shadow .3s ease;
}
body:has(main .eros-hero:first-child) .eros-header:not(.is-scrolled),
body:has(main .wp-block-post-content > .eros-hero:first-child) .eros-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(28,23,20,.75), rgba(28,23,20,0));
}
.eros-header > .wp-block-group { width: 100%; }
.eros-header.is-scrolled {
  background: rgba(28,23,20,.94);
  box-shadow: 0 1px 0 rgba(185,167,143,.18);
  backdrop-filter: blur(8px);
}
.admin-bar .eros-header { top: var(--wp-admin--admin-bar--height, 32px); }
.eros-brand { display: inline-flex; color: var(--wp--preset--color--gold-light); text-decoration: none; }
.eros-brand__mark { height: 2.6rem; width: auto; fill: currentColor; display: block; }
.eros-brand--footer .eros-brand__mark { height: 3.2rem; margin-block-end: 1rem; }
.eros-nav a { color: inherit; }
.eros-nav .wp-block-navigation-item__content { padding: .25rem 0; }
.eros-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--wp--preset--color--gold); }
.eros-header .eros-header__cta { margin: 0; }
@media (max-width: 1100px) {
  .eros-header .eros-header__cta { display: none !important; }
}
.eros-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--cream); }
/* Mobile overlay menu: velvet, serif, large */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--velvet); color: var(--wp--preset--color--cream);
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--x-large); line-height: 1.3;
}
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: inherit; }
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

/* Page title block on standard pages sits under the fixed header */
.eros-page-title h1 { max-width: 26ch; }

/* ---------- Hero ---------- */
.eros-hero { min-height: 92svh; display: grid; align-items: end; position: relative; isolation: isolate; }
.eros-hero .wp-block-cover__inner-container { width: 100%; }
.eros-hero .wp-block-cover__image-background { object-position: var(--eros-focus, 50% 35%); }
.eros-hero h1 { max-width: 16ch; font-size: var(--wp--preset--font-size--display); line-height: 1.02; letter-spacing: -0.015em; text-shadow: 0 2px 24px rgba(28,23,20,.55); }
.eros-hero .eros-hero__lede, .eros-hero .wp-block-buttons { position: relative; }
.eros-hero .eros-hero__lede { text-shadow: 0 1px 12px rgba(28,23,20,.6); }
/* Home hero: split. The portrait photo fills the right 56% of the band, the headline sits on velvet. */
.eros-hero--home { background: var(--wp--preset--color--velvet); }
.eros-hero--home .wp-block-cover__image-background { left: 44% !important; width: 56% !important; object-position: 50% 22% !important; }
.eros-hero--home .wp-block-cover__background { background: linear-gradient(90deg, #1C1714 0%, #1C1714 44%, rgba(28,23,20,0) 58%), linear-gradient(180deg, rgba(28,23,20,.3) 0%, rgba(28,23,20,0) 35%, rgba(28,23,20,.75) 85%, #1C1714 100%) !important; }
.eros-hero--home h1 { max-width: 12ch; }
@media (max-width: 860px) {
  .eros-hero--home { min-height: 100svh; }
  .eros-hero--home .wp-block-cover__image-background { left: 0 !important; width: 100% !important; height: 58% !important; object-position: 50% 15% !important; }
  .eros-hero--home .wp-block-cover__background { background: linear-gradient(180deg, rgba(28,23,20,.35) 0%, rgba(28,23,20,0) 25%, rgba(28,23,20,.2) 40%, #1C1714 58%) !important; }
}
.eros-hero .eros-hero__lede { max-width: 42ch; font-size: var(--wp--preset--font-size--large); font-weight: 300; line-height: 1.5; }
.eros-hero__inner > * { opacity: 0; transform: translateY(14px); animation: eros-rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.eros-hero__inner > :nth-child(2) { animation-delay: .12s; }
.eros-hero__inner > :nth-child(3) { animation-delay: .24s; }
@keyframes eros-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .eros-hero__inner > * { opacity: 1; transform: none; animation: none; } }

/* Secondary page hero: shorter */
.eros-hero--page { min-height: 62svh; }
.eros-hero--page h1 { font-size: var(--wp--preset--font-size--xx-large); max-width: 18ch; }

/* ---------- Statement (large serif paragraph) ---------- */
.eros-statement { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--x-large); line-height: 1.3; max-width: 26ch; letter-spacing: -0.01em; }
.is-style-lede p { font-size: var(--wp--preset--font-size--large); font-weight: 300; line-height: 1.5; }

/* ---------- Season programme (the signature device) ---------- */
.eros-programme { --rule: rgba(185,167,143,.28); border-top: 1px solid var(--rule); }
.eros-programme .is-style-programme-row {
  display: grid; grid-template-columns: 6.5rem minmax(0,1fr) minmax(0,1.3fr) minmax(0,.9fr);
  gap: var(--wp--preset--spacing--30); align-items: center;
  padding-block: var(--wp--preset--spacing--30);
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.eros-programme .is-style-programme-row > * { margin: 0; }
.eros-programme .is-style-programme-row figure { margin: 0; }
.eros-programme .is-style-programme-row img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; filter: saturate(.9); transition: filter .3s ease; }
.eros-programme .is-style-programme-row:hover img { filter: saturate(1.1); }
.eros-programme .eros-programme__week { font-family: var(--wp--preset--font-family--display); font-style: italic; color: var(--wp--preset--color--champagne); font-size: var(--wp--preset--font-size--small); letter-spacing: .04em; }
.eros-programme h3 { margin: 0; font-size: var(--wp--preset--font-size--large); }
.eros-programme .eros-programme__ideal { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--champagne); }
@media (max-width: 860px) {
  .eros-programme .is-style-programme-row { grid-template-columns: 5.5rem minmax(0,1fr); }
  .eros-programme .is-style-programme-row > :nth-child(3), .eros-programme .is-style-programme-row > :nth-child(4) { grid-column: 2; }
}

/* ---------- Show sections on the Shows page ---------- */
.eros-show { scroll-margin-top: calc(var(--wp--custom--header-height) + 1rem); }
.eros-show .wp-block-media-text__media img { aspect-ratio: 4 / 5; object-fit: cover; }
.eros-show__ideal { border-left: 2px solid var(--wp--preset--color--gold); padding-left: 1rem; font-size: var(--wp--preset--font-size--small); }

/* ---------- Testimonials ---------- */
.eros-quotes .wp-block-quote { margin: 0; }
.eros-quotes .wp-block-quote p { max-width: none; }
.eros-quotes .wp-block-quote cite { display: block; margin-top: 1rem; font-family: var(--wp--preset--font-family--body); font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--champagne); }
.eros-clients { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--espresso); max-width: none; }
.has-velvet-background-color .eros-clients { color: var(--wp--preset--color--champagne); }

/* ---------- Gallery ---------- */
.eros-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; }
.eros-gallery > figure { margin: 0; grid-column: span 4; overflow: hidden; background: var(--wp--preset--color--espresso); }
.eros-gallery > figure:nth-child(5n+1) { grid-column: span 8; }
.eros-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; cursor: zoom-in; transition: transform .5s ease; }
.eros-gallery > figure:nth-child(5n+1) img { aspect-ratio: 16 / 9; }
.eros-gallery figure:hover img { transform: scale(1.02); }
.eros-gallery figcaption { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .eros-gallery > figure, .eros-gallery > figure:nth-child(5n+1) { grid-column: span 6; }
}
.eros-lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
.eros-lightbox::backdrop { background: rgba(28,23,20,.92); }
.eros-lightbox figure { margin: 0; }
.eros-lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; display: block; }
.eros-lightbox figcaption { color: var(--wp--preset--color--champagne); font-size: var(--wp--preset--font-size--small); text-align: center; padding: .75rem; }
.eros-lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--velvet); font-size: 1.75rem; line-height: 1; cursor: pointer; }

/* ---------- Steps (how a season works) ---------- */
.eros-steps { counter-reset: step; }
.eros-steps > .wp-block-column { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--champagne); }
.eros-steps > .wp-block-column::before { content: counter(step); display: block; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: var(--wp--preset--font-size--x-large); color: var(--wp--preset--color--gold); line-height: 1; margin-bottom: .75rem; }

/* ---------- Checklist ---------- */
.is-style-checklist { list-style: none; padding-left: 0; }
.is-style-checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.is-style-checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--wp--preset--color--gold); border-bottom: 2px solid var(--wp--preset--color--gold); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.eros-faq details summary { cursor: pointer; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.eros-faq details summary::-webkit-details-marker { display: none; }
.eros-faq details summary::after { content: "+"; color: var(--wp--preset--color--gold); font-family: var(--wp--preset--font-family--body); flex-shrink: 0; }
.eros-faq details[open] summary::after { content: "−"; }
.eros-faq details > :not(summary) { margin-top: .75rem; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.is-style-outline-gold .wp-block-button__link { background: transparent; color: var(--wp--preset--color--gold-light); border: 1px solid var(--wp--preset--color--gold); }
.is-style-outline-gold .wp-block-button__link:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--velvet); }
.is-style-outline-velvet .wp-block-button__link { background: transparent; color: var(--wp--preset--color--velvet); border: 1px solid var(--wp--preset--color--velvet); }
.is-style-outline-velvet .wp-block-button__link:hover { background: var(--wp--preset--color--velvet); color: var(--wp--preset--color--cream); }

/* ---------- Forms (Fluent Forms + fallback native) ---------- */
.eros-form input[type="text"], .eros-form input[type="email"], .eros-form input[type="tel"], .eros-form input[type="url"], .eros-form select, .eros-form textarea,
.fluentform input[type="text"], .fluentform input[type="email"], .fluentform input[type="tel"], .fluentform input[type="url"], .fluentform select, .fluentform textarea {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 1px solid var(--wp--preset--color--champagne); border-radius: 2px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--velvet);
}
.fluentform input:focus, .fluentform select:focus, .fluentform textarea:focus { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 1px; border-color: var(--wp--preset--color--gold); }
.fluentform .ff-el-input--label label { font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.fluentform .ff-btn-submit { background: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--velvet) !important; border: 0 !important; border-radius: 2px !important; font-weight: 700 !important; letter-spacing: .04em; padding: .95rem 1.6rem !important; }
.fluentform .ff-btn-submit:hover { background: var(--wp--preset--color--gold-light) !important; }

/* ---------- WhatsApp button ---------- */
.eros-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem .7rem .8rem; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.eros-whatsapp:hover { background: #1fb457; color: #fff; }
@media (max-width: 600px) { .eros-whatsapp span { position: absolute; clip: rect(0 0 0 0); } .eros-whatsapp { padding: .8rem; } }

/* ---------- Footer ---------- */
.eros-footer a { color: inherit; text-decoration: none; }
.eros-footer a:hover { text-decoration: underline; color: var(--wp--preset--color--gold-light); }
.eros-footer__title { font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: var(--wp--preset--font-size--small); letter-spacing: .04em; color: var(--wp--preset--color--champagne); margin-bottom: .75rem; }
.eros-footer .wp-block-separator { border-color: rgba(185,167,143,.28); }
.eros-footer__legal a { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--champagne); }

/* ---------- Holding page (before launch) ---------- */
.eros-holding { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--wp--preset--color--velvet); color: var(--wp--preset--color--cream); padding: 2rem; }
.eros-holding .eros-brand__mark { height: 4rem; margin: 0 auto 2rem; }

/* ---------- Editor tweaks ---------- */
.editor-styles-wrapper .eros-header { position: static; background: var(--wp--preset--color--velvet); }

/* ---------- Form placeholder (plugin not installed) ---------- */
.eros-form--placeholder { border: 1px dashed var(--wp--preset--color--champagne); padding: 1.5rem; background: var(--wp--preset--color--ivory); }
.eros-form--placeholder p { max-width: none; }

/* ---------- Mobile refinements (audit 2026-09-14) ---------- */
/* Touch targets: 44px menu button, footer links and FAQ rows */
@media (max-width: 599px) { .eros-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: grid; place-items: center; margin-inline-end: -8px; } }
.eros-header .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: grid; place-items: center; }
.eros-footer__nav .wp-block-navigation-item__content, .eros-footer__legal .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; }
.eros-footer__nav { --wp--style--block-gap: 0 !important; }
.eros-faq details summary { min-height: 44px; padding-block: .5rem; align-items: center; }
/* Page heroes on phones: darker lower half so the intro text never sits on a bright photo */
@media (max-width: 860px) {
  .eros-hero--page .wp-block-cover__background { background: linear-gradient(180deg, rgba(28,23,20,.55) 0%, rgba(28,23,20,.15) 28%, rgba(28,23,20,.9) 60%, #1C1714 100%) !important; }
  .eros-hero--page { min-height: 70svh; }
}
/* Fluent Forms sets its own font stack with high specificity; keep the site font in every field */
.fluentform input, .fluentform select, .fluentform textarea, .fluentform button, .fluentform label, .fluentform .ff-el-input--label label { font-family: var(--wp--preset--font-family--body) !important; }
.fluentform textarea, .fluentform input, .fluentform select { font-size: 1rem !important; }

/* ---------- Language switcher (Polylang) ---------- */
.eros-lang { list-style: none; margin: 0 0 0 var(--wp--preset--spacing--30); padding: 0; display: flex; gap: .15rem; font-size: .8125rem; letter-spacing: .06em; }
.eros-lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .4rem; color: var(--wp--preset--color--champagne); text-decoration: none; }
.eros-lang a:hover, .eros-lang .is-current a { color: var(--wp--preset--color--gold-light); }
.eros-lang .is-current a { text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 599px) { .eros-lang { margin-left: 0; } .eros-header .wp-block-group { gap: .5rem; } }
