/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #111510;
  --bg2:       #191e16;
  --bg3:       #21281e;
  --accent:    #c8923a;
  --accent2:   #e0ac58;
  --green:     #4e7a4e;
  --green2:    #6faa6f;
  --green3:    #3a5c3a;
  --text:      #e8ede0;
  --text-muted:#8a9880;
  --border:    #2a3228;
  --nav-h:     64px;
  --max-w:     1200px;
  --radius:    6px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  width: 2px;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}
body::before {
  left: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--green2) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.5;
}
body::after {
  right: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--accent) 30%, var(--green2) 70%, transparent 100%);
  opacity: 0.4;
}

body {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green2) 0%, var(--accent) 40%, var(--green) 80%, var(--green2) 100%) 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content {
  flex: 1;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--green3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

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

h1, h2, h3, h4 {
  font-family: 'Raleway', 'Georgia', serif;
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

img { max-width: 100%; display: block; }
p { margin-bottom: 1rem; }

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

/* ── HEADER / NAV ───────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(17, 21, 16, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0.95) sepia(0.2);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  border-left: 2px solid var(--green2);
  padding-left: 10px;
}
.site-logo .logo-name {
  font-family: 'Raleway', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.site-logo .logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── DESKTOP NAV ────────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; }
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover {
  background: var(--bg3);
  color: var(--green2);
}
.main-nav li.active > a {
  background: transparent;
  color: var(--green2);
  border-bottom: 2px solid var(--green2);
}

/* submenu */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
}
.main-nav ul ul li { border-bottom: 1px solid var(--border); }
.main-nav ul ul li:last-child { border-bottom: none; }
.main-nav ul ul a {
  padding: 10px 16px;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0.02em;
  border-radius: 0;
}
.main-nav li:hover > ul { display: block; }

/* ── HAMBURGER ──────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 24px; font-size: 0.95rem; }
  .main-nav ul ul {
    display: none;
    position: static;
    border: none;
    box-shadow: none;
    background: var(--bg3);
    padding-left: 16px;
  }
  .main-nav li.submenu-open > ul { display: block; }
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  background: var(--bg) center/cover no-repeat;
  padding-top: var(--nav-h);
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,35,18,0.7) 0%,
    rgba(11,17,9,0.4) 50%,
    rgba(11,17,9,0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 24px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  margin-bottom: 0.5rem;
}
.hero-content .hero-sub {
  font-size: 1rem;
  color: var(--green2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Raleway', serif;
  min-height: 1.4em;
  display: inline-block;
}
.hero-content .hero-sub::after {
  content: '|';
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  opacity: 1;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── BREADCRUMBS ───────────────────────────────────────────── */
.breadcrumbs {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  margin-top: var(--nav-h);
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 24px;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumbs li + li::before {
  content: '›';
  margin: 0 8px;
  color: var(--border);
  font-size: 1rem;
}
.breadcrumbs li a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumbs li a:hover { color: var(--green2); }
.breadcrumbs li[aria-current] { color: var(--green2); }

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
#page-content {
  padding-top: var(--nav-h);
  min-height: 60vh;
}
body.has-breadcrumbs #page-content {
  padding-top: 0;
}

/* ── SECTION ────────────────────────────────────────────────── */
.section {
  padding: 60px 0;
}
.section-title {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 2rem;
  padding-left: 16px;
  border-left: 4px solid var(--green2);
  display: inline-block;
  width: 100%;
}

