/* ==========================================================
   SLAPY ŽDÁŇ
   Hlavní stylesheet
   Finální sloučená verze
========================================================== */

:root {
  --green: #355E4B;
  --green-dark: #284738;
  --gold: #B88C4A;
  --background: #FAFAF8;
  --white: #ffffff;
  --text: #1F2933;
  --text-light: #5B6570;
  --border: #E7E7E7;
  --shadow: 0 12px 35px rgba(0, 0, 0, .08);
  --radius: 18px;
  --container: 1240px;
  --transition: .35s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(92%, var(--container));
  margin: auto;
}

/* ---------------- NAVIGATION ---------------- */

nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5%;
  z-index: 100;
  color: white;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
}

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav li {
  font-size: 15px;
  font-weight: 500;
  opacity: .95;
  transition: .3s;
}

nav li:hover {
  opacity: 1;
}

nav a.active {
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
}

/* ---------------- HERO ---------------- */

.hero {
  height: 100vh;
  min-height: 760px;
  position: relative;
  background:
    linear-gradient(135deg, #355E4B, #183126);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .18)),
    url("../images/gallery/34-dron-zdan-prehrada.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, .35),
    rgba(0, 0, 0, .45)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  width: min(90%, 900px);
}

.hero h1 {
  font-size: 64px;
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero p {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 50px;
}

.hero-info {
  display: flex;
  justify-content: center;
  gap: 70px;
  margin-bottom: 55px;
}

.hero-info div {
  display: flex;
  flex-direction: column;
}

.hero-info strong {
  font-size: 34px;
}

.hero-info span {
  font-size: 16px;
  opacity: .85;
}

/* ---------------- BUTTONS ---------------- */

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 36px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: var(--shadow);
}

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

.btn-secondary {
  background: white;
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ---------------- SECTIONS ---------------- */

.section {
  padding: 110px 0;
}

.section-alt {
  background: #F2F3EF;
}

.section h2,
.contact h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 35px;
}

.section p,
.contact > .container > p {
  max-width: 900px;
  font-size: 19px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------------- FACTS ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 50px;
}

.card {
  background: white;
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  font-size: 38px;
  color: var(--green);
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  font-size: 17px;
}

/* ---------------- DISPOSITION ---------------- */

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 40px;
}

.layout-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.layout-card h3 {
  margin-bottom: 20px;
  font-size: 28px;
}

.layout-card ul {
  padding-left: 20px;
  margin-top: 20px;
}

.layout-card li {
  margin-bottom: 10px;
}

/* ---------------- LOCATION ---------------- */

.location-box {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 35px;
  margin-top: 40px;
}

.location-panel {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.location-panel h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.location-panel ul {
  padding-left: 20px;
}

.location-panel li {
  margin-bottom: 10px;
}

.map {
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #e5e9e5;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ---------------- CONTACT ---------------- */

.contact {
  padding: 120px 0;
  background: white;
}

form {
  display: grid;
  gap: 18px;
  max-width: 700px;
  margin: 40px auto 0;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 15px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 17px;
  background: #fff;
  color: var(--text);
}

textarea {
  height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(53, 94, 75, .12);
}

.form-error {
  color: #a52a2a;
  font-size: 14px;
  line-height: 1.4;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a52a2a;
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0;
}

.form-consent input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin-top: 3px;
  accent-color: var(--green);
}

.form-consent label {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  max-width: none;
  margin: 6px 0 0;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 15px;
}

.form-status[data-status="success"] {
  background: #edf6f0;
  color: #28563c;
}

.form-status[data-status="error"] {
  background: #fff0f0;
  color: #8c2525;
}

.form-status[data-status="loading"] {
  background: #f5f5f2;
  color: var(--text-light);
}

button[type="submit"] {
  background: var(--green);
  color: white;
  padding: 20px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

button[type="submit"]:hover {
  background: var(--green-dark);
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

/* ---------------- REVEAL ANIMATIONS ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity .8s ease var(--reveal-delay, 0ms),
    transform .8s ease var(--reveal-delay, 0ms);
}

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

/* ---------------- LAZY IMAGES ---------------- */

img[data-src] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
  transition: opacity .5s ease;
}

img.image-error {
  opacity: .5;
}

/* ---------------- ACCESSIBILITY ---------------- */

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* ---------------- FOOTER ---------------- */

footer {
  padding: 45px;
  text-align: center;
  background: #183126;
  color: white;
}

footer p {
  opacity: .82;
}


/* ---------------- BENEFITS ---------------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-top: 48px;
}

.benefits-grid > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.benefits-grid span {
  font-size: 16px;
  line-height: 1.5;
}
