/* ==========================================================
   REGIA – Výroba nábytku na mieru
   Statická verzia (HTML / CSS / JS), bez WordPressu
   ========================================================== */

:root {
  --wood-900: #2b1d14;
  --wood-800: #3d2a1d;
  --wood-600: #7a5233;
  --wood-500: #9c6b43;
  --wood-300: #d8b48c;
  --cream-100: #faf6f0;
  --cream-200: #f3ebe0;
  --ink: #241a13;
  --muted: #6d5f55;
  --line: #e5d9ca;
  --white: #ffffff;
  --accent: #b5713a;
  --accent-dark: #8f5527;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 29, 20, .10);
  --shadow-lg: 0 20px 50px rgba(43, 29, 20, .18);
  --container: 1180px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream-100);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--wood-900); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--wood-900);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--wood-900); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px;
}
.logo {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--wood-900);
}
.logo-mark {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; letter-spacing: .06em;
}
.logo-sub {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted);
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--cream-200); color: var(--accent-dark); }

.has-sub { position: relative; }
.has-sub > .submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  display: block; padding: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu li { display: block; }
.submenu a { padding: 9px 12px; font-size: .93rem; }

.btn-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wood-900); color: #fff !important; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.btn-call:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--wood-900);
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--cream-100);
    padding: 20px; overflow-y: auto; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { font-size: 1.1rem; padding: 14px 12px; }
  .has-sub > .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--wood-900); background: transparent; }
.btn-outline:hover { background: var(--wood-900); color: #fff; border-color: var(--wood-900); }
.btn-light { background: #fff; color: var(--wood-900); }
.btn-light:hover { background: var(--cream-200); color: var(--wood-900); }

/* ---------- Hero slider ---------- */
.hero {
  position: relative; height: min(78vh, 720px); min-height: 460px;
  overflow: hidden; color: #fff; background: var(--wood-900);
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,20,13,.82) 0%, rgba(30,20,13,.45) 55%, rgba(30,20,13,.15) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; max-width: 680px;
}
.hero .eyebrow { color: var(--wood-300); }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-dots { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: #fff; }

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

/* ---------- Page header (subpages) ---------- */
.page-hero {
  background: var(--wood-900) center/cover no-repeat; color: #fff; position: relative;
  padding: 90px 0 70px;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(30,20,13,.72); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 12px; opacity: .85; }
.breadcrumb a { color: var(--wood-300); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-200); }
.section-dark { background: var(--wood-900); color: #f1e6d8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; left: -18px; bottom: -22px; background: var(--accent); color: #fff;
  padding: 18px 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--font-head); line-height: 1.1;
}
.about-badge strong { display: block; font-size: 2.2rem; }
.about-badge span { font-size: .85rem; font-family: var(--font-body); }
@media (max-width: 860px) { .about-badge { left: 12px; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.tag-list a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--wood-800); font-size: .9rem; font-weight: 500;
}
.tag-list a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }
.service {
  background: #fff; border-radius: var(--radius); padding: 32px 26px;
  border: 1px solid var(--line); transition: .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream-200); color: var(--accent-dark); margin-bottom: 18px;
}
.service-icon svg { width: 30px; height: 30px; }
.service p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Portfolio cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-200); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.card-link { font-weight: 600; color: var(--accent-dark); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery a {
  display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--cream-200);
  position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: "+"; position: absolute; inset: auto 12px 12px auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--wood-900); display: grid; place-items: center;
  font-size: 1.4rem; opacity: 0; transition: .2s;
}
.gallery a:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(15,10,6,.94);
  display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: .9rem; }
@media (max-width: 600px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Partner logos ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 22px 0 10px; }
.logos a, .logos span {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px;
  display: grid; place-items: center; min-width: 140px; height: 84px;
}
.logos img { max-height: 52px; width: auto; }

.feature-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
}
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 50px; }
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }

.highlight {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff;
  border-radius: var(--radius); padding: 34px 36px; margin: 34px 0;
}
.highlight h3 { color: #fff; }
.highlight p:last-child { margin: 0; }
.discount-steps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.discount-steps span {
  background: rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; font-weight: 600;
}

.prose { max-width: 820px; }
.prose-wide { max-width: 100%; }
.content-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; width: 100%; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--wood-900) center/cover no-repeat; position: relative; color: #fff;
  padding: 80px 0; text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(30,20,13,.84); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; max-width: 620px; margin: 0 auto 26px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.contact-card h2 { font-size: 1.7rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 3px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent-dark); }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.map-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.map-frame { position: relative; width: 100%; aspect-ratio: 16/10; min-height: 360px; background: var(--cream-200); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.route-form { padding: 24px 26px 26px; border-top: 1px solid var(--line); }
.route-form h3 { margin-bottom: 4px; }
.route-form .hint { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.route-row { display: flex; gap: 10px; flex-wrap: wrap; }
.route-row .field { flex: 1 1 260px; position: relative; }
.route-row input, .route-row select, .form-grid input, .form-grid textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--cream-100); color: var(--ink);
}
.route-row input:focus, .route-row select:focus, .form-grid input:focus, .form-grid textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; background: #fff;
}
.route-row select { flex: 0 1 170px; }
.geo-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--accent-dark); cursor: pointer; padding: 8px;
  display: grid; place-items: center; border-radius: 8px;
}
.geo-btn:hover { background: var(--cream-200); }
.geo-btn svg { width: 20px; height: 20px; }
.route-row input#route-from { padding-right: 46px; }
.route-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.route-actions .btn { padding: 11px 20px; font-size: .95rem; }
.route-status { font-size: .9rem; color: var(--muted); margin-top: 10px; min-height: 1.4em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1e140d; color: #c9b8a6; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; }
.site-footer a { color: #e8d7c3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { font-family: var(--font-head); font-size: 2rem; color: #fff; letter-spacing: .06em; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: .2s; z-index: 90; font-size: 1.3rem;
}
.to-top.show { opacity: 1; visibility: visible; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transition: opacity .3s; transform: none; }
  html { scroll-behavior: auto; }
}
