/*
Theme Name: DAN SIÓFOK GeneratePress Child
Theme URI: https://www.dansiofok.hu
Description: GeneratePress child theme for DAN SIÓFOK project
Author: Öszzkép design
Author URI: https://www.dansiofok.hu
Template: generatepress
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dan-siofok-gp-ch
Domain Path: /languages
*/

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* === GB Pattern: Hero Kitchen === */

.hero-kitchen-outer {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 8rem) 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23ddd" width="1200" height="800"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: white;
}

.hero-kitchen-inner {
  max-width: 1450px;
  width: 80%;
  margin: 0 auto;
}

.hero-kitchen-heading {
  color: white;
  font-style: italic;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  letter-spacing: 0.01em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-kitchen-subtitle {
  color: #d0d0d0;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-kitchen-button {
  display: inline-block;
  background-color: #a82535;
  color: white;
  padding: clamp(0.8rem, 1.5vw, 1.2rem) clamp(2rem, 3vw, 3rem);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 37, 53, 0.3);
}

.hero-kitchen-button:hover {
  background-color: #8b1f2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 37, 53, 0.5);
  color:#fff;
}



/* === GB Pattern: Steps Timeline Kitchen === */

/* Függőleges vonal a timeline mellett */
.gb-element-3c8d7e9f {
  border-left: 2px solid #c0392b;
}

/* Piros pontok a számok előtt */
.gb-text-5e0f9a1b::before,
.gb-text-0d5e4f6a::before,
.gb-text-5c0d9e1f::before,
.gb-text-0b5c4d6e::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background-color: #c0392b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fafafa;
}

/* Szöveg animáció fade-up */
@keyframes gb-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gb-element-4d9e8f0a,
.gb-element-9c4d3e5f,
.gb-element-4b9c8d0e,
.gb-element-9a4b3c5d {
  animation: gb-fade-up 0.6s ease forwards;
}

.gb-element-4d9e8f0a { animation-delay: 0s; }
.gb-element-9c4d3e5f { animation-delay: 0.1s; }
.gb-element-4b9c8d0e { animation-delay: 0.2s; }
.gb-element-9a4b3c5d { animation-delay: 0.3s; }

@media (max-width: 1024px) {
  .gb-element-3c8d7e9f {
    border-left: none;
    padding-left: 0;
  }

  .gb-text-5e0f9a1b::before,
  .gb-text-0d5e4f6a::before,
  .gb-text-5c0d9e1f::before,
  .gb-text-0b5c4d6e::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .gb-text-1a6e5f7b {
    font-size: 1.75rem;
  }
}

/* kártya kép hover*/

/* A konténer */
.hover-zoom-container {
    overflow: hidden;
    position: relative;
    isolation: isolate;
}


/* A kép */
.hover-zoom-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    width: 100%;
}

/* A kép */
.hover-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    width: 100%;
    height: 100%;
}

/* Nagyítás hover-nél */
.hover-zoom-container:hover img {
    transform: scale(1.08);
}

/* Link hover effect */
a[href*="blog"] {
    text-decoration: none;
}

/* === GB Pattern: Process Timeline === */

.pt-section {
  padding: 4rem 2rem;
}

.pt-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.pt-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.pt-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.pt-timeline {
  position: relative;
  padding-left: 3rem;
}

/* Függőleges vonal az időérvonalhoz */
.pt-timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d4464f;
}

.pt-step {
  margin-bottom: 3rem;
  position: relative;
  display: flex;
  gap: 1rem;
}

/* Pötty az időérvonalhoz */
.pt-step::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 0;
  width: 14px;
  height: 14px;
  background: #d4464f;
  border-radius: 50%;
  border: 3px solid #fff;
  flex-shrink: 0;
  transform: translateX(-50%);
}

.pt-step-num {
  color: #d4464f;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  min-width: 30px;
  flex-shrink: 0;
}

.pt-step-content {
  display: flex;
  flex-direction: column;
}

.pt-step-title {
  margin: 0 0 0.5rem;
  font-style: italic;
}

.pt-step-desc {
  color: #666;
  margin: 0;
}

@media (max-width: 1024px) {
  .pt-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .pt-section {
    padding: 2rem 1rem;
  }

  .pt-title {
    font-size: 1.75rem;
  }

  .pt-inner {
    gap: 1.5rem;
  }

  .pt-timeline {
    padding-left: 1.5rem;
  }

  .pt-dot {
    left: -9px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .pt-timeline-line {
    width: 1px;
  }
}

/* === Menu Button === */

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #c0392b;
  color: #ffffff;
  padding: 5px!important;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
  animation: pulse-elegant 2.5s ease-in-out infinite;
}

.menu-button:hover {
  background-color: #a93226;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(192, 57, 43, 0.4);
}

.menu-button:active {
  transform: translateY(-1px);
}

