/*
Theme Name: SAGAFILM
Theme URI: https://sagafilm.ro
Author: Saga Film
Description: Custom WordPress theme for SAGAFILM.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: sagafilm
*/

:root {
  --sf-bg: #ffffff;
  --sf-text: #141414;
  --sf-accent: #e52020;
  --sf-muted: #6f6f6f;
  --sf-font: "Space Mono", monospace;
  --sf-pad: 20px;
  --sf-h-padding-y: 14px;
  --sf-h-padding-x: 20px;
  --sf-h-bg-opacity: 0.85;
  --sf-h-blur: 30px;
  --sf-h-font-size: 13px;
  --sf-h-nav-gap: 50px;
  --sf-h-line-height: 1.8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--sf-bg);
  color: var(--sf-text);
  font-family: var(--sf-font);
}

a {
  color: inherit;
}

.sf-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 220;
  display: flex;
  align-items: flex-start;
  padding: var(--sf-h-padding-y) var(--sf-h-padding-x);
  background: rgba(255, 255, 255, var(--sf-h-bg-opacity));
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(var(--sf-h-blur));
  -webkit-backdrop-filter: blur(var(--sf-h-blur));
}

.sf-slogan {
  flex: 0 0 auto;
  width: 25%;
  min-width: 260px;
  font-size: var(--sf-h-font-size);
  color: var(--sf-accent);
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
}

.sf-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sf-nav ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  gap: 0 var(--sf-h-nav-gap);
  list-style: none;
}

.sf-nav li {
  line-height: var(--sf-h-line-height);
}

.sf-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--sf-h-font-size);
  color: #3a3838;
  white-space: nowrap;
}

.sf-nav a:hover,
.sf-nav .current-menu-item > a,
.sf-nav .current_page_item > a {
  color: var(--sf-accent);
}

.sf-hamburger {
  flex-shrink: 0;
  width: 50px;
  height: 36px;
  margin-top: 2px;
  margin-left: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  cursor: pointer;
}

.sf-hamburger span {
  display: block;
  width: 50px;
  height: 2px;
  background: #111;
  border-radius: 1px;
}

.sf-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #ffffff;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  pointer-events: none;
  overflow: hidden;
}

.sf-menu-overlay.is-open {
  transform: translateY(0);
  pointer-events: all;
}

.sf-menu-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
  pointer-events: none;
}

.sf-intro-click-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 90px;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

.sf-intro-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  background: #ffffff;
  font-family: var(--sf-font);
  font-size: var(--sf-h-font-size);
  letter-spacing: 0;
  text-transform: uppercase;
  user-select: none;
}

.sf-intro-footer-top {
  position: relative;
  min-height: 42px;
  background: #ffffff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.sf-intro-unmute {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: var(--sf-font);
  font-size: var(--sf-h-font-size);
  text-transform: uppercase;
  color: #111111;
}

.sf-intro-unmute:hover {
  color: var(--sf-accent);
}

.sf-enter-link {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
}

.sf-enter-link:hover {
  color: var(--sf-accent);
}

.sf-intro-sections {
  position: relative;
  display: flex;
  width: 100%;
  background: #ececec;
  cursor: pointer;
}

.sf-intro-progress-fill {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 0%;
  background: rgba(229, 32, 32, 0.18);
  pointer-events: none;
  z-index: 0;
  transition: width 0.15s linear;
}

.sf-intro-sections.dragging .sf-intro-progress-fill {
  transition: none;
}

.sf-intro-section {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px 14px;
  text-align: left;
  color: rgba(0, 0, 0, 0.35);
  font-family: var(--sf-font);
  font-size: var(--sf-h-font-size);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.sf-intro-section:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.sf-intro-section:hover,
.sf-intro-section.filled {
  color: var(--sf-accent);
}

body.sf-menu-open {
  overflow: hidden;
}

.sf-main {
  padding: 92px var(--sf-pad) 30px;
  min-height: 100vh;
}

.sf-home-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 110px;
}

.sf-home-logo-wrap {
  width: min(960px, 90vw);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.sf-home-logo {
  display: block;
  width: min(92vw, var(--sf-logo-max-width, 820px));
  height: auto;
}

.sf-home-intro {
  text-transform: uppercase;
  color: var(--sf-muted);
  text-align: center;
  font-size: 13px;
}

.sf-section-title {
  margin: 0 0 18px;
  font-size: 20px;
  text-transform: uppercase;
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sf-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px;
  min-height: 120px;
}

.sf-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}

.sf-card-title {
  font-size: 12px;
  margin: 10px 0 0;
  text-transform: uppercase;
}

.sf-card-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-note {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--sf-muted);
  text-transform: uppercase;
}

.sf-page-content {
  max-width: 1024px;
}

.sf-footer {
  padding: 20px;
  font-size: 12px;
  color: var(--sf-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 1120px) {
  .sf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .sf-header {
    padding: 12px 14px;
  }

  .sf-slogan {
    width: auto;
    min-width: 0;
    max-width: calc(100% - 90px);
  }

  .sf-nav {
    display: none;
  }

  .sf-main {
    padding-top: 84px;
  }

  .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sf-grid {
    grid-template-columns: 1fr;
  }

  .sf-home-main {
    padding-top: 140px;
  }

  .sf-enter-link {
    display: none;
  }
}
