/* ============================================================
   KÁCENÍ KOCMAN — style.css
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg: #0c1108;
  --surface: #131a0d;
  --card: #1a2312;
  --border: rgba(120, 180, 60, 0.15);
  --green: #5a9e32;
  --green-bright: #78c840;
  --cream: #f0ede0;
  --text: #d8d4be;
  --muted: #7a7a5a;
  --f-serif: 'Fraunces', serif;
  --f-sans: 'Inter Tight', sans-serif;
  --nav-h: 64px;
  --transition: 0.3s ease;
  --radius: 4px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---- Utility ---- */
.section-label {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--green-bright);
}

/* ---- Fade-in Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(240, 237, 224, 0.35);
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition), transform 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green-bright);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform 0.2s ease;
  margin-top: 1.5rem;
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(12, 17, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(55%) sepia(40%) saturate(500%) hue-rotate(70deg) brightness(0.9);
  transition: filter var(--transition);
}

.nav-logo:hover .logo-img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(50%) saturate(600%) hue-rotate(75deg) brightness(1.1);
}

.nav-brand {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-transform: uppercase;
}

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

.nav-link {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 1.5px;
  background: var(--green-bright);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cream);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-block;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  background: var(--green);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--green-bright);
}

/* Mobile phone icon (visible only on mobile) */
.nav-phone-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 64, 0.5);
  color: var(--green-bright);
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.nav-phone-btn:hover { background: rgba(120, 200, 64, 0.12); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.20) 35%,
    rgba(0,0,0,0.60) 65%,
    rgba(0,0,0,0.90) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: var(--nav-h);
}

.hero-label {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-bright);
  background: rgba(90, 158, 50, 0.12);
  border: 1px solid rgba(120, 200, 64, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
}

.hero-headline {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--cream);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--green-bright);
}

.hero-sub {
  font-family: var(--f-sans);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 300;
  color: rgba(240, 237, 224, 0.82);
  max-width: 560px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-legal {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(240, 237, 224, 0.55);
}

.hero-legal a {
  color: rgba(240, 237, 224, 0.55);
  transition: color var(--transition);
}

.hero-legal a:hover {
  color: var(--green-bright);
}

.legal-divider {
  opacity: 0.4;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--surface);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}

.services-header {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.services-intro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.service-item:first-child {
  border-top: 1px solid var(--border);
}

.service-item:hover {
  background: rgba(90, 158, 50, 0.04);
}

.service-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green);
  line-height: 1;
  padding-top: 0.15rem;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-name {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1.5px solid var(--green);
  border-radius: 2px;
  opacity: 0.4;
  z-index: -1;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-text p {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-quote {
  position: relative;
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  border-left: 3px solid var(--green);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.6;
  quotes: none;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--surface);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.gallery-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gal-grid {
  columns: 3;
  column-gap: 12px;
}

.gal-item {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  break-inside: avoid;
}

.gal-item img {
  width: 100%;
  margin-bottom: 0;
  display: block;
  transition: transform 0.45s ease;
  border-radius: var(--radius);
}

.gal-item:hover img {
  transform: scale(1.04);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 8, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
}

.gal-item:hover .gal-overlay {
  opacity: 1;
}

.gal-overlay span {
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--cream);
  line-height: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-phone {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--green-bright);
  margin-bottom: 2rem;
  transition: color var(--transition);
  line-height: 1;
}

.contact-phone:hover {
  color: var(--cream);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}

.contact-list a {
  color: var(--text);
  transition: color var(--transition);
}

.contact-list a:hover {
  color: var(--green-bright);
}

.contact-map {
  height: 480px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(90%) hue-rotate(175deg) saturate(0.6) brightness(0.9);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.social-link:hover {
  color: var(--green-bright);
  border-color: var(--green);
  background: rgba(90, 158, 50, 0.08);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 4, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(90, 158, 50, 0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet ≤1024px */
@media (max-width: 1024px) {
  .services-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-header {
    position: static;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo img {
    height: 420px;
  }

  .about-photo::before {
    display: none;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-map {
    height: 360px;
  }
}

/* Tablet ≤768px */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: rgba(12, 17, 8, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) 2rem 2rem;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1050;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    display: block;
    margin: 1.5rem 0 0;
    text-align: center;
    padding: 0.75rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-phone-btn {
    display: flex;
  }

  .gal-grid {
    columns: 2;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-social {
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

/* Mobile ≤480px */
@media (max-width: 480px) {
  .gal-grid {
    columns: 1;
  }

  .services,
  .about,
  .gallery,
  .contact {
    padding: 5rem 1.25rem;
  }

  .hero-content {
    padding: 0 1.25rem;
  }

  .service-item {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }

  .about-photo img {
    height: 300px;
  }
}
