/*
Theme Name: Portékajava
Theme URI: https://portekajava.hu
Author: Portékajava
Author URI: https://portekajava.hu
Description: Egyedi landing-oldal téma országos vásár- és piacszervezéshez. Meleg, kézműves hangulatú dizájn elegáns serif tipográfiával, olívazöld és terrakotta kiemelésekkel. Magyar nyelvű, reszponzív.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portekajava
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --cream:       #FBF6EC;
  --cream-2:     #F6EFE1;
  --cream-3:     #F1E8D5;
  --olive:       #6E7248;
  --olive-dark:  #565A34;
  --terracotta:  #C0583B;
  --terracotta-2:#B14E32;
  --gold:        #C39A4E;
  --ink:         #4A4635;
  --muted:       #857E6C;
  --line:        #E6DBC5;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 7px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--olive-dark);
  margin: 0;
  line-height: 1.1;
}

p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
}

/* Decorative flourish (line — heart — line) */
.flourish { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--gold); margin: 1.4rem 0; }
.flourish::before, .flourish::after { content: ""; width: 46px; height: 1px; background: currentColor; opacity: 0.7; }
.flourish svg { width: 15px; height: 15px; }
.flourish.is-center { justify-content: center; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn svg { flex: 0 0 auto; }
.btn .btn__arrow { margin-left: auto; transition: transform 0.18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(74, 70, 53, 0.15); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--olive { background: var(--olive); color: #FBF6EC; }
.btn--olive:hover { background: var(--olive-dark); }

.btn--terra { background: var(--terracotta-2); color: #FBF6EC; }
.btn--terra:hover { background: var(--terracotta); }

.btn--ghost { background: transparent; color: var(--olive-dark); border-color: var(--olive-dark); }
.btn--ghost:hover { background: var(--olive-dark); color: var(--cream); }

.btn--block { text-align: left; }
.btn--block .btn__label { display: block; }
.header-cta { flex-shrink: 0; }
.header-cta .btn__label { white-space: nowrap; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand__mark {
  width: 52px; height: 52px; flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  color: var(--olive-dark);
  line-height: 1;
}
.brand__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--terracotta); transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--terracotta); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { background: var(--cream); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.5rem, 4.7vw, 4.15rem);
  line-height: 1.08;
  color: var(--olive-dark);
  font-weight: 500;
}
.hero__title em { font-style: italic; color: var(--terracotta); }
.hero__lead {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 30rem;
  margin-bottom: 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__cta .btn { min-width: 250px; }

.hero__media { position: relative; }
.media-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3.05;
  box-shadow: 0 24px 60px rgba(74, 70, 53, 0.16);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Image placeholders (swap for real photos) */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; gap: 0.6rem;
  background:
    radial-gradient(120% 120% at 30% 20%, #EFE4CE 0%, #E7D8BC 55%, #DBC7A2 100%);
  color: var(--olive-dark);
  text-align: center;
}
.ph svg { width: 42px; height: 42px; opacity: 0.55; }
.ph span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }

/* ==========================================================================
   6. Values strip
   ========================================================================== */
.values { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.value {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: none; }
.value__icon { color: var(--gold); margin-bottom: 1rem; display: inline-flex; }
.value__icon svg { width: 34px; height: 34px; }
.value__title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 0.7rem;
}
.value__text { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ==========================================================================
   7. About
   ========================================================================== */
.about { background: var(--cream-3); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-top: clamp(2.8rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.8rem, 5vw, 4.5rem);
}
.about__title { font-size: clamp(2.4rem, 3.4vw, 3.2rem); }
.about__text p { color: var(--muted); max-width: 34rem; }
.about__text .btn { margin-top: 0.6rem; }

.about__gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 0.9rem;
  height: 100%;
}
.about__gallery .media-frame { aspect-ratio: auto; height: 100%; min-height: 210px; box-shadow: 0 14px 34px rgba(74, 70, 53, 0.13); }

/* ==========================================================================
   8. Stats
   ========================================================================== */
.stats { background: var(--cream-3); border-top: 1px solid var(--line); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}
.stat { display: flex; align-items: center; gap: 1.1rem; justify-content: center; }
.stat__icon { color: var(--gold); flex: 0 0 auto; }
.stat__icon svg { width: 40px; height: 40px; }
.stat__body { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--olive-dark);
  line-height: 1;
}
.stat__label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { background: var(--olive-dark); color: #E9E4D3; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding-top: 2.2rem; padding-bottom: 2.2rem;
}
.site-footer .brand__name { color: #F4EFDF; }
.site-footer .brand__mark { border-color: rgba(244,239,223,0.6); color: #EBD9AE; }
.site-footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }
.site-footer__nav a { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #DAD3BF; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.13); padding-top: 1.2rem; font-size: 0.78rem; color: #CFC8B4; }

/* ==========================================================================
   10. Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .values__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 0; }
  .value:nth-child(3) { border-right: none; }
  .value:nth-child(n+4) { padding-top: 0.5rem; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .about__inner { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
}

@media (max-width: 1200px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 0.9rem 0; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--olive-dark); display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value { border-right: none; }
  .about__gallery { grid-template-columns: 1fr 1fr; }
  .about__gallery .media-frame:first-child { grid-column: 1 / -1; }
  .hero__cta .btn { min-width: 100%; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
