/* assets/style.css – SNO Antošovice public site + admin shared */

:root {
  --forest: #1a3a2a; --moss: #2d5a3d; --leaf: #4a8c5c;
  --sage: #7ab88a; --mist: #c8dfc8; --cream: #f5f0e8;
  --sand: #e8dfc8; --bark: #5c3d1e; --water: #3a6b8a;
  --sky: #d4eaf5; --white: #fefcf8; --text: #1a2a1a;
  --muted: #4a5a4a; --border: rgba(45,90,61,0.15); --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); font-size: 16px; line-height: 1.6; font-weight: 300; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── Season banner ── */
.season-banner { background: var(--moss); color: var(--mist); text-align: center; padding: 9px 1rem; font-size: 13px; line-height: 1.4; }
.season-banner strong { color: var(--white); }
.season-banner a { color: var(--sage); text-decoration: underline; }

/* ── Nav ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(254,252,248,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 0 2rem; display: flex; align-items: center; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: 'Playfair Display', serif; font-size: 17px; color: var(--forest); }
.nav-logo-img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--muted); padding: 0 12px; height: 64px; display: flex; align-items: center; transition: color .2s; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--moss); }
.nav-links a.active { color: var(--forest); border-bottom-color: var(--leaf); font-weight: 500; }
.nav-cta { margin-left: 10px; font-size: 12px !important; font-weight: 500 !important; background: var(--moss) !important; color: var(--mist) !important; border-radius: 6px; padding: 6px 14px !important; height: auto !important; border-bottom: none !important; }
.nav-cta:hover { background: var(--forest) !important; color: var(--white) !important; }
.nav-links a[title]:hover { color: var(--moss) !important; }
.nav-burger { display: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--forest); margin: 5px 0; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; z-index: 99; flex-direction: column; }
.mobile-menu a { font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); display: block; }
.mobile-menu a:last-child { border: none; }
.mobile-menu.open { display: flex; }

/* ── Common sections ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--leaf); margin-bottom: 0.75rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.2; color: var(--forest); margin-bottom: 1rem; }
.section-title em { font-style: italic; }
.section-sub { font-size: 15px; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: var(--r); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s; border: none; text-decoration: none; }
.btn-primary { background: var(--leaf); color: var(--white); }
.btn-primary:hover { background: var(--sage); }
.btn-ghost { background: transparent; border: 1px solid rgba(200,223,200,0.4); color: var(--mist); }
.btn-ghost:hover { background: rgba(200,223,200,0.1); }

/* ── Hero ── */
.hero { min-height: 90vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hero-text { background: var(--forest); padding: 5rem 3.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-text::before { content: ''; position: absolute; top: -80px; left: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(74,140,92,0.12); }
.hero-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; line-height: 1.15; color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--sage); }
.hero-sub { font-size: 15px; color: var(--mist); line-height: 1.7; max-width: 380px; margin-bottom: 2.5rem; }
.hero-badge { display: inline-block; background: rgba(74,140,92,0.2); border: 1px solid var(--leaf); color: var(--sage); font-size: 12px; padding: 4px 12px; border-radius: 20px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image { position: relative; overflow: hidden; background: linear-gradient(135deg, #2d5a3d 0%, #1a3a2a 40%, #3a6b8a 100%); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero-image-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,58,42,0.3) 0%, transparent 60%); }
.hero-stats { position: absolute; bottom: 2rem; right: 2rem; left: 2rem; display: flex; gap: 1px; }
.hero-stat { flex: 1; background: rgba(254,252,248,0.92); backdrop-filter: blur(6px); padding: 1rem; text-align: center; }
.hero-stat:first-child { border-radius: var(--r) 0 0 var(--r); }
.hero-stat:last-child { border-radius: 0 var(--r) var(--r) 0; }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--forest); font-weight: 600; }
.hero-stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── About ── */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.about-features { display: flex; flex-direction: column; gap: 1px; margin-top: 2rem; }
.feature { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.feature:last-child { border: none; }
.feature-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--mist); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.feature-icon svg { width: 18px; height: 18px; fill: var(--moss); }
.feature-title { font-size: 14px; font-weight: 500; color: var(--forest); margin-bottom: 3px; }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.about-photo-stack { position: relative; height: 480px; }
.photo-main { position: absolute; top: 0; right: 0; left: 40px; bottom: 40px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2d5a3d, #4a8c5c); }
.photo-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-accent { position: absolute; bottom: 0; left: 0; width: 55%; height: 48%; border-radius: 14px; overflow: hidden; border: 4px solid var(--white); background: linear-gradient(135deg, #3a6b8a, #1a3a2a); }
.photo-badge { position: absolute; top: 1.5rem; left: 0; background: var(--forest); color: var(--mist); font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 0 8px 8px 0; }

/* ── Pricing ── */
.pricing { background: var(--cream); }
.pricing-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.pricing-note { font-size: 13px; color: var(--muted); background: var(--white); border-left: 3px solid var(--leaf); padding: 1rem 1.25rem; border-radius: 0 var(--r) var(--r) 0; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { background: var(--white); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; transition: transform .2s; }
.price-card:hover { transform: translateY(-3px); }
.price-card-head { background: var(--moss); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 10px; }
.price-card-head svg { width: 20px; height: 20px; fill: var(--mist); flex-shrink: 0; }
.price-card-head-title { font-size: 14px; font-weight: 500; color: var(--white); }
.price-card-body { padding: 1.25rem 1.5rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); }
.price-row:last-child { border: none; }
.price-row-label { font-size: 13px; color: var(--muted); }
.price-row-val { font-size: 14px; font-weight: 500; color: var(--forest); }

/* ── Directions ── */
.directions { background: var(--white); }
.directions-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.map-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--sky); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.map-placeholder { text-align: center; padding: 2rem; }
.map-placeholder svg { width: 48px; height: 48px; fill: var(--water); margin: 0 auto 12px; }
.map-placeholder p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.map-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--moss); border: 1px solid var(--leaf); border-radius: 6px; padding: 8px 14px; transition: all .2s; }
.map-link:hover { background: var(--moss); color: var(--white); }
.dir-steps { list-style: none; }
.dir-step { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.dir-step:last-child { border: none; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--moss); color: var(--white); font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-text { font-size: 14px; color: var(--muted); line-height: 1.5; padding-top: 4px; }
.step-text strong { color: var(--forest); font-weight: 500; }
.gps-box { margin-top: 1.5rem; background: var(--cream); border-radius: var(--r); padding: 1rem 1.25rem; border: 1px solid var(--sand); }
.gps-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.gps-coords { font-family: monospace; font-size: 13px; color: var(--forest); font-weight: 500; }

/* ── News ── */
.news-section { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .2s; }
.news-card:hover { transform: translateY(-3px); }
.news-card-head { padding: 1.25rem 1.5rem 0; }
.news-date { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.news-tag-pill { display: inline-block; font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 20px; margin-bottom: 8px; }
.news-tag-pill.public { background: var(--mist); color: var(--moss); }
.news-tag-pill.member { background: var(--sand); color: var(--bark); }
.news-card h3 { font-size: 15px; font-weight: 500; color: var(--forest); line-height: 1.3; margin-bottom: 8px; }
.news-card p { font-size: 13px; color: var(--muted); line-height: 1.5; padding: 0 1.5rem 1.25rem; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1.5rem; border-top: 1px solid var(--border); }
.news-card-link { font-size: 13px; color: var(--moss); font-weight: 500; }
.share-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; transition: color .2s; }
.share-btn:hover { color: var(--moss); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }
.share-toast { position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--forest); color: var(--mist); font-size: 13px; padding: 8px 18px; border-radius: 20px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 200; }
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Gallery ── */
.gallery-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-thumb { position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; aspect-ratio: 4/3; background: var(--mist); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; filter: saturate(0.9); }
.gallery-thumb:hover img { transform: scale(1.06); filter: saturate(1.15); }
.gallery-thumb-overlay { position: absolute; inset: 0; background: rgba(26,58,42,0); transition: background .3s; display: flex; align-items: center; justify-content: center; }
.gallery-thumb:hover .gallery-thumb-overlay { background: rgba(26,58,42,0.3); }
.gallery-thumb-overlay svg { width: 32px; height: 32px; fill: white; opacity: 0; transition: opacity .3s; }
.gallery-thumb:hover .gallery-thumb-overlay svg { opacity: 1; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(8,16,11,0.94); align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lightbox-caption { color: var(--mist); font-size: 13px; margin-top: 1rem; text-align: center; }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.25rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#lb-prev { left: 1rem; }
#lb-next { right: 1rem; }

/* ── Contact ── */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.contact-card { background: var(--white); border-radius: 14px; border: 1px solid var(--border); padding: 2rem; }
.contact-card-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--forest); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.contact-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.contact-item:last-child { border: none; }
.contact-item-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--mist); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 15px; height: 15px; fill: var(--moss); }
.contact-item-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-item-val { font-size: 14px; color: var(--forest); }
.ico-row { display: flex; gap: 12px; margin-top: 1rem; flex-wrap: wrap; }
.ico-chip { background: var(--cream); border-radius: 6px; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.ico-chip span { font-weight: 500; color: var(--forest); }

/* ── Member section ── */
.member-section { background: var(--white); }
.member-intro { background: var(--moss); border-radius: 14px; padding: 2rem 2.5rem; display: flex; align-items: center; gap: 2rem; margin-bottom: 2.5rem; margin-top: 3rem; }
.member-intro-text h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); margin-bottom: 6px; }
.member-intro-text p { font-size: 14px; color: var(--mist); }
.member-intro-icon svg { width: 48px; height: 48px; fill: rgba(200,223,200,0.5); }
.member-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.member-doc, a.member-doc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.1rem; display: flex; align-items: center; gap: 10px; transition: border-color .2s, background .2s; cursor: pointer; text-decoration: none; }
.member-doc:hover, a.member-doc:hover { border-color: var(--leaf); background: var(--cream); }
.member-doc svg { width: 18px; height: 18px; fill: var(--muted); flex-shrink: 0; }
.member-doc-name { font-size: 13px; color: var(--text); }
.member-doc-type { font-size: 11px; color: var(--muted); }
.member-admin { margin-top: 1.5rem; display: flex; align-items: center; gap: 12px; padding: 1rem 1.25rem; background: var(--cream); border-radius: var(--r); border: 1px solid var(--sand); }
.member-admin svg { width: 16px; height: 16px; fill: var(--muted); }
.member-admin span { font-size: 13px; color: var(--muted); }
.member-admin a { font-size: 13px; color: var(--moss); font-weight: 500; }

