/*
 Theme Name:   Studio YY Child
 Theme URI:    https://studioyy.de
 Description:  Studio YY Child Theme based on GeneratePress
 Author:       Studio YY
 Author URI:   https://studioyy.de
 Template:     generatepress
 Version:      1.0.0
*/

/* ============================================================
   FONTS
============================================================ */

@font-face {
  font-family: 'Eina01';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Eina01-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Eina01';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Eina01-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Eina01';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Eina01-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Eina01';
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  src: url('fonts/Eina01-BoldItalic.ttf') format('truetype');
}

/* ============================================================
   CSS VARIABLES
============================================================ */

:root {
  --syy-black:   #000000;
  --syy-white:   #ffffff;
  --syy-text:    #373737;
  --syy-font:    'Eina01', sans-serif;
  --syy-max:     1400px;
  --syy-pad:     clamp(24px, 5vw, 80px);
}

/* ============================================================
   RESET GENERATEPRESS DEFAULTS
============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--syy-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--syy-text);
  background-color: var(--syy-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove GP container restrictions for full-width pages */
.page-template-default .container,
.home .container,
.page .container {
  max-width: 100%;
  padding: 0;
}

.inside-page-hero,
.page-hero-section {
  display: none;
}

/* GeneratePress structural overrides */
.site {
  overflow-x: hidden;
}

.entry-content > *:first-child {
  margin-top: 0;
}

/* ============================================================
   HEADER
============================================================ */

.site-header,
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  padding: 28px var(--syy-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px);
}

/* Force GP header wrapper full-width */
.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ============================================================
   LOGO
============================================================ */

.site-branding,
.site-logo {
  flex-shrink: 0;
}

.site-title,
.site-title a {
  font-family: var(--syy-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--syy-white);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-title a:hover {
  color: var(--syy-white);
}

.site-logo img,
.custom-logo {
  height: 36px;
  width: auto;
}

.site-description {
  display: none;
}

/* ============================================================
   HAMBURGER NAVIGATION
============================================================ */

/* Hide default GP nav, show hamburger */
.main-navigation {
  display: none;
}

/* Hamburger button */
.syy-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
  position: relative;
}

.syy-menu-toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background-color: var(--syy-white);
  transition: all 0.3s ease;
}

.syy-menu-toggle span:nth-child(2) {
  width: 20px;
}

.syy-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  width: 28px;
}

.syy-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  width: 28px;
}

.syy-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  width: 28px;
}

/* Full-screen overlay menu */
.syy-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--syy-black);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--syy-pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.syy-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.syy-nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.syy-nav-overlay ul li {
  margin-bottom: 20px;
}

.syy-nav-overlay ul li a {
  font-family: var(--syy-font);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 300;
  color: var(--syy-white);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.syy-nav-overlay ul li a:hover {
  opacity: 0.5;
}

/* ============================================================
   HERO SECTION
============================================================ */

.syy-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: var(--syy-black);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}

.syy-hero video,
.syy-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.syy-hero-meta {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--syy-pad);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 60px;
}

.syy-hero-client {
  font-family: var(--syy-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--syy-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.syy-hero-type {
  font-family: var(--syy-font);
  font-size: 13px;
  font-weight: 400;
  color: var(--syy-white);
  letter-spacing: 0.08em;
}

.syy-hero-link {
  font-family: var(--syy-font);
  font-size: 13px;
  font-weight: 400;
  color: var(--syy-white);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.syy-hero-link::after {
  content: ' →';
}

/* ============================================================
   INTRO SECTION (Crafting ideas...)
============================================================ */

.syy-intro {
  background: var(--syy-white);
  padding: clamp(80px, 10vw, 160px) var(--syy-pad);
}

.syy-intro-headline {
  font-family: var(--syy-font);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--syy-black);
  max-width: 1200px;
  margin-bottom: 80px;
}

.syy-intro-headline em {
  font-style: normal;
  display: inline-block;
  border-bottom: 2px solid var(--syy-black);
  padding-bottom: 2px;
  margin: 0 12px;
  min-width: 180px;
}

.syy-intro-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--syy-max);
}

.syy-intro-body p {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--syy-text);
  font-weight: 300;
}

/* ============================================================
   CASE BLOCK (full-width video/image with meta)
============================================================ */

.syy-case {
  position: relative;
  width: 100%;
  background: var(--syy-black);
  border-top: 1px solid #1a1a1a;
}

.syy-case-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.syy-case-media video,
.syy-case-media img,
.syy-case-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video controls bar */
.syy-case-controls {
  background: var(--syy-black);
  padding: 8px var(--syy-pad);
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #111;
}

