/*
Theme Name: Zeleni Mir Rebuild
Theme URI: https://zeleni-mir.hr/
Author: MikroBiz Hosting
Description: Lagana, responzivna tema za Robinzonski smještaj Zeleni Mir.
Version: 0.1.0
Text Domain: zeleni-mir
*/

:root {
  --forest: #173c2c;
  --leaf: #3f7d45;
  --moss: #71985b;
  --sun: #d7a73e;
  --paper: #f7f4ea;
  --ink: #17251d;
  --muted: #637169;
  --line: rgba(23, 60, 44, .16);
  --shadow: 0 24px 70px rgba(23, 60, 44, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Segoe UI", Inter, system-ui, sans-serif; line-height: 1.65; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 52px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(63,125,69,.24); border-radius: 50%; background: var(--paper); color: var(--forest); font-family: Georgia, serif; font-size: 24px; font-weight: 700; }
.brand-copy strong { display: block; color: var(--forest); font-family: Georgia, serif; font-size: 22px; line-height: 1.05; letter-spacing: .04em; }
.brand-copy span { color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.menu a { display: inline-flex; padding: 11px 14px; border-radius: 999px; color: var(--forest); text-decoration: none; font-weight: 650; }
.menu a:hover, .menu .current-menu-item > a { background: var(--paper); }
.menu .booking-link a { color: #fff; background: var(--leaf); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--forest); font-size: 22px; }

.hero { position: relative; min-height: min(760px, calc(100vh - 82px)); overflow: hidden; display: grid; align-items: end; background: var(--forest); }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide { opacity: 0; background-position: center; background-size: cover; transform: scale(1.025); transition: opacity 1s ease, transform 7s linear; }
.hero-slide.is-active { opacity: 1; transform: scale(1.08); }
.hero-shade { background: linear-gradient(180deg, rgba(8,28,19,.18), rgba(8,28,19,.76)); }
.hero-content { position: relative; z-index: 2; padding-block: 140px 92px; color: #fff; }
.eyebrow { margin: 0 0 14px; color: #d9e9ce; font-size: 13px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-family: Georgia, serif; font-size: clamp(48px, 8vw, 104px); font-weight: 400; line-height: .95; text-wrap: balance; }
.hero-lead { max-width: 670px; margin: 24px 0 32px; font-size: clamp(18px, 2.1vw, 25px); color: rgba(255,255,255,.88); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: var(--leaf); color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; }
.button:hover { background: #2f6939; }
.button.secondary { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.12); }

.section { padding-block: 96px; }
.section.soft { background: var(--paper); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 60px; margin-bottom: 44px; }
.section-head h2, .page-hero h1 { margin: 0; color: var(--forest); font-family: Georgia, serif; font-size: clamp(40px, 5vw, 66px); font-weight: 400; line-height: 1.03; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.76); box-shadow: 0 12px 40px rgba(23,60,44,.06); }
.feature-card span { display: grid; width: 46px; aspect-ratio: 1; place-items: center; margin-bottom: 28px; border-radius: 50%; background: #e2ecd8; color: var(--forest); font-weight: 850; }
.feature-card h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.feature-card p { margin: 0; color: var(--muted); }

.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-item { margin: 0 0 16px; break-inside: avoid; overflow: hidden; border-radius: 18px; background: #e6e8e3; }
.gallery-item img { width: 100%; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }

.page-hero { padding-block: 92px 56px; background: linear-gradient(135deg, #f7f4ea 0%, #edf4e8 100%); }
.page-hero p { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 19px; }
.content-card { padding: clamp(24px, 5vw, 60px); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.content-card table { width: 100%; border-collapse: collapse; }
.content-card th, .content-card td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
.content-card th { color: var(--forest); }
.directions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.directions-grid figure { margin: 0; overflow: hidden; border-radius: 20px; }
.directions-grid img { width: 100%; height: 100%; object-fit: cover; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; color: var(--forest); font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; color: var(--ink); font: inherit; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.notice { padding: 14px 18px; border-radius: 14px; background: #e5f2df; color: #285a31; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { padding-block: 58px 30px; background: var(--forest); color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.footer-title { color: #fff; font-family: Georgia, serif; font-size: 30px; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: #fff; text-decoration: none; }
.copyright { margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 30px; background: rgba(8,22,15,.9); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; }
.lightbox-close { position: absolute; top: 20px; right: 24px; border: 0; background: transparent; color: #fff; font-size: 38px; cursor: pointer; }

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; inset: 82px 20px auto; display: none; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .menu { align-items: stretch; flex-direction: column; }
  .menu a { width: 100%; }
  .hero { min-height: 650px; }
  .hero-content { padding-block: 110px 62px; }
  .section { padding-block: 68px; }
  .section-head, .contact-layout, .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-menu { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1180px); }
  .brand-copy span { display: none; }
  .hero h1 { font-size: 52px; }
  .page-hero { padding-block: 58px 36px; }
  .directions-grid { grid-template-columns: 1fr; }
  .content-card { border-radius: 20px; }
}
