/* SHOME FILMS - warm cinema theme. Change colours and fonts here. */
:root {
  --dark: #12141a; --bg: #f7f2e8; --surface: #efe7d6; --line: #ddd2bb;
  --text: #1d1813; --muted: #6d6354; --gold: #d4a63a; --gold-strip: #f0d27a; --brown: #8a5a1a;
  --font-heading: "Cormorant Garamond", Georgia, serif; --font-body: "Jost", system-ui, sans-serif;
  --header-height: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.02; margin: 0; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }
.kicker { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.rule { display: block; width: 44px; height: 1px; background: var(--gold); margin: 1.4rem 0; }
.text-link { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); padding-bottom: .3rem; }
.hero .text-link { color: var(--text); border-bottom: 1px solid var(--gold); }
.text-link:hover { color: var(--text); }
.btn { display: inline-block; padding: .75rem 1.6rem; background: var(--dark); color: var(--bg); border: 1px solid var(--dark); font: 500 .72rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); } .sub-title { font-size: 1.7rem; margin-bottom: 1.4rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-height); background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; } .brand img { border-radius: 3px; }
.nav { display: flex; gap: 2.6rem; }
.nav a { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; padding: .6rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.current { border-bottom-color: var(--gold); }
.nav a.current { font-weight: 500; }
.header-tag { margin: 0; justify-self: end; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; justify-self: end; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero: the admin can set the image; a warm sunset gradient shows until then */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(105deg, #f6e8c6 0%, #e9b866 50%, #7a4d22 100%); }
.hero.has-img { background: var(--hero-img) center / cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,242,232,.9) 0%, rgba(247,242,232,.55) 38%, rgba(247,242,232,0) 70%); }
.hero-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 3.5rem; }
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 5.8rem); letter-spacing: -.01em; max-width: 9ch; white-space: pre-line; }
.promo { align-self: flex-end; width: min(290px, 100%); background: rgba(247,242,232,.93); padding: 1.3rem 1.4rem; border-left: 2px solid var(--gold); }
.promo small { display: block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); }
.promo strong { display: block; font: 500 1.9rem/1.1 var(--font-heading); margin: .3rem 0; }
.promo span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }

/* Now in production */
.now { padding: 3.5rem 0; }
.now-inner { display: grid; grid-template-columns: 210px 36px 1fr 36px; gap: 1rem; align-items: center; }
.now-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.arrow { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--text); padding: .4rem; } .arrow:hover { color: var(--brown); }
.rail { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: center; }
.rail::-webkit-scrollbar { display: none; }
.slide-card { flex: 0 0 230px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.slide-card.is-first { flex-basis: 440px; }
.slide-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: linear-gradient(150deg, #3a2a1a, #8a5a2b 70%, #e0a84e); }
.is-first .slide-img { aspect-ratio: 16 / 10.5; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.slide-card:hover .slide-img img { transform: scale(1.03); }
.slide-over { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.slide-over small { display: block; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; }
.slide-over strong { display: block; font: 500 1.8rem/1.1 var(--font-heading); } .slide-over span { font-size: .76rem; opacity: .85; }
.slide-card h3 { font-size: 1.1rem; margin: .6rem 0 .1rem; } .slide-card p { font-size: .72rem; color: var(--muted); margin: 0; }

/* Gold strip */
.strip { display: flex; align-items: center; gap: 1.6rem; background: var(--gold-strip); padding: .85rem 1.5rem; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; overflow-x: auto; white-space: nowrap; }
.strip::before, .strip::after { content: ""; flex: 1; min-width: 20px; height: 1px; background: rgba(29,24,19,.35); }
.strip span + span::before { content: "/"; margin-right: 1.6rem; opacity: .5; }

/* Our cinema */
.cinema { padding: 4.5rem 0; }
.cinema-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr .8fr; gap: 2.5rem; align-items: center; }
.cinema h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.cinema-text p { color: var(--muted); font-size: .92rem; }
.cinema-art { position: relative; aspect-ratio: 4 / 3.2; background: linear-gradient(150deg, #cdc5b4, #7d7466); }
.cinema-art span { position: absolute; right: -16px; top: 10%; bottom: -16px; width: 36%; background: var(--gold-strip); z-index: -1; }
.people { border-left: 1px solid var(--line); padding-left: 1.8rem; }
.people h3 { font-size: 1.9rem; margin-bottom: 1.2rem; }

/* Inner page banner */
.banner { background: linear-gradient(105deg, #f6e8c6 0%, #e9b866 55%, #9a6a30 100%); padding: 4rem 0 3rem; }
.banner h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); margin-bottom: .5rem; }
.banner p { margin: 0; font-size: .8rem; letter-spacing: .1em; color: #4a3c28; }

.section { padding: 4.5rem 0; } .section-alt { background: var(--surface); }
.uni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; }
.uni-item { border-left: 1px solid var(--line); padding-left: 1.4rem; } .uni-item h3 { font-size: 1.25rem; margin: .8rem 0 .3rem; } .uni-item p { color: var(--muted); font-size: .88rem; margin: 0; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); background: var(--bg); }

/* Films page */
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.8rem; }
.film-card { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.poster { position: relative; aspect-ratio: 2 / 3; background: var(--surface); overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .film-card:hover .poster img { transform: scale(1.04); }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; background: linear-gradient(160deg, #3a2a1a, #8a5a2b 75%, #e0a84e); color: #f7f2e8; font: 500 1.6rem var(--font-heading); }
.poster-badge { position: absolute; top: .7rem; left: .7rem; background: var(--gold-strip); font: 500 .62rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; padding: .2rem .6rem; }
.film-card h3 { font-size: 1.2rem; margin: .8rem 0 .1rem; } .film-card p { color: var(--muted); font-size: .76rem; margin: 0; }
.tabs { display: flex; gap: 1.8rem; border-bottom: 1px solid var(--line); margin-bottom: 2.2rem; flex-wrap: wrap; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: .5rem 0; margin-bottom: -1px; font: 500 .72rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tab.is-active, .tab:hover { color: var(--text); } .tab.is-active { border-bottom-color: var(--gold); }

/* About */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
blockquote { margin: 0; } blockquote p { font: 500 clamp(1.6rem, 3vw, 2.3rem)/1.25 var(--font-heading); } blockquote footer { color: var(--muted); font-size: .85rem; }
.about-text p { color: var(--muted); max-width: 56ch; }
.stats-band { background: var(--gold-strip); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; padding-block: 3rem; }
.stats strong { display: block; font: 500 2.6rem/1.1 var(--font-heading); } .stats span { font-size: .8rem; letter-spacing: .08em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-list { list-style: none; padding: 0; margin: 0; } .contact-list li { margin-bottom: 1.2rem; }
.contact-list span { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); } .contact-list a:hover { color: var(--brown); }
.contact-form { display: flex; flex-direction: column; } .contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; background: #fffaf0; border: 1px solid var(--line); padding: .7rem .8rem; margin-bottom: 1.1rem; font: inherit; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); outline: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; font-size: .78rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: auto 1.3fr 1.3fr 1fr 1fr; gap: 0; align-items: center; }
.foot > * { padding-inline: 1.6rem; } .foot > * + * { border-left: 1px solid var(--line); } .foot > :first-child { padding-left: 0; }
.foot-col { display: flex; flex-direction: column; gap: .15rem; } .foot-col strong { font: 500 1rem var(--font-heading); color: var(--text); }
.foot-col a:hover { color: var(--brown); } .foot-col.copy { font-size: .72rem; }
.social { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Film pop-up */
.modal { width: min(860px, 100% - 2rem); max-height: 90vh; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow: auto; }
.modal::backdrop { background: rgba(18,20,26,.75); }
.modal-close { position: absolute; top: .5rem; right: .9rem; z-index: 2; background: none; border: 0; color: var(--text); font-size: 2rem; line-height: 1; cursor: pointer; }
.modal-body { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem; }
.modal-info h3 { font-size: 2.4rem; margin: .4rem 0; } .modal-meta { color: var(--brown); font-size: .82rem; } .modal-synopsis { color: var(--muted); }
.modal-credits { margin: 1.2rem 0 1.5rem; } .modal-credits div { display: flex; gap: .8rem; margin-bottom: .3rem; } .modal-credits dt { font-weight: 500; min-width: 5.5rem; } .modal-credits dd { margin: 0; color: var(--muted); }
.trailer iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.modal-poster .poster { aspect-ratio: 2 / 3; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; } .header-tag { display: none; } .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; display: none; } .nav.open { display: flex; } .nav a { padding: .8rem 0; }
  .hero { min-height: 420px; } .hero::before { background: rgba(247,242,232,.72); } .hero-inner { flex-direction: column; align-items: flex-start; } .promo { align-self: flex-start; }
  .now-inner { grid-template-columns: 1fr; } .arrow { display: none; } .slide-card.is-first { flex-basis: 85%; }
  .cinema-grid, .quote-grid, .contact, .modal-body { grid-template-columns: 1fr; gap: 2rem; } .cinema-art { max-width: 380px; margin-right: 16px; } .people { border-left: 0; padding-left: 0; }
  .foot { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; } .foot > * { padding-inline: 1rem; } .foot > * + * { border-left: 0; } .foot > :first-child { padding-left: 0; }
  .modal-poster { max-width: 220px; }
}
@media (max-width: 520px) { .foot, .contact-form .two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Keep the promoted film poster fully visible alongside its details. */
.hero-poster { flex: 0 1 260px; width: min(260px, 100%); padding: 0; border: 0; background: transparent; cursor: pointer; box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.hero-poster .poster { width: 100%; aspect-ratio: 2 / 3; }
.hero-poster .poster img { width: 100%; height: 100%; object-fit: contain; }
.hero-poster:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
@media (max-width: 800px) { .hero-poster { flex-basis: auto; align-self: center; } }

.hero.landscape-poster .hero-inner { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.5fr); }
.hero.landscape-poster .hero-poster { width: 100%; max-width: none; }
.hero.landscape-poster .hero-poster .poster { aspect-ratio: 16 / 9; background: #000; }
.hero.landscape-poster .promo { grid-column: 2; width: 100%; }
@media (max-width: 800px) {
  .hero.landscape-poster .hero-inner { grid-template-columns: 1fr; }
  .hero.landscape-poster .hero-copy h1 { max-width: none; }
  .hero.landscape-poster .promo { grid-column: 1; }
}

#homeFilms .film-card { flex: 0 0 clamp(190px, 25vw, 270px); text-align: left; }
#homeFilms .film-card .poster img { object-fit: contain; background: #111; }

/* Brand text does not change the header grid or navigation positions. */
.site-header .brand { position: relative; min-width: 0; }
.site-header .brand-name { position: absolute; left: 72px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 700 1.3rem/1.1 Arial, Helvetica, sans-serif; letter-spacing: .04em; }
@media (max-width: 360px) { .site-header .brand-name { font-size: 1.2rem; } }

/* Cinematic studio wordmark. */
.site-header .brand-name { display: flex; flex-direction: column; gap: 5px; width: 112px; font: inherit; }
.site-header .brand-main { font-family: Impact, "Arial Narrow", sans-serif; font-size: 30px; font-weight: 400; line-height: .95; letter-spacing: .055em; color: var(--dark); }
.site-header .brand-sub { font-family: var(--font-body); font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .65em; color: var(--brown); padding-left: 2px; }



.cinema-art { background: transparent; aspect-ratio: 5 / 4; }
.cinema-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.site-footer .copy { white-space: nowrap; }
.site-footer .foot-col.copy { display: block; grid-column: 1 / -1; border-left: 0; text-align: center; margin-top: 1.5rem; padding-inline: 0; font-size: clamp(.58rem, 2.5vw, .72rem); }

.social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--dark); transition: color .2s, background .2s, border-color .2s; }
.social-link:hover { color: var(--brown); background: var(--surface); border-color: var(--gold); }

.site-header .brand-main { display: block; line-height: 0; background: none; filter: none; -webkit-text-fill-color: initial; }
.site-header .brand-main img { width: 112px; height: 38px; max-width: none; border-radius: 0; }
.site-header .brand-name { gap: 3px; }
.site-header .brand-sub { letter-spacing: .7em; padding-left: 8px; color: #6e5028; }

.site-header .brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .5em; color: #33271b; padding-left: 7px; }
