/* Kiinduló állapot */
.animate-item {
    opacity: 0;
    transform: translateX(100px) translateY(0);
    animation: slideIn 0.8s ease-out forwards;
}

/* Kulcsframe az animációhoz */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes pulseGrow {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.contact.pulse {
    animation: pulseGrow 2s ease;
}

body {
    font-family: 'Inter', sans-serif;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

section h2 {
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    text-align: center;

    margin-bottom: 3rem;
}

section h2::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 4px;
    background: rgb(147,162,118);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about h2::after {
  content: "";
  display: block;
  width: 60px;                  /* csík hossza */
  height: 3px;
  background: rgb(147,162,118);          /* arany szín */
  margin: 10px auto 0;          /* középre igazítás */
  border-radius: 2px;
}


body { 
    font-family: 'Open Sans', sans-serif; 
    background: #dad7cd; 
    color: #333; 
    margin:0; 
    padding:0;
    background-image: url("images/hatter.jpg");
    background-size: cover;        /* kitölti az egész képernyőt */
    background-position: center;   /* középre igazítja */
    background-attachment: fixed;  /* görgetés közben is fix marad */
    background-repeat: no-repeat;  /* ne ismétlődjön */
}

header { 
    background:rgba(47,73,48,0.85); 
    box-shadow:0 2px 5px rgba(0,0,0,0.1); 
    display:flex; 
    justify-content:center; 
    align-items:center; 
    padding:0.5rem 1rem; 
    position:sticky; 
    top:0; 
    z-index:1000;
     gap: 5rem; /* opcionális, a logo és menü közötti térköz */
}

header nav ul li a {
    font-family: 'Playfair Display', serif;
    font-weight: 200;
    font-size: 1rem;
    letter-spacing: 0.5px;
}


.logo { 
    font-family:'Playfair Display', serif; 
    font-size:1.8rem; 
    color:#a3b18a; 
}

nav { 
    position:relative; 
}

.hamburger { 
    display:none; 
    font-size:2rem; 
    cursor:pointer; 
}

.menu { 
    display:flex; 
    list-style:none; 
    gap:2rem; 
    margin:0; 
    padding:0; 
    justify-content: center;
}

.menu li a { 
    text-decoration:none; 
    color:#a3b18a; 
    font-weight:600; 
    transition:0.3s; 
}

.menu li a:hover { 
    color:#74c69d; 
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 95vh; /* teljes képernyő */
    padding: 0 5%;
    background: url("images/fooldal.jpg") center/cover no-repeat;
    color: white;
    overflow: hidden;
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-repeat: no-repeat;
    mask-size: cover;
    scroll-margin-top: 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Gradient overlay a szöveg alá */
    background: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 1;
    opacity: 0;
    transform: translateX(-40px);
    animation: heroSlideIn 1s ease forwards;
    animation-delay: 0.3s;
}


@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: rgb(147,162,118);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color:white;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #588157;
    color: white;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.cta-button:hover {
    background: #a3b18a;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-decoration: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s;
}
.scroll-indicator:hover {
    opacity: 1;
}
.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    animation: fadeInOut 2s infinite;
}
.scroll-indicator i {
    font-size: 1.8rem;
    animation: bounce 1.5s infinite;
}

/* Animációk */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}


.about {
  background: rgba(255, 251, 243, 0.8);
  max-width:1200px; 
    color: #588157;
    margin:4rem auto; 
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 10px;
}

.about h2 {
  text-align: center;
  width: 100%;
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-family: 'Playfair Display', serif;
  color: #588157;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.about-content img {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-text {
  flex: 2 1 500px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
}

/* Kétoszlopos szerkezet */
.about-columns {
  display: grid;
     grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  max-height: 400px; /* max magasság */
    overflow-y: auto;
    padding-right: 10px;
}



/* Chrome, Edge, Safari */
.about-columns::-webkit-scrollbar {
    width: 8px;
}

.about-columns::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.about-columns::-webkit-scrollbar-thumb {
    background-color: #93a276;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0); /* kis margó a csúszka körül */
}

.about-columns::-webkit-scrollbar-thumb:hover {
    background-color: #588157;
}







.about-column h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #588157;
  border-left: 4px solid #93a276;
  padding-left: 10px;
}

/* Listaelemek (timeline-szerű) */
.about-item {
  background: rgba(255, 255, 255, 0.3);
  padding: 15px;
  border-left: 3px solid #93a276;
  margin-bottom: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.about-item .year {
  font-weight: bold;
  color: #93a276;
  display: block;
  margin-bottom: 5px;
}

.about-item p {
  margin: 0;
  color: #555;
}

/* Alul az iskolák blokk */
.about-bottom {
  margin-top: 30px;
}

.about-bottom h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #444;
  border-left: 4px solid ##93a276;
  padding-left: 10px;
}




