/*
Theme Name: MyFive
Theme URI: https://frontendtanfolyam.hu/
Author: FrontendTanfolyam
Author URI: https://frontendtanfolyam.hu/pocsik-emese-frontend-fejleszto/
Description: Basic Block Theme by Emese Pocsik
Tags: one-column, custom-colors, custom-menu
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myfive
*/


html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    position: relative
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px), linear-gradient(0deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

strong{
    font-weight: 600 !important
}


.card{
       transition: all 0.2s ease-in-out;
    cursor: pointer;
    overflow: hidden
}


.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
    border-radius: 16px;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    opacity: 0.1;
}

.card .wp-block-cover{
      /* vágás: balról felfelé jobbra */
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
  overflow: hidden; /* biztonság, hogy a kép ne lógjon ki */
}

.clip-path{
     clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
     overflow: hidden
}


/* Card Variants */
.card-light {
    background: var(--wp--preset--color--white);
}

.card-dark {
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
}

.card-purple .card-icon {
    fill: var(--wp--preset--color--accent-purple);
}

.card-purple .card-icon-purple {
    stroke: var(--wp--preset--color--accent-purple);
}

/* ================== CARD ELEMENTS ================== */
.card-icon-wrapper {
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--wp--preset--spacing--md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-dark .card-icon-wrapper {
    background: rgba(37, 99, 235, 0.15);
}

.card-purple .card-icon-wrapper {
    background: rgba(99, 102, 241, 0.1);
}
.card-box{
    position: relative;
    z-index: 1
}



.card-icon {
    width: 48px;
    height: 48px;
    fill: var(--wp--preset--color--primary);
}

.card-icon-light {
    stroke: var(--wp--preset--color--secondary);
}

.card-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--wp--preset--spacing--sm);
    line-height: 1.2;
    color: var(--wp--preset--color--dark);
}

.card-title-light {
    color: var(--wp--preset--color--white);
}

.card-description {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--wp--preset--color--text-gray);
    margin-bottom: var(--wp--preset--spacing--lg);
}

.card-description-light {
    color: rgba(255, 255, 255, 0.85);
}

.card-image {
    margin-top: auto;
    width: calc(100% + var(--wp--preset--spacing--xl) * 2);
    margin-left: calc(-1 * var(--wp--preset--spacing--xl));
    margin-bottom: calc(-1 * var(--wp--preset--spacing--xl));
    height: 220px;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

/* ================== CONTENT CARD ================== */
.content-card {
    text-align: center;
    padding: var(--wp--preset--spacing--xl);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.content-card:hover {
    background: var(--wp--preset--color--bg-main);
    transform: translateY(-4px);
}

.content-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--wp--preset--spacing--md);
    padding: var(--wp--preset--spacing--sm);
    background: rgba(0, 102, 204, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.content-card:hover .content-icon {
    background: var(--wp--preset--color--primary);
    transform: scale(1.1) rotate(5deg);
}

.content-card:hover .content-icon svg path,
.content-card:hover .content-icon svg circle {
    stroke: var(--wp--preset--color--white);
}

.content-icon svg {
    width: 40px;
    height: 40px;
}

/* ================== CSS-ONLY INTERACTIONS ================== */

/* Click feedback animation */
.card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Ripple effect animation */
@keyframes ripple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        width: 1000px;
        height: 1000px;
        opacity: 0;
    }
}

.card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ripple-animation 0.4s ease-out;
}

/* Dark card ripple color */
.card-dark .ripple {
    background: rgba(255, 255, 255, 0.3);
}

/* Purple card ripple color */
.card-purple .ripple {
    background: rgba(99, 102, 241, 0.4);
}

.card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}

.card:active::after {
    animation: ripple-click 0.6s ease-out;
}

/* Card focus styles with keyboard navigation */
.card:focus {
    outline: 3px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
    transform: translateY(-4px);
}

.card:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
}

/* SVG stroke transition */
.content-card:hover .content-icon svg path,
.content-card:hover .content-icon svg circle {
    transition: stroke 0.3s ease;
}

/* Card entrance animations with stagger */
.card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* Content cards entrance with stagger */
.content-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.content-card:nth-child(1) {
    animation-delay: 0.1s;
}

.content-card:nth-child(2) {
    animation-delay: 0.2s;
}

.content-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ================== ANIMATIONS ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CTA section animation */
.cta-content {
    animation: fadeIn 0.8s ease-out;
}

/* Pulse animation for interactive elements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.card:focus .card-icon-wrapper {
    animation: pulse 2s ease-in-out infinite;
}

/* ================== RESPONSIVE DESIGN ================== */



/* Mobile - 480px and below */
@media (max-width: 480px) {



    .card-description {
        font-size: 1rem;
    }


}



/* ================== ACCESSIBILITY ================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.card:focus,
.card:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
}

/* ================== PRINT STYLES ================== */
@media print {
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--wp--preset--color--text-light);
    }

    /* Remove animations for print */
    * {
        animation: none !important;
        transition: none !important;
    }
}

.cta-section{
    position: relative
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1
}

:where(.wp-site-blocks) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

.hero-cards a{
    text-decoration: none !important
}

.services-wrapper{position: relative;}



/* ALAPÁLLAPOT - Láthatatlan */
.services-cards > div {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* LÁTHATÓ ÁLLAPOT - Animated class hozzáadva */
.services-cards > div.animated {
    opacity: 1;
    transform: translateY(0);
}

/* HOVER EFFECT (Opcionális) */
.services-cards > div:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* MOBIL */
@media (max-width: 768px) {
    .services-cards > div:hover {
        transform: translateY(-4px);
    }
}

/* ACCESSIBILITY - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .services-cards > div {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.is-layout-grid{
   height: 100%
}

.flex{

    align-items: center
}


@media screen and (max-width: 1199px) {
    body {
        font-size: 18px;
    }
   
}

@media screen and (min-width: 1200px) {
     .fixed-column{
       position: sticky;
    top: 100px;
    align-self: flex-start; 
}
}

/* Szolgáltatás Kártyák Hover Animáció */
.services-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 100;
    overflow: visible;
}

.service-card .wp-block-image {
    margin: 0;
        
}

.service-card .wp-block-image img {
    width: 100%;
    object-fit: cover;
    display: block;
 transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover>.wp-block-image img {
  display: none
}


.card-details {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px 20px 2rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
    border-radius: 0 0 12px 12px;
    margin-top:0
}


.service-card:hover .card-details {
    max-height: 300px;
    opacity: 1;
}


.card-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.service-card:hover .card-button {
    opacity: 1;
    transform: translateY(0);
}

.card-button:hover {
    background: #e85a28;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card:hover {
        transform: scale(1);
    }
}