/*
Theme Name: Jungle Pilates Theme
Theme URI: http://example.com/
Author: Jungle Pilates
Description: Final Fixed Version. Fix: Mobile background alignment set to bottom to hide ceiling lights completely.
Version: 1.57
*/

/* --- ALAP BEÁLLÍTÁSOK --- */
* { box-sizing: border-box; }

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

:root {
  --green: #0E3A2D;
  --white: #ffffff;
  --text-dark: #0E3A2D;
  --max-width: 1200px;
  --radius: 4px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  margin: 0; font-family: var(--font-body); color: var(--text-dark); background-color: var(--white);
  padding-top: 70px; 
  width: 100%;
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
}

.site { display: flex; flex-direction: column; flex: 1; width: 100%; }
.site-main { flex: 1; width: 100%; }

/* --- DZSUNGEL KERET --- */
.jungle-frame {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10001; 
  pointer-events: none; 
  mix-blend-mode: multiply; 
  background-image: url('mobil_balfelso.jpg'), url('mobil_jobbfelso.jpg'), url('mobil_balalso.jpg'), url('mobil_jobbalso.jpg');
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat; background-size: 60px auto; 
}
@media (min-width: 1024px) {
  .jungle-frame {
    background-image: url('desktop_balfelso.jpg'), url('desktop_jobbfelso.jpg'), url('desktop_balalso.jpg'), url('desktop_jobbalso.jpg');
    background-size: 300px auto;
  }
}

/* --- FEJLÉC --- */
.site-header {
  background: var(--white); height: 70px; position: fixed; top: 0; left: 0; width: 100%;
  z-index: 10000; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; align-items: center;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; width: 100%; height: 100%; }
.header-inner { display: flex; align-items: center; height: 100%; position: relative; }
.site-branding { display: none !important; }

/* MENÜ (ASZTALI) */
.primary-navigation { flex: 1; display: flex; justify-content: center; }
.primary-navigation ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-navigation a { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--green); text-decoration: none; }
.primary-navigation a:hover { opacity: 0.7; }

/* GOMBOK */
.header-right { display: flex; justify-content: flex-end; }
.cta-button {
  background-color: var(--green); color: var(--white) !important; padding: 10px 24px; border-radius: 50px; font-weight: 600; text-transform: uppercase; font-size: 0.8rem; border: 2px solid var(--green); transition: all 0.3s ease; display: inline-block; white-space: nowrap; text-decoration: none !important;
}
.cta-button:hover { background-color: transparent; color: var(--green) !important; }

.menu-toggle { display: none; }
.mobile-only-cta { display: none; }
.desktop-only-cta { display: block; }

/* --- MOBIL NÉZET (MENÜ) --- */
@media (max-width: 900px) {
  .header-inner { justify-content: center; }
  .header-right, #desktop-header-button, .desktop-only-cta { display: none !important; }

  .menu-toggle {
    display: block; background: none; border: none; font-size: 2.5rem; color: var(--green);
    cursor: pointer; padding: 0; line-height: 1; z-index: 10003; 
  }

  .primary-navigation { flex: 0; width: auto; }
  .primary-navigation ul {
    display: none; position: fixed; top: 70px; left: 0; width: 100%; height: auto; max-height: 85vh; 
    background-color: var(--white); padding: 30px 20px 50px 20px;
    flex-direction: column; align-items: center; gap: 20px;
    border-top: 1px solid rgba(0,0,0,0.1); box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 10002; overflow-y: auto;
  }
  .primary-navigation.toggled ul { display: flex !important; }
  .primary-navigation ul li a { font-size: 1.2rem; display: block; padding: 10px; }
  .mobile-only-cta { display: block; margin-top: 15px; }
  .mobile-only-cta .cta-button { font-size: 1rem; padding: 12px 30px; min-width: 180px; }
}

/* --- HERO SZEKCIÓ --- */
.hero {
  background-image: url('studio.jpg'); 
  background-size: cover; 
  background-position: center; /* Alapértelmezett pozíció (desktop) */
  background-repeat: no-repeat;
  background-attachment: fixed; 
  min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; color: var(--white); padding: 0 20px;
}

.hero-logo { 
    width: 80%; /* Alapértelmezett szélesség (desktop/tablet) */
    max-width: 550px; 
    filter: brightness(0) invert(1); 
    margin-bottom: 30px; 
    display: block; 
    margin: 0 auto 30px; 
}

/* --- JAVÍTÁS: MOBIL SPECIFIKUS HERO BEÁLLÍTÁSOK --- */
@media (max-width: 768px) {
    /* 1. Háttérkép igazítása: teljesen az aljára (bottom) igazítjuk */
    .hero {
        background-position: center bottom !important; /* VÁLTOZÁS: center bottom */
        background-attachment: scroll !important; /* iOS fix */
    }
    
    /* 2. Logó nagyítása mobilon (marad a nagy méret) */
    .hero-logo {
        width: 95% !important;
    }
}