.services { 
    max-width:1200px; 
    color: #588157;
    margin:4rem auto; 
    padding: 1rem 1.5rem;
    text-align: center;
    background: rgba(255, 251, 243, 0.8); /* áttetsző fehér */
    border-radius: 10px; /* lekerekítés */
    scroll-margin-top: 80px; 
}

.services h2 { 
    text-align:center; 
     
    font-family:'Playfair Display', serif; 
}

.service-cards { 
    display:grid; 
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); 
    gap:1.5rem; 
    justify-content: center; /* <<< Középre igazítja a teljes rácsot */
}

.service-card { 
     background: rgba(255, 255, 255, 0.5); 
    border-radius:10px; 
    padding:1.5rem; 
    box-shadow:0 2px 8px rgba(64,69,54,0.50); 
    transition:transform 0.3s, box-shadow 0.3s; 
    text-decoration: none;       /* soha ne legyen aláhúzás */
    color: inherit;
    padding-left: 22px;     /* kis behúzás a listajelnek */
    text-align: left;       /* balra igazítás */
    margin-top: 15px;
    margin-bottom: 20px;    /* nagyobb térköz a sorok között */
    line-height: 1.6;       /* szellősebb sorok */
}

.service-card:hover { 
    transform:translateY(-5px); 
    box-shadow:0 20px 30px rgba(64,69,54,0.50); 
}

.service-card h3 { 
    color:#588157; 
    margin-bottom:1rem; 
    font-size:1.4rem; 
      text-align: center;
}

.service-card p { 
    color:#555; 
}

.pricing {
    max-width: 1200px;
    margin: 3rem auto;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 251, 243, 0.8);
    border-radius: 15px;
}

.pricing h2 {
    color: #588157;
    font-family: 'Playfair Display', serif;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    color:white;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pricing-card i {
    font-size: 2.5rem;
    color: #588157;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    color: #588157;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.pricing-card .price {
    font-size: 1.8rem;
    color: #3a5a40;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.pricing-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.pricing-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    background: #588157;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cancel-note {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 20px;
    margin-bottom: 20px;
    font-style: italic;
}


.pricing-btn:hover {
    background: #588157;
}

/* Kiemelt kártya */
.pricing-card.featured {
    border: 2px solid #74c69d;
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #74c69d;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}




@keyframes contactPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.contact {
    max-width:600px; 
    margin:3rem auto 2rem; 
    background: rgba(255, 255, 255, 0.8); 
    padding: 1rem 1.5rem; 
    text-align: center;
    border-radius:10px; 
    box-shadow:0 2px 10px rgba(64,69,54,0.50);
    scroll-margin-top: 80px; 
}
.contact.animate {
    animation: contactPop 0.8s ease;
}


.contact:hover { 
    transform:translateY(-5px); 
    box-shadow:0 20px 30px rgba(64,69,54,0.50); 
}

.contact h2 { 
    text-align:center;  
    color:#588157; 
    font-family:'Playfair Display', serif;
}



footer {
    text-align: center;
    padding: 0.2rem;
    background: #3a5a40;
    color: #fff;
    font-size: 0.8rem;
}
.footer-socials {
    margin-top: 0.5rem;
}
.footer-socials a {
    color: #fff;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.footer-socials a:hover {
    color: #74c69d;
}


@media(max-width:768px){
    .menu { 
        flex-direction:column; 
        background:#fff; 
        position:absolute; 
        top:60px; 
        right:0; 
        width:200px; 
        display:none; 
        box-shadow:0 2px 8px rgba(0,0,0,0.1); 
        padding:1rem; 
    }
    .menu.active { 
        display:flex; 
    }
    .hamburger { 
        display:block; 
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img, 
    .about-content p {
        max-width: 100%;
        flex: unset;
    }
}

.pricing a,
.contact a {
    text-decoration: none;  /* Aláhúzás kikapcsolása */
    color: inherit;         /* Ugyanaz a szín, mint a környező szöveg */
    font-weight: ;       /* Opcionális kiemelés */
}

.pricing a:hover,
.contact a:hover {
    color: #74c69d;         /* Hover szín */
}

    .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1;
    text-align:center;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-list strong {
    color: #588157;
    margin-right: 0.5rem;
}

.contact-list a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: #74c69d;
}

.contact-list li i {
    color: #588157;
    margin-right: 8px;
}
