/* Peter Kokles – Geodetické práce */
:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #55524b;
  --line: #e4ded1;
  --yellow: #f4c430;
  --yellow-soft: #fbeebf;
  --dark: #1f1e1b;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark); color: #f3f0e8; }
.lead { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); color: var(--muted); max-width: 40ch; }
.section--dark .lead { color: #cfcabd; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); padding: 10px 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  padding: 0.95em 1.5em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
  min-height: 52px;
}
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: #1c1b19; }
.btn--yellow:hover { background: #ffd24a; }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn .material-symbols-rounded { font-size: 1.3em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 116px; }
/* His logo exactly as he sent it (PETER-KOKLES-FINAL-01.png), never the mark with the name typed beside it (intx 27923) */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 100px; }
@media (max-width: 60em) { .site-header .wrap { min-height: 84px; } .brand img { height: 68px; } }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav .btn { padding: .7em 1.2em; min-height: 46px; border-bottom: 2px solid transparent; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-toggle .material-symbols-rounded { font-size: 2rem; }

@media (max-width: 60em) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); color: #8a6a0c; }
  .nav .btn { margin-top: 18px; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; color: #fff; background: #111 center / cover no-repeat; min-height: min(88vh, 820px); display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,9,.25) 0%, rgba(10,10,9,.55) 45%, rgba(10,10,9,.86) 100%); }
.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { max-width: 15ch; }
.hero .lead { color: #e9e5da; max-width: 36ch; }
.hero .btn--ghost { color: #fff; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: #9a7a1c; margin-bottom: 1rem; }
.hero .eyebrow, .section--dark .eyebrow { color: var(--yellow); }

/* Page head (sub-pages) */
.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 18ch; }

/* Service rows */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 3rem; }
.service { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 36px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service { position: relative; padding-right: 56px; }
.service h3 { margin: 0; }
.service .arrow { position: absolute; right: 4px; top: 38px; }
.service p { margin: 0; color: var(--muted); max-width: 52ch; }
.service .material-symbols-rounded { font-size: 2rem; transition: transform .2s ease; flex-shrink: 0; }
.service:hover .material-symbols-rounded { transform: translateX(6px); }
@media (min-width: 52em) { .service { grid-template-columns: 1.1fr 1.4fr; align-items: baseline; gap: 48px; } .service .arrow { top: 50%; transform: translateY(-50%); } .service:hover .arrow { transform: translate(6px, -50%); } }

/* Split */
.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; background: #ddd; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--plan { background: #fff; border: 1px solid var(--line); }
.photo--plan img { object-fit: contain; }

/* Facts */
.facts { display: grid; gap: 28px; margin: 3rem 0 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .facts { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.facts li { border-top: 3px solid var(--yellow); padding-top: 18px; }
.facts strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1.1; margin-bottom: 6px; }
.facts span { color: var(--muted); }
.section--dark .facts span { color: #cfcabd; }

/* References */
.refs { display: grid; gap: 28px; margin-top: 3rem; }
@media (min-width: 44em) { .refs { grid-template-columns: repeat(2, 1fr); } }
.ref { text-decoration: none; display: block; }
.ref .photo img { aspect-ratio: 3 / 2; transition: transform .4s ease; }
.ref:hover .photo img { transform: scale(1.03); }
.ref h3 { margin: 18px 0 4px; }
.ref p { margin: 0; color: var(--muted); }

/* Reviews */
.reviews { display: grid; gap: 28px; margin-top: 3rem; }
@media (min-width: 52em) { .reviews { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.review blockquote { margin: 0 0 1.2rem; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.5; }
.review figcaption { font-weight: 700; }

/* Content pages */
.prose h2 { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: #b8900f; }
.block { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.block:first-of-type { border-top: 0; }
.cols { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 56em) { .cols { grid-template-columns: 0.9fr 1.4fr; } }
.deflist { display: grid; gap: 0; margin: 0; }
.deflist div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.deflist div:first-child { padding-top: 0; }
.deflist dt { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.deflist dd { margin: 0; color: var(--muted); }
.note { background: var(--yellow-soft); border-radius: var(--radius); padding: 24px 28px; margin-top: 2rem; }
.note p:last-child { margin-bottom: 0; }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
@media (min-width: 48em) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,9,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 56em) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.big-link { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); text-decoration: none; line-height: 1.2; overflow-wrap: anywhere; }
.big-link:hover { color: #8a6a0c; }
/* The e-mail address stays on one line (client, 18.10.2026): sized to the column instead of wrapping */
.big-link--mail { white-space: nowrap; overflow-wrap: normal; font-size: min(2.4rem, 6.6vw); }
@media (min-width: 56em) { .big-link--mail { font-size: min(2.4rem, 3vw); } }
.text-link { font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.text-link:hover { color: #8a6a0c; }
.section--dark .big-link:hover { color: var(--yellow); }
.contact-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item .label { color: var(--muted); font-size: 1rem; margin-bottom: 4px; }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-weight: 600; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 1.1rem; padding: 16px 18px; border: 1.5px solid #cfc8b8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: #b8900f; }
.form textarea { min-height: 160px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231c1b19' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center; }
.form select:invalid { color: var(--muted); }
.form select option { color: var(--ink); }
.form small { color: var(--muted); font-size: .95rem; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }

/* CTA band */
.cta h2 { max-width: 20ch; }
.cta .big-link { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--dark); color: #d9d4c7; padding: 72px 0 40px; font-size: 1.05rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid h3 { font-size: 1.1rem; color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { background: #faf8f3; border-radius: 12px; padding: 16px 20px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 170px; }
.footer-bottom { border-top: 1px solid #3a3833; margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .95rem; color: #a9a396; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Film (18.10.2026): the velocis.sk player pattern. Muted while in view; "Pustiť so zvukom"
   restarts it with sound and controls. 16:9 on desktop, 4:5 under 700 px (js/main.js). */
.film-section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 116px; }
.film-section h2 { max-width: 24ch; }
.film { position: relative; margin: 2rem 0 0; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--dark); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(28, 27, 25, .18); }
.film__sound {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1; white-space: nowrap;
  cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.film__sound:hover { background: #ffd24a; }
.film__sound svg { width: 24px; height: 24px; fill: currentColor; }
.film figcaption { margin-top: 12px; font-size: 1rem; color: var(--muted); }
.watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.5rem; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
.watch .material-symbols-rounded { color: var(--yellow); font-size: 1.5em; }
.watch:hover { color: var(--yellow); }
@media (max-width: 699px) { .film__sound { bottom: 64px; min-height: 52px; padding: 0 20px; font-size: 1.05rem; } }
