/* ============================================================
   Záhradníctvo EMMA — hlavný stylesheet
   Dizajn: organický editorial, inšpirovaný prírodou
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* === PREMENNÉ === */
:root {
    --green-dark:  #1B3A2D;
    --green-mid:   #2D5A3D;
    --green-light: #4A7C59;
    --green-sage:  #7FA882;
    --green-mist:  #C8DBC9;
    --cream:       #F7F3EC;
    --cream-dark:  #EDE8DF;
    --brown-warm:  #8C7355;
    --text:        #1A1A18;
    --text-muted:  #5C5C57;
    --white:       #FFFFFF;
    --nav-h:       72px;
    --radius:      4px;
    --radius-lg:   12px;
    --shadow:      0 4px 24px rgba(27,58,45,.10);
    --shadow-lg:   0 12px 48px rgba(27,58,45,.15);
    --trans:       all .35s cubic-bezier(.4,0,.2,1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* === TYPOGRAFIA === */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green-light);
    display: block;
    margin-bottom: .75rem;
}

/* === NAVIGÁCIA === */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    transition: var(--trans);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(247,243,236,.0);
    backdrop-filter: blur(0px);
    transition: var(--trans);
    z-index: -1;
}

.nav.scrolled::before {
    background: rgba(247,243,236,.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27,58,45,.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    z-index: 2;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--trans);
}

.nav.scrolled .nav-logo img { filter: none; }

.nav-logo span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--white);
    transition: var(--trans);
    letter-spacing: .04em;
}

.nav.scrolled .nav-logo span { color: var(--green-dark); }

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}

.nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: rgba(255,255,255,.9);
    padding: .5rem 1rem;
    border-radius: 2rem;
    transition: var(--trans);
}

.nav.scrolled .nav-links a { color: var(--text-muted); }

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: var(--green-mid);
}

.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
    color: var(--white);
    background: var(--green-mid);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .5rem;
    z-index: 2;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--trans);
    border-radius: 1px;
}

.nav.scrolled .nav-hamburger span { background: var(--green-dark); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--green-dark);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: .04em;
    transition: var(--trans);
}

.nav-mobile a:hover { color: var(--green-sage); }

/* === HERO === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero_mini.JPG');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27,58,45,.45) 0%,
        rgba(27,58,45,.35) 50%,
        rgba(27,58,45,.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .9s ease .3s, transform .9s ease .3s;
}

.hero-content.visible { opacity: 1; transform: translateY(0); }

.hero-logo {
    width: 180px;
    margin: 0 auto 2rem;
    filter: brightness(0) invert(1);
    opacity: .92;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--white);
    font-weight: 300;
    margin-bottom: .75rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.82);
    font-weight: 300;
    letter-spacing: .08em;
    margin-bottom: 2.5rem;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.65);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,.4);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* === SEKCIE === */
.section {
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--green-dark);
}

/* === ONAS === */
.onas {
    background: var(--white);
}

.onas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.onas-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.onas-text a { color: var(--green-light); border-bottom: 1px solid currentColor; }
.onas-text a:hover { color: var(--green-dark); }

.onas-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.onas-highlight {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--green-sage);
}

.onas-highlight strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--green-dark);
    font-weight: 300;
}

.onas-highlight span {
    font-size: .85rem;
    color: var(--text-muted);
}

.onas-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.onas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.onas-image:hover img { transform: scale(1.03); }

.onas-image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--white);
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--green-dark);
    box-shadow: var(--shadow);
}

/* === AKTUALITY === */
.aktuality {
    background: var(--cream);
}

.aktuality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.aktualita-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--trans);
    border-top: 3px solid var(--green-sage);
}

.aktualita-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.aktualita-card time {
    font-size: .8rem;
    color: var(--green-light);
    letter-spacing: .06em;
    display: block;
    margin-bottom: .75rem;
}

.aktualita-card h3 {
    font-size: 1.35rem;
    color: var(--green-dark);
    margin-bottom: .75rem;
}

.aktualita-card p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.7;
}

.no-aktuality {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 3rem;
}

/* === CLANKY (príspevky) === */
.clanky {
    background: var(--white);
}

