/* ==========================================================
   Mézengúz — Kézműves Termékek
   Design: méz és mézeskalács ihlette, kézműves hangulat.
   A logó szaggatott "méhrepülés" vonala visszaköszön
   elválasztó elemként az oldal egészén.
   ========================================================== */

:root {
    --honey: #d98e2b;
    --honey-dark: #b06f1c;
    --gingerbread: #4a2c17;
    --gingerbread-deep: #2e1a0e;
    --crust: #c97d3e;
    --cream: #fbf3e3;
    --cream-soft: #f6ead2;
    --ink: #221510;
    --sage: #7a8b5c;
    --white: #ffffff;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Karla", "Segoe UI", sans-serif;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(46, 26, 14, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--gingerbread-deep);
    margin: 0 0 0.5em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Szaggatott "méhrepülés" elválasztó (a logó motívuma) ---------- */
.stitch-divider {
    height: 3px;
    border: none;
    background-image: repeating-linear-gradient(
        to right,
        var(--honey) 0 14px,
        transparent 14px 26px
    );
    margin: 0;
}

.stitch-divider.thin {
    height: 2px;
    background-image: repeating-linear-gradient(
        to right,
        var(--gingerbread) 0 8px,
        transparent 8px 16px
    );
    opacity: 0.35;
}

/* ---------- Fejléc / navigáció ---------- */
.site-header {
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 0 rgba(74, 44, 23, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1140px;
    margin: 0 auto;
    gap: 20px;
}

.logo-link img {
    height: 56px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gingerbread);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--honey-dark);
    border-bottom-color: var(--honey);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--honey-dark);
    background: var(--cream-soft);
    border: 1px dashed var(--honey);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero p.lead {
    font-size: 1.15rem;
    color: #5a3c26;
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.hero-figure {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/5;
    background: var(--cream-soft);
}

.hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-figure .frame-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(34, 21, 16, 0.78);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
}

/* ---------- Gombok ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--honey);
    color: var(--gingerbread-deep);
    box-shadow: 0 6px 18px rgba(217, 142, 43, 0.4);
}
.btn-primary:hover { background: var(--honey-dark); }

.btn-outline {
    background: transparent;
    border-color: var(--gingerbread);
    color: var(--gingerbread);
}
.btn-outline:hover { background: var(--gingerbread); color: var(--cream); }

.btn-fb { background: #3b5998; color: #fff; }
.btn-fb:hover { background: #2d4373; }

.btn-ig {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #fff;
}
.btn-ig:hover { filter: brightness(1.08); }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Szekciók ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--cream-soft); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.section-head .kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--honey-dark);
    display: block;
    margin-bottom: 6px;
}

/* ---------- Galéria rács ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.gallery-item:hover { transform: translateY(-4px); }

.gallery-item .thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--cream-soft);
}

.gallery-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover .thumb img { transform: scale(1.06); }

.gallery-item .cap {
    padding: 14px 16px 16px;
}

.gallery-item .cap h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.gallery-item .cap p {
    font-size: 0.9rem;
    color: #6b4a30;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7a5c3e;
    border: 1px dashed var(--crust);
    border-radius: var(--radius);
    background: var(--cream-soft);
}

/* ---------- Rólunk / bemutatkozás ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.about-grid img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Kapcsolat ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1.02rem;
}

.contact-info-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--honey);
    flex-shrink: 0;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

form .field {
    margin-bottom: 18px;
}

form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: var(--gingerbread);
}

form input,
form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #e4d3b8;
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--honey);
    background: var(--white);
}

form textarea { resize: vertical; min-height: 140px; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-success { background: #e7f0dc; color: #4c5c34; border: 1px solid #b9cf9c; }
.alert-error { background: #f7dede; color: #7c2b2b; border: 1px solid #e6b3b3; }

/* ---------- Lábléc ---------- */
.site-footer {
    background: var(--gingerbread-deep);
    color: var(--cream-soft);
    padding: 40px 0 26px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a { color: var(--cream-soft); }
.site-footer .foot-social { display: flex; gap: 14px; }
.site-footer small { opacity: 0.6; }

/* ---------- Admin ---------- */
.admin-shell {
    min-height: 100vh;
    background: var(--cream-soft);
}

.admin-header {
    background: var(--gingerbread-deep);
    color: var(--cream);
    padding: 16px 0;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a { color: var(--cream); }
.admin-header .logo-link img { height: 36px; filter: invert(1) brightness(2); }

.login-box {
    max-width: 420px;
    margin: 90px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-box img { height: 60px; margin: 0 auto 20px; }

.admin-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    padding: 36px 0;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--cream-soft);
    font-size: 0.92rem;
    vertical-align: middle;
}

.admin-table th { color: var(--gingerbread); font-family: var(--font-display); }

.admin-table img.thumb-sm {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.pill-featured { background: #fbe4b8; color: #8a5a10; }
.pill-off { background: #ece2ce; color: #8a7355; }

.admin-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--gingerbread);
}
.admin-menu a:hover, .admin-menu a.active { background: var(--cream-soft); }

.icon-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}
.icon-btn.danger { color: #a23a3a; }
.icon-btn.danger:hover { background: #f7dede; }
.icon-btn.star { color: var(--honey-dark); }
.icon-btn.star:hover { background: var(--cream-soft); }

/* ---------- Lightbox (kép kinagyítása kattintásra) ---------- */
.gallery-item .thumb {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 21, 16, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 40px 20px;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-content {
    max-width: min(90vw, 900px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: var(--cream-soft);
}

.lightbox-caption {
    color: var(--cream);
    text-align: center;
    max-width: 60ch;
}

.lightbox-caption h3 {
    color: var(--cream);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.lightbox-caption p {
    color: var(--cream-soft);
    opacity: 0.85;
    margin: 0;
    font-size: 0.92rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 26px;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--cream);
    font-size: 2.6rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (max-width: 640px) {
    .lightbox-nav { width: 44px; height: 44px; font-size: 2rem; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
}

/* ---------- Süti-elfogadó banner ---------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 640px;
    margin: 0 auto;
    background: var(--gingerbread-deep);
    color: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    z-index: 900;
    display: none;
}

.cookie-banner.is-open { display: block; }

.cookie-banner p { font-size: 0.92rem; margin: 0 0 14px; color: var(--cream-soft); }

.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Reszponzív ---------- */
@media (max-width: 860px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-figure { order: -1; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .nav-wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
