/*
Theme Name: Cutler Gym Nyíregyháza
Theme URI: https://cutlergym.hu/
Author: Cutler Gym
Description: Gyors, egyedi WordPress téma szerkeszthető árlistával, pályázatokkal, elfogadóhelyekkel és galériával.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: cutler-gym
*/

:root {
  --brand: #c2185b;
  --brand-dark: #9f1048;
  --ink: #0a0a0a;
  --paper: #f7f7f8;
  --white: #fff;
  --muted: #60646c;
  --border: rgba(10, 10, 10, .12);
  --shadow: 0 12px 32px rgba(0, 0, 0, .14);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.container { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 104px) 0; scroll-margin-top: 126px; }
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-weight: 900; }
.section-title--brand { color: var(--brand); }
.eyebrow {
  margin: 0 0 12px; color: var(--brand); font-size: .78rem; font-weight: 900;
  letter-spacing: .2em; text-transform: uppercase;
}
.button {
  align-items: center; background: var(--brand); border: 2px solid var(--brand); color: #fff;
  display: inline-flex; font-weight: 800; gap: 8px; justify-content: center; min-height: 48px;
  padding: 10px 20px; text-decoration: none; transition: .2s ease;
}
.button:hover, .button:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); }
.button--outline { background: transparent; color: var(--brand); }
.button--outline:hover, .button--outline:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Fejléc */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.header-row { display: flex; min-height: 68px; }
.funding-badge {
  align-items: center; background: #fff; display: flex; flex: 0 0 auto; justify-content: center;
  padding: 6px 12px; text-decoration: none;
}
.funding-badge img { max-height: 56px; width: auto; }
.nav-shell { background: var(--brand); color: #fff; flex: 1; }
.nav-inner { align-items: center; display: flex; justify-content: space-between; min-height: 68px; }
.brand-link { align-items: center; display: flex; gap: 12px; font-weight: 800; text-decoration: none; }
.brand-mark {
  align-items: center; background: #fff; color: var(--brand); display: inline-flex; font-size: .9rem;
  font-weight: 950; height: 42px; justify-content: center; letter-spacing: .08em; width: 48px;
}
.site-nav { align-items: center; display: flex; gap: 2px; }
.site-nav a { font-size: .9rem; font-weight: 700; padding: 10px 12px; text-decoration: none; transition: .2s; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .is-current { background: #fff; color: var(--brand); }
.menu-toggle { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; display: none; padding: 9px; }
.menu-toggle svg { display: block; height: 24px; width: 24px; }

/* Főoldal */
.hero {
  background: #000 center / contain no-repeat; min-height: clamp(210px, 30vw, 390px); overflow: hidden; position: relative;
}
.hero-video { height: 100%; inset: 0; object-fit: cover; object-position: center; position: absolute; width: 100%; }
.hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.2)); inset: 0; pointer-events: none; position: absolute; }
.hero-video-toggle {
  align-items: center; backdrop-filter: blur(5px); background: rgba(0,0,0,.52); border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%; bottom: 18px; color: #fff; cursor: pointer; display: flex; height: 44px; justify-content: center;
  padding: 0; position: absolute; right: 18px; transition: .2s ease; width: 44px; z-index: 2;
}
.hero-video-toggle:hover, .hero-video-toggle:focus-visible { background: var(--brand); border-color: #fff; transform: scale(1.06); }
.hero-video-toggle svg { fill: currentColor; height: 22px; width: 22px; }
.hero-video-toggle__play, .hero-video-toggle.is-paused .hero-video-toggle__pause { display: none; }
.hero-video-toggle.is-paused .hero-video-toggle__play { display: block; }
.intro-grid { align-items: center; display: grid; gap: clamp(36px, 7vw, 84px); grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); }
.intro-title { color: var(--brand); font-size: clamp(2.2rem, 4.6vw, 4.15rem); font-weight: 950; line-height: 1.05; margin: 0 0 24px; }
.intro-copy { color: #34363a; font-size: clamp(1.08rem, 1.7vw, 1.28rem); margin: 0; }
.social-title { font-weight: 800; margin: 32px 0 16px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.intro-photo { position: relative; }
.intro-photo::before { background: rgba(194,24,91,.15); content: ""; inset: -12px; position: absolute; transform: translate(12px, 12px); }
.intro-photo img { aspect-ratio: 4 / 5; border: 1px solid var(--border); box-shadow: var(--shadow); object-fit: cover; position: relative; width: 100%; }

.prices { background: var(--brand); color: #fff; }
.prices .section-title { text-align: center; }
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 42px; }
.price-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); display: flex;
  flex-direction: column; justify-content: space-between; min-height: 196px; padding: 26px; position: relative;
  transition: .2s ease;
}
.price-card:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.price-card.is-featured { outline: 2px solid #fff; outline-offset: 3px; }
.price-card__badge { background: #fff; color: var(--brand); font-size: .7rem; font-weight: 900; left: 18px; padding: 4px 9px; position: absolute; text-transform: uppercase; top: -14px; }
.price-card h3 { font-size: 1.1rem; line-height: 1.35; margin: 0; }
.price-card__subtitle { color: rgba(255,255,255,.72); display: block; font-size: .86rem; margin-top: 3px; }
.price-card__price { font-size: clamp(2.05rem, 3.1vw, 2.7rem); font-weight: 950; line-height: 1; margin: 28px 0 0; max-width: 100%; white-space: nowrap; }
.price-card__unit { font-size: .95rem; }
.price-card__note { color: rgba(255,255,255,.74); font-size: .84rem; margin: 12px 0 0; }
.price-note { color: rgba(255,255,255,.72); font-size: .88rem; margin: 26px 0 0; text-align: center; }

.projects { background: #fff; }
.projects .section-title { text-align: center; }
.project-list { display: grid; gap: 38px; margin-top: 42px; }
.project-card { background: var(--paper); border: 1px solid rgba(194,24,91,.2); box-shadow: var(--shadow); }
.project-card__header { background: var(--brand); color: #fff; padding: 24px 28px; }
.project-card__program { font-size: .77rem; font-weight: 850; letter-spacing: .08em; margin: 0; text-transform: uppercase; }
.project-card__header h3 { font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.2; margin: 8px 0 0; }
.project-card__body { display: grid; gap: 42px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: clamp(24px, 4vw, 42px); }
.project-card h4 { color: var(--brand); font-size: 1.2rem; margin: 0 0 16px; }
.project-facts { list-style: none; margin: 0; padding: 0; }
.project-facts li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.project-message { background: #fff; border-left: 4px solid var(--brand); color: var(--brand); font-weight: 900; margin-top: 24px; padding: 18px; text-transform: uppercase; }
.project-content > :first-child { margin-top: 0; }
.project-content > :last-child { margin-bottom: 0; }
.project-content a { color: var(--brand); font-weight: 750; }
.project-logos { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 28px; }
.project-logos img { max-height: 58px; max-width: 220px; object-fit: contain; width: auto; }

.acceptance { text-align: center; }
.acceptance-grid { align-items: stretch; display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; margin-top: 40px; }
.acceptance-card { align-items: center; display: flex; flex: 0 1 270px; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.acceptance-card img { height: 110px; margin-bottom: 14px; object-fit: contain; width: 180px; }
.acceptance-card strong { font-size: 1.06rem; }

.contact { background: var(--ink); color: #fff; }
.contact-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { margin: 11px 0; }
.contact-list a:hover { color: #f08ab5; }
.hours { background: #fff; border-left: 4px solid var(--brand); color: var(--ink); margin-top: 32px; padding: 22px; }
.hours h3 { color: var(--brand); margin: 0 0 12px; }
.hours p { margin: 3px 0; white-space: pre-line; }
.map { border: 1px solid var(--brand); box-shadow: var(--shadow); min-height: 420px; overflow: hidden; }
.map iframe { border: 0; display: block; height: 100%; min-height: 420px; width: 100%; }

/* Galéria és aloldalak */
.page-hero { background: var(--ink); color: #fff; padding: clamp(62px, 9vw, 110px) 0; text-align: center; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.3rem); line-height: 1; margin: 0; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1.13rem; margin: 20px auto 0; max-width: 700px; }
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.gallery-item { aspect-ratio: 1; background: #1c1c1c; border: 0; cursor: zoom-in; overflow: hidden; padding: 0; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .45s ease; width: 100%; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { align-items: center; background: rgba(0,0,0,.94); display: none; inset: 0; justify-content: center; padding: 28px; position: fixed; z-index: 9999; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: calc(100vh - 56px); max-width: min(1200px, calc(100vw - 56px)); object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next { background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; font-size: 2rem; height: 48px; position: absolute; width: 48px; }
.lightbox__close { right: 18px; top: 18px; }
.lightbox__prev { left: 18px; top: calc(50% - 24px); }
.lightbox__next { right: 18px; top: calc(50% - 24px); }
.entry { background: #fff; margin: 48px auto; max-width: 900px; padding: clamp(24px, 5vw, 60px); }
.entry a { color: var(--brand); }
.not-found { min-height: 60vh; text-align: center; }

.site-footer { background: var(--brand); color: #fff; padding: 28px 0; text-align: center; }
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  .header-row { display: block; }
  .funding-badge { height: 54px; }
  .funding-badge img { max-height: 45px; }
  .menu-toggle { display: block; }
  .site-nav {
    align-items: stretch; background: var(--brand); display: none; flex-direction: column; left: 0;
    padding: 8px 16px 16px; position: absolute; right: 0; top: 122px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .intro-grid, .project-card__body, .contact-grid { grid-template-columns: 1fr; }
  .intro-copy-wrap { text-align: center; }
  .social-links { justify-content: center; }
  .intro-photo { margin-inline: auto; max-width: 620px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .map { min-height: 360px; }
  .map iframe { min-height: 360px; }
}

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--content)); }
  .brand-link { font-size: .86rem; }
  .brand-mark { height: 38px; width: 44px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .project-card__header { padding: 20px; }
  .project-card__body { padding: 20px; }
  .project-logos { align-items: center; flex-direction: column; }
  .lightbox { padding: 14px; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
  .hero-video-toggle { bottom: 12px; height: 40px; right: 12px; width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