.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-family: var(--font-heading); font-size: 1.8rem; max-width: 800px; margin: 0 auto 35px; color: var(--white); text-shadow: 0 2px 4px rgba(0,0,0,0.3); font-weight: 500; line-height: 1.3; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 35px; color: var(--white); text-shadow: 0 2px 4px rgba(0,0,0,0.3); font-weight: 500; }

/* --- SZEKCIÓK --- */
.section { padding: 80px 0; background: transparent; }
.section h2 { font-family: var(--font-heading); font-size: 2.8rem; text-align: center; margin-bottom: 50px; font-weight: 400; color: var(--green); }

.cards, .team-grid { display: grid; gap: 30px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--white); border: 1px solid rgba(14, 58, 45, 0.2); padding: 40px 30px; text-align: center; transition: transform 0.3s ease; }
.card h3, .team-member h3 { font-family: var(--font-heading); color: var(--green); margin-bottom: 15px; }

/* --- CSAPAT --- */
.team-member { text-align: center; }
.team-photo { width: 100%; height: 450px; object-fit: cover; border-radius: 4px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(14, 58, 45, 0.08); }
.team-member p { 
    font-size: 0.95rem; margin-bottom: 15px; color: var(--text-dark); line-height: 1.7; 
    text-align: justify; 
}

/* --- KAPCSOLAT --- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 850px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info-col h2, .contact-form-col h2 { text-align: left; margin-bottom: 30px; font-size: 2.2rem; }
@media (max-width: 850px) { .contact-info-col h2, .contact-form-col h2 { text-align: center; } }
.social-icons { display: flex; gap: 20px; margin-bottom: 30px; }
@media (max-width: 850px) { .social-icons { justify-content: center; } }
.social-icons a { color: var(--green); width: 30px; height: 30px; display: inline-block; transition: opacity 0.3s; }
.contact-form-col { background: var(--white); padding: 10px; }
.jungle-contact-form { display: flex; flex-direction: column; gap: 25px; margin-top: 20px; }
.form-group { display: flex; flex-direction: column; position: relative; }

/* --- INPUT MEZŐK ÉS GOMB --- */
.jungle-contact-form input:not([type="submit"]), 
.jungle-contact-form textarea { 
    border: none; border-bottom: 1px solid #ccc; padding: 8px 0; 
    font-family: var(--font-body); font-size: 1rem; background: transparent; width: 100%; 
}
.submit-btn, input[type="submit"] { 
    background-color: #8C867A !important; color: #fff !important; border: none !important; 
    padding: 12px 30px !important; font-size: 0.9rem; text-transform: lowercase; 
    cursor: pointer; align-self: flex-end; margin-top: 10px; border-radius: 0; 
    -webkit-appearance: none; 
}
.submit-btn:hover, input[type="submit"]:hover { background-color: var(--green) !important; }
@media (max-width: 850px) { 
    .contact-details-block { text-align: center; } 
    .submit-btn, input[type="submit"] { width: 100%; align-self: center; } 
}

/* Footer */
.footer { background: var(--green); color: var(--white); padding: 30px 20px; margin-top: auto; position: relative; z-index: 10; font-size: 0.9rem; }
.footer-inner { display: flex; flex-direction: column; gap: 30px; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-logo { height: 60px; width: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; justify-content: center; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 500; }

/* GYIK */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; background-color: var(--white); border: 1px solid rgba(14, 58, 45, 0.1); border-radius: 8px; overflow: hidden; }
.faq-question { 
    width: 100%; background: none; border: none; padding: 20px; 
    text-align: left; display: flex; align-items: center; justify-content: flex-start; gap: 15px; 
    font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--green); cursor: pointer; 
}
.faq-icon { font-size: 1.5rem; line-height: 1; color: #8C867A; transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(90deg); color: var(--green); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: var(--white); }
.faq-content { padding: 0 20px 20px 50px; color: var(--text-dark); font-size: 0.95rem; line-height: 1.6; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--green); color: var(--white); padding: 20px; z-index: 10000; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); }
.cookie-inner { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center; max-width: 10000px; margin: 0 auto; }
.cookie-btn { background-color: var(--white); color: var(--green); border: none; padding: 10px 24px; border-radius: 50px; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; cursor: pointer; white-space: nowrap; margin-left: 10px; }
@media (max-width: 768px) { .cookie-inner { flex-direction: column; gap: 15px; } .cookie-banner { padding-bottom: 30px; } .cookie-btn { width: 100%; margin-left: 0; } }

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }