/* ============================================================
   Agátčina dílna — prezentační web (světlý teplý styl)
   Krémová / papírová + medově-zlatá, serif nadpisy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&display=swap');

:root {
    --bg:          #faf6ef;   /* krémové pozadí */
    --bg-alt:      #f3ecdf;   /* sekce na odlišení */
    --surface:     #fffdf8;   /* karty */
    --text:        #3a322a;   /* tělo */
    --text-strong: #2a241d;   /* nadpisy */
    --text-muted:  #8a7d6b;
    --accent:      #c2933f;   /* medově-zlatá */
    --accent-hover:#a87c2e;
    --accent-soft: rgba(194,147,63,0.10);
    --border:      #e7ddc9;
    --border-soft: #efe7d6;
    --shadow:      0 6px 24px rgba(120,95,45,0.08);
    --shadow-lg:   0 14px 40px rgba(120,95,45,0.14);
    --radius:      14px;
    --radius-lg:   22px;
    --font-heading:'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:   system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --maxw:        1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-hover); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-strong); line-height: 1.2; font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p  { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent-hover);
    margin-bottom: 12px;
}

/* ---------- Tlačítka ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-body);
    font-weight: 600; font-size: .98rem;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
    line-height: 1;
}
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 6px 18px rgba(194,147,63,0.32);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(194,147,63,0.40); }
.btn-ghost {
    background: transparent; color: var(--accent-hover);
    border-color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.p-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250,246,239,0.86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.p-header-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 14px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.p-logo {
    font-family: var(--font-heading); font-weight: 700; font-size: 1.42rem;
    color: var(--text-strong); letter-spacing: .01em;
}
.p-logo:hover { color: var(--accent-hover); }
.p-logo small { display:block; font-family: var(--font-body); font-weight:500; font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color: var(--text-muted); margin-top:2px; }
.p-nav { display: flex; align-items: center; gap: 6px; }
.p-nav a {
    color: var(--text); font-weight: 500; font-size: .98rem;
    padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.p-nav a:hover { color: var(--accent-hover); background: var(--accent-soft); }
.p-nav a.active { color: var(--accent-hover); background: var(--accent-soft); }
.p-menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--text-strong); padding: 4px 8px;
}

@media (max-width: 760px) {
    .p-menu-toggle { display: block; }
    .p-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 10px 16px 16px; display: none;
        box-shadow: var(--shadow);
    }
    .p-nav.open { display: flex; }
    .p-nav a { padding: 12px 14px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 420px at 80% -10%, var(--accent-soft), transparent 60%),
        linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-soft);
}
.hero-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 96px 22px 88px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.08; letter-spacing: -0.01em;
}
.hero h1 em { color: var(--accent-hover); font-style: italic; }
.hero p {
    max-width: 580px; margin: 22px auto 34px;
    font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--text-muted);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-ornament { font-size: 1.6rem; color: var(--accent); opacity:.7; margin-bottom: 6px; }

/* ============================================================
   GALERIE / KARTY UKÁZEK
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}
.uk-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.uk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.uk-card-img { display:block; position: relative; aspect-ratio: 1/1; background: var(--bg-alt); overflow: hidden; }
.uk-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.uk-card:hover .uk-card-img img { transform: scale(1.05); }
.uk-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.uk-card-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hover); font-weight: 600; }
.uk-card-name { font-size: 1.22rem; }
.uk-card-name a { color: var(--text-strong); }
.uk-card-name a:hover { color: var(--accent-hover); }
.uk-card-desc { color: var(--text-muted); font-size: .94rem; }
.uk-card-cta { margin-top: 12px; font-weight: 600; color: var(--accent-hover); font-size: .92rem; display:inline-flex; align-items:center; gap:6px; }

/* ---------- Dlaždice kategorií ---------- */
.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.cat-tile {
    position: relative; display: block; aspect-ratio: 4/3;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.06); }
/* Mozaika reálných fotek na dlaždici kategorie */
.cat-mosaic { position: absolute; inset: 0; display: grid; gap: 2px; background: var(--border); }
.cat-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.cat-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cat-mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.cat-mosaic.n3, .cat-mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cat-mosaic.n3 img:first-child { grid-row: 1 / span 2; }
.cat-tile-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end;
    background: linear-gradient(180deg, transparent 35%, rgba(42,36,29,0.62) 100%);
    padding: 18px 20px;
}
.cat-tile-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: #fff; }

/* ---------- Filtr kategorií (pills) ---------- */
.pill-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.pill {
    padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border);
    background: var(--surface); color: var(--text); font-weight: 500; font-size: .92rem;
    transition: all .2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent-hover); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   DETAIL UKÁZKY
   ============================================================ */
.uk-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.uk-gallery-main {
    border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow); background: var(--surface); cursor: zoom-in;
    aspect-ratio: 1/1;
}
.uk-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.uk-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.uk-thumb {
    width: 74px; height: 74px; border-radius: 10px; overflow: hidden;
    border: 2px solid var(--border); cursor: pointer; transition: border-color .2s; background: var(--surface);
}
.uk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uk-thumb.active { border-color: var(--accent); }
.uk-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.uk-info .uk-cat { color: var(--accent-hover); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.uk-info .uk-desc { margin: 22px 0; color: var(--text); white-space: pre-line; }
.uk-note { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; color: var(--text); font-size: .94rem; margin-bottom: 24px; }

@media (max-width: 820px) { .uk-detail { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   O MNĚ
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-text p { margin-bottom: 16px; font-size: 1.06rem; }
.about-text p:first-of-type::first-letter { font-family: var(--font-heading); font-size: 2.6em; float: left; line-height: .8; padding: 6px 10px 0 0; color: var(--accent-hover); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 26px; } .about-text p:first-of-type::first-letter{ font-size:2em; } }

/* ============================================================
   KONTAKT / FORMULÁŘ
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; gap: 30px; } }
.contact-info { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 18px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-item svg { flex: none; color: var(--accent-hover); margin-top: 3px; }
.contact-item b { display:block; color: var(--text-strong); font-family: var(--font-body); }
.contact-item span, .contact-item a { color: var(--text-muted); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row.two { grid-template-columns: 1fr; } }
.form-row label { display: block; font-weight: 600; font-size: .9rem; color: var(--text-strong); margin-bottom: 6px; }
.form-row input, .form-row textarea {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
    background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
    padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: .85rem; color: var(--text-muted); display: flex; gap: 9px; align-items: flex-start; margin-bottom: 20px; }
.form-consent input { margin-top: 4px; flex: none; }

/* ============================================================
   FLASH HLÁŠKY
   ============================================================ */
.flash { max-width: var(--maxw); margin: 18px auto 0; padding: 0 22px; }
.flash-box { padding: 14px 18px; border-radius: var(--radius); font-size: .96rem; border: 1px solid; }
.flash-success { background: #edf7ee; border-color: #b8e0bd; color: #2c6e36; }
.flash-error   { background: #fdeeee; border-color: #f0c0c0; color: #a13434; }

/* ---------- Prázdný stav ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .big { font-size: 2.6rem; color: var(--accent); opacity:.6; margin-bottom: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.p-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 50px 0 30px; text-align: center; margin-top: 20px; }
.p-footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--text-strong); }
.p-footer p { color: var(--text-muted); font-size: .92rem; margin-top: 4px; }
.p-footer-links { margin: 16px 0; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.p-footer-links a { color: var(--text-muted); }
.p-footer-links a:hover { color: var(--accent-hover); }
.p-footer-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; display: none;
    background: rgba(35,28,20,0.92); align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 26px; font-size: 2.4rem; color: #fff; cursor: pointer; line-height: 1; opacity: .85; z-index: 2; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.38); color: #fff; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 2;
}
.lightbox-nav:hover { background: rgba(0,0,0,.65); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    color: #fff; background: rgba(0,0,0,.45); padding: 5px 14px; border-radius: 999px;
    font-size: .9rem; letter-spacing: .03em;
}
@media (max-width: 600px) {
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.25rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ---------- Animace ---------- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in { opacity: 0; transform: translateY(16px); animation: fadeUp .6s ease forwards; }
    @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

.breadcrumbs { font-size: .88rem; color: var(--text-muted); padding: 22px 0 4px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-hover); }
.breadcrumbs .sep { margin: 0 8px; opacity: .6; }