@keyframes pulse-elegant {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3), 0 0 0 0 rgba(192, 57, 43, 0.7);
  }
  50% {
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3), 0 0 0 12px rgba(192, 57, 43, 0);
  }
}

/* === Scroll Down Indicator === */

.scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: scroll-bounce 2.2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  opacity: 0.8;
}

@keyframes scroll-bounce {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Animation Classes === */
/* Az elemek alapvetően normálisak, az animáció akkor fut, amikor .in-view class hozzáadódik */

/* Fade In */
.fade-in.in-view {
  animation: anim-fade-in 0.8s ease forwards;
}

/* Fade In Up */
.fade-in-up.in-view {
  animation: anim-fade-in-up 0.8s ease forwards;
}

/* Slide In Left */
.slide-in-left.in-view {
  animation: anim-slide-in-left 0.8s ease forwards;
}

/* Slide In Right */
.slide-in-right.in-view {
  animation: anim-slide-in-right 0.8s ease forwards;
}

/* Slide In Top */
.slide-in-top.in-view {
  animation: anim-slide-in-top 0.8s ease forwards;
}

/* Slide In Bottom */
.slide-in-bottom.in-view {
  animation: anim-slide-in-bottom 0.8s ease forwards;
}

/* Scale In */
.scale-in.in-view {
  animation: anim-scale-in 0.8s ease forwards;
}

/* Fallback untuk older browsers */
@supports not (animation-timeline: view()) {
  .fade-in,
  .fade-in-up,
  .slide-in-left,
  .slide-in-right,
  .slide-in-top,
  .slide-in-bottom,
  .scale-in {
    opacity: 0;
  }

  .fade-in.in-view {
    animation: anim-fade-in 0.8s ease forwards;
  }

  .fade-in-up.in-view {
    animation: anim-fade-in-up 0.8s ease forwards;
  }

  .slide-in-left.in-view {
    animation: anim-slide-in-left 0.8s ease forwards;
  }

  .slide-in-right.in-view {
    animation: anim-slide-in-right 0.8s ease forwards;
  }

  .slide-in-top.in-view {
    animation: anim-slide-in-top 0.8s ease forwards;
  }

  .slide-in-bottom.in-view {
    animation: anim-slide-in-bottom 0.8s ease forwards;
  }

  .scale-in.in-view {
    animation: anim-scale-in 0.8s ease forwards;
  }
}

/* Staggered Items - gyermek elemekhez */
.stagger-items > * {
  animation: anim-fade-in-up 0.6s ease forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
  opacity: 0;
}

.stagger-items > :nth-child(1) { animation-delay: 0s; }
.stagger-items > :nth-child(2) { animation-delay: 0.1s; }
.stagger-items > :nth-child(3) { animation-delay: 0.2s; }
.stagger-items > :nth-child(4) { animation-delay: 0.3s; }
.stagger-items > :nth-child(5) { animation-delay: 0.4s; }
.stagger-items > :nth-child(n+6) { animation-delay: calc(0.1s * (var(--child-index, 5))); }

/* === Animation Keyframes === */

@keyframes anim-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes anim-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes anim-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes anim-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes anim-slide-in-top {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes anim-slide-in-bottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes anim-scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Contact Section === */

.contact-section {
  background: #f5f5f5;
  padding: 4rem 2rem;
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-left {
  padding-right: 2rem;
}

.contact-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #222;
}

.contact-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2rem;
}

.contact-info {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.contact-info strong {
  font-weight: 600;
  color: #222;
}

.contact-social {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.contact-social a {
  color: #8B9D46;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-social a:hover {
  color: #6d7a35;
}

.contact-right {
  display: flex;
  flex-direction: column;
}

.contact-image {
  margin: 0;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-left {
    padding-right: 0;
  }

  .contact-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-desc {
    font-size: 0.9rem;
  }
}


/* === Subpage Header === */

.subpage-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), #2a2a2a;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 6rem 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.subpage-header h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.subpage-header p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .subpage-header {
    padding: 3rem 1rem;
    min-height: 300px;
  }

  .subpage-header h1 {
    font-size: 2rem;
  }

  .subpage-header p {
    font-size: 0.95rem;
  }
}

/* === Footer Contact Section === */

.footer-contact-section {
  background: #f5f5f5;
  padding: 0;
}

.footer-map-wrapper {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23e0e0e0" width="1200" height="400"/><circle cx="300" cy="200" r="150" fill="%23d0d0d0" opacity="0.3"/></svg>');
  background-size: cover;
  background-position: center;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 4%;
}

.footer-green-card {
  background: #8B9D46;
  color: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.footer-green-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94191b;
  background: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.footer-directions-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}
.gb-text-footcopytext{
  margin-bottom: 0px;
}



