/*
Theme Name: Töltéspont Kft GeneratePress Child
Theme URI: https://www.toltespont.hu
Description: GeneratePress child theme for Töltéspont project
Author: Öszzkép design
Author URI: https://www.osszkepdesign.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: toltespont-gp-ch
Domain Path: /languages
*/

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

/*Menü*/

.site-header {
    background-color: transparent !important;
    z-index: 3;
}

.inside-header {
    padding: 10px 20px !important;
    width: 90% !important;
    max-width: 1450px !important;
    border-radius: 30px !important;
    background: white;
    margin-top: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    z-index: 3;
}


/*cégünkről*/

.szamlalo-szoveg {
    font-size: 26px;
    color: #333333;
}
.evek-szama {
    font-size: 70px;
    font-weight: bold; 
    color: #1A70A6;
}

/* --- Contact Form 7 - Modern Stílus --- */

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mezők általános stílusa (Név, E-mail, Tárgy) */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 14px 16px;
    background-color: #f9fbfd;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Placeholder (halvány szöveg) stílusa */
.wpcf7-form-control::placeholder {
    color: #9aa5b1;
    opacity: 1;
}

/* Fókusz effektek (amikor rákattintanak a mezőre) */
.wpcf7-form-control:not(.wpcf7-submit):focus {
    background-color: #ffffff;
    border-color: #1b5b8c; /* Használd a cég arculati kék színét */
    box-shadow: 0 0 0 3px rgba(27, 91, 140, 0.15);
    outline: none;
}

/* Textarea (Üzenet mező) méretezése */
textarea.wpcf7-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Küldés gomb stílusa */
.wpcf7-submit {
    background: linear-gradient(135deg, #1b5b8c 0%, #14446b 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 91, 140, 0.2);
    width: 100%; /* Ha teljes szélességű gombot szeretnél alulra */
}

/* Gomb hover (egérrel fölötte) állapot */
.wpcf7-submit:hover {
    background: linear-gradient(135deg, #14446b 0%, #0d304c 100%);
    box-shadow: 0 6px 16px rgba(27, 91, 140, 0.3);
    transform: translateY(-1px);
}

/* Hibaüzenetek és sikeres elküldés jelzései */
.wpcf7-not-valid-tip {
    color: #d93838;
    font-size: 13px;
    margin-top: 5px;
}

.wpcf7-form .wpcf7-response-output {
    border-radius: 8px;
    font-size: 14px;
    padding: 12px;
    margin-top: 15px;
    border: none !important;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
    background-color: #fde8e8;
    color: #9b1c1c;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: #def7ec;
    color: #03543f;

}

/* ==========================================
   ELEGÁNS CSS ANIMÁCIÓS RENDSZER (.is-visible)
   ========================================== */

/* Alapbeállítások (minden animálandó elem rejtve van, és el van tolva) */
.reveal-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Irányok / Típusok megadása */
.animate-fade-up { transform: translateY(40px); }
.animate-fade-down { transform: translateY(-40px); }
.animate-fade-left { transform: translateX(-40px); }
.animate-fade-right { transform: translateX(40px); }
.animate-zoom { transform: scale(0.95); }

/* --- AMIKOR A JS HOZZÁADJA AZ .is-visible CLASST --- */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}


/* ==========================================
   6 CSEMPE LÉPCSŐZETES BEÚSZÁSA (Staggered Grid)
   ========================================== */

.tile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* A csempék alapállapota: picit lejebb vannak és hosszabb az animáció ideje (1.2s) */
.tile-container > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Amikor a konténer láthatóvá válik */
.tile-container.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Lágyabb, nagyobb késleltetések az egyes csempék között */
.tile-container.is-visible > *:nth-child(1) { transition-delay: 0.15s; }
.tile-container.is-visible > *:nth-child(2) { transition-delay: 0.3s; }
.tile-container.is-visible > *:nth-child(3) { transition-delay: 0.45s; }
.tile-container.is-visible > *:nth-child(4) { transition-delay: 0.6s; }
.tile-container.is-visible > *:nth-child(5) { transition-delay: 0.75s; }
.tile-container.is-visible > *:nth-child(6) { transition-delay: 0.9s; }

/* ==========================================
   ELEGÁNS PULZÁLÓ ANIMÁCIÓ GOMBHOZ
   ========================================== */

@keyframes softPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--pulse-color, 0, 123, 255), 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(var(--pulse-color, 0, 123, 255), 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--pulse-color, 0, 123, 255), 0);
  }
}

.animate-pulse-soft {
  animation: softPulse 3s infinite cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

/* Opcionális: Ha rávárod az egeret, megállhat a pulzálás, hogy könnyebb legyen kattintani */
.animate-pulse-soft:hover {
  animation-play-state: paused;
}

@media (max-width: 768px) {
    /* Azon oszlop/konténer beállítása, ami tartalmazza a logót és a menüt */
    .site-header .inside-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Opcionális: Ha a logó vagy a menü túl nagy, itt szabályozhatod a méretüket */
    .site-header .site-logo img {
        max-height: 40px !important; /* Szükség szerint módosítható */
        width: auto !important;
    }
}