/* ── NAVIGATION PAGE (lista podstron) ───────────────────────── */
.nav-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}
.nav-page-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 140px;
}
.nav-page-card.has-cover {
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  min-height: 200px;
}
.nav-page-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,16,10,0.92) 0%, rgba(10,16,10,0.5) 60%, transparent 100%);
  transition: background 0.3s ease;
}
.nav-page-card:hover .nav-page-card-overlay {
  background: linear-gradient(to top, rgba(10,16,10,0.75) 0%, rgba(10,16,10,0.3) 60%, transparent 100%);
}
.nav-page-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  min-height: inherit;
}
.nav-page-card:hover {
  border-color: var(--green2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  color: var(--text);
}
.nav-page-card h3 {
  color: var(--text);
  margin-bottom: 0;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.nav-page-card.has-cover h3 { color: #fff; }
.nav-page-card-arrow {
  color: var(--green2);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.nav-page-card:hover .nav-page-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── MODULAR TEXT ───────────────────────────────────────────── */
.modular-text {
  padding: 40px 0;
}
.modular-text h2 {
  color: var(--text);
  border-left: 3px solid var(--green2);
  padding-left: 12px;
  margin-bottom: 1.2rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
#site-footer {
  background: var(--bg2);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green2) 0%, var(--accent) 40%, var(--green) 80%, var(--green2) 100%) 1;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-address { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.footer-address a { color: var(--text-muted); }
.footer-address a:hover { color: var(--accent); }

.footer-divider {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .footer-divider { display: none; }
  .footer-col { flex-direction: column; align-items: flex-start; }
}
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: border-color var(--transition), color var(--transition);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: var(--radius);
  filter: grayscale(0.4) sepia(0.3);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span + span::before { content: ' / '; }

/* ── MODULAR MAP ────────────────────────────────────────────── */
.modular-map iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: var(--radius);
}
.modular-map h2 { color: var(--accent); margin-bottom: 1rem; }

/* ── SERVICE CARDS ──────────────────────────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 48px;
}
@media (max-width: 560px) {
  .service-cards { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  background: var(--bg3);
  border-color: var(--green2);
  border-left: 2px solid var(--green2);
  color: var(--text);
}
.service-card:hover::before {
  opacity: 0.06;
}
.service-card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.service-card-icon svg {
  width: 100%;
  height: 100%;
}
.service-card:hover .service-card-icon {
  transform: scale(1.12);
}
.service-card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--heading, #e8ddd0);
  margin: 0;
}
.service-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.service-card-arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  align-self: flex-end;
}
.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── CONTACT INFO ───────────────────────────────────────────── */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-bottom: 40px;
}
.footer-contact-info {
  margin-bottom: 0;
  gap: 12px 24px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
a.contact-info-item:hover { color: var(--accent); }
.contact-info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  padding: 9px;
  transition: background 0.2s, border-color 0.2s;
}
.contact-info-icon svg { width: 100%; height: 100%; }
a.contact-info-item:hover .contact-info-icon {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.contact-info-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.contact-info-value {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}

/* ── CONTACT LAYOUT (mapa + formularz) ──────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 48px;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-map {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-map iframe {
  width: 100%;
  flex: 1;
  min-height: 320px;
  border: none;
  border-radius: var(--radius);
  filter: grayscale(0.3) sepia(0.2);
}
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.contact-map-link:hover { color: var(--accent); }

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-form-wrap {}
.contact-form-title {
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.contact-form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(100, 180, 100, 0.1);
  border: 1px solid rgba(100, 180, 100, 0.3);
  border-radius: var(--radius);
  color: #7ec87e;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.contact-form-error {
  padding: 14px 18px;
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(200, 60, 60, 0.3);
  border-radius: var(--radius);
  color: #e07070;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.required { color: var(--accent); margin-left: 2px; }
.form-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.12);
}
.form-input.has-error { border-color: #c87e7e; }
.form-error {
  font-size: 0.75rem;
  color: #c87e7e;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.form-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }

/* ── YOUTUBE SECTION ────────────────────────────────────────── */
.yt-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.yt-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.yt-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #ff0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(255,0,0,0.3);
}
.yt-icon svg { width: 100%; height: 100%; }
.yt-header-text h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 4px;
  border-left: 4px solid #ff0000;
  padding-left: 12px;
}
.yt-header-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 16px;
}
.yt-subscribe-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid #ff0000;
  border-radius: var(--radius);
}
.yt-subscribe-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.yt-subscribe-widget { flex-shrink: 0; }
.yt-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
  margin-left: auto;
}
.yt-channel-link:hover { border-color: #ff0000; color: #ff0000; }
.yt-wall {
  border-radius: var(--radius);
  overflow: hidden;
}
.yt-wall .tagembed-container {
  width: 100%;
  min-height: 300px;
}

/* ── UTILS ──────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
