/* Rólunk, Filmjeink + player, Shakespeare, Kapcsolat + form, footer. Phone first. */

/* ---------- 1. Rólunk ---------- */

.about {
  display: flex;
  flex-direction: column;
}
.about-grid {
  width: 100%;
  display: grid;
  gap: 40px;
}
.about-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 13vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 18px 0 24px;
}
.about .lead { max-width: 30em; }
.about-body p {
  font-size: 17px;
  line-height: 1.6;
  text-indent: 1.2em;
  max-width: 34em;
}
.about-body p + p { margin-top: 1.4em; }

.about-ornament {
  width: min(280px, 80%);
  margin-top: 64px;
  color: var(--burgundy);
}
.about-ornament .ornament { width: 100%; height: auto; stroke-width: 7; }

.about-label {
  width: 100%;
  margin-top: 40px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--burgundy);
}

@media (min-width: 900px) {
  .about { justify-content: center; }
  .about-grid {
    grid-template-columns: 45% 1fr;
    column-gap: 3%;
    align-items: start;
  }
  .about-body { padding-top: 16px; }
  .about-body p { font-size: 18px; }
  .about-ornament { width: 370px; margin-top: 88px; }
}

/* ---------- 2. Filmjeink ---------- */

.films-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 15vw, 96px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-top: 14px;
}
.films-head .rule { margin-top: 28px; }

.film {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--nav-h) - 40px);
  padding: 48px 0;
}

.film-cover {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  overflow: hidden;
}
.film-cover-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.film-cover-media img,
.film-cover-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.film-cover-placeholder {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 30% 30%, rgba(211, 189, 150, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(110, 41, 39, 0.35), rgba(12, 11, 10, 0.95) 70%),
    var(--brown);
}

.film-watch {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ivory);
}
.film-watch-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0;
}
.film-watch-line {
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  margin-right: -2px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .film-cover:hover .film-cover-media img,
  .film-cover:hover .film-cover-placeholder { transform: scale(1.03); }
  .film-cover:hover .film-watch-line { width: 28px; }
}

.film-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.film-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 7.5vw, 44px);
  line-height: 1.05;
}
.film-location {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--butter);
}

@media (min-width: 900px) {
  .films-head .rule { margin-top: 32px; }
  .film { min-height: calc(100svh - var(--nav-h)); padding: 56px 0; }
  .film-cover {
    /* 2:1 like the mockup, but never taller than the screen leaves room for */
    width: min(100%, (100svh - var(--nav-h) - 190px) * 2);
    margin: 0 auto;
  }
  .film-cover-media { aspect-ratio: 2 / 1; }
  .film-watch { left: 26px; bottom: 26px; }
  .film-meta {
    width: min(100%, (100svh - var(--nav-h) - 190px) * 2);
    margin: 18px auto 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
  }
}

/* ---------- film player (a modal <dialog>) ---------- */

.player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgba(12, 11, 10, 0.96);
  color: var(--ivory);
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease, display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}
.player[open] {
  display: grid;
  place-items: center;
  opacity: 1;
}
.player.-closing { opacity: 0; transition-duration: 0.3s; }
@starting-style {
  .player[open] { opacity: 0; }
}
.player::backdrop { background: transparent; }

.player-close {
  position: absolute;
  top: 8px;
  right: calc(var(--side) - 8px);
  min-height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  z-index: 1;
}
.player-close span { font-size: 18px; letter-spacing: 0; }

.player-body {
  /* 16:9, as large as fits with the title underneath and the close button above */
  width: min(100vw, (100svh - 200px) * 16 / 9);
}
.player-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-meta {
  padding: 16px var(--side) 0;
}
.player-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 5vw, 32px);
  line-height: 1.1;
}
.player-sub {
  margin-top: 8px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--butter);
}

@media (min-width: 900px) {
  .player-body { width: min(100vw - 2 * var(--side), (100svh - 200px) * 16 / 9); }
  .player-meta { padding: 18px 0 0; }
}

/* ---------- 3. Shakespeare ---------- */

.shakespeare {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.quote {
  width: 100%;
}
.quote-en {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 8.4vw, 48px);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}
.quote-hu {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--butter);
  text-align: center;
}
.quote-author {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-align: right;
}

.shakespeare-media {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}
.shakespeare-media-inner {
  width: 100%;
  height: 120%;
  margin-top: -10%;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    radial-gradient(90% 80% at 70% 40%, rgba(240, 232, 217, 0.22), transparent 65%),
    linear-gradient(200deg, rgba(211, 189, 150, 0.2), rgba(12, 11, 10, 0.9) 75%),
    var(--black);
}

.shakespeare-line {
  border: 0;
  height: 1px;
  width: 60%;
  margin-top: 8px;
  background: var(--burgundy);
  transform-origin: center;
}

@media (min-width: 900px) {
  .shakespeare {
    display: grid;
    grid-template-columns: 55% 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 4%;
    row-gap: 0;
    align-content: center;
  }
  .quote {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    max-width: 560px;
    justify-self: center;
  }
  .shakespeare-media {
    grid-column: 1;
    grid-row: 2 / 4;
    margin-top: -40px; /* the image starts beside the quote's end: the mockup's vertical overlap */
  }
  .shakespeare-line {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 43%;
    margin-top: 40px;
  }
  .quote-hu { font-size: 18px; }
  .quote-author { font-size: 24px; }
}

/* ---------- 4. Kapcsolat ---------- */

.contact {
  display: flex;
  flex-direction: column;
}
.contact-grid {
  width: 100%;
  display: grid;
  gap: 48px;
  margin-top: auto;
  margin-bottom: auto;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 11.5vw, 78px);
  line-height: 1;
  margin: 18px 0 22px;
}
.contact .lead { color: var(--butter); max-width: 30em; }
.contact .rule { margin-top: 32px; }

.contact-form,
.form-success,
.form-failure { width: 100%; }

.field {
  position: relative;
  margin-bottom: 26px;
}
.field label {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--label);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 0 8px;
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming into the field */
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--input-line);
  border-radius: 0;
  outline: none;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 88px; }
/* focus line grows from the left over the resting underline */
.field input,
.field textarea {
  background: linear-gradient(var(--butter), var(--butter)) no-repeat left bottom / 0% 1px;
  transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.field input:focus,
.field textarea:focus { background-size: 100% 1px; }
.field.-invalid input,
.field.-invalid textarea { border-bottom-color: var(--burgundy); }
.field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  color: var(--butter);
}
.field-error:empty { display: none; }

/* hCaptcha's widget is 303×78; the slot keeps its place so nothing moves when it appears. */
.captcha-slot { min-height: 78px; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--burgundy-deep);
  color: var(--ivory);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  overflow: hidden;
}
/* a thin ivory line runs along the bottom edge on hover/focus */
.btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover::after,
.btn:focus-visible::after { transform: scaleX(1); }
.btn-arrow { font-size: 16px; letter-spacing: 0; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.7; cursor: progress; }

.form-success p {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
}
.form-failure {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--butter);
}
.form-failure a { color: var(--ivory); }

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 400px;
    column-gap: 7%;
    align-items: end;
  }
  .contact-intro { padding-bottom: 0; }
  .contact .rule { margin-top: 26px; max-width: 610px; }
}

/* ---------- footer ---------- */

.footer {
  width: 100%;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-word {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.footer-tagline {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--butter);
}
.footer-contact {
  font-size: 12px;
  letter-spacing: 0.06em;
}
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-word { font-size: 36px; }
}
