/*
Theme Name: Picture House Cinema
Description: Responsive independent cinema website theme with editable films and booking links.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: picture-house-cinema
*/

:root {
  --ph-bg: #101010;
  --ph-panel: #191919;
  --ph-panel-light: #232323;
  --ph-text: #f8f5ef;
  --ph-muted: #b9b4ab;
  --ph-accent: #e7b958;
  --ph-red: #9c2528;
  --ph-border: #36322d;
  --ph-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ph-accent); }

img { max-width: 100%; height: auto; display: block; }

button, input, textarea { font: inherit; }

.wrap {
  width: min(var(--ph-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  background: #090909;
  border-bottom: 1px solid var(--ph-border);
  position: relative;
  z-index: 10;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 49px;
  height: 49px;
  border: 2px solid var(--ph-accent);
  color: var(--ph-accent);
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 800;
}

.brand-title {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--ph-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 14px;
  font-weight: 700;
}

.site-nav .current-menu-item > a { color: var(--ph-accent); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ph-border);
  color: white;
  padding: 9px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, #642d22 0, transparent 43%),
    linear-gradient(110deg, #171313, #302019 55%, #111 100%);
  border-bottom: 1px solid var(--ph-border);
}

.hero::after {
  content: "PICTURE HOUSE";
  position: absolute;
  right: -30px;
  bottom: -70px;
  font: 900 clamp(65px, 12vw, 155px)/1 Georgia, serif;
  color: rgb(255 255 255 / 4%);
  white-space: nowrap;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: 70px;
}

.eyebrow {
  color: var(--ph-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero h1 {
  font: 700 clamp(40px, 6vw, 68px)/1.05 Georgia, serif;
  margin: 15px 0 20px;
  max-width: 720px;
}

.hero p {
  color: #ded7ce;
  max-width: 600px;
  font-size: 18px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 11px 19px;
  border: 1px solid var(--ph-accent);
  background: var(--ph-accent);
  color: #17130c;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}

.btn:hover { background: #f5d48e; color: #17130c; }

.btn-outline {
  background: transparent;
  color: var(--ph-text);
  border-color: #75634a;
}

.btn-outline:hover { background: var(--ph-panel-light); color: white; }

.section { padding-block: 55px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 25px;
}

.section-heading h2,
.page-heading h1 {
  font: 700 clamp(30px, 4vw, 42px)/1.15 Georgia, serif;
  margin: 5px 0 0;
}

.section-heading p { margin: 5px 0 0; color: var(--ph-muted); }

.film-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px;
}

.film-card {
  min-width: 0;
  overflow: hidden;
  background: var(--ph-panel);
  border: 1px solid var(--ph-border);
  transition: transform .2s ease, border-color .2s ease;
}

.film-card:hover { transform: translateY(-3px); border-color: #79633d; }

.poster {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #3b2824, #161616);
  overflow: hidden;
  position: relative;
}

.poster img { width: 100%; height: 100%; object-fit: cover; }

.poster-placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  height: 100%;
  font: 700 25px/1.15 Georgia, serif;
  color: #e9d8b8;
}

.film-info { padding: 17px; }

.film-status {
  color: var(--ph-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.film-info h3 {
  font: 700 20px/1.25 Georgia, serif;
  margin: 7px 0;
}

.film-meta { color: var(--ph-muted); font-size: 12px; }

.film-info .btn { width: 100%; margin-top: 15px; }

.certificate {
  display: inline-block;
  border: 1px solid #aaa;
  color: white;
  font-size: 11px;
  padding: 1px 5px;
  margin-right: 6px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: start;
}

.panel {
  background: var(--ph-panel);
  border: 1px solid var(--ph-border);
  padding: 28px;
}

.panel h2, .panel h3 { font-family: Georgia, serif; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--ph-border);
  background: var(--ph-panel);
}

.info-card h3 { margin-top: 0; font-family: Georgia, serif; }
.muted { color: var(--ph-muted); }

.page-heading {
  padding-block: 52px;
  background: #181513;
  border-bottom: 1px solid var(--ph-border);
}

.page-content { padding-block: 45px 65px; min-height: 350px; }
.page-content a { color: var(--ph-accent); text-decoration: underline; }
.page-content h2, .page-content h3 { font-family: Georgia, serif; }

.film-detail {
  display: grid;
  grid-template-columns: minmax(200px, 340px) 1fr;
  gap: 38px;
}

.film-detail .poster { max-width: 340px; width: 100%; }
.film-description { color: #ded8cf; }

.showtimes {
  margin-top: 28px;
  padding: 20px;
  background: var(--ph-panel);
  border: 1px solid var(--ph-border);
}

.showtimes pre {
  white-space: pre-wrap;
  font: inherit;
  color: var(--ph-text);
  margin: 10px 0 0;
}

.site-footer {
  background: #080808;
  border-top: 1px solid var(--ph-border);
  padding: 38px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h3 { font: 700 20px Georgia, serif; }
.footer-grid p, .footer-grid li { color: var(--ph-muted); font-size: 14px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 8px; }

.copyright {
  border-top: 1px solid var(--ph-border);
  margin-top: 25px;
  padding-top: 15px;
  color: #8e8880;
  font-size: 12px;
}

.empty-state {
  background: var(--ph-panel);
  border: 1px dashed #615443;
  padding: 25px;
  color: var(--ph-muted);
}

@media (max-width: 900px) {
  .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .wrap { width: min(100% - 28px, var(--ph-width)); }
  .header-inner { min-height: 72px; flex-wrap: wrap; padding-block: 12px; }
  .brand-title { font-size: 17px; }
  .brand-mark { width: 40px; height: 40px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--ph-border); }
  .site-nav a { display: block; padding: 12px 0; }
  .hero { min-height: 350px; }
  .hero-content { padding-block: 48px; }
  .hero p { font-size: 16px; }
  .section { padding-block: 38px; }
  .section-heading { align-items: start; flex-direction: column; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .film-info { padding: 12px; }
  .film-info h3 { font-size: 16px; }
  .film-info .btn { padding: 9px 5px; font-size: 11px; }
  .split, .film-detail, .footer-grid { grid-template-columns: 1fr; }
  .film-detail .poster { max-width: 260px; }
  .page-heading { padding-block: 35px; }
}

.ph-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.ph-section { padding-block: 65px; }

.ph-section-dark {
  background: #171513;
  border-block: 1px solid #36322d;
  padding-block: 60px;
}

.ph-eyebrow {
  color: #c79c55;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
}

.ph-section h2,
.ph-about-intro h1,
.ph-contact-heading h1,
.ph-contact-layout h2 {
  font-family: Georgia, serif;
  line-height: 1.15;
}

.ph-about-hero {
  background: #1b1816;
  border-bottom: 1px solid #36322d;
}

.ph-about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 45px;
  padding-block: 50px;
}

.ph-about-intro h1,
.ph-contact-heading h1 {
  font-size: clamp(36px, 5vw, 54px);
  margin-block: 12px;
}

.ph-about-intro img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.ph-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.ph-timeline > div,
.ph-three-columns article {
  background: #201d1a;
  border: 1px solid #38312a;
  padding: 24px;
}

.ph-timeline strong {
  display: block;
  color: #d4aa63;
  font: 700 28px Georgia, serif;
  margin-bottom: 10px;
}

.ph-timeline span { color: #c7c0b7; }

.ph-three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.ph-three-columns h3 {
  font: 700 22px Georgia, serif;
}

.ph-three-columns p { color: #c7c0b7; }

.ph-three-columns a,
.ph-contact-layout a {
  color: #d4aa63;
}

.ph-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.ph-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.ph-contact-heading {
  background: #1b1816;
  border-bottom: 1px solid #36322d;
  padding-block: 50px;
}

.ph-contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  padding-block: 55px 70px;
}

.ph-contact-detail {
  padding-block: 12px;
  border-bottom: 1px solid #36322d;
}

.ph-contact-detail h3 {
  font: 700 20px Georgia, serif;
  margin-bottom: 5px;
}

.ph-contact-detail p { color: #c7c0b7; }

.ph-contact-form-panel {
  background: #1b1917;
  border: 1px solid #38312a;
  padding: 30px;
}

.ph-contact-form-panel input,
.ph-contact-form-panel textarea,
.ph-contact-form-panel select {
  width: 100%;
  background: #101010;
  border: 1px solid #494139;
  color: white;
  padding: 12px;
  margin-top: 6px;
}

.ph-contact-form-panel button,
.ph-contact-form-panel input[type="submit"] {
  background: #d4aa63;
  color: #17130c;
  border: 0;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 700px) {
  .ph-container { width: calc(100% - 30px); }
  .ph-about-intro,
  .ph-contact-layout { grid-template-columns: 1fr; gap: 25px; }
  .ph-timeline,
  .ph-three-columns { grid-template-columns: 1fr; }
  .ph-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-gallery img { height: 180px; }
  .ph-contact-form-panel { padding: 20px; }
}