/* GEODETI.EU - Modern Full-Screen Responsive Stylesheet */

:root {
  --bg-primary: #141414;
  --bg-secondary: #1c1c1c;
  --bg-surface: #222222;
  --bg-surface-hover: #292929;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(229, 89, 22, 0.55);
  --accent: #e55916;
  --accent-hover: #ff6b26;
  --accent-dark: #b83707;
  --text-primary: #f2f2f2;
  --text-secondary: #b8b8b8;
  --text-muted: #858585;
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}

.content-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

small {
  color: var(--text-secondary);
  font-size: 0.88em;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* Sticky Full-Width Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

#logo {
  flex: 0 0 auto;
}

#logo a {
  display: inline-flex;
  align-items: center;
}

#logo img {
  display: block;
  width: clamp(240px, 30vw, 440px);
  height: auto;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.menu-list li {
  margin: 0;
}

.menu-list a.menu {
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.menu-list a.menu:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.menu-list a.menu.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 2px 10px rgba(229, 89, 22, 0.35);
}

/* Full-Screen Hero (Home) & Full-Bleed Subpage Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 76vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero--subpage {
  min-height: clamp(230px, 32vh, 330px);
  align-items: flex-end;
  padding: 48px 0 36px;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 14, 14, 0.92) 0%,
    rgba(14, 14, 14, 0.76) 52%,
    rgba(14, 14, 14, 0.42) 100%
  );
  z-index: 1;
}

.hero--subpage .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.45) 0%,
    rgba(14, 14, 14, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.hero--subpage .hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(229, 89, 22, 0.12);
  border: 1px solid rgba(229, 89, 22, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero--subpage .hero-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin-bottom: 0;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: #d6d6d6;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(229, 89, 22, 0.32);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Full-Bleed Alternating Sections */
main {
  flex: 1;
}

.section {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section--alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.section-subheading {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-subheading:first-child {
  margin-top: 0;
}

.prose {
  max-width: 860px;
  color: #dcdcdc;
}

.prose p {
  margin: 0 0 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* 3-Column Feature Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111111;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.card-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  flex: 1;
}

.card-text p {
  margin: 0 0 10px;
}

.card-text p:last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* Text-only Cards (co-potrebujeme) */
.card--text .card-body {
  padding: 26px 24px;
}

.card--text .card-title {
  color: var(--accent);
  margin-bottom: 16px;
}

.card--text .content-list {
  margin: 0;
  font-size: 14.5px;
}

.card--text .content-list a {
  color: #ffffff;
}

.card--text .content-list a:hover {
  color: var(--accent-hover);
}

/* Reference Gallery (kde-jsme-merili) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 42px;
}

.gallery-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.gallery-thumb {
  display: block;
  overflow: hidden;
  background: #0e0e0e;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-caption {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1040px;
  width: 100%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.5;
}

.lightbox-counter {
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(30, 30, 30, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 10px 15px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent-hover);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Pricing (kolik-zaplatite) */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pill-link:hover {
  border-color: var(--accent);
  background: rgba(229, 89, 22, 0.14);
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 24px;
}

.pricing-card:last-child {
  margin-bottom: 0;
}

.pricing-card-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.pricing-group {
  margin-bottom: 26px;
}

.pricing-group:last-of-type {
  margin-bottom: 12px;
}

.pricing-heading {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 15px;
}

table.ceniky {
  width: 100%;
  border-collapse: collapse;
}

table.ceniky tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

table.ceniky td {
  padding: 11px 8px;
  font-size: 14.5px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

table.ceniky td.sluzba {
  color: #dcdcdc;
  padding-right: 16px;
}

table.ceniky td.cena {
  color: var(--accent);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.back-to-top {
  margin-top: 14px;
  text-align: right;
}

.btn-top {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary) !important;
  font-size: 12.5px;
  text-decoration: none !important;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.btn-top:hover {
  border-color: var(--accent);
  color: #ffffff !important;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.contact-panel h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  color: #ffffff;
}

.contact-panel p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

.contact-panel strong {
  color: #ffffff;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #1a1a1a;
  min-height: 360px;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Footer */
#bottom {
  background: #0d0d0d;
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

#bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

#bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  #logo img {
    width: min(320px, 62vw);
    height: auto;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: space-between;
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    top: 18px;
  }

  .menu-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }

  .menu-list.is-open {
    display: flex;
  }

  .menu-list a.menu {
    display: block;
    padding: 10px 14px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 440px;
    padding: 40px 0;
  }

  .hero--subpage {
    min-height: 200px;
    padding: 32px 0 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }
}
