/* StumpPro Debrecen - Styles */

:root {
    --primary: #1f6040;
    --primary-dark: #174832;
    --accent: #e67e22;
    --accent-dark: #d35400;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Header scroll effect */
#header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

/* === Navigation Links === */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* === Buttons === */
a[href="#kapcsolat"], 
a[href^="tel:"],
button[type="submit"],
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

a[href="#kapcsolat"]:hover,
a[href^="tel:"]:hover,
button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

a[href="#kapcsolat"]:active,
a[href^="tel:"]:active,
button[type="submit"]:active {
    transform: translateY(-1px);
}

/* Button shine effect */
a[href="#kapcsolat"]::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

a[href="#kapcsolat"]:hover::before,
button[type="submit"]:hover::before {
    left: 100%;
}

/* === Cards (Services, Testimonials, Cases) === */
article, 
.service-card,
[class*="rounded-3xl"][class*="bg-white"],
[class*="rounded-3xl"][class*="bg-gray-50"],
[class*="rounded-2xl"][class*="shadow"] {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

article:hover,
.service-card:hover,
[class*="rounded-3xl"][class*="bg-white"]:hover,
[class*="rounded-3xl"][class*="bg-gray-50"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Card top border animation */
article::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 1.5rem 1.5rem 0 0;
}

article:hover::before,
.service-card:hover::before {
    transform: scaleX(1);
}

/* === Icons === */
.material-symbols-outlined {
    transition: all 0.3s ease;
}

article:hover .material-symbols-outlined,
a:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* Icon containers */
[class*="bg-primary/10"][class*="rounded"] {
    transition: all 0.3s ease;
}

article:hover [class*="bg-primary/10"][class*="rounded"],
a:hover [class*="bg-primary/10"][class*="rounded"] {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* === Images === */
img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HERO KÉP ZOOM HOVER (JavaScript nélkül) */
section:first-of-type img:hover {
    transform: scale(1.03);
}

article:hover img,
[class*="overflow-hidden"]:hover img {
    transform: scale(1.08);
}

/* === About Section Image Hover === */
.about-image-container {
    cursor: pointer;
}

.about-image-container .about-image {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-container:hover .about-image {
    transform: scale(1.03);
    box-shadow: 0 30px 60px rgba(31, 96, 64, 0.3);
}

.about-image-container:hover > div:first-child {
    transform: translate(-8px, -8px);
    background-color: rgba(31, 96, 64, 0.15);
}

.about-image-container > div:first-child {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Table Rows === */
tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

tbody tr:hover {
    background-color: rgba(31, 96, 64, 0.08) !important;
    transform: scale(1.01);
}

tbody tr::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

tbody tr:hover::after {
    transform: scaleY(1);
}

/* === Details/FAQ (VÉGLEGES, STABILIZÁLT VERZIÓ) === */
details {
    /* Magasság animáció */
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    height: auto;
    padding: 0 !important; 
    will-change: height;
    transform: translateZ(0);
}

details summary {
    transition: color 0.3s ease, background-color 0.3s ease;
    user-select: none;
    cursor: pointer;
    padding: 1.5rem;
    margin: 0;
}

details > p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 1.5rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

details[open] > p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

details:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

details:hover summary {
    color: var(--primary);
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

/* === Grid Items (Areas, Stats) === */
[class*="grid"] > div[class*="rounded"] {
    transition: all 0.3s ease;
}

[class*="grid"] > div[class*="rounded"]:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* === Stats Section === */
section[class*="bg-primary"] [class*="text-4xl"],
section[class*="bg-primary"] [class*="text-5xl"] {
    transition: all 0.3s ease;
}

section[class*="bg-primary"] > div > div:hover [class*="text-4xl"],
section[class*="bg-primary"] > div > div:hover [class*="text-5xl"] {
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* === Footer Links === */
footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    color: var(--accent) !important;
    padding-left: 5px;
}

footer ul a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

footer ul a:hover::before {
    transform: translateY(-50%) scale(1);
}

/* === Form Inputs === */
input, textarea {
    transition: all 0.3s ease;
}

input:hover, textarea:hover {
    border-color: var(--primary) !important;
}

input:focus, textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
    transform: scale(1.01);
}

/* === Logo === */
header a[href="/"] {
    transition: all 0.3s ease;
}

header a[href="/"]:hover {
    transform: scale(1.05);
}

header a[href="/"]:hover [class*="bg-primary"] {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(31, 96, 64, 0.4);
}

/* === Dropdown Menu === */
nav .group > div {
    transform: translateY(10px);
    transition: all 0.3s ease;
}

nav .group:hover > div {
    transform: translateY(0);
}

nav .group > div a {
    transition: all 0.2s ease;
}

nav .group > div a:hover {
    padding-left: 1.5rem;
    background-color: rgba(31, 96, 64, 0.1);
}

/* === Process Steps === */
[class*="rounded-3xl"][class*="relative"] [class*="absolute"][class*="rounded-full"][class*="bg-primary"] {
    transition: all 0.3s ease;
}

[class*="rounded-3xl"][class*="relative"]:hover [class*="absolute"][class*="rounded-full"][class*="bg-primary"] {
    transform: scale(1.2) rotate(360deg);
}

/* === Map === */
iframe {
    transition: all 0.3s ease;
}

iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* === Badge/Tags === */
[class*="rounded-full"][class*="bg-accent"],
[class*="rounded-full"][class*="bg-primary"] {
    transition: all 0.3s ease;
}

[class*="rounded-full"][class*="bg-accent"]:hover,
[class*="rounded-full"][class*="bg-primary"]:hover {
    transform: scale(1.1);
}

/* === Gradient Banner === */
[class*="bg-gradient-to-r"] {
    transition: all 0.3s ease;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

[class*="bg-gradient-to-r"]:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(31, 96, 64, 0.3);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(31, 96, 64, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(31, 96, 64, 0.4);
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article:hover,
    [class*="rounded-3xl"]:hover {
        transform: translateY(-4px);
    }
}

/* === Mobile Menu Fix: NO TRANSITION === */
#mobile-menu {
    /* Fontos: Ne legyen itt transition, mert a display:none -> block váltásnál lefagy tőle */
}

#mobile-menu a {
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    padding-left: 0.5rem;
    color: var(--primary);
}

#mobile-menu-btn {
    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    transform: scale(1.1);
}