/* Responsive */
@media (max-width: 1024px) {
  .footer-map-wrapper {
    justify-content: center;
    padding: 2rem 2%;
    min-height: 300px;
  }

  .footer-green-card {
    padding: 2rem 1.5rem;
  }

  .footer-contact-info {
    grid-template-columns: 1fr;
    padding: 2rem 2%;
    gap: 1.5rem;
  }

  .footer-social-links {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .footer-map-wrapper {
    min-height: 250px;
    padding: 1.5rem 1rem;
  }

  .footer-green-card {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }

  .footer-green-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-contact-info {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .footer-contact-item {
    padding: 1rem 0;
  }

  .footer-social-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .hero-kitchen-outer {
    min-height: 80vh;
  }
}

@media (max-width: 767px) {
  .hero-kitchen-outer {
    min-height: 70vh;
    padding: clamp(2rem, 5vw, 3rem) 0;
    background-attachment: scroll;
  }

  .hero-kitchen-inner {
    width: 90%;
  }

  .hero-kitchen-heading {
    margin-bottom: 1rem;
  }

  .hero-kitchen-subtitle {
    margin-bottom: 1.5rem;
  }
}

/* === Product Detail Carousel === */
#main-product-image {
  transition: opacity 0.4s ease-in-out;
}

.product-thumbnail {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.product-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-thumbnail.active {
  border-color: #a82535;
  box-shadow: 0 2px 8px rgba(168, 37, 53, 0.3);
}

/* Pötty az időérvonalhoz */
.pt-step::before {

  left: -44px;
}

/* === Scale-up Animation (Scroll Triggered) === */
@keyframes scale-up {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-up {
  opacity: 0;
  transform: scale(0.95);
}

/* Animation triggered when JS adds in-view class */
.scale-up.in-view {
  animation: scale-up 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

.scale-up.in-view:nth-child(2) {
  animation-delay: 0.4s;
}

.scale-up.in-view:nth-child(3) {
  animation-delay: 0.6s;
}

.scale-up.in-view:nth-child(4) {
  animation-delay: 0.8s;
}

.scale-up.in-view:nth-child(5) {
  animation-delay: 1s;
}

.scale-up.in-view:nth-child(6) {
  animation-delay: 1.2s;
}

/* === Frontok shortcode === */


/* Fő konténer */
.frontok-wrapper {
    width: 100%;
    margin: 40px 0;
}

/* 6-os Grid struktúra */
.frontok-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

/* Kártya alapbeállítások */
.front-card {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Kép konténer (Négyzetes arány, finom keret) */
.front-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f7f7;
    border: 1px solid #e2e8f0;
}

.front-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Finom hover effekt a képen */
.front-card:hover .front-image-wrapper img {
    transform: scale(1.03);
}

/* Placeholder, ha egy frontnak nincs kiemelt képe */
.front-placeholder-image {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

/* "ÚJ" felirat stílusa (Bordós/pirosas diszkrét szöveg a kép jobb felső sarkában) */
.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #a62626; 
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 2px;
}

/* Szöveges rész (Cím + zárójeles kategória egybeolvadva) */
.front-info h3 {
    font-size: 14px;
    line-height: 1.4;
    text-transform: uppercase;
    margin: 12px 0 0 0;
    font-weight: 700;
    color: #1a1a1a;
}

/* A zárójeles rész finomítása, hogy ne legyen túl tolakodó */
.front-cats {
    display: block;        /* Új sort kezd neki */
    font-weight: 400;      /* Vékonyabb betűtípus, mint a cím */
    text-transform: none;  /* Kikapcsolja a csupa nagybetűt, ha nem szeretnéd */
    color: #666666;        /* Diszkrétebb szürke szín */
    margin-top: 4px;       /* Egy pici távolság a felette lévő címtől */
    margin-left: 0;        /* Mivel új sorban van, nem kell bal oldali margó */
}

/* Elrejtési logika az animációhoz */
.front-card.hidden-item {
    display: none;
}

/* "Összes mutatása" gomb stílusai */
.frontok-toggle-container {
    text-align: center;
    margin-top: 30px;
}

.toggle-btn {
    background: none;
    border: none;
    border-bottom: 2px solid #000000;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    color: #000000;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.toggle-btn:hover{
    color: #666666!important;
    border-color: #666666;
    background-color: rgba(255, 255, 255, 0)!important;

}

.toggle-btn:focus{
    color: #666666!important;
    border-color: #666666;
    background-color: rgba(255, 255, 255, 0)!important;

}

/* Nyíl ikon animációja */
.btn-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-bottom: 3px;
}

/* Nyitott állapot: a nyíl felfelé mutat */
.toggle-btn.open .btn-arrow {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

.no-frontok-msg {
    color: #666;
    font-style: italic;
}

/* Reszponzív nézetek */
@media (max-width: 1200px) {
    .frontok-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .frontok-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .frontok-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .front-info h3 { font-size: 12px; }
}