/* ── Footer ── */
footer { background: var(--forest); padding: 3rem 2rem 1.5rem; border-top: 1px solid rgba(74,140,92,0.2); }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(74,140,92,0.2); }
.footer-brand p { font-size: 13px; color: var(--mist); line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 13px; color: var(--mist); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 13px; color: var(--mist); padding: 3px 0; }
.footer-bottom { max-width: 1100px; margin: 1.25rem auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(200,223,200,0.5); }

/* ── Cookie ── */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--forest); border-top: 1px solid rgba(74,140,92,0.3); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-bar p { font-size: 13px; color: var(--mist); flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-bar a { color: var(--sage); }
.cookie-btn { background: var(--leaf); color: var(--white); border: none; padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.cookie-bar.hidden { display: none; }

/* ── Scroll fade ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 320px; }
  .hero-text { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .about-grid, .directions-grid, .contact-grid, .pricing-intro { grid-template-columns: 1fr; }
  .about-photo-stack { height: 280px; }
  .price-cards { grid-template-columns: 1fr; }
  .member-docs { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .hero-stats { flex-direction: column; gap: 1px; }
}
@media (max-width: 500px) {
  section { padding: 3.5rem 1.25rem; }
  nav { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .member-docs { grid-template-columns: 1fr; }
  .gallery-page-grid { grid-template-columns: 1fr; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text > * { animation: fadeUp .6s ease both; }
.hero-tag  { animation-delay: .05s; }
.hero h1   { animation-delay: .15s; }
.hero-sub  { animation-delay: .25s; }
.hero-btns { animation-delay: .35s; }

/* ── Prose (WYSIWYG content) ── */
.prose { font-size: 15px; color: var(--text); line-height: 1.8; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: 'Playfair Display', serif; color: var(--forest); margin: 1.5em 0 0.5em; font-weight: 400; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { margin: 0.75em 0; padding-left: 1.5em; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--moss); text-decoration: underline; }
.prose a:hover { color: var(--forest); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; font-size: 14px; }
.prose th { background: var(--cream); font-weight: 500; }
.prose blockquote { border-left: 3px solid var(--sage); padding: 0.5em 1em; margin: 1em 0; color: var(--muted); background: var(--cream); border-radius: 0 var(--r) var(--r) 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
