/*
Theme Name: RL Casting
Theme URI: https://rlcasting.com
Author: RL Casting
Description: Brand theme for Ramani Leah, CSA. Coral and cream, editorial, built around a credits grid.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: rl-casting
*/

/* ---------------------------------------------------------------
   Brand tokens
   Coral #E37263 and cream #FAF6F5 are taken straight from the logo.
   Ink is a warm near-black rather than grey, so it sits with the
   coral instead of fighting it.
   --------------------------------------------------------------- */
:root {
	--coral:       #E37263;
	--coral-deep:  #C9584A;
	--coral-tint:  #F7E2DD;
	--cream:       #FAF6F5;
	--cream-2:     #F3ECE9;
	--ink:         #2A211E;
	--ink-soft:    #6E5F59;
	--line:        rgba(42,33,30,.14);
	--line-light:  rgba(250,246,245,.28);

	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--wrap: 1180px;
	--gut: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: .22em; }
a:hover { color: var(--coral-deep); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--coral); color: #fff; padding: .7em 1.2em; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* Shared eyebrow / letterspaced caps, echoing the wordmark ------- */
.kicker {
	font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
	font-weight: 500; color: var(--coral);
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(250,246,245,.92);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 86px; }

.site-brand { margin: 0; line-height: 0; }
.site-brand a { display: inline-block; text-decoration: none; }
.site-brand__lockup { display: block; text-decoration: none; line-height: 0; }
/* Coral tile with the cream lockup centred inside, matching the supplied
   square logo. Slightly taller than the nav so it reads as a brand mark. */
.site-brand__tile { display: grid; place-items: center; width: 82px; height: 82px; background: var(--coral); }
.site-brand__tile img { width: 62%; height: auto; }
@media (max-width: 900px) { .site-brand__tile { width: 68px; height: 68px; } }
/* The logo file is a stacked lockup; the RL mark is the top 68.5% of it.
   Cropping to the mark here and setting the wordmark as real text keeps it
   legible at header size, where the baked-in wordmark rendered ~8px tall. */
.site-brand__mark { display: block; width: 70px; height: 44px; background-size: 100% auto; background-position: top center; background-repeat: no-repeat; flex: none; }
.site-brand__word { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--coral); line-height: 1.5; font-weight: 500; }
.site-brand__word i { font-style: normal; display: block; }
@media (max-width: 560px) { .site-brand__word { display: none; } }
.site-brand__fallback { font-family: var(--serif); font-size: 1.7rem; color: var(--coral); line-height: 1; }

.site-nav__list {
	display: flex; gap: 2.1rem; list-style: none; margin: 0; padding: 0;
	font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
}
.site-nav__list a { text-decoration: none; color: var(--ink-soft); transition: color .18s ease; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--coral); }
/* Contact is boxed in coral. Outline rather than a filled block: it reads as
   the primary action without out-shouting the logo beside it. */