.syy-case-meta {
  background: var(--syy-white);
  padding: 32px var(--syy-pad);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 60px;
  border-bottom: 1px solid #e8e8e8;
}

.syy-case-meta .case-client {
  font-family: var(--syy-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--syy-black);
}

.syy-case-meta .case-type {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--syy-text);
}

.syy-case-meta .case-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--syy-black);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.syy-case-meta .case-link::after {
  content: ' →';
}

/* ============================================================
   SERVICES / ABOUT SECTION
============================================================ */

.syy-section-dark {
  background: var(--syy-black);
  color: var(--syy-white);
  padding: clamp(80px, 10vw, 160px) var(--syy-pad);
}

.syy-section-light {
  background: var(--syy-white);
  color: var(--syy-text);
  padding: clamp(80px, 10vw, 160px) var(--syy-pad);
}

.syy-section-title {
  font-family: var(--syy-font);
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}

.syy-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}

.syy-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 60px);
}

.syy-service-item h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.syy-service-item p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.8;
}

/* ============================================================
   CLIENTS PAGE
============================================================ */

.syy-clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e0e0e0;
}

.syy-client-item {
  background: var(--syy-white);
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: background 0.2s ease;
}

.syy-client-item:hover {
  background: #f5f5f5;
}

.syy-client-item img {
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.syy-client-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   CONTACT SECTION
============================================================ */

.syy-contact {
  background: var(--syy-black);
  color: var(--syy-white);
  padding: clamp(80px, 10vw, 160px) var(--syy-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.syy-contact-headline {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.syy-contact-info p,
.syy-contact-info a {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.syy-contact-info a:hover {
  color: var(--syy-white);
}

/* Contact Form */
.syy-form input,
.syy-form textarea,
.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--syy-white);
  font-family: var(--syy-font);
  font-size: 16px;
  font-weight: 300;
  padding: 16px 0;
  margin-bottom: 32px;
  outline: none;
  transition: border-color 0.2s ease;
}

.syy-form input::placeholder,
.syy-form textarea::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.syy-form input:focus,
.syy-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-bottom-color: var(--syy-white);
}

.syy-form textarea,
.wpcf7 textarea {
  resize: none;
  min-height: 120px;
}

.syy-btn,
.wpcf7 input[type="submit"] {
  background: none;
  border: 1px solid var(--syy-white);
  color: var(--syy-white);
  font-family: var(--syy-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.syy-btn:hover,
.wpcf7 input[type="submit"]:hover {
  background: var(--syy-white);
  color: var(--syy-black);
}

/* ============================================================
   FOOTER
============================================================ */

.site-footer,
#colophon {
  background: var(--syy-black);
  color: rgba(255,255,255,0.5);
  padding: 60px var(--syy-pad);
  border-top: 1px solid #1a1a1a;
}

.syy-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--syy-max);
  margin: 0 auto;
}

.syy-footer-logo {
  font-family: var(--syy-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--syy-white);
  text-decoration: none;
}

.syy-footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.syy-footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.syy-footer-links a:hover {
  color: var(--syy-white);
}

.syy-footer-social {
  display: flex;
  gap: 20px;
}

.syy-footer-social a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.syy-footer-social a:hover {
  color: var(--syy-white);
}

.syy-footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  margin-top: 40px;
  opacity: 0.4;
}

/* Override GP footer */
.site-info {
  display: none;
}

/* ============================================================
   PAGE HERO (inner pages)
============================================================ */

.syy-page-hero {
  background: var(--syy-black);
  padding: 160px var(--syy-pad) 80px;
}

.syy-page-hero h1 {
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--syy-white);
  line-height: 1.0;
}

/* ============================================================
   CASE DETAIL PAGE
============================================================ */

.syy-case-detail-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--syy-black);
  overflow: hidden;
}

.syy-case-detail-hero video,
.syy-case-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.syy-case-detail-info {
  background: var(--syy-white);
  padding: 60px var(--syy-pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.syy-case-detail-title {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--syy-black);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1024px) {
  .syy-intro-body,
  .syy-contact,
  .syy-grid-3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .syy-clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .syy-grid-2 {
    grid-template-columns: 1fr;
  }

  .syy-clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .syy-case-meta {
    gap: 24px;
    flex-wrap: wrap;
  }

  .syy-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .syy-footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .syy-clients-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   UTILITIES
============================================================ */

.syy-text-white { color: var(--syy-white); }
.syy-text-black { color: var(--syy-black); }
.syy-bg-black   { background: var(--syy-black); }
.syy-bg-white   { background: var(--syy-white); }
.syy-uppercase  { text-transform: uppercase; letter-spacing: 0.1em; }

img { max-width: 100%; height: auto; }
a   { color: inherit; }