.clanky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.clanek-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--trans);
    background: var(--cream);
}

.clanek-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.clanek-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-mist);
}

.clanek-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.clanek-card:hover .clanek-card-img img { transform: scale(1.05); }

.clanek-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-sage);
    font-size: 2.5rem;
}

.clanek-card-body {
    padding: 1.5rem;
}

.clanek-card-body time {
    font-size: .78rem;
    color: var(--green-light);
    letter-spacing: .06em;
}

.clanek-card-body h3 {
    font-size: 1.4rem;
    color: var(--green-dark);
    margin: .5rem 0 .75rem;
    line-height: 1.25;
}

.clanek-card-body p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .04em;
    transition: var(--trans);
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.btn-green {
    background: var(--green-mid);
    color: var(--white);
}

.btn-green:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--green-mid);
    border: 1.5px solid var(--green-mid);
}

.btn-outline:hover {
    background: var(--green-mid);
    color: var(--white);
}

/* === GALÉRIA === */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.galeria-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.galeria-item:hover img { transform: scale(1.08); }

.galeria-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,58,45,.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
}

.galeria-item:hover .galeria-item-overlay {
    background: rgba(27,58,45,.45);
}

.galeria-item-overlay svg {
    color: var(--white);
    opacity: 0;
    transition: var(--trans);
    width: 32px;
    height: 32px;
}

.galeria-item:hover .galeria-item-overlay svg { opacity: 1; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,20,14,.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255,255,255,.7);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: var(--trans);
}

.lightbox-close:hover { color: var(--white); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    font-size: 1.25rem;
}

.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
}

/* === KONTAKT === */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.kontakt-info { }

.kontakt-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--cream-dark);
}

.kontakt-icon {
    width: 40px;
    height: 40px;
    background: var(--green-mist);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green-dark);
    font-size: 1rem;
}

.kontakt-item-text strong {
    display: block;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: .25rem;
}

.kontakt-item-text span, .kontakt-item-text a {
    color: var(--text);
    font-size: .95rem;
}

.kontakt-item-text a:hover { color: var(--green-mid); }

.hodiny-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.hodiny-table tr {
    border-bottom: 1px solid var(--cream-dark);
}

.hodiny-table td {
    padding: .75rem .5rem;
    font-size: .95rem;
}

.hodiny-table td:last-child {
    text-align: right;
    color: var(--green-mid);
    font-weight: 500;
}

.mapa-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mapa-wrapper iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* === FOOTER === */
footer {
    background: var(--green-dark);
    color: rgba(255,255,255,.75);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 48px;
    filter: brightness(0) invert(1);
    opacity: .7;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
}

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--green-sage);
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: .6rem; }

.footer-col a {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    transition: color .2s;
}

.footer-col a:hover { color: var(--white); }

.footer-col p {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    margin-bottom: .5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}

/* === ANIMÁCIE REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === STRÁNKA CLANOK === */
.clanek-hero {
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 3rem;
    background: var(--green-dark);
    color: var(--white);
}

.clanek-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.clanek-hero time { color: var(--green-sage); font-size: .85rem; }
.clanek-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 1rem 0; }

.clanek-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.clanek-featured-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}

.clanek-content h2 { font-size: 1.8rem; color: var(--green-dark); margin: 2rem 0 1rem; }
.clanek-content p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.85; }
.clanek-content ul, .clanek-content ol { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.clanek-content li { margin-bottom: .5rem; }

/* === PAGE HEADER (pre podstránky) === */
.page-header {
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 3rem;
    background: var(--green-dark);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
}

/* === NOTIFIKÁCIE === */
.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .onas-grid     { grid-template-columns: 1fr; }
    .onas-image    { aspect-ratio: 16/9; }
    .kontakt-grid  { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section       { padding: 4rem 1.25rem; }
    .nav           { padding: 0 1.25rem; }
    .nav-links     { display: none; }
    .nav-hamburger { display: flex; }
    .onas-highlights { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
    .galeria-grid  { grid-template-columns: repeat(2, 1fr); }
    .lightbox-nav  { display: none; }
}
