/*
Theme Name: SHIFT Studio
Theme URI: https://shiftstudio.hu
Author: SHIFT Studio Lab
Description: Könnyű blokktéma a SHIFT Studio Lab számára. Csak a WordPress saját blokkszerkesztőjét használja; oldalépítő bővítmény nem szükséges. Tartalmaz egy saját Előtte–utána képösszehasonlító blokkot.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shift-studio
*/

:root {
  --ink: #080808;
  --paper: #f5f3ed;
  --warm: #dcd9d1;
  --placeholder: #d2d3d0;
  --muted: #65645f;
  --line: rgba(8, 8, 8, 0.22);
  --pad: clamp(24px, 7vw, 112px);
  --max: 1600px;
  --side: max(var(--pad), calc((100vw - var(--max)) / 2));
  --indent: min(300px, 22vw);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Google Sans", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.wp-site-blocks { overflow-x: hidden; }
.wp-site-blocks img { max-width: 100%; height: auto; }

/* ---------- Gombok (core/button) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-element-button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
  background: var(--ink);
  color: #fff;
}
.dark-section .wp-block-button .wp-block-button__link:hover,
.dark-section .wp-block-button .wp-block-button__link:focus-visible {
  background: #fff;
  color: var(--ink);
}

/* ---------- Fejléc ---------- */
.site-header {
  width: min(calc(100% - (2 * var(--pad))), var(--max));
  min-height: 172px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .brand { width: 148px; margin: 0; }
.site-header .brand img { width: 148px; height: 74px; object-fit: contain; display: block; }
.site-nav { align-self: flex-end; padding-bottom: 36px; }
.site-nav .wp-block-navigation__container { gap: clamp(24px, 3vw, 52px); }
.site-nav .wp-block-navigation-item__content {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation-item__content:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-nav .wp-block-navigation__responsive-container-open,
.site-nav .wp-block-navigation__responsive-container-close { color: var(--ink); }
.site-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--paper);
  padding: 32px var(--pad);
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 22px;
  padding: 10px 0;
}

/* ---------- Szekciók általános ---------- */
.section-pad {
  padding: clamp(90px, 10vw, 160px) var(--side);
}
.dark-section { background: var(--ink); color: #fff; }
.bg-warm { background: var(--warm); }
.bg-stone { background: #ebe9e3; }
.bg-sand { background: #dfddd6; }

.kicker,
.section-number,
.section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: 80px 220px minmax(0, 1fr);
  gap: 28px;
}
.section-heading h2,
.section-heading .wp-block-heading {
  max-width: 960px;
  margin: 0;
  font-size: clamp(46px, 6.1vw, 96px);
  font-weight: 500;
  line-height: 0.98;
}
.section-heading.compact h2 { font-size: clamp(42px, 5vw, 76px); }

.indent { margin-left: var(--indent) !important; }

/* ---------- Nyitó blokk ---------- */
.hero {
  min-height: min(980px, calc(100svh - 172px));
  padding: 24px var(--side) clamp(72px, 8vw, 130px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-meta {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--ink);
}
.hero-title { margin: clamp(70px, 10vw, 150px) 0; }
.hero h1 {
  max-width: 1260px;
  margin: 0;
  font-size: clamp(62px, 8.25vw, 132px);
  font-weight: 600;
  line-height: 0.91;
}
.hero-subtitle {
  max-width: 900px;
  margin: clamp(24px, 3vw, 44px) 0 0;
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.2;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.hero-bottom > * { grid-column: 2; }
.hero-bottom > p {
  max-width: 820px;
  margin: 0;
  font-size: clamp(19px, 1.7vw, 27px);
  line-height: 1.42;
}

/* ---------- Szöveges szekciók ---------- */
.problem, .deliverable { min-height: 760px; }
.two-col-copy {
  max-width: 930px;
  margin: clamp(90px, 10vw, 160px) 0 0 var(--indent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 110px);
}
.two-col-copy p { margin: 0; font-size: clamp(20px, 2vw, 30px); line-height: 1.38; }
.large-copy {
  max-width: 850px;
  margin: clamp(85px, 9vw, 145px) 0 0 var(--indent);
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.2;
}
.intro-copy {
  max-width: 690px;
  margin: clamp(85px, 9vw, 145px) 0 0 var(--indent);
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.45;
}

/* ---------- Munkák / esettanulmány ---------- */
.case-grid {
  margin: clamp(80px, 9vw, 145px) 0 60px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 42px;
  align-items: start;
}
.case-grid > * { margin: 0; }
.case-text h3 {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.6vw, 43px);
  font-weight: 600;
  line-height: 1.04;
}
.case-text p { margin: 0 0 18px; font-size: 17px; line-height: 1.55; }
.concept-note {
  display: inline-block;
  margin-top: 12px !important;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

/* ---------- Csomagok ---------- */
.package-grid {
  margin: clamp(90px, 10vw, 155px) 0 0 var(--indent);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.package {
  min-height: 610px;
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}
.package .package-id { margin: 0 0 70px; font-size: 12px; font-weight: 700; }
.package h3 {
  margin: 0 0 32px;
  font-size: clamp(30px, 2.6vw, 43px);
  font-weight: 600;
  line-height: 1.04;
}
.package > p { margin: 0 0 19px; font-size: 17px; line-height: 1.52; }
.package .duration { margin-top: auto; padding-top: 30px; font-size: 13px; }
.package .package-action { margin: 28px 0 0; }
.package .duration + .package-action { margin-top: 28px; }
.package .package-action:only-of-type { margin-top: auto; }
.package-action,
.package-action a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.package-action a { text-decoration: none; }
.package-action a:hover, .package-action a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.package-custom .package-action { margin-top: auto; padding-top: 30px; }

/* ---------- Folyamat ---------- */
.process-grid {
  margin: clamp(90px, 10vw, 150px) 0 0 var(--indent);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.process-item {
  min-height: 330px;
  padding: 25px 36px 30px 0;
  border-top: 1px solid var(--ink);
}
.process-item:nth-child(even) { padding-left: 36px; }
.process-item .step-number { margin: 0; font-size: 11px; font-weight: 700; }
.process-item h3 {
  max-width: 390px;
  margin: 85px 0 20px;
  font-size: clamp(25px, 2.3vw, 38px);
  font-weight: 600;
  line-height: 1.05;
}
.process-item p:not(.step-number) { max-width: 450px; margin: 0; font-size: 16px; line-height: 1.48; }

/* ---------- Rólam ---------- */
.about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(55px, 8vw, 120px);
}
.portrait { aspect-ratio: 3 / 4; margin: 0; overflow: hidden; background: var(--placeholder); }
.portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 46%; }
.about-copy { padding-top: 10px; }
.about-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.about-kicker.muted { margin: 8px 0 clamp(65px, 8vw, 120px); color: var(--muted); }
.display-h2,
.about h2, .reassurance h2, .contact h2, .service-cta h2 {
  margin: 0;
  font-size: clamp(43px, 5.2vw, 78px);
  font-weight: 500;
  line-height: 0.99;
}
.about-copy > p:not(.about-kicker) { margin: 42px 0 0; font-size: 17px; line-height: 1.55; }

/* ---------- Megnyugtatás ---------- */
.reassurance {
  min-height: 820px;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 28px;
}
.reassurance h2 { max-width: 940px; }
.reassurance-copy {
  max-width: 930px;
  margin: clamp(75px, 8vw, 120px) 0 0 min(220px, 17vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 70px;
}
.reassurance-copy p { margin: 0; font-size: 17px; line-height: 1.55; }
.reassurance-copy p:last-child { grid-column: 1 / 3; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- Kapacitás ---------- */
.capacity-status {
  max-width: 900px;
  margin: clamp(80px, 8vw, 125px) 0 0 var(--indent);
  padding: 34px 0 38px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(32px, 4.5vw, 68px);
  font-weight: 500;
  line-height: 1.04;
}
.capacity-note { max-width: 650px; margin: 35px 0 0 var(--indent); font-size: 15px; line-height: 1.5; }

/* ---------- Kapcsolat / CTA ---------- */
.contact, .service-cta { min-height: 730px; display: flex; flex-direction: column; }
.contact h2, .service-cta h2 { max-width: 1000px; margin-top: clamp(75px, 8vw, 120px); }
.contact > p:not(.kicker), .service-cta > p:not(.kicker) {
  max-width: 760px;
  margin: 45px 0 0;
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.45;
}
.contact-actions { margin-top: auto; padding-top: 60px; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.contact-actions > * { margin: 0; }
.email-link { font-size: clamp(18px, 2vw, 30px); }
.email-link a { text-underline-offset: 7px; }

/* ---------- Szolgáltatásoldalak ---------- */
.service-hero {
  min-height: 830px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.service-hero-meta a { text-underline-offset: 5px; }
.service-hero h1 {
  max-width: 1220px;
  margin: clamp(85px, 10vw, 155px) 0;
  font-size: clamp(58px, 7.7vw, 122px);
  font-weight: 600;
  line-height: 0.94;
}
.service-hero-copy {
  max-width: 930px;
  margin-left: var(--indent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 64px;
}
.service-hero-copy p { margin: 0; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.48; }
.service-hero-copy p:last-child { grid-column: 1 / 3; max-width: 850px; padding-top: 28px; border-top: 1px solid var(--line); }

.service-section-heading { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 28px; }
.service-section-heading h2 {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(46px, 5.8vw, 90px);
  font-weight: 500;
  line-height: 0.99;
}
.service-steps, .service-body { max-width: 1020px; margin: clamp(80px, 9vw, 140px) 0 0 var(--indent); }
.service-step {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 0 clamp(45px, 6vw, 90px);
  padding: 36px 0 52px;
  border-top: 1px solid currentColor;
}
.service-step h3 {
  grid-column: 1;
  grid-row: 1 / span 10;
  margin: 0;
  font-size: clamp(25px, 2.3vw, 37px);
  font-weight: 600;
  line-height: 1.08;
}
.service-step p { grid-column: 2; margin: 0 0 20px; font-size: 17px; line-height: 1.58; }
.service-step p:last-child { margin-bottom: 0; }
.service-body { max-width: 850px; }
.service-body > p { margin: 0 0 25px; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.55; }
.service-list { margin: 40px 0 48px; padding: 0; list-style: none; }
.service-list li {
  position: relative;
  padding: 22px 0 22px 42px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
}
.dark-section .service-list li { border-top-color: rgba(255,255,255,0.3); }
.service-list li::before { content: "↘"; position: absolute; top: 22px; left: 0; font-weight: 700; }
.service-body > p.service-price {
  max-width: 760px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.08;
}
.service-application { margin-top: auto; padding-top: 60px; }

/* ---------- Jogi és egyszerű szöveges oldalak ---------- */
.text-page h1 {
  max-width: 1100px;
  margin: clamp(40px, 6vw, 90px) 0 clamp(50px, 6vw, 90px);
  font-size: clamp(46px, 6vw, 96px);
  font-weight: 600;
  line-height: 0.96;
}
.text-page .text-body { max-width: 820px; margin-left: var(--indent); }
.text-page .text-body h2 { margin: 56px 0 18px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; line-height: 1.1; }
.text-page .text-body h3 { margin: 32px 0 12px; font-size: 20px; font-weight: 700; }
.text-page .text-body p, .text-page .text-body li { font-size: 17px; line-height: 1.6; }
.text-page .text-body p { margin: 0 0 16px; }

/* ---------- Lábléc ---------- */
.site-footer {
  min-height: 180px;
  padding: 28px var(--side);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 38px;
  align-items: end;
  border-top: 1px solid #505050;
  background: var(--ink);
  color: #aaa;
}
.site-footer .footer-logo { margin: 0; }
.site-footer .footer-logo img { width: 112px; height: 68px; object-fit: contain; display: block; }
.site-footer p {
  margin: 0 0 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }

/* ---------- Oldal teteje gomb ---------- */
.back-to-top {
  position: fixed;
  right: clamp(18px, 2.4vw, 38px);
  bottom: clamp(18px, 2.4vw, 38px);
  z-index: 20;
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.86);
  color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--ink); outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) and (min-width: 821px) {
  .package-grid { grid-template-columns: 1fr 1fr; }
  .package-custom { grid-column: 1 / 3; min-height: 480px; }
}
@media (max-width: 820px) {
  :root { --pad: 20px; --indent: 0px; }
  .site-header { min-height: 112px; }
  .site-header .brand, .site-header .brand img { width: 108px; height: 58px; }
  .site-nav { align-self: center; padding-bottom: 0; }
  .hero { min-height: 0; padding-top: 0; padding-bottom: 72px; }
  .hero-meta { display: block; }
  .hero-meta p + p { margin-top: 8px; }
  .hero-title { margin: 70px 0 60px; }
  .hero h1 { font-size: clamp(51px, 14vw, 75px); }
  .hero-subtitle { margin-top: 28px; font-size: clamp(24px, 7vw, 34px); }
  .hero-bottom, .two-col-copy, .package-grid, .about, .reassurance, .reassurance-copy,
  .case-grid, .process-grid, .service-hero-copy { grid-template-columns: 1fr; }
  .hero-bottom { gap: 34px; }
  .hero-bottom > * { grid-column: 1; }
  .hero-bottom > p { font-size: 19px; }
  .section-pad { padding-top: 82px; padding-bottom: 82px; }
  .section-heading { grid-template-columns: 42px 1fr; gap: 14px; }
  .section-heading h2 { grid-column: 1 / 3; margin-top: 42px; font-size: clamp(43px, 12.8vw, 62px); }
  .problem, .deliverable { min-height: 0; }
  .two-col-copy { margin-top: 75px; }
  .two-col-copy p { font-size: 22px; }
  .large-copy { margin-top: 70px; font-size: 27px; }
  .intro-copy { margin-top: 65px; }
  .package-grid { margin-top: 80px; gap: 70px; }
  .package { min-height: 0; }
  .package .package-id { margin-bottom: 40px; }
  .process-grid { margin-top: 75px; }
  .process-item, .process-item:nth-child(even) { min-height: 0; padding: 22px 0 30px; }
  .process-item h3 { margin-top: 58px; }
  .about { gap: 70px; }
  .about h2, .reassurance h2, .contact h2, .service-cta h2, .display-h2 { font-size: clamp(43px, 12.5vw, 60px); }
  .reassurance { min-height: 0; gap: 46px; }
  .reassurance-copy { margin: 64px 0 0; gap: 28px; }
  .reassurance-copy p:last-child { grid-column: 1; }
  .capacity-status { margin-top: 65px; }
  .contact, .service-cta { min-height: 0; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .site-footer { min-height: 240px; grid-template-columns: 1fr; gap: 10px; }
  .back-to-top { width: 46px; padding: 0; justify-content: center; font-size: 16px; }
  .back-to-top .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .service-hero { min-height: 0; }
  .service-hero-meta { align-items: flex-start; flex-direction: column; }
  .service-hero h1 { margin: 70px 0 60px; font-size: clamp(51px, 14vw, 72px); }
  .service-hero-copy { gap: 26px; margin-left: 0; }
  .service-hero-copy p:last-child { grid-column: 1; padding-top: 26px; }
  .service-section-heading { grid-template-columns: 42px 1fr; gap: 14px; }
  .service-section-heading h2 { grid-column: 1 / 3; margin-top: 42px; font-size: clamp(43px, 12.8vw, 62px); }
  .service-steps, .service-body { margin: 70px 0 0; }
  .service-step { grid-template-columns: 1fr; gap: 30px; padding: 30px 0 42px; }
  .service-step h3, .service-step p { grid-column: 1; grid-row: auto; }
  .service-step h3 { font-size: 30px; }
  .service-body > p { font-size: 18px; }
  .service-list li { padding-left: 34px; }
  .text-page .text-body { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-block-button .wp-block-button__link, .back-to-top { transition: none; }
}
