/* ============================================
   Virágbolt - Temetői virágkészítmények
   Senior-friendly, modern dizájn
   ============================================ */

:root {
    --color-primary: #2d5a3d;
    --color-primary-light: #3d7a52;
    --color-primary-dark: #1e3d2a;
    --color-accent: #c49a6c;
    --color-bg: #f5f3ef;
    --color-bg-card: #ffffff;
    --color-text: #2c2c2c;
    --color-text-muted: #5a5a5a;
    --font-size-base: 18px;
    --font-size-large: 22px;
    --font-size-heading: 28px;
    --font-size-hero: 36px;
    --line-height: 1.6;
    --spacing: 1.5rem;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(45, 90, 61, 0.1);
    --shadow-hover: 0 8px 30px rgba(45, 90, 61, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

/* ========== MINIMÁLIS ANIMÁCIÓK (senior-barát) ========== */
.animate-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Kontraszt növelése az olvashatóságért */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip link – akadálymentesség, billentyűzetes használat */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ========== HEADER ========== */
.header {
    background: var(--color-primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
    text-decoration: none !important;
    font-size: var(--font-size-large);
    font-weight: 700;
}

.logo:hover,
.logo:focus {
    color: var(--color-accent) !important;
    text-decoration: none !important;
}

.logo-icon {
    font-size: 1.5em;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Mobil menü gomb */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: white;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Borítókép – images/cimlap.png vagy images/boritokep.jpg */
.hero-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background-color: var(--color-primary);
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Sötétítő réteg a szöveg olvashatóságához */
.hero-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 61, 42, 0.7) 0%, rgba(45, 90, 61, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: var(--font-size-large);
    opacity: 0.95;
}

/* ========== SECTIONS ========== */
.intro-section,
.news-section,
.info-cards,
.page-header,
.about-content,
.categories-section,
.products-section,
.orders-content {
    padding: 2.5rem 0;
}

.section-title {
    font-size: var(--font-size-heading);
    color: var(--color-primary-dark);
    margin-bottom: 1.25rem;
    text-align: center;
}

.intro-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(45, 90, 61, 0.08);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* ========== HÍREK ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-item {
    background: var(--color-bg-card);
    padding: 1.5rem 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-primary);
}

.news-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
}

.news-badge-hours {
    background: rgba(196, 154, 108, 0.3);
    color: var(--color-primary-dark);
}

.news-badge-season {
    background: rgba(45, 90, 61, 0.15);
    color: var(--color-primary);
}

.news-date {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.news-title {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.news-text {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Info kártyák */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(45, 90, 61, 0.06);
    transition: box-shadow 0.25s, transform 0.25s;
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.info-card p {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.info-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: var(--color-primary);
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
}

.info-card-link:hover,
.info-card-link:focus {
    background: var(--color-primary-dark);
    text-decoration: none;
}

.info-card-tel {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.info-card-tel:hover,
.info-card-tel:focus {
    text-decoration: underline;
}

/* Page header (tiszta oldalak: Készítmények, Rendelések) */
.page-header {
    background: var(--color-primary);
    color: white;
    padding: 2rem;
}

/* Page hero – borítókép a Rólunk oldalon (mint a címlapon) */
.page-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-cover {
    position: absolute;
    inset: 0;
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(30, 61, 42, 0.88) 0%, rgba(45, 90, 61, 0.82) 100%), url('images/cimlap.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero .page-title {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-title {
    font-size: var(--font-size-heading);
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ========== RÓLUNK ========== */
.about-text h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.gallery h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 2.5rem 0 1rem;
}

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

.gallery-item .gallery-placeholder {
    aspect-ratio: 4/3;
    /*background: #e8e4de;*/
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 240px;
}

.placeholder-text {
    font-weight: 600;
    color: var(--color-text-muted);
}

.placeholder-hint {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========== KÉSZÍTMÉNYEK – LAPOZHATÓ GALÉRIA ========== */
.gallery-section {
    padding-bottom: 3rem;
}

.gallery-carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 90vw;
    height: auto;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 1rem;
}

/* Első gomb (Előző) - a kép bal oldalán */
.carousel-btn:first-child {
    order: 0;
    margin-right: 0.5rem;
}

/* Következő gomb - a kép jobb oldalán */
.carousel-btn:last-child {
    order: 2;
    margin-left: 0.5rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    background: var(--color-bg-card);
    color: var(--color-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn:hover,
.carousel-btn:focus {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    max-height: 80vh;
    order: 1;
}

.carousel-track {
    display: flex;
    transition: none;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: none;
    flex-direction: column;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.gallery-slide.active {
    display: flex;
}

.gallery-slide.hidden {
    display: none !important;
}

.slide-image {
    background: linear-gradient(145deg, #e8e4de 0%, #f0ebe4 100%);
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.15);
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    max-height: 100%;
    max-width: 100%;
    min-height: 200px;
    min-width: 200px;
}

.slide-image:hover img {
    transform: scale(1.02);
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(45, 90, 61, 0.3);
    background: linear-gradient(145deg, #e8e4de 0%, #f0ebe4 100%);
}

.slide-info {
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
}

.slide-info h3 {
    font-size: 1.35rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.slide-info p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot:hover {
    background: rgba(45, 90, 61, 0.3);
}

.carousel-dot.active {
    background: var(--color-primary);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========== KATEGÓRIA TABOK ========== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-tab {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    background: var(--color-primary);
    color: white;
}

.category-tab.active {
    background: var(--color-primary);
    color: white;
}

.category-tab:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Régi grid stílusok – galéria használatakor nem kell */

/* ========== RENDELÉSEK ========== */
.notice-box {
    background: #fff8e6;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.content-block {
    margin-bottom: 2.5rem;
}

.content-block h2 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.content-block p,
.content-block ul {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content-block ul {
    padding-left: 2rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
.footer {
    margin-top: auto;
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: white;
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Vissza az oldal tetejére gomb */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    z-index: 90;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--color-primary-dark);
    color: white;
}

.back-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .gallery-carousel {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 95vw;
        padding: 0.5rem;
    }
    
    .carousel-viewport {
        max-height: 75vh;
        order: 1;
    }
    
    .slide-image {
        max-height: 60vh;
        width: auto;
        height: auto;
    }
    
    .carousel-btn {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
    
    .slide-info {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
    }
}

@media (max-width: 768px) {
    .gallery-carousel {
        max-width: 90vw;
        padding: 0 1rem;
    }
    
    .slide-image {
        max-height: 65vh;
        width: auto;
        height: auto;
    }
    
    .carousel-viewport {
        max-height: 70vh;
    }
    
    .carousel-btn {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
    }
    
    .slide-info {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
    }

    .nav.open {
        display: block;
        padding: 1rem;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-link {
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Nyomtatás – nyitvatartás, elérhetőségek */
@media print {
    .header,
    .skip-link,
    .back-to-top,
    .nav,
    .mobile-menu-btn,
    .hero-cover,
    .page-hero-cover,
    .category-tabs,
    .carousel-btn,
    .carousel-dots,
    .footer-nav {
        display: none !important;
    }

    body {
        background: white;
    }

    .info-card-link {
        background: none;
        color: var(--color-primary);
    }

    .info-card-tel {
        color: var(--color-primary);
    }

    .footer {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Csökkentett mozgás – akadálymentesség */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .animate-in {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .animate-on-scroll.visible {
        opacity: 1;
    }

    .info-card:hover {
        transform: none;
    }

    .carousel-btn:hover {
        transform: none;
    }
}