.site-nav__list { align-items: center; }
.site-nav__list a[href*="/contact"] {
	color: var(--coral); border: 1px solid var(--coral);
	padding: .6em 1.25em; transition: background .18s ease, color .18s ease;
}
.site-nav__list a[href*="/contact"]:hover { background: var(--coral); color: #fff; }
@media (max-width: 900px) {
	/* In the stacked mobile menu every row is full width, so a box there just
	   looks like a stray rectangle. Coral text carries it instead. */
	.site-nav__list a[href*="/contact"] { border: 0; padding: 1.05rem 0; }
	.site-nav__list a[href*="/contact"]:hover { background: none; color: var(--coral); }
}

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--ink); }
.nav-toggle__bars { display: block; width: 24px; }
.nav-toggle__bars i { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav { position: fixed; inset: 86px 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .28s ease; }
	.site-nav__list { flex-direction: column; gap: 0; padding: 1rem var(--gut) 2rem; }
	.site-nav__list li { border-bottom: 1px solid var(--line); }
	.site-nav__list a { display: block; padding: 1.05rem 0; font-size: .95rem; }
	body.nav-open .site-nav { transform: translateY(0); }
	body.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	body.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
	body.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------------------------------------------------------------
   Home hero — the sizzle reel is the headline act
   --------------------------------------------------------------- */
/* Top padding halved now the name and strapline are gone - the reel sits
   closer under the header. */
.hero { padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(2rem, 5vw, 3.5rem); }
.hero__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.hero__eyebrow { margin: 1rem 0 0; }
.hero__name {
	margin: 0; font-family: var(--serif); font-weight: 300;
	font-size: clamp(3rem, 9vw, 6rem); line-height: .95; letter-spacing: -.005em;
}
.hero__line { margin: 1.4rem auto 0; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 36ch; }

/* Reel frame: coral mat around the video, so it reads as a brand object */
.reel-hero { position: relative; background: var(--coral); padding: clamp(.5rem, 1.2vw, .9rem); }
.reel-hero__inner { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.reel-hero video, .reel-hero img { width: 100%; height: 100%; object-fit: cover; }
.reel-hero__btn {
	/* Flex column, not grid: two auto grid rows stretched to fill the frame,
	   which pushed the label far below the play button. */
	position: absolute; inset: 0; display: flex; flex-direction: column;
	align-items: center; justify-content: flex-start;
	/* Sits just under the title card's subtitle. The frame is locked to 16:9, so
	   1% of its height is 0.5625% of its width — this padding puts the group's
	   top at roughly 63% of frame height, clear of the subtitle above it. */
	padding-top: 35.5%;
	background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
	border: 0; cursor: pointer; color: #fff; font-family: inherit;
	transition: background .25s ease;
}
.reel-hero__btn:hover { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.reel-hero__btn span { display: block; }
/* Play glyph is an SVG rather than a CSS-border triangle: the border trick
   rendered off-centre and oversized inside the ring. */
.reel-hero__play {
	width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85);
	margin: 0 0 .85rem; backdrop-filter: blur(2px);
	background: rgba(0,0,0,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center/32px;
	transition: transform .25s ease, background-color .25s ease;
}
.reel-hero__btn:hover .reel-hero__play { transform: scale(1.06); background-color: rgba(255,255,255,.16); }
.reel-hero__label { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; }
.reel-hero.is-playing .reel-hero__btn { display: none; }

.hero__actions { margin-top: 2.2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.rlc-btn {
	display: inline-block; padding: .95em 2.1em; border: 1px solid var(--coral);
	background: var(--coral); color: #fff;
	font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
	text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rlc-btn:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
.rlc-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.rlc-btn--ghost:hover { background: transparent; border-color: var(--coral); color: var(--coral); }

/* ---------------------------------------------------------------
   Accolade band — coral block
   --------------------------------------------------------------- */
.band { background: var(--coral); color: #fff; }
.band__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; justify-content: center; padding-block: 2.3rem; text-align: center; }
.band__item { margin: 0; }
.band__item strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.band__item span { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: .35rem; }

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */
.home-section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.page-body { padding-block: clamp(3rem, 8vw, 5rem); }
.page-body--center { text-align: center; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.section-head__title, .page-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.section-head__more { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }
.section-head__more:hover { color: var(--coral); }
.section-head__intro { margin: .8rem 0 0; color: var(--ink-soft); max-width: 60ch; flex-basis: 100%; }

/* ---------------------------------------------------------------
   Credit grid
   --------------------------------------------------------------- */
.credit-grid { display: grid; gap: clamp(1.1rem, 2.4vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.credit-tile { text-decoration: none; display: block; color: inherit; }
.credit-tile__art { position: relative; overflow: hidden; background: var(--cream-2); aspect-ratio: 2/3; }
.credit-tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.credit-tile:not(.credit-tile--static):hover .credit-tile__art img { transform: scale(1.045); }
.credit-tile__art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--coral); transition: box-shadow .25s ease; }
.credit-tile:not(.credit-tile--static):hover .credit-tile__art::after { box-shadow: inset 0 0 0 3px var(--coral); }
.credit-tile__placeholder { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; background: var(--cream-2); font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); }
.credit-tile__meta { padding-top: .9rem; }
.credit-tile__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.credit-tile__sub { margin: .22rem 0 0; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }

/* ---------------------------------------------------------------
   Commercial reels
   --------------------------------------------------------------- */
.reel-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.reel { margin: 0; }
.reel video, .reel img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.reel figcaption { padding-top: .85rem; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.reel__title { font-family: var(--serif); font-size: 1.25rem; }
.reel__sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }

/* ---------------------------------------------------------------
   Single credit
   --------------------------------------------------------------- */
.credit-single { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0,1fr); }
@media (min-width: 800px) { .credit-single { grid-template-columns: 5fr 6fr; align-items: start; } }
.credit-single__art img, .credit-single__art video { width: 100%; }
.credit-single__kicker { margin: 0 0 .9rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--coral); }
.credit-single__kicker a { text-decoration: none; }
.credit-single__sub { margin: .7rem 0 1.6rem; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.credit-single__back { margin-top: 2.5rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.credit-single__back a { text-decoration: none; color: var(--ink-soft); }
.credit-single__back a:hover { color: var(--coral); }

/* ---------------------------------------------------------------
   About
   --------------------------------------------------------------- */
.about-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 860px) { .about-layout { grid-template-columns: 5fr 7fr; } }
.about-portrait { position: relative; z-index: 0; }
.about-portrait img { width: 100%; }
.about-portrait::before { content: ""; position: absolute; inset: auto auto -14px -14px; width: 55%; height: 55%; background: var(--coral-tint); z-index: -1; }

/* ---------------------------------------------------------------
   Prose
   --------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.35em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 2.2em 0 .6em; }
.prose h2 { font-size: 1.95rem; }
.prose h3 { font-size: 1.45rem; }
.prose blockquote {
	margin: 2.2em 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--coral);
	font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	font-style: italic; line-height: 1.45;
}
.prose blockquote cite { display: block; margin-top: .8rem; font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--coral); }
.prose img { margin: 2em 0; }

/* ---------------------------------------------------------------
   Contact form
   --------------------------------------------------------------- */
.rlc-form { max-width: 620px; margin-top: 2rem; }
.rlc-form-row { margin-bottom: 1.4rem; }
.rlc-form-row label { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.rlc-form input[type=text], .rlc-form input[type=email], .rlc-form textarea {
	width: 100%; padding: .9em 1em; background: #fff; border: 1px solid var(--line);
	color: var(--ink); font-family: inherit; font-size: 1rem; border-radius: 0;
}
.rlc-form input:focus, .rlc-form textarea:focus { border-color: var(--coral); outline: none; }
.rlc-form textarea { resize: vertical; min-height: 160px; }
.rlc-hp { position: absolute; left: -9999px; }
.rlc-form-note { padding: 1rem 1.3rem; border-left: 2px solid var(--coral); background: var(--coral-tint); margin-bottom: 1.8rem; }
.rlc-form-note p { margin: 0; }
.rlc-form-note--err { border-left-color: #b3261e; background: #fbe6e4; }

/* ---------------------------------------------------------------
   CTA + footer
   --------------------------------------------------------------- */
.cta { background: var(--coral); color: #fff; }
.cta__inner { text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.cta__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.9rem); }
.cta__text { margin: .7rem 0 1.9rem; opacity: .9; }
.cta .rlc-btn { background: #fff; color: var(--coral); border-color: #fff; }
.cta .rlc-btn:hover { background: transparent; color: #fff; border-color: #fff; }

.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; padding-block: 3rem; }
.site-footer__logo { height: 56px; width: auto; }
.site-footer__name { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.site-footer__role { margin: .15rem 0 0; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.site-footer__list { display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__list a { text-decoration: none; color: var(--ink-soft); }
.site-footer__list a:hover { color: var(--coral); }
.site-footer__legal { margin: 0; font-size: .7rem; color: var(--ink-soft); flex-basis: 100%; padding-top: 1.4rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------
   Credit facts + trailer
   --------------------------------------------------------------- */
.credit-facts { margin: 1.4rem 0 2rem; display: grid; gap: .55rem; }
.credit-facts div { display: flex; gap: .9rem; align-items: baseline; }
.credit-facts dt { flex: none; width: 7.5rem; margin: 0; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); }
.credit-facts dd { margin: 0; font-size: 1rem; }
.credit-trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.reel__embed, .reel__facade { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.reel__embed iframe, .reel__facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel__facade img { width: 100%; height: 100%; object-fit: cover; }
/* Poster-and-play facade so a linked spot looks like a hosted one, and no
   YouTube or Vimeo code loads until someone actually presses play. */
.reel__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.42)); transition: background .25s ease; }
.reel__play:hover { background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.32)); }
.reel__play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center/26px;
  transition: transform .25s ease, background-color .25s ease; }
.reel__play:hover::after { transform: translate(-50%,-50%) scale(1.07); }

/* Trailer sits in the text column so it is visible without scrolling. */
.credit-trailer { margin-top: 2rem; }
.credit-trailer__title { margin: 0 0 .8rem; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.credit-trailer__frame { position: relative; aspect-ratio: 16/9; background: #000; border: clamp(.35rem,.7vw,.55rem) solid var(--coral); }
.credit-trